Documentation
¶
Index ¶
- type Retriever
- func (r Retriever) EnsureExists(ctx context.CLIContext, contractID, tokenID string) error
- func (r Retriever) GetAccountBalance(ctx context.CLIContext, contractID, tokenID string, addr sdk.AccAddress) (sdk.Int, int64, error)
- func (r Retriever) GetAccountBalances(ctx context.CLIContext, contractID string, addr sdk.AccAddress) (types.Coins, int64, error)
- func (r Retriever) GetAccountPermission(ctx context.CLIContext, contractID string, addr sdk.AccAddress) (types.Permissions, int64, error)
- func (r Retriever) GetApprovers(ctx context.CLIContext, contractID string, proxy sdk.AccAddress) (accAdds []sdk.AccAddress, height int64, err error)
- func (r Retriever) GetChildren(ctx context.CLIContext, contractID, tokenID string) (types.Tokens, int64, error)
- func (r Retriever) GetCollection(ctx context.CLIContext, contractID string) (types.BaseCollection, int64, error)
- func (r Retriever) GetCollectionNFTCount(ctx context.CLIContext, contractID, tokenID, target string) (sdk.Int, int64, error)
- func (r Retriever) GetParent(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)
- func (r Retriever) GetRoot(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)
- func (r Retriever) GetToken(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)
- func (r Retriever) GetTokenType(ctx context.CLIContext, contractID, tokenTypeID string) (types.TokenType, int64, error)
- func (r Retriever) GetTokenTypes(ctx context.CLIContext, contractID string) (types.TokenTypes, int64, error)
- func (r Retriever) GetTokens(ctx context.CLIContext, contractID string) (types.Tokens, int64, error)
- func (r Retriever) GetTokensWithTokenType(ctx context.CLIContext, contractID string, tokenType string) (types.Tokens, int64, error)
- func (r Retriever) GetTotal(ctx context.CLIContext, contractID, tokenID, target string) (sdk.Int, int64, error)
- func (r Retriever) IsApproved(ctx context.CLIContext, contractID string, proxy sdk.AccAddress, ...) (approved bool, height int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Retriever ¶
type Retriever struct {
// contains filtered or unexported fields
}
func NewRetriever ¶
func NewRetriever(querier types.NodeQuerier) Retriever
func (Retriever) EnsureExists ¶
func (r Retriever) EnsureExists(ctx context.CLIContext, contractID, tokenID string) error
func (Retriever) GetAccountBalance ¶
func (r Retriever) GetAccountBalance(ctx context.CLIContext, contractID, tokenID string, addr sdk.AccAddress) (sdk.Int, int64, error)
func (Retriever) GetAccountBalances ¶
func (r Retriever) GetAccountBalances(ctx context.CLIContext, contractID string, addr sdk.AccAddress) (types.Coins, int64, error)
func (Retriever) GetAccountPermission ¶
func (r Retriever) GetAccountPermission(ctx context.CLIContext, contractID string, addr sdk.AccAddress) (types.Permissions, int64, error)
func (Retriever) GetApprovers ¶
func (r Retriever) GetApprovers(ctx context.CLIContext, contractID string, proxy sdk.AccAddress) (accAdds []sdk.AccAddress, height int64, err error)
func (Retriever) GetChildren ¶
func (Retriever) GetCollection ¶
func (r Retriever) GetCollection(ctx context.CLIContext, contractID string) (types.BaseCollection, int64, error)
func (Retriever) GetCollectionNFTCount ¶
func (Retriever) GetTokenType ¶
func (Retriever) GetTokenTypes ¶
func (r Retriever) GetTokenTypes(ctx context.CLIContext, contractID string) (types.TokenTypes, int64, error)
func (Retriever) GetTokensWithTokenType ¶
func (Retriever) IsApproved ¶
func (r Retriever) IsApproved(ctx context.CLIContext, contractID string, proxy sdk.AccAddress, approver sdk.AccAddress) (approved bool, height int64, err error)
Click to show internal directories.
Click to hide internal directories.