zswitems

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 1 Imported by: 2

Documentation

Index

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 NewItemMint(minter, to, toCustodian zsw.AccountName, freezeTime uint32, itemIds []uint64, amounts []uint64, memo string) *zsw.Action

func NewItemTransfer

func NewItemTransfer(authorizer, from, to, fromCustodian, toCustodian zsw.AccountName, freezeTime uint32, useLiquidBalance bool, maxUnfreezeIterations uint32, itemIds []uint64, amounts []uint64, memo string) *zsw.Action

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 NewMakeCustodian(creator zsw.AccountName, custodianName zsw.AccountName, zswId zsw.Uint128, altId zsw.Uint128, permissions zsw.Uint128, status uint32, incomingFreezePeriod uint32, notifyAccounts []zsw.AccountName) *zsw.Action

func NewMakeIssuer

func NewMakeIssuer(authorizer zsw.AccountName, issuerName zsw.AccountName, zswId zsw.Uint128, altId zsw.Uint128, permissions zsw.Uint128, status uint32) *zsw.Action

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 NewMakeRoyaltyUser(authorizer zsw.AccountName, newRoyaltyUser zsw.AccountName, zswId zsw.Uint128, altId zsw.Uint128, status uint32) *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 NewSetUserPermissions

func NewSetUserPermissions(sender, user zsw.AccountName, permissions zsw.Uint128) *zsw.Action

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 MakeIssuer struct {
	Authorizer  zsw.AccountName `json:"authorizer"`
	IssuerName  zsw.AccountName `json:"issuer_name"`
	ZswId       zsw.Uint128     `json:"zsw_id"`
	AltId       zsw.Uint128     `json:"alt_id"`
	Permissions zsw.Uint128     `json:"permissions"`
	Status      uint32          `json:"status"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL