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, creator zsw.AccountName, ...) *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, creator zsw.AccountName, ...) *zsw.Action
- func NewMakeRoyaltyUser(authorizer zsw.AccountName, newRoyaltyUser zsw.AccountName, zswId zsw.Uint128, ...) *zsw.Action
- func NewSetCustodianPermissions(sender, custodian zsw.AccountName, permissions zsw.Uint128) *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 MakeRoyaltyUser
- type SetCustodianPermissions
- 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, creator zsw.AccountName, issuingPlatform zsw.AccountName, collectionId uint64, zswCode uint64, collectionType uint32, itemConfig uint32, secondaryMarketFee uint16, primaryMarketFee uint16, schemaName zsw.AccountName, externalMetadataUrl string, royaltyFeeCollector zsw.AccountName, notifyAccounts []zsw.AccountName, metadata zsw.ZswItemsMetadata) *zsw.Action
func NewMakeCustodian ¶
func NewMakeIssuer ¶
func NewMakeItem ¶
func NewMakeItem(authorizer zsw.AccountName, creator zsw.AccountName, authorizedMinter zsw.AccountName, itemId uint64, zswId zsw.Uint128, itemConfig uint32, collectionId uint64, maxSupply uint64, itemType uint32, externalMetadataUrl string, schemaName zsw.AccountName, metadata zsw.ZswItemsMetadata) *zsw.Action
func NewMakeRoyaltyUser ¶
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 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"` Creator zsw.AccountName `json:"creator"` IssuingPlatform zsw.AccountName `json:"issuing_platform"` CollectionId uint64 `json:"collection_id"` ZswCode uint64 `json:"zsw_code"` CollectionType uint32 `json:"collection_type"` ItemConfig uint32 `json:"item_config"` SecondaryMarketFee uint16 `json:"secondary_market_fee"` PrimaryMarketFee uint16 `json:"primary_market_fee"` SchemaName zsw.AccountName `json:"schema_name"` ExternalMetadataUrl string `json:"external_metadata_url"` RoyaltyFeeCollector zsw.AccountName `json:"royalty_fee_collector"` NotifyAccounts []zsw.AccountName `json:"notify_accounts"` Metadata zsw.ZswItemsMetadata `json:"metadata"` }
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"` Creator zsw.AccountName `json:"creator"` AuthorizedMinter zsw.AccountName `json:"authorized_minter"` ItemId uint64 `json:"item_id"` ZswId zsw.Uint128 `json:"zsw_id"` ItemConfig uint32 `json:"item_config"` CollectionId uint64 `json:"collection_id"` MaxSupply uint64 `json:"max_supply"` ItemType uint32 `json:"item_type"` ExternalMetadataUrl string `json:"external_metadata_url"` SchemaName zsw.AccountName `json:"schema_name"` Metadata zsw.ZswItemsMetadata `json:"metadata"` }
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 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 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.