Documentation ¶
Index ¶
- func Marshal(value interface{}) ([]byte, error)
- type AllTokens
- type ApproveAll
- type ApprovedForAll
- type Balance
- type Batch
- type BatchBalance
- type BatchBurn
- type BatchMint
- type BatchSendFrom
- type Burn
- type Expiration
- type InstantiateMsg
- type IsApprovedForAll
- type Mint
- type RevokeAll
- type SendFrom
- type TokenInfo
- type Tokens
- type WasmBatchSendFrom
- type WasmMsgAllTokens
- type WasmMsgApproveAll
- type WasmMsgApprovedForAll
- type WasmMsgBalance
- type WasmMsgBatchBalance
- type WasmMsgBatchBurn
- type WasmMsgBatchMint
- type WasmMsgBurn
- type WasmMsgIsApprovedForAll
- type WasmMsgMint
- type WasmMsgRevokeAll
- type WasmMsgTokenInfo
- type WasmMsgTokens
- type WasmSendFrom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllTokens ¶
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 BatchBalance ¶
BatchBalance BatchBalance / Returns the current balance of the given address for a batch of tokens 0 if unset. #[returns(BatchBalanceResponse)]
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 InstantiateMsg ¶
type InstantiateMsg struct { /// The minter is the only one who can create new tokens. Minter string `json:"minter"` }
type IsApprovedForAll ¶
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 ¶ added in v0.20.0
type WasmBatchSendFrom struct {
BatchSendFrom BatchSendFrom `json:"batch_send_from"`
}
type WasmMsgAllTokens ¶ added in v0.20.0
type WasmMsgAllTokens struct {
AllTokens AllTokens `json:"all_tokens"`
}
type WasmMsgApproveAll ¶ added in v0.20.0
type WasmMsgApproveAll struct {
ApproveAll ApproveAll `json:"approve_all"`
}
type WasmMsgApprovedForAll ¶ added in v0.20.0
type WasmMsgApprovedForAll struct {
ApprovedForAll ApprovedForAll `json:"approved_for_all"`
}
type WasmMsgBalance ¶ added in v0.20.0
type WasmMsgBalance struct {
Balance Balance `json:"balance"`
}
type WasmMsgBatchBalance ¶ added in v0.20.0
type WasmMsgBatchBalance struct {
BatchBalance BatchBalance `json:"batch_balance"`
}
type WasmMsgBatchBurn ¶ added in v0.20.0
type WasmMsgBatchBurn struct {
BatchBurn BatchBurn `json:"batch_burn"`
}
type WasmMsgBatchMint ¶ added in v0.20.0
type WasmMsgBatchMint struct {
BatchMint BatchMint `json:"batch_mint"`
}
type WasmMsgBurn ¶ added in v0.20.0
type WasmMsgBurn struct {
Burn Burn `json:"burn"`
}
type WasmMsgIsApprovedForAll ¶ added in v0.20.0
type WasmMsgIsApprovedForAll struct {
IsApprovedForAll IsApprovedForAll `json:"is_approved_for_all"`
}
type WasmMsgMint ¶ added in v0.20.0
type WasmMsgMint struct {
Mint Mint `json:"mint"`
}
type WasmMsgRevokeAll ¶ added in v0.20.0
type WasmMsgRevokeAll struct {
RevokeAll RevokeAll `json:"revoke_all"`
}
type WasmMsgTokenInfo ¶ added in v0.20.0
type WasmMsgTokenInfo struct {
TokenInfo TokenInfo `json:"token_info"`
}
type WasmMsgTokens ¶ added in v0.20.0
type WasmMsgTokens struct {
Tokens Tokens `json:"tokens"`
}
type WasmSendFrom ¶ added in v0.20.0
type WasmSendFrom struct {
SendFrom SendFrom `json:"send_from"`
}