ixo1155

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(value interface{}) ([]byte, error)

Types

type AllTokens

type AllTokens struct {
	Start_after string `json:"start_after"`
	Limit       string `json:"limit"`
}

AllTokens / With Enumerable extension. / Requires pagination. Lists all token_ids controlled by the contract. #[returns(TokensResponse)]

type ApproveAll

type ApproveAll struct {
	Operator string     `json:"operator"`
	Expires  Expiration `json:"expires"`
}

ApproveAll / Allows operator to transfer / send any token from the owner's account. / If expiration is set then this allowance has a time/height limit

type ApprovedForAll

type ApprovedForAll struct {
	Owner string `json:"owner"`
	/// unset or false will filter out expired approvals you must set to true to see them
	Include_expired bool   `json:"include_expired"`
	Start_after     string `json:"start_after"`
	Limit           string `json:"limit"`
}

ApprovedForAll / List all operators that can access all of the owner's tokens. #[returns(ApprovedForAllResponse)]

type Balance

type Balance struct {
	Owner    string `json:"owner"`
	Token_id string `json:"token_id"`
}

Balance #[returns(BalanceResponse)]

type Batch

type Batch []string

Must be [Token_id, Amount, Uri]

type BatchBalance

type BatchBalance struct {
	Owner     string   `json:"owner"`
	Token_ids []string `json:"token_ids"`
}

BatchBalance BatchBalance / Returns the current balance of the given address for a batch of tokens 0 if unset. #[returns(BatchBalanceResponse)]

type BatchBurn

type BatchBurn struct {
	From  string  `json:"from"`
	Batch []Batch `json:"batch"`
}

BatchBurn / BatchBurn is a base message to burn multiple types of tokens in batch.

type BatchMint

type BatchMint struct {
	/// If `to` is not contract `msg` should be `None`
	To    string  `json:"to"`
	Batch []Batch `json:"batch"`
	/// `None` means don't call the receiver interface
	Msg []byte `json:"msg"`
}

BatchMint / BatchMint is a base message to mint multiple types of tokens in batch.

type BatchSendFrom

type BatchSendFrom struct {
	From string `json:"from"`
	/// if `to` is not contract `msg` should be `None`
	To    string  `json:"to"`
	Batch []Batch `json:"batch"`
	/// `None` means don't call the receiver interface
	Msg []byte `json:"msg"`
}

BatchSendFrom / BatchSendFrom is a base message to move multiple types of tokens in batch / if `env.sender` is the owner or has sufficient pre-approval.

type Burn

type Burn struct {
	From     string `json:"from"`
	Token_id string `json:"token_id"`
	Value    string `json:"value"`
}

Burn / Burn is a base message to burn tokens.

type Expiration

type Expiration struct {
	AtHeight string
	AtTime   time.Time
	Never    interface{}
}

type InstantiateMsg

type InstantiateMsg struct {
	/// The minter is the only one who can create new tokens.
	Minter string `json:"minter"`
}

type IsApprovedForAll

type IsApprovedForAll struct {
	Owner    string `json:"owner"`
	Operator string `json:"operator"`
}

IsApprovedForAll / Query approved status `owner` granted to `operator`. #[returns(IsApprovedForAllResponse)]

type Mint

type Mint struct {
	/// If `to` is not contract `msg` should be `None`
	To      string `json:"to"`
	TokenId string `json:"token_id"`
	Value   string `json:"value"`
	Uri     string `json:"uri"`
	/// `None` means don't call the receiver interface
	Msg []byte `json:"msg,omitempty"`
}

Mint / Mint is a base message to mint tokens.

type RevokeAll

type RevokeAll struct {
	Operator string `json:"operator"`
}

RevokeAll / Remove previously granted ApproveAll permission

type SendFrom

type SendFrom struct {
	From string `json:"from"`
	/// If `to` is not contract `msg` should be `None`
	To       string `json:"to"`
	Token_id string `json:"token_id"`
	Value    string `json:"value"`
	/// `None` means don't call the receiver interface
	Msg []byte `json:"msg"`
}

SendFrom / SendFrom is a base message to move tokens / if `env.sender` is the owner or has sufficient pre-approval.

type TokenInfo

type TokenInfo struct {
	Token_id string `json:"token_id"`
}

TokenInfo / With MetaData Extension. / Query metadata of token #[returns(TokenInfoResponse)]

type Tokens

type Tokens struct {
	Owner       string `json:"owner"`
	Start_after string `json:"start_after"`
	Limit       string `json:"limit"`
}

Tokens / With Enumerable extension. / Returns all tokens owned by the given address [] if unset. #[returns(TokensResponse)]

type WasmBatchSendFrom

type WasmBatchSendFrom struct {
	BatchSendFrom BatchSendFrom `json:"batch_send_from"`
}

type WasmMsgAllTokens

type WasmMsgAllTokens struct {
	AllTokens AllTokens `json:"all_tokens"`
}

type WasmMsgApproveAll

type WasmMsgApproveAll struct {
	ApproveAll ApproveAll `json:"approve_all"`
}

type WasmMsgApprovedForAll

type WasmMsgApprovedForAll struct {
	ApprovedForAll ApprovedForAll `json:"approved_for_all"`
}

type WasmMsgBalance

type WasmMsgBalance struct {
	Balance Balance `json:"balance"`
}

type WasmMsgBatchBalance

type WasmMsgBatchBalance struct {
	BatchBalance BatchBalance `json:"batch_balance"`
}

type WasmMsgBatchBurn

type WasmMsgBatchBurn struct {
	BatchBurn BatchBurn `json:"batch_burn"`
}

type WasmMsgBatchMint

type WasmMsgBatchMint struct {
	BatchMint BatchMint `json:"batch_mint"`
}

type WasmMsgBurn

type WasmMsgBurn struct {
	Burn Burn `json:"burn"`
}

type WasmMsgIsApprovedForAll

type WasmMsgIsApprovedForAll struct {
	IsApprovedForAll IsApprovedForAll `json:"is_approved_for_all"`
}

type WasmMsgMint

type WasmMsgMint struct {
	Mint Mint `json:"mint"`
}

type WasmMsgRevokeAll

type WasmMsgRevokeAll struct {
	RevokeAll RevokeAll `json:"revoke_all"`
}

type WasmMsgTokenInfo

type WasmMsgTokenInfo struct {
	TokenInfo TokenInfo `json:"token_info"`
}

type WasmMsgTokens

type WasmMsgTokens struct {
	Tokens Tokens `json:"tokens"`
}

type WasmSendFrom

type WasmSendFrom struct {
	SendFrom SendFrom `json:"send_from"`
}

Jump to

Keyboard shortcuts

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