types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 (r Retriever) GetChildren(ctx context.CLIContext, contractID, tokenID string) (types.Tokens, int64, error)

func (Retriever) GetCollection

func (r Retriever) GetCollection(ctx context.CLIContext, contractID string) (types.BaseCollection, int64, error)

func (Retriever) GetCollectionNFTCount

func (r Retriever) GetCollectionNFTCount(ctx context.CLIContext, contractID, tokenID, target string) (sdk.Int, int64, error)

func (Retriever) GetParent

func (r Retriever) GetParent(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)

func (Retriever) GetRoot

func (r Retriever) GetRoot(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)

func (Retriever) GetToken

func (r Retriever) GetToken(ctx context.CLIContext, contractID, tokenID string) (types.Token, int64, error)

func (Retriever) GetTokenType

func (r Retriever) GetTokenType(ctx context.CLIContext, contractID, tokenTypeID string) (types.TokenType, int64, error)

func (Retriever) GetTokenTypes

func (r Retriever) GetTokenTypes(ctx context.CLIContext, contractID string) (types.TokenTypes, int64, error)

func (Retriever) GetTokens

func (r Retriever) GetTokens(ctx context.CLIContext, contractID string) (types.Tokens, int64, error)

func (Retriever) GetTokensWithTokenType

func (r Retriever) GetTokensWithTokenType(ctx context.CLIContext, contractID string, tokenType string) (types.Tokens, int64, error)

func (Retriever) GetTotal

func (r Retriever) GetTotal(ctx context.CLIContext, contractID, tokenID, target string) (sdk.Int, int64, error)

func (Retriever) IsApproved

func (r Retriever) IsApproved(ctx context.CLIContext, contractID string, proxy sdk.AccAddress, approver sdk.AccAddress) (approved bool, height int64, err error)

Jump to

Keyboard shortcuts

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