Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.66 KB

support.md

File metadata and controls

45 lines (34 loc) · 1.66 KB

SUPPORT

The SUPPORT interaction claims that the caller promises to fund an existed topic with some amount of token. It’s used when a user finds a topic created by others interesting or useful to himself/herself. If the caller is the creator, it means the creator will fund more to the topic. A SUPPORT interaction will fail if the target topic is resolved.

Standard

The format of a NEW interaction is 0x{bytes(osn:q:1:S:{token_identifier}:{token_amount}:{topic_ipfs_cid})}. It means the extrinsic caller promises to fund an existed topic with some amount of token.

There are 7 items in this interaction:

  • osn: it just means OpenSquare Network.
  • q: it means qa collaboration.
  • 1: it means the qa spec version.
  • S: it's the abbreviation of SUPPORT, directive to support an existed topic.
  • token_identifier: it identifies a token, described in token identifier entity.
  • token_amount: how many tokens to fund this topic, described at token amount entity.
  • topic_ipfs_cid: ipfs CID of a topic entity.

Examples

osn:q:1:S:N:1:bafybeigvbkfmhdgnqko4ev35wfecx7exiyg35gcr7rh45ywlpw2v62itye

It will be submitted as:

0x6f736e3a713a313a533a4e3a313a626166796265696776626b666d6864676e716b6f346576333577666563783765786979673335676372377268343579776c70773276363269747965

If submitted to Kusama, it will mean the caller promises to fund at least 1 KSM to the answers which solve the existed topic described with the following existed topic.

{
  "title": "This is the title",
  "content": "This is the content",
  "language": "en"
}