Creating And Updating Spaces
#
Create A SpaceParams | Description |
---|---|
parentIdOpt | don't use now. |
handleOpt | disabled now. |
content | IpfsContent is a function that returns a substrate like implementation for enum { IPFS: "CID of your content"}. |
permissions | advanced options. |
Example:
#
Update A SpaceParams | Description |
---|---|
spaceId | ID of the current space. |
update | fields available to be updated. |
Update properties
Properties | Description |
---|---|
handle? | if enabled. A handle is an alias for a space ID. |
content? | IpfsContent is a function that returns a substrate like implementation for enum { IPFS: "CID of your content"}. |
hidden? | boolean, if space is hidden from other users. |
permissions? | advance opt. |
Example:
๐ AnySpaceId: SpaceId | BN
๐ SpaceUpdateType: { content: OptionContent, handle: OptionOptionText, hidden: Option<bool>, permissions: Option<Option<SpacePermissions >> }
๐ ธ SpaceUpdate