asset

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NATIVE                 = types.NATIVE
	EXTERNAL               = types.EXTERNAL
	GATEWAY                = types.GATEWAY
	FUNGIBLE               = types.FUNGIBLE
	DefaultCodespace       = types.DefaultCodespace
	DefaultParamSpace      = types.DefaultParamSpace
	DoNotModify            = types.DoNotModify
	CodeInvalidAssetSource = types.CodeInvalidAssetSource
	MaximumAssetMaxSupply  = types.MaximumAssetMaxSupply
	RegisterCodec          = types.RegisterCodec
	ErrInvalidAssetFamily  = types.ErrInvalidAssetFamily
	ErrAssetAlreadyExists  = types.ErrAssetAlreadyExists
	CheckTokenID           = types.CheckTokenID
	ValidateMoniker        = types.ValidateMoniker
	StringToAssetFamilyMap = types.StringToAssetFamilyMap
	StringToAssetSourceMap = types.StringToAssetSourceMap
	GetTokenID             = types.GetTokenID
	ParseBool              = types.ParseBool

	NewFungibleToken           = types.NewFungibleToken
	NewMsgCreateGateway        = types.NewMsgCreateGateway
	NewGateway                 = types.NewGateway
	NewMsgEditGateway          = types.NewMsgEditGateway
	NewMsgEditToken            = types.NewMsgEditToken
	NewMsgTransferGatewayOwner = types.NewMsgTransferGatewayOwner
	NewMsgMintToken            = types.NewMsgMintToken
	NewMsgTransferTokenOwner   = types.NewMsgTransferTokenOwner
	NewMsgIssueToken           = types.NewMsgIssueToken
	DefaultParams              = types.DefaultParams
	DefaultParamsForTest       = types.DefaultParamsForTest
	ValidateParams             = types.ValidateParams

	QueryToken                  = types.QueryToken
	QueryTokens                 = types.QueryTokens
	QueryGateway                = types.QueryGateway
	QueryGateways               = types.QueryGateways
	QueryFees                   = types.QueryFees
	NewKeeper                   = keeper.NewKeeper
	TokenIssueFeeHandler        = keeper.TokenIssueFeeHandler
	GatewayTokenIssueFeeHandler = keeper.GatewayTokenIssueFeeHandler
	GatewayCreateFeeHandler     = keeper.GatewayCreateFeeHandler
	NewQuerier                  = keeper.NewQuerier
	NewAnteHandler              = keeper.NewAnteHandler
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)

InitGenesis - store genesis parameters

func NewHandler

func NewHandler(k Keeper) sdk.Handler

handle all "asset" type messages.

func SortAddresses

func SortAddresses(addrs []sdk.AccAddress)

Sorts Addresses

func SortByteArrays

func SortByteArrays(src [][]byte) [][]byte

Public

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided asset genesis state to ensure the expected invariants holds.

Types

type AssetFamily

type AssetFamily = types.AssetFamily

type AssetSource

type AssetSource = types.AssetSource

type FungibleToken

type FungibleToken = types.FungibleToken

type Gateway

type Gateway = types.Gateway

type GatewayFeeOutput

type GatewayFeeOutput = types.GatewayFeeOutput

type Gateways

type Gateways = types.Gateways

type GenesisState

type GenesisState = types.GenesisState

func DefaultGenesisState

func DefaultGenesisState() GenesisState

get raw genesis raw message for testing

func DefaultGenesisStateForTest

func DefaultGenesisStateForTest() GenesisState

get raw genesis raw message for testing

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

ExportGenesis - output genesis parameters

type Keeper

type Keeper = keeper.Keeper

type MsgCreateGateway

type MsgCreateGateway = types.MsgCreateGateway

type MsgEditGateway

type MsgEditGateway = types.MsgEditGateway

type MsgEditToken

type MsgEditToken = types.MsgEditToken

type MsgIssueToken

type MsgIssueToken = types.MsgIssueToken

type MsgMintToken

type MsgMintToken = types.MsgMintToken

type MsgTransferGatewayOwner

type MsgTransferGatewayOwner = types.MsgTransferGatewayOwner

type MsgTransferTokenOwner

type MsgTransferTokenOwner = types.MsgTransferTokenOwner

type Params

type Params = types.Params

type QueryGatewayFeeParams

type QueryGatewayFeeParams = types.QueryGatewayFeeParams

type QueryGatewayParams

type QueryGatewayParams = types.QueryGatewayParams

type QueryGatewaysParams

type QueryGatewaysParams = types.QueryGatewaysParams

type QueryTokenFeesParams

type QueryTokenFeesParams = types.QueryTokenFeesParams

type QueryTokenParams

type QueryTokenParams = types.QueryTokenParams

type QueryTokensParams

type QueryTokensParams = types.QueryTokensParams

type TokenFeesOutput

type TokenFeesOutput = types.TokenFeesOutput

type Tokens

type Tokens = types.Tokens

Directories

Path Synopsis
internal
keeper
nolint
nolint
types
nolint nolint
nolint nolint

Jump to

Keyboard shortcuts

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