zswattr

package
v1.12.12 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CompressionNone = CompressionType(iota)
	CompressionZlib
)
View Source
const JSONTimeFormat = "2006-01-02T15:04:05"

Variables

View Source
var REXSymbol = Symbol{Precision: 4, Symbol: "REX"}

REXSymbol represents the standard REX symbol on the chain. It's here just to speed up things.

View Source
var TNTSymbol = Symbol{Precision: 4, Symbol: "TNT"}

TNTSymbol represents the standard EOSIO Testnet symbol on the testnet chain. Temporary Network Token (TNT) is the native token of the EOSIO Testnet. It's here just to speed up things.

View Source
var ZSWAttributeVariant = NewVariantDefinition([]VariantType{
	{Name: "int8", Type: int8(0)},
	{Name: "int16", Type: int16(0)},
	{Name: "int32", Type: int32(0)},
	{Name: "int64", Type: int64(0)},
	{Name: "uint8", Type: uint8(0)},
	{Name: "uint16", Type: uint16(0)},
	{Name: "uint32", Type: uint32(0)},
	{Name: "uint64", Type: uint64(0)},
	{Name: "float", Type: float32(0)},
	{Name: "double", Type: float64(0)},
	{Name: "string", Type: ""},
	{Name: "INT8_VEC", Type: []int8{}},
	{Name: "INT16_VEC", Type: []int16{}},
	{Name: "INT32_VEC", Type: []int32{}},
	{Name: "INT64_VEC", Type: []int64{}},
	{Name: "UINT8_VEC", Type: []uint8{}},
	{Name: "UINT16_VEC", Type: []uint16{}},
	{Name: "UINT32_VEC", Type: []uint32{}},
	{Name: "UINT64_VEC", Type: []uint64{}},
	{Name: "FLOAT_VEC", Type: []float32{}},
	{Name: "DOUBLE_VEC", Type: []float64{}},
	{Name: "STRING_VEC", Type: []string{}},
})
View Source
var ZSWCCSymbol = Symbol{Precision: 4, Symbol: "ZSWCC"}

ZSWCCSymbol represents the standard ZSWCC symbol on the chain. It's here just to speed up things.

Functions

func BlockNum

func BlockNum(blockID string) uint32

BlockNum extracts the block number (or height) from a hex-encoded block ID.

Types

type ABIBinToJSONResp

type ABIBinToJSONResp struct {
	Args zsw.M `json:"args"`
}

type ABIJSONToBinResp

type ABIJSONToBinResp struct {
	Binargs string `json:"binargs"`
}

type AccountName

type AccountName Name

func AN

func AN(in string) AccountName

func (AccountName) String

func (n AccountName) String() string

type AccountResourceLimit

type AccountResourceLimit struct {
	Used      Int64 `json:"used"`
	Available Int64 `json:"available"`
	Max       Int64 `json:"max"`
}

type ActionName

type ActionName Name

func ActN

func ActN(in string) ActionName

func (ActionName) String

func (n ActionName) String() string

type Asset

type Asset struct {
	Amount Int64
	Symbol
}

NOTE: there's also ExtendedAsset which is a quantity with the attached contract (AccountName)

func NewAsset deprecated

func NewAsset(in string) (out Asset, err error)

NewAsset reads from a string an EOS asset.

Deprecated: Use `NewAssetFromString` instead

func NewAssetFromString

func NewAssetFromString(in string) (out Asset, err error)

NewAssetFromString reads a string an decode it to an zsw.Asset structure if possible. The input must contains an amount and a symbol. The precision is inferred based on the actual number of decimals present.

func NewFixedSymbolAssetFromString

func NewFixedSymbolAssetFromString(symbol Symbol, input string) (out Asset, err error)

func NewREXAssetFromString

func NewREXAssetFromString(input string) (Asset, error)

func NewTNTAssetFromString

func NewTNTAssetFromString(input string) (Asset, error)

func NewZSWAsset

func NewZSWAsset(amount int64) Asset

func NewZSWAssetFromString

func NewZSWAssetFromString(input string) (Asset, error)

func (Asset) Add

func (a Asset) Add(other Asset) Asset

func (Asset) MarshalJSON

func (a Asset) MarshalJSON() (data []byte, err error)

func (Asset) String

func (a Asset) String() string

func (Asset) Sub

func (a Asset) Sub(other Asset) Asset

func (*Asset) UnmarshalJSON

