Documentation ¶
Index ¶
- Variables
- func NewItemMint(minter, to, toCustodian zsw.AccountName, freezeTime uint32, itemIds []uint64, ...) *zsw.Action
- func NewItemTransfer(authorizer, from, to, fromCustodian, toCustodian zsw.AccountName, ...) *zsw.Action
- func NewMakeCollection(authorizer zsw.AccountName, zswId zsw.Uint128, collectionId uint64, ...) *zsw.Action
- func NewMakeCustodian(creator zsw.AccountName, custodianName zsw.AccountName, zswId zsw.Uint128, ...) *zsw.Action
- func NewMakeIssuer(authorizer zsw.AccountName, issuerName zsw.AccountName, zswId zsw.Uint128, ...) *zsw.Action
- func NewMakeItem(authorizer zsw.AccountName, authorizedMinter zsw.AccountName, itemId uint64, ...) *zsw.Action
- func NewMakeItemTemplate(authorizer zsw.AccountName, creator zsw.AccountName, zswId zsw.Uint128, ...) *zsw.Action
- func NewMakeRoyaltyUser(authorizer zsw.AccountName, newRoyaltyUser zsw.AccountName, zswId zsw.Uint128, ...) *zsw.Action
- func NewMakeSchema(authorizer zsw.AccountName, creator zsw.AccountName, schemaName zsw.Name, ...) *zsw.Action
- func NewSetCustodianPermissions(sender, custodian zsw.AccountName, permissions zsw.Uint128) *zsw.Action
- func NewSetItemData(authorizedEditor zsw.AccountName, itemId uint64, ...) *zsw.Action
- func NewSetUserPermissions(sender, user zsw.AccountName, permissions zsw.Uint128) *zsw.Action
- type ItemMint
- type ItemTransfer
- type MakeCollection
- type MakeCustodian
- type MakeIssuer
- type MakeItem
- type MakeItemTemplate
- type MakeRoyaltyUser
- type MakeSchema
- type SetCustodianPermissions
- type SetItemData
- type SetUserPermissions
Constants ¶
This section is empty.
Variables ¶
View Source
var AN = zsw.AN
View Source
var ActN = zsw.ActN
View Source
var PN = zsw.PN
View Source
var ZswItemsAN = AN("zsw.items")
Functions ¶
func NewItemMint ¶
func NewItemTransfer ¶
func NewMakeCollection ¶
func NewMakeCollection(authorizer zsw.AccountName, zswId zsw.Uint128, collectionId uint64, collectionType uint32, creator zsw.AccountName, issuingPlatform zsw.AccountName, itemConfig uint32, secondaryMarketFee uint16, primaryMarketFee uint16, royaltyFeeCollector zsw.AccountName, maxSupply uint64, maxItems uint64, maxSupplyPerItem uint64, schemaName zsw.Name, authorizedMinters []zsw.AccountName, notifyAccounts []zsw.AccountName, authorizedMutableDataEditors []zsw.AccountName, metadata zswattr.AttributeMap, externalMetadataUrl string) *zsw.Action
func NewMakeCustodian ¶
func NewMakeIssuer ¶
func NewMakeItem ¶
func NewMakeItem(authorizer zsw.AccountName, authorizedMinter zsw.AccountName, itemId uint64, zswId zsw.Uint128, itemConfig uint32, itemTemplateId uint64, maxSupply uint64, schemaName zsw.Name, immutableMetadata zswattr.AttributeMap, mutableMetadata zswattr.AttributeMap) *zsw.Action
func NewMakeItemTemplate ¶ added in v1.10.0
func NewMakeRoyaltyUser ¶
func NewMakeSchema ¶ added in v1.11.1
func NewMakeSchema(authorizer zsw.AccountName, creator zsw.AccountName, schemaName zsw.Name, schemaFormat []zsw.FieldDef) *zsw.Action
func NewSetCustodianPermissions ¶
func NewSetCustodianPermissions(sender, custodian zsw.AccountName, permissions zsw.Uint128) *zsw.Action
NewSetCustodianPermissions is an action representing a setting a custodian's permissions to be broadcast through the chain network.
func NewSetItemData ¶ added in v1.12.0
func NewSetItemData(authorizedEditor zsw.AccountName, itemId uint64, newMutableData zswattr.AttributeMap) *zsw.Action
func NewSetUserPermissions ¶
NewSetUserPermissions is an action representing a setting a user's permissions to be broadcast through the chain network.
Types ¶
type ItemMint ¶
type ItemMint struct { Minter zsw.AccountName `json:"minter"` To zsw.AccountName `json:"to"` ToCustodian zsw.AccountName `json:"to_custodian"` ItemIds []uint64 `json:"item_ids"` Amounts []uint64 `json:"amounts"` Memo string `json:"memo"` FreezeTime uint32 `json:"freeze_time"` }
ItemTransfer represents the `transfer` struct on `zsw.items` contract.
type ItemTransfer ¶
type ItemTransfer struct { Authorizer zsw.AccountName `json:"authorizer"` From zsw.AccountName `json:"from"` To zsw.AccountName `json:"to"` FromCustodian zsw.AccountName `json:"from_custodian"` ToCustodian zsw.AccountName `json:"to_custodian"` FreezeTime uint32 `json:"freeze_time"` UseLiquidBalance bool `json:"use_liquid_backup"` MaxUnfreezeIterations uint32 `json:"max_unfreeze_iterations"` ItemIds []uint64 `json:"item_ids"` Amounts []uint64 `json:"amounts"` Memo string `json:"memo"` }
ItemTransfer represents the `transfer` struct on `zsw.items` contract.
type MakeCollection ¶
type MakeCollection struct { Authorizer zsw.AccountName `json:"authorizer"` ZswId zsw.Uint128 `json:"zsw_id"` CollectionId uint64 `json:"collection_id"` CollectionType uint32 `json:"collection_type"` Creator zsw.AccountName `json:"creator"` IssuingPlatform zsw.AccountName `json:"issuing_platform"` ItemConfig uint32 `json:"item_config"` SecondaryMarketFee uint16 `json:"secondary_market_fee"` PrimaryMarketFee uint16 `json:"primary_market_fee"` RoyaltyFeeCollector zsw.AccountName `json:"royalty_fee_collector"` MaxSupply uint64 `json:"max_supply"` MaxItems uint64 `json:"max_items"` MaxSupplyPerItem uint64 `json:"max_supply_per_item"` SchemaName zsw.Name `json:"schema_name"` AuthorizedMinters []zsw.AccountName `json:"authorized_minters"` NotifyAccounts []zsw.AccountName `json:"notify_accounts"` AuthorizedMutableDataEditors []zsw.AccountName `json:"authorized_mutable_data_editors"` Metadata zswattr.AttributeMap `json:"metadata"` ExternalMetadataUrl string `json:"external_metadata_url"` }
type MakeCustodian ¶
type MakeCustodian struct { Creator zsw.AccountName `json:"creator"` CustodianName zsw.AccountName `json:"custodian_name"` ZswId zsw.Uint128 `json:"zsw_id"` AltId zsw.Uint128 `json:"alt_id"` Permissions zsw.Uint128 `json:"permissions"` Status uint32 `json:"status"` IncomingFreezePeriod uint32 `json:"incoming_freeze_period"` NotifyAccounts []zsw.AccountName `json:"notify_accounts"` }
type MakeIssuer ¶
type MakeItem ¶
type MakeItem struct { Authorizer zsw.AccountName `json:"authorizer"` AuthorizedMinter zsw.AccountName `json:"authorized_minter"` ItemId uint64 `json:"item_id"` ZswId zsw.Uint128 `json:"zsw_id"` ItemConfig uint32 `json:"item_config"` ItemTemplateId uint64 `json:"item_template_id"` MaxSupply uint64 `json:"max_supply"` SchemaName zsw.Name `json:"schema_name"` ImmutableMetadata zswattr.AttributeMap `json:"immutable_metadata"` MutableMetadata zswattr.AttributeMap `json:"mutable_metadata"` }
type MakeItemTemplate ¶ added in v1.10.0
type MakeItemTemplate struct { Authorizer zsw.AccountName `json:"authorizer"` Creator zsw.AccountName `json:"creator"` ZswId zsw.Uint128 `json:"zsw_id"` ItemTemplateId uint64 `json:"item_template_id"` CollectionId uint64 `json:"collection_id"` ItemType uint32 `json:"item_type"` SchemaName zsw.Name `json:"schema_name"` ImmutableMetadata zswattr.AttributeMap `json:"immutable_metadata"` ItemExternalMetadataUrlTemplate string `json:"item_external_metadata_url_template"` }
type MakeRoyaltyUser ¶
type MakeRoyaltyUser struct { Authorizer zsw.AccountName `json:"authorizer"` NewRoyaltyUser zsw.AccountName `json:"newroyaltyusr"` ZswId zsw.Uint128 `json:"zsw_id"` AltId zsw.Uint128 `json:"alt_id"` Status uint32 `json:"status"` }
type MakeSchema ¶ added in v1.10.0
type MakeSchema struct { Authorizer zsw.AccountName `json:"authorizer"` Creator zsw.AccountName `json:"creator"` SchemaName zsw.Name `json:"schema_name"` SchemaFormat []zsw.FieldDef `json:"schema_format"` }
type SetCustodianPermissions ¶
type SetCustodianPermissions struct { Sender zsw.AccountName `json:"sender"` Custodian zsw.AccountName `json:"custodian"` Permissions zsw.Uint128 `json:"permissions"` }
UnVote represents the `zsw.items::unvote` action.
type SetItemData ¶ added in v1.12.0
type SetItemData struct { AuthorizedEditor zsw.AccountName `json:"authorized_editor"` ItemId uint64 `json:"item_id"` NewMutableData zswattr.AttributeMap `json:"new_mutable_data"` }
type SetUserPermissions ¶
type SetUserPermissions struct { Sender zsw.AccountName `json:"sender"` User zsw.AccountName `json:"user"` Permissions zsw.Uint128 `json:"permissions"` }
UnVote represents the `zsw.items::unvote` action.
Click to show internal directories.
Click to hide internal directories.