func (a *Asset) UnmarshalJSON(data []byte) error

type AttributeMap

type AttributeMap map[string]*ZSWAttribute

type Authority

type Authority struct {
	Threshold uint32                  `json:"threshold"`
	Keys      []KeyWeight             `json:"keys,omitempty"`
	Accounts  []PermissionLevelWeight `json:"accounts,omitempty"`
	Waits     []WaitWeight            `json:"waits,omitempty"`
}

type BaseVariant

type BaseVariant struct {
	TypeID uint8
	Impl   interface{}
}

func (*BaseVariant) Assign

func (a *BaseVariant) Assign(typeID uint8, impl interface{})

func (*BaseVariant) MarshalJSON

func (a *BaseVariant) MarshalJSON(def *VariantDefinition) ([]byte, error)

func (*BaseVariant) Obtain

func (a *BaseVariant) Obtain(def *VariantDefinition) (typeID uint32, typeName string, impl interface{})

func (*BaseVariant) UnmarshalBinaryVariant

func (a *BaseVariant) UnmarshalBinaryVariant(decoder *zsw.Decoder, def *VariantDefinition) error

func (*BaseVariant) UnmarshalJSON

func (a *BaseVariant) UnmarshalJSON(data []byte, def *VariantDefinition) error

type Blob

type Blob string

Blob is base64 encoded data https://github.com/EOSIO/fc/blob/0e74738e938c2fe0f36c5238dbc549665ddaef82/include/fc/variant.hpp#L47

func (Blob) Data

func (b Blob) Data() ([]byte, error)

Data returns decoded base64 data

func (Blob) String

func (b Blob) String() string

String returns the blob as a string

type BlockTimestamp

type BlockTimestamp struct {
	time.Time
}

func (BlockTimestamp) MarshalJSON

func (t BlockTimestamp) MarshalJSON() ([]byte, error)

func (*BlockTimestamp) UnmarshalJSON

func (t *BlockTimestamp) UnmarshalJSON(data []byte) (err error)

type Bool

type Bool bool

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

type Checksum160

type Checksum160 []byte

func (Checksum160) MarshalJSON

func (t Checksum160) MarshalJSON() ([]byte, error)

func (*Checksum160) UnmarshalJSON

func (t *Checksum160) UnmarshalJSON(data []byte) (err error)

type Checksum256

type Checksum256 []byte

func (Checksum256) MarshalJSON

func (t Checksum256) MarshalJSON() ([]byte, error)

func (Checksum256) String

func (t Checksum256) String() string

func (*Checksum256) UnmarshalJSON

func (t *Checksum256) UnmarshalJSON(data []byte) (err error)

type Checksum512

type Checksum512 []byte

func (Checksum512) MarshalJSON

func (t Checksum512) MarshalJSON() ([]byte, error)

func (*Checksum512) UnmarshalJSON

func (t *Checksum512) UnmarshalJSON(data []byte) (err error)

type CompressionType

type CompressionType uint8

func (CompressionType) MarshalJSON

func (c CompressionType) MarshalJSON() ([]byte, error)

func (CompressionType) String

func (c CompressionType) String() string

func (*CompressionType) UnmarshalJSON

func (c *CompressionType) UnmarshalJSON(data []byte) error

type CurrencyName

type CurrencyName string

type DelegatedBandwidth

type DelegatedBandwidth struct {
	From      AccountName `json:"from"`
	To        AccountName `json:"to"`
	NetWeight Asset       `json:"net_weight"`
	CPUWeight Asset       `json:"cpu_weight"`
}

type ExtendedAsset

type ExtendedAsset struct {
	Asset    Asset       `json:"quantity"`
	Contract AccountName `json:"contract"`
}

type Float128

type Float128 Uint128

func (Float128) MarshalJSON

func (i Float128) MarshalJSON() (data []byte, err error)

func (*Float128) UnmarshalJSON

func (i *Float128) UnmarshalJSON(data []byte) error

type Float64

type Float64 float64

func (*Float64) MarshalJSON

func (f *Float64) MarshalJSON() ([]byte, error)

func (*Float64) UnmarshalJSON

func (f *Float64) UnmarshalJSON(data []byte) error

type GetABIResp

type GetABIResp struct {
	AccountName AccountName `json:"account_name"`
	ABI         zsw.ABI     `json:"abi"`
}

type GetCodeHashResp

type GetCodeHashResp struct {
	AccountName AccountName `json:"account_name"`
	CodeHash    string      `json:"code_hash"`
}

type GetCodeResp

type GetCodeResp struct {
	AccountName AccountName `json:"account_name"`
	CodeHash    string      `json:"code_hash"`
	WASM        string      `json:"wasm"`
	ABI         zsw.ABI     `json:"abi"`
}

type GetRawCodeAndABIResp

type GetRawCodeAndABIResp struct {
	AccountName  AccountName `json:"account_name"`
	WASMasBase64 string      `json:"wasm"`
	ABIasBase64  string      `json:"abi"`
}

type HexBytes

type HexBytes []byte

func (HexBytes) MarshalJSON

func (t HexBytes) MarshalJSON() ([]byte, error)

func (HexBytes) String

func (t HexBytes) String() string

func (*HexBytes) UnmarshalJSON

func (t *HexBytes) UnmarshalJSON(data []byte) (err error)

type Int128

type Int128 Uint128

Int128

func (Int128) BigInt

func (i Int128) BigInt() *big.Int

func (Int128) DecimalString

func (i Int128) DecimalString() string

func (Int128) MarshalJSON

func (i Int128) MarshalJSON() (data []byte, err error)

func (*Int128) UnmarshalJSON

func (i *Int128) UnmarshalJSON(data []byte) error

type Int64

type Int64 int64

func (Int64) MarshalJSON

func (i Int64) MarshalJSON() (data []byte, err error)

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(data []byte) error

type InvalidTypeError

type InvalidTypeError struct {
	Label        string
	ExpectedType string
	Attribute    *ZSWAttribute
}

func (*InvalidTypeError) Error

func (c *InvalidTypeError) Error() string

type JSONFloat64

type JSONFloat64 = Float64

type JSONInt64

type JSONInt64 = Int64

JSONInt64 is deprecated in favor of Int64.

type JSONTime

type JSONTime struct {
	time.Time
}

func ParseJSONTime

func ParseJSONTime(date string) (JSONTime, error)

ParseJSONTime will parse a string into a JSONTime object

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

func (*JSONTime) UnmarshalJSON

func (t *JSONTime) UnmarshalJSON(data []byte) (err error)

type KeyWeight

type KeyWeight struct {
	PublicKey ecc.PublicKey `json:"key"`
	Weight    uint16        `json:"weight"` // weight_type
}

type Name

type Name string

func (Name) String

func (n Name) String() string

type OnVariant

type OnVariant = func(impl interface{}) error

type Permission

type Permission struct {
	PermName     string    `json:"perm_name"`
	Parent       string    `json:"parent"`
	RequiredAuth Authority `json:"required_auth"`
}

type PermissionLevel

type PermissionLevel struct {
	Actor      AccountName    `json:"actor"`
	Permission PermissionName `json:"permission"`
}

func NewPermissionLevel

func NewPermissionLevel(in string) (out PermissionLevel, err error)

NewPermissionLevel parses strings like `account@active`, `otheraccount@owner` and builds a PermissionLevel struct. It validates that there is a single optional @ (where permission defaults to 'active'), and validates length of account and permission names.

type PermissionLevelWeight

type PermissionLevelWeight struct {
	Permission PermissionLevel `json:"permission"`
	Weight     uint16          `json:"weight"` // weight_type
}

type PermissionName

type PermissionName Name

func PN

func PN(in string) PermissionName

func (PermissionName) String

func (n PermissionName) String() string

type RefundRequest

type RefundRequest struct {
	Owner       AccountName `json:"owner"`
	RequestTime JSONTime    `json:"request_time"` //         {"name":"request_time", "type":"time_point_sec"},
	NetAmount   Asset       `json:"net_amount"`
	CPUAmount   Asset       `json:"cpu_amount"`
}

type SHA256Bytes

type SHA256Bytes = Checksum256

SHA256Bytes is deprecated and renamed to Checksum256 for consistency. Please update your code as this type will eventually be phased out.

type SafeString

type SafeString string

end items config

func (*SafeString) UnmarshalBinary

func (ss *SafeString) UnmarshalBinary(d *zsw.Decoder) error

type ScopeName

type ScopeName Name

func (ScopeName) String

func (n ScopeName) String() string

type Symbol

type Symbol struct {
	Precision uint8
	Symbol    string
	// contains filtered or unexported fields
}

NOTE: there's also a new ExtendedSymbol (which includes the contract (as AccountName) on which it is)

func MustStringToSymbol

func MustStringToSymbol(str string) Symbol

func NameToSymbol

func NameToSymbol(name Name) (Symbol, error)

func NewSymbolFromUint64

func NewSymbolFromUint64(value uint64) (out Symbol)

func StringToSymbol

func StringToSymbol(str string) (Symbol, error)

func (Symbol) MustSymbolCode

func (s Symbol) MustSymbolCode() SymbolCode

func (Symbol) String

func (s Symbol) String() string

func (Symbol) SymbolCode

func (s Symbol) SymbolCode() (SymbolCode, error)

func (Symbol) ToName

func (s Symbol) ToName() (string, error)

func (Symbol) ToUint64

func (s Symbol) ToUint64() (uint64, error)

type SymbolCode

type SymbolCode uint64

func NameToSymbolCode

func NameToSymbolCode(name Name) (SymbolCode, error)

func StringToSymbolCode

func StringToSymbolCode(str string) (SymbolCode, error)

func (SymbolCode) MarshalJSON

func (sc SymbolCode) MarshalJSON() (data []byte, err error)

func (SymbolCode) String

func (sc SymbolCode) String() string

func (SymbolCode) ToName

func (sc SymbolCode) ToName() string

type TableName

type TableName Name

func (TableName) String

func (n TableName) String() string

type TimePoint

type TimePoint uint64

TimePoint represents the number of microseconds since EPOCH (Jan 1st 1970)

func (TimePoint) MarshalJSON

func (f TimePoint) MarshalJSON() ([]byte, error)

func (TimePoint) String

func (f TimePoint) String() string

func (*TimePoint) UnmarshalJSON

func (f *TimePoint) UnmarshalJSON(data []byte) error

type TimePointSec

type TimePointSec uint32

TimePointSec represents the number of seconds since EPOCH (Jan 1st 1970)

func (TimePointSec) MarshalJSON

func (f TimePointSec) MarshalJSON() ([]byte, error)

func (TimePointSec) String

func (f TimePointSec) String() string

func (*TimePointSec) UnmarshalJSON

func (f *TimePointSec) UnmarshalJSON(data []byte) error

type TotalResources

type TotalResources struct {
	Owner     AccountName `json:"owner"`
	NetWeight Asset       `json:"net_weight"`
	CPUWeight Asset       `json:"cpu_weight"`
	RAMBytes  Int64       `json:"ram_bytes"`
}

type Tstamp

type Tstamp struct {
	time.Time
}

func (Tstamp) MarshalJSON

func (t Tstamp) MarshalJSON() ([]byte, error)

func (*Tstamp) UnmarshalJSON

func (t *Tstamp) UnmarshalJSON(data []byte) (err error)

type Uint128

type Uint128 struct {
	Lo uint64
	Hi uint64
}

uint128

func NewUint128FromUint64

func NewUint128FromUint64(i uint64) Uint128

func (Uint128) BigInt

func (i Uint128) BigInt() *big.Int

func (Uint128) DecimalString

func (i Uint128) DecimalString() string

func (*Uint128) FromHexString

func (i *Uint128) FromHexString(hexString string) error

func (*Uint128) FromHexStringBigEndian

func (i *Uint128) FromHexStringBigEndian(hexString string) error

func (*Uint128) FromUuidString

func (i *Uint128) FromUuidString(uuidString string) error

func (Uint128) Get40BitId

func (i Uint128) Get40BitId() uint64

func (Uint128) GetTypeACode

func (i Uint128) GetTypeACode() uint64

func (Uint128) GetTypeBCode

func (i Uint128) GetTypeBCode() uint64

func (Uint128) MarshalJSON

func (i Uint128) MarshalJSON() (data []byte, err error)

func (Uint128) String

func (i Uint128) String() string

func (*Uint128) UnmarshalJSON

func (i *Uint128) UnmarshalJSON(data []byte) error

type Uint64

type Uint64 uint64

func (Uint64) MarshalJSON

func (i Uint64) MarshalJSON() (data []byte, err error)

func (*Uint64) UnmarshalJSON

func (i *Uint64) UnmarshalJSON(data []byte) error

type Variant

type Variant interface {
	Assign(typeID uint, impl interface{})
	Obtain() (typeID uint, impl interface{})
}

type VariantDefinition

type VariantDefinition struct {
	// contains filtered or unexported fields
}

func NewVariantDefinition

func NewVariantDefinition(types []VariantType) (out *VariantDefinition)

NewVariantDefinition creates a variant definition based on the *ordered* provided types. It's the ordering that defines the binary variant value just like in native `nodeos` C++ and in Smart Contract via the `std::variant` type. It's important to pass the entries in the right order!

This variant definition can now be passed to functions of `BaseVariant` to implement marshal/unmarshaling functionalities for binary & JSON.

func (*VariantDefinition) TypeID

func (d *VariantDefinition) TypeID(name string) uint8

type VariantImplFactory

type VariantImplFactory = func() interface{}

type VariantType

type VariantType struct {
	Name string
	Type interface{}
}

type Varint32

type Varint32 int32

type Varuint32

type Varuint32 uint32

type VoterInfo

type VoterInfo struct {
	Owner             AccountName   `json:"owner"`
	Proxy             AccountName   `json:"proxy"`
	Producers         []AccountName `json:"producers"`
	Staked            Int64         `json:"staked"`
	LastVoteWeight    Float64       `json:"last_vote_weight"`
	ProxiedVoteWeight Float64       `json:"proxied_vote_weight"`
	IsProxy           byte          `json:"is_proxy"`
}

type WaitWeight

type WaitWeight struct {
	WaitSec uint32 `json:"wait_sec"`
	Weight  uint16 `json:"weight"` // weight_type
}

type ZSWAttribute

type ZSWAttribute struct {
	*BaseVariant
}

func NewZSWAttribute

func NewZSWAttribute(typeId string, value interface{}) *ZSWAttribute

func ToZSWAttribute

func ToZSWAttribute(value interface{}) *ZSWAttribute

func (*ZSWAttribute) Float32

func (m *ZSWAttribute) Float32() (float32, error)

func (*ZSWAttribute) Float32Slice

func (m *ZSWAttribute) Float32Slice() ([]float32, error)

func (*ZSWAttribute) Float64

func (m *ZSWAttribute) Float64() (float64, error)

func (*ZSWAttribute) Float64Slice

func (m *ZSWAttribute) Float64Slice() ([]float64, error)

func (*ZSWAttribute) Int16

func (m *ZSWAttribute) Int16() (int16, error)

func (*ZSWAttribute) Int16Slice

func (m *ZSWAttribute) Int16Slice() ([]int16, error)

func (*ZSWAttribute) Int32

func (m *ZSWAttribute) Int32() (int32, error)

func (*ZSWAttribute) Int32Slice

func (m *ZSWAttribute) Int32Slice() ([]int32, error)

func (*ZSWAttribute) Int64

func (m *ZSWAttribute) Int64() (int64, error)

func (*ZSWAttribute) Int64Slice

func (m *ZSWAttribute) Int64Slice() ([]int64, error)

func (*ZSWAttribute) Int8

func (m *ZSWAttribute) Int8() (int8, error)

func (*ZSWAttribute) Int8Slice

func (m *ZSWAttribute) Int8Slice() ([]int8, error)

func (*ZSWAttribute) InvalidTypeError

func (m *ZSWAttribute) InvalidTypeError(expectedType string) *InvalidTypeError

func (*ZSWAttribute) IsEqual

func (m *ZSWAttribute) IsEqual(m2 *ZSWAttribute) bool

IsEqual evaluates if the two zswattr have the same types and values (deep compare)

func (*ZSWAttribute) MarshalJSON

func (m *ZSWAttribute) MarshalJSON() ([]byte, error)

MarshalJSON translates to []byte

func (*ZSWAttribute) String

func (m *ZSWAttribute) String() string

func (*ZSWAttribute) StringSlice

func (m *ZSWAttribute) StringSlice() ([]string, error)

func (*ZSWAttribute) UInt16

func (m *ZSWAttribute) UInt16() (uint16, error)

func (*ZSWAttribute) UInt16Slice

func (m *ZSWAttribute) UInt16Slice() ([]uint16, error)

func (*ZSWAttribute) UInt32

func (m *ZSWAttribute) UInt32() (uint32, error)

func (*ZSWAttribute) UInt32Slice

func (m *ZSWAttribute) UInt32Slice() ([]uint32, error)

func (*ZSWAttribute) UInt64

func (m *ZSWAttribute) UInt64() (uint64, error)

func (*ZSWAttribute) UInt64Slice

func (m *ZSWAttribute) UInt64Slice() ([]uint64, error)

func (*ZSWAttribute) UInt8

func (m *ZSWAttribute) UInt8() (uint8, error)

func (*ZSWAttribute) UInt8Slice

func (m *ZSWAttribute) UInt8Slice() ([]uint8, error)

func (*ZSWAttribute) UnmarshalBinary

func (m *ZSWAttribute) UnmarshalBinary(decoder *zsw.Decoder) error

UnmarshalBinary ...

func (*ZSWAttribute) UnmarshalJSON

func (m *ZSWAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON translates ZSWAttributeVariant

type ZswCorePermissions

type ZswCorePermissions uint64

start core permissions flags

const (
	ZSW_CORE_PERMS_ADMIN ZswCorePermissions = 1 << iota
	ZSW_CORE_PERMS_SETCODE
	ZSW_CORE_PERMS_SETABI
	ZSW_CORE_PERMS_TRANSFER_TOKEN_TO_ANYONE
	ZSW_CORE_PERMS_RECEIVE_TOKEN_FROM_ANYONE
	ZSW_CORE_PERMS_TRANSFER_TOKEN_TO_CORE_CONTRACTS
	ZSW_CORE_PERMS_RECEIVE_TOKEN_AS_CORE_CONTRACTS
	ZSW_CORE_PERMS_CREATE_USER
	ZSW_CORE_PERMS_UPDATE_AUTH
	ZSW_CORE_PERMS_DELETE_AUTH
	ZSW_CORE_PERMS_LINK_AUTH
	ZSW_CORE_PERMS_UNLINK_AUTH
	ZSW_CORE_PERMS_CANCEL_DELAY
	ZSW_CORE_PERMS_CONFIRM_AUTHORIZE_USER_TX
	ZSW_CORE_PERMS_CONFIRM_AUTHORIZE_USER_TRANSFER_ITEM
	ZSW_CORE_PERMS_GENERAL_RESOURCES
	ZSW_CORE_PERMS_REGISTER_PRODUCER
	ZSW_CORE_PERMS_VOTE_PRODUCER
	ZSW_CORE_PERMS_MISC_FUNCTIONS
)

type ZswItemConfigFlags

type ZswItemConfigFlags uint64

end items custodian permission flags start items config

const (
	ITEM_CONFIG_TRANSFERABLE ZswItemConfigFlags = 1 << iota
	ITEM_CONFIG_BURNABLE
	ITEM_CONFIG_FROZEN
	ITEM_CONFIG_ALLOW_NOTIFY
	ITEM_CONFIG_ALLOW_MUTABLE_DATA
)

type ZswItemsCustodianPermissions

type ZswItemsCustodianPermissions uint64

start items custodian permissions flags

const (
	CUSTODIAN_PERMS_ENABLED ZswItemsCustodianPermissions = 1 << iota
	CUSTODIAN_PERMS_TX_TO_SELF_CUSTODIAN
	CUSTODIAN_PERMS_RECEIVE_FROM_NULL_CUSTODIAN
	CUSTODIAN_PERMS_RECEIVE_FROM_ANY_CUSTODIAN
	CUSTODIAN_PERMS_RECEIVE_FROM_ZSW_CUSTODIAN
	CUSTODIAN_PERMS_SEND_TO_NULL_CUSTODIAN
	CUSTODIAN_PERMS_SEND_TO_ANY_CUSTODIAN
	CUSTODIAN_PERMS_SEND_TO_ZSW_CUSTODIAN
)

type ZswItemsPermissions

type ZswItemsPermissions uint64

start items permissions flags

const (
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_COLLECTION ZswItemsPermissions = 1 << iota
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_COLLECTION
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_ITEM
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_ITEM
	ZSW_ITEMS_PERMS_AUTHORIZE_MINT_ITEM
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_ISSUER
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_ISSUER
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_ROYALTY_USER
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_ROYALTY_USER
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_SCHEMA
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_SCHEMA
	ZSW_ITEMS_PERMS_ADMIN
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_CUSTODIAN
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_CUSTODIAN
	ZSW_ITEMS_PERMS_AUTHORIZE_MINT_TO_OTHER_CUSTODIANS
	ZSW_ITEMS_PERMS_AUTHORIZE_MINT_TO_NULL_CUSTODIAN
	ZSW_ITEMS_PERMS_AUTHORIZE_CREATE_ITEM_TEMPLATE
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_ITEM_TEMPLATE
	ZSW_ITEMS_PERMS_AUTHORIZE_MODIFY_ITEM_METADATA
)

Jump to

Keyboard shortcuts

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