types

package
v2.0.0-rc.9 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// module name
	ModuleName = "tokenfactory"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for message routing
	RouterKey = ModuleName
)

constants

View Source
const (
	KeyPrefixDenom collections.Namespace = iota + 1
	KeyPrefixCreator
	KeyPrefixModuleParams
	KeyPrefixDenomAdmin
	KeyPrefixCreatorIndexer
)

KVStore key and mutli-index prefixes prefix bytes for the fees persistent store

Variables

View Source
var (
	ErrInvalidGenesis         = registerError("invalid genesis")
	ErrInvalidDenom           = registerError("invalid token factory denom")
	ErrInvalidCreator         = registerError("invalid creator")
	ErrInvalidSubdenom        = registerError("invalid subdenom")
	ErrInvalidAdmin           = registerError("invalid denom admin")
	ErrDenomAlreadyRegistered = registerError("attempting to create denom that is already registered (has bank metadata)")
	ErrInvalidSender          = registerError("invalid msg sender")
	ErrInvalidModuleParams    = registerError("invalid module params")
	ErrGetAdmin               = registerError("failed to find admin for denom")
	ErrGetMetadata            = registerError("failed to find bank metadata for denom")
	ErrUnauthorized           = registerError("sender must be admin")
	// ErrBlockedAddress: error when the x/bank keeper has an address
	// blocked.
	ErrBlockedAddress = registerError("blocked address")
)

Module "sentinel" errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func DenomFormatError

func DenomFormatError(got string, msg ...string) error

func GrpcQueryServiceDesc

func GrpcQueryServiceDesc() grpc.ServiceDesc

GrpcQueryServiceDesc represents the query server's RPC service specification. This gives access to the service name and method names needed for stargate queries.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/tokenfactory interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization and EIP-712 compatibility.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TX_MSG_TYPE_URLS

func TX_MSG_TYPE_URLS() []string

Types

type AccountKeeper

type AccountKeeper interface {
	SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI)
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

type BankKeeper

type BankKeeper interface {
	// Methods imported from bank should be defined here
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)

	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	HasSupply(ctx sdk.Context, denom string) bool
	IterateTotalSupply(ctx sdk.Context, cb func(sdk.Coin) bool)

	SendCoinsFromModuleToAccount(
		ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins,
	) error
	SendCoinsFromAccountToModule(
		ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins,
	) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

	SendCoins(
		ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins,
	) error
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

	BlockedAddr(addr sdk.AccAddress) bool
}

type CommunityPoolKeeper

type CommunityPoolKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

CommunityPoolKeeper defines the contract needed to be fulfilled for community pool interactions.

type DenomAuthorityMetadata

type DenomAuthorityMetadata struct {
	// Admin: Bech32 address of the admin for the tokefactory denom. Can be empty
	// for no admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
}

DenomAuthorityMetadata specifies metadata foraddresses that have specific capabilities over a token factory denom. Right now there is only one Admin permission, but is planned to be extended to the future.

func (*DenomAuthorityMetadata) Descriptor

func (*DenomAuthorityMetadata) Descriptor() ([]byte, []int)

func (*DenomAuthorityMetadata) Equal

func (this *DenomAuthorityMetadata) Equal(that interface{}) bool

func (*DenomAuthorityMetadata) GetAdmin

func (m *DenomAuthorityMetadata) GetAdmin() string

func (*DenomAuthorityMetadata) Marshal

func (m *DenomAuthorityMetadata) Marshal() (dAtA []byte, err error)

func (*DenomAuthorityMetadata) MarshalTo

func (m *DenomAuthorityMetadata) MarshalTo(dAtA []byte) (int, error)

func (*DenomAuthorityMetadata) MarshalToSizedBuffer

func (m *DenomAuthorityMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DenomAuthorityMetadata) ProtoMessage

func (*DenomAuthorityMetadata) ProtoMessage()

func (*DenomAuthorityMetadata) Reset

func (m *DenomAuthorityMetadata) Reset()

func (*DenomAuthorityMetadata) Size

func (m *DenomAuthorityMetadata) Size() (n int)

func (*DenomAuthorityMetadata) String

func (m *DenomAuthorityMetadata) String() string

func (*DenomAuthorityMetadata) Unmarshal

func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error

func (*DenomAuthorityMetadata) XXX_DiscardUnknown

func (m *DenomAuthorityMetadata) XXX_DiscardUnknown()

func (*DenomAuthorityMetadata) XXX_Marshal

func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DenomAuthorityMetadata) XXX_Merge

func (m *DenomAuthorityMetadata) XXX_Merge(src proto.Message)

func (*DenomAuthorityMetadata) XXX_Size

func (m *DenomAuthorityMetadata) XXX_Size() int

func (*DenomAuthorityMetadata) XXX_Unmarshal

func (m *DenomAuthorityMetadata) XXX_Unmarshal(b []byte) error

type DenomStr

type DenomStr string

DenomStr: string identifier for a token factory denom (TFDenom)

func (DenomStr) MustToStruct

func (denomStr DenomStr) MustToStruct() TFDenom

func (DenomStr) String

func (denomStr DenomStr) String() string

func (DenomStr) ToStruct

func (denomStr DenomStr) ToStruct() (res TFDenom, err error)

func (DenomStr) Validate

func (denomStr DenomStr) Validate() error

type EventBurn

type EventBurn struct {
	Coin     types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin" yaml:"coin"`
	FromAddr string     `protobuf:"bytes,2,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	Caller   string     `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
}

func (*EventBurn) Descriptor

func (*EventBurn) Descriptor() ([]byte, []int)

func (*EventBurn) GetCaller

func (m *EventBurn) GetCaller() string

func (*EventBurn) GetCoin

func (m *EventBurn) GetCoin() types.Coin

func (*EventBurn) GetFromAddr

func (m *EventBurn) GetFromAddr() string

func (*EventBurn) Marshal

func (m *EventBurn) Marshal() (dAtA []byte, err error)

func (*EventBurn) MarshalTo

func (m *EventBurn) MarshalTo(dAtA []byte) (int, error)

func (*EventBurn) MarshalToSizedBuffer

func (m *EventBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBurn) ProtoMessage

func (*EventBurn) ProtoMessage()

func (*EventBurn) Reset

func (m *EventBurn) Reset()

func (*EventBurn) Size

func (m *EventBurn) Size() (n int)

func (*EventBurn) String

func (m *EventBurn) String() string

func (*EventBurn) Unmarshal

func (m *EventBurn) Unmarshal(dAtA []byte) error

func (*EventBurn) XXX_DiscardUnknown

func (m *EventBurn) XXX_DiscardUnknown()

func (*EventBurn) XXX_Marshal

func (m *EventBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBurn) XXX_Merge

func (m *EventBurn) XXX_Merge(src proto.Message)

func (*EventBurn) XXX_Size

func (m *EventBurn) XXX_Size() int

func (*EventBurn) XXX_Unmarshal

func (m *EventBurn) XXX_Unmarshal(b []byte) error

type EventChangeAdmin

type EventChangeAdmin struct {
	Denom    string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	OldAdmin string `protobuf:"bytes,3,opt,name=old_admin,json=oldAdmin,proto3" json:"old_admin,omitempty"`
}

func (*EventChangeAdmin) Descriptor

func (*EventChangeAdmin) Descriptor() ([]byte, []int)

func (*EventChangeAdmin) GetDenom

func (m *EventChangeAdmin) GetDenom() string

func (*EventChangeAdmin) GetNewAdmin

func (m *EventChangeAdmin) GetNewAdmin() string

func (*EventChangeAdmin) GetOldAdmin

func (m *EventChangeAdmin) GetOldAdmin() string

func (*EventChangeAdmin) Marshal

func (m *EventChangeAdmin) Marshal() (dAtA []byte, err error)

func (*EventChangeAdmin) MarshalTo

func (m *EventChangeAdmin) MarshalTo(dAtA []byte) (int, error)

func (*EventChangeAdmin) MarshalToSizedBuffer

func (m *EventChangeAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventChangeAdmin) ProtoMessage

func (*EventChangeAdmin) ProtoMessage()

func (*EventChangeAdmin) Reset

func (m *EventChangeAdmin) Reset()

func (*EventChangeAdmin) Size

func (m *EventChangeAdmin) Size() (n int)

func (*EventChangeAdmin) String

func (m *EventChangeAdmin) String() string

func (*EventChangeAdmin) Unmarshal

func (m *EventChangeAdmin) Unmarshal(dAtA []byte) error

func (*EventChangeAdmin) XXX_DiscardUnknown

func (m *EventChangeAdmin) XXX_DiscardUnknown()

func (*EventChangeAdmin) XXX_Marshal

func (m *EventChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventChangeAdmin) XXX_Merge

func (m *EventChangeAdmin) XXX_Merge(src proto.Message)

func (*EventChangeAdmin) XXX_Size

func (m *EventChangeAdmin) XXX_Size() int

func (*EventChangeAdmin) XXX_Unmarshal

func (m *EventChangeAdmin) XXX_Unmarshal(b []byte) error

type EventCreateDenom

type EventCreateDenom struct {
	Denom   string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

func (*EventCreateDenom) Descriptor

func (*EventCreateDenom) Descriptor() ([]byte, []int)

func (*EventCreateDenom) GetCreator

func (m *EventCreateDenom) GetCreator() string

func (*EventCreateDenom) GetDenom

func (m *EventCreateDenom) GetDenom() string

func (*EventCreateDenom) Marshal

func (m *EventCreateDenom) Marshal() (dAtA []byte, err error)

func (*EventCreateDenom) MarshalTo

func (m *EventCreateDenom) MarshalTo(dAtA []byte) (int, error)

func (*EventCreateDenom) MarshalToSizedBuffer

func (m *EventCreateDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCreateDenom) ProtoMessage

func (*EventCreateDenom) ProtoMessage()

func (*EventCreateDenom) Reset

func (m *EventCreateDenom) Reset()

func (*EventCreateDenom) Size

func (m *EventCreateDenom) Size() (n int)

func (*EventCreateDenom) String

func (m *EventCreateDenom) String() string

func (*EventCreateDenom) Unmarshal

func (m *EventCreateDenom) Unmarshal(dAtA []byte) error

func (*EventCreateDenom) XXX_DiscardUnknown

func (m *EventCreateDenom) XXX_DiscardUnknown()

func (*EventCreateDenom) XXX_Marshal

func (m *EventCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCreateDenom) XXX_Merge

func (m *EventCreateDenom) XXX_Merge(src proto.Message)

func (*EventCreateDenom) XXX_Size

func (m *EventCreateDenom) XXX_Size() int

func (*EventCreateDenom) XXX_Unmarshal

func (m *EventCreateDenom) XXX_Unmarshal(b []byte) error

type EventMint

type EventMint struct {
	Coin   types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin" yaml:"coin"`
	ToAddr string     `protobuf:"bytes,2,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"`
	Caller string     `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
}

func (*EventMint) Descriptor

func (*EventMint) Descriptor() ([]byte, []int)

func (*EventMint) GetCaller

func (m *EventMint) GetCaller() string

func (*EventMint) GetCoin

func (m *EventMint) GetCoin() types.Coin

func (*EventMint) GetToAddr

func (m *EventMint) GetToAddr() string

func (*EventMint) Marshal

func (m *EventMint) Marshal() (dAtA []byte, err error)

func (*EventMint) MarshalTo

func (m *EventMint) MarshalTo(dAtA []byte) (int, error)

func (*EventMint) MarshalToSizedBuffer

func (m *EventMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventMint) ProtoMessage

func (*EventMint) ProtoMessage()

func (*EventMint) Reset

func (m *EventMint) Reset()

func (*EventMint) Size

func (m *EventMint) Size() (n int)

func (*EventMint) String

func (m *EventMint) String() string

func (*EventMint) Unmarshal

func (m *EventMint) Unmarshal(dAtA []byte) error

func (*EventMint) XXX_DiscardUnknown

func (m *EventMint) XXX_DiscardUnknown()

func (*EventMint) XXX_Marshal

func (m *EventMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventMint) XXX_Merge

func (m *EventMint) XXX_Merge(src proto.Message)

func (*EventMint) XXX_Size

func (m *EventMint) XXX_Size() int

func (*EventMint) XXX_Unmarshal

func (m *EventMint) XXX_Unmarshal(b []byte) error

type EventSetDenomMetadata

type EventSetDenomMetadata struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// Metadata: Official x/bank metadata for the denom. All token factory denoms
	// are standard, native assets. The "metadata.base" is the denom.
	Metadata types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata"`
	Caller   string          `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"`
}

func (*EventSetDenomMetadata) Descriptor

func (*EventSetDenomMetadata) Descriptor() ([]byte, []int)

func (*EventSetDenomMetadata) GetCaller

func (m *EventSetDenomMetadata) GetCaller() string

func (*EventSetDenomMetadata) GetDenom

func (m *EventSetDenomMetadata) GetDenom() string

func (*EventSetDenomMetadata) GetMetadata

func (m *EventSetDenomMetadata) GetMetadata() types1.Metadata

func (*EventSetDenomMetadata) Marshal

func (m *EventSetDenomMetadata) Marshal() (dAtA []byte, err error)

func (*EventSetDenomMetadata) MarshalTo

func (m *EventSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)

func (*EventSetDenomMetadata) MarshalToSizedBuffer

func (m *EventSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSetDenomMetadata) ProtoMessage

func (*EventSetDenomMetadata) ProtoMessage()

func (*EventSetDenomMetadata) Reset

func (m *EventSetDenomMetadata) Reset()

func (*EventSetDenomMetadata) Size

func (m *EventSetDenomMetadata) Size() (n int)

func (*EventSetDenomMetadata) String

func (m *EventSetDenomMetadata) String() string

func (*EventSetDenomMetadata) Unmarshal

func (m *EventSetDenomMetadata) Unmarshal(dAtA []byte) error

func (*EventSetDenomMetadata) XXX_DiscardUnknown

func (m *EventSetDenomMetadata) XXX_DiscardUnknown()

func (*EventSetDenomMetadata) XXX_Marshal

func (m *EventSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSetDenomMetadata) XXX_Merge

func (m *EventSetDenomMetadata) XXX_Merge(src proto.Message)

func (*EventSetDenomMetadata) XXX_Size

func (m *EventSetDenomMetadata) XXX_Size() int

func (*EventSetDenomMetadata) XXX_Unmarshal

func (m *EventSetDenomMetadata) XXX_Unmarshal(b []byte) error

type GenesisDenom

type GenesisDenom struct {
	Denom             string                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	AuthorityMetadata DenomAuthorityMetadata `` /* 128-byte string literal not displayed */
}

GenesisDenom defines a tokenfactory denoms in the genesis state.

func (*GenesisDenom) Descriptor

func (*GenesisDenom) Descriptor() ([]byte, []int)

func (*GenesisDenom) Equal

func (this *GenesisDenom) Equal(that interface{}) bool

func (*GenesisDenom) GetAuthorityMetadata

func (m *GenesisDenom) GetAuthorityMetadata() DenomAuthorityMetadata

func (*GenesisDenom) GetDenom

func (m *GenesisDenom) GetDenom() string

func (*GenesisDenom) Marshal

func (m *GenesisDenom) Marshal() (dAtA []byte, err error)

func (*GenesisDenom) MarshalTo

func (m *GenesisDenom) MarshalTo(dAtA []byte) (int, error)

func (*GenesisDenom) MarshalToSizedBuffer

func (m *GenesisDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisDenom) ProtoMessage

func (*GenesisDenom) ProtoMessage()

func (*GenesisDenom) Reset

func (m *GenesisDenom) Reset()

func (*GenesisDenom) Size

func (m *GenesisDenom) Size() (n int)

func (*GenesisDenom) String

func (m *GenesisDenom) String() string

func (*GenesisDenom) Unmarshal

func (m *GenesisDenom) Unmarshal(dAtA []byte) error

func (GenesisDenom) Validate

func (genDenom GenesisDenom) Validate() error

func (*GenesisDenom) XXX_DiscardUnknown

func (m *GenesisDenom) XXX_DiscardUnknown()

func (*GenesisDenom) XXX_Marshal

func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisDenom) XXX_Merge

func (m *GenesisDenom) XXX_Merge(src proto.Message)

func (*GenesisDenom) XXX_Size

func (m *GenesisDenom) XXX_Size() int

func (*GenesisDenom) XXX_Unmarshal

func (m *GenesisDenom) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Params        ModuleParams   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	FactoryDenoms []GenesisDenom `protobuf:"bytes,2,rep,name=factory_denoms,json=factoryDenoms,proto3" json:"factory_denoms" yaml:"factory_denoms"`
}

GenesisState for the Token Factory module.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state. This state is used for upgrades and for the start of the chain (InitChain).

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetFactoryDenoms

func (m *GenesisState) GetFactoryDenoms() []GenesisDenom

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() ModuleParams

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type ModuleParams

type ModuleParams struct {
	// Adds gas consumption to the execution of `MsgCreateDenom` as a method of
	// spam prevention. Defaults to 10 NIBI.
	DenomCreationGasConsume uint64 `` /* 169-byte string literal not displayed */
}

ModuleParams defines the parameters for the tokenfactory module.

### On Denom Creation Costs

We'd like for fees to be paid by the user/signer of a ransaction, but in many casess, token creation is abstracted away behind a smart contract. Setting a nonzero `denom_creation_fee` would force each contract to handle collecting and paying a fees for denom (factory/{contract-addr}/{subdenom}) creation on behalf of the end user.

For IBC token transfers, it's unclear who should pay the fee—the contract, the relayer, or the original sender? > "Charging fees will mess up composability, the same way Terra transfer tax

caused all kinds of headaches for contract devs." - @ethanfrey

### Recommended Solution

Have the end user (signer) pay fees directly in the form of higher gas costs. This way, contracts won't need to handle collecting or paying fees. And for IBC, the gas costs are already paid by the original sender and can be estimated by the relayer. It's easier to tune gas costs to make spam prohibitively expensive since there are per-transaction and per-block gas limits.

See https://github.com/CosmWasm/token-factory/issues/11 for the initial discussion of the issue with @ethanfrey and @valardragon.

func DefaultModuleParams

func DefaultModuleParams() ModuleParams

func (*ModuleParams) Descriptor

func (*ModuleParams) Descriptor() ([]byte, []int)

func (*ModuleParams) GetDenomCreationGasConsume

func (m *ModuleParams) GetDenomCreationGasConsume() uint64

func (*ModuleParams) Marshal

func (m *ModuleParams) Marshal() (dAtA []byte, err error)

func (*ModuleParams) MarshalTo

func (m *ModuleParams) MarshalTo(dAtA []byte) (int, error)

func (*ModuleParams) MarshalToSizedBuffer

func (m *ModuleParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ModuleParams) ProtoMessage

func (*ModuleParams) ProtoMessage()

func (*ModuleParams) Reset

func (m *ModuleParams) Reset()

func (*ModuleParams) Size

func (m *ModuleParams) Size() (n int)

func (*ModuleParams) String

func (m *ModuleParams) String() string

func (*ModuleParams) Unmarshal

func (m *ModuleParams) Unmarshal(dAtA []byte) error

func (ModuleParams) Validate

func (params ModuleParams) Validate() error

func (*ModuleParams) XXX_DiscardUnknown

func (m *ModuleParams) XXX_DiscardUnknown()

func (*ModuleParams) XXX_Marshal

func (m *ModuleParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModuleParams) XXX_Merge

func (m *ModuleParams) XXX_Merge(src proto.Message)

func (*ModuleParams) XXX_Size

func (m *ModuleParams) XXX_Size() int

func (*ModuleParams) XXX_Unmarshal

func (m *ModuleParams) XXX_Unmarshal(b []byte) error

type MsgBurn

type MsgBurn struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// coin: The denom identifier and amount to burn.
	Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin" yaml:"coin"`
	// burn_from: The address from which tokens will be burned.
	BurnFrom string `protobuf:"bytes,3,opt,name=burn_from,json=burnFrom,proto3" json:"burn_from,omitempty" yaml:"burn_from"`
}

MsgBurn: sdk.Msg (TxMsg) where a denom admin burns some of the token. The reason that the sender isn't automatically the "burn_from" address is to support smart contracts (primary use case). In this situation, the contract is the message signer and sender, while "burn_from" is based on the contract logic.

func (*MsgBurn) Descriptor

func (*MsgBurn) Descriptor() ([]byte, []int)

func (*MsgBurn) GetBurnFrom

func (m *MsgBurn) GetBurnFrom() string

func (*MsgBurn) GetCoin

func (m *MsgBurn) GetCoin() types.Coin

func (*MsgBurn) GetSender

func (m *MsgBurn) GetSender() string

func (MsgBurn) GetSignBytes

func (m MsgBurn) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgBurn) GetSigners

func (m MsgBurn) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgBurn) Marshal

func (m *MsgBurn) Marshal() (dAtA []byte, err error)

func (*MsgBurn) MarshalTo

func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurn) MarshalToSizedBuffer

func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (MsgBurn) Route

func (m MsgBurn) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgBurn) Size

func (m *MsgBurn) Size() (n int)

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (MsgBurn) Type

func (m MsgBurn) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgBurn) Unmarshal

func (m *MsgBurn) Unmarshal(dAtA []byte) error

func (MsgBurn) ValidateBasic

func (m MsgBurn) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurn) XXX_Merge

func (m *MsgBurn) XXX_Merge(src proto.Message)

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

func (m *MsgBurn) XXX_Unmarshal(b []byte) error

type MsgBurnNative

type MsgBurnNative struct {
	Sender string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Coin   types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin" yaml:"coin"`
}

Burn a native token such as unibi

func (*MsgBurnNative) Descriptor

func (*MsgBurnNative) Descriptor() ([]byte, []int)

func (*MsgBurnNative) GetCoin

func (m *MsgBurnNative) GetCoin() types.Coin

func (*MsgBurnNative) GetSender

func (m *MsgBurnNative) GetSender() string

func (MsgBurnNative) GetSignBytes

func (m MsgBurnNative) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgBurnNative) GetSigners

func (m MsgBurnNative) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgBurnNative) Marshal

func (m *MsgBurnNative) Marshal() (dAtA []byte, err error)

func (*MsgBurnNative) MarshalTo

func (m *MsgBurnNative) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnNative) MarshalToSizedBuffer

func (m *MsgBurnNative) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnNative) ProtoMessage

func (*MsgBurnNative) ProtoMessage()

func (*MsgBurnNative) Reset

func (m *MsgBurnNative) Reset()

func (MsgBurnNative) Route

func (m MsgBurnNative) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgBurnNative) Size

func (m *MsgBurnNative) Size() (n int)

func (*MsgBurnNative) String

func (m *MsgBurnNative) String() string

func (MsgBurnNative) Type

func (m MsgBurnNative) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgBurnNative) Unmarshal

func (m *MsgBurnNative) Unmarshal(dAtA []byte) error

func (MsgBurnNative) ValidateBasic

func (m MsgBurnNative) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgBurnNative) XXX_DiscardUnknown

func (m *MsgBurnNative) XXX_DiscardUnknown()

func (*MsgBurnNative) XXX_Marshal

func (m *MsgBurnNative) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnNative) XXX_Merge

func (m *MsgBurnNative) XXX_Merge(src proto.Message)

func (*MsgBurnNative) XXX_Size

func (m *MsgBurnNative) XXX_Size() int

func (*MsgBurnNative) XXX_Unmarshal

func (m *MsgBurnNative) XXX_Unmarshal(b []byte) error

type MsgBurnNativeResponse

type MsgBurnNativeResponse struct {
}

func (*MsgBurnNativeResponse) Descriptor

func (*MsgBurnNativeResponse) Descriptor() ([]byte, []int)

func (*MsgBurnNativeResponse) Marshal

func (m *MsgBurnNativeResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnNativeResponse) MarshalTo

func (m *MsgBurnNativeResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnNativeResponse) MarshalToSizedBuffer

func (m *MsgBurnNativeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnNativeResponse) ProtoMessage

func (*MsgBurnNativeResponse) ProtoMessage()

func (*MsgBurnNativeResponse) Reset

func (m *MsgBurnNativeResponse) Reset()

func (*MsgBurnNativeResponse) Size

func (m *MsgBurnNativeResponse) Size() (n int)

func (*MsgBurnNativeResponse) String

func (m *MsgBurnNativeResponse) String() string

func (*MsgBurnNativeResponse) Unmarshal

func (m *MsgBurnNativeResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnNativeResponse) XXX_DiscardUnknown

func (m *MsgBurnNativeResponse) XXX_DiscardUnknown()

func (*MsgBurnNativeResponse) XXX_Marshal

func (m *MsgBurnNativeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnNativeResponse) XXX_Merge

func (m *MsgBurnNativeResponse) XXX_Merge(src proto.Message)

func (*MsgBurnNativeResponse) XXX_Size

func (m *MsgBurnNativeResponse) XXX_Size() int

func (*MsgBurnNativeResponse) XXX_Unmarshal

func (m *MsgBurnNativeResponse) XXX_Unmarshal(b []byte) error

type MsgBurnResponse

type MsgBurnResponse struct {
}

func (*MsgBurnResponse) Descriptor

func (*MsgBurnResponse) Descriptor() ([]byte, []int)

func (*MsgBurnResponse) Marshal

func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnResponse) MarshalTo

func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnResponse) MarshalToSizedBuffer

func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

func (m *MsgBurnResponse) Size() (n int)

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnResponse) XXX_Merge

func (m *MsgBurnResponse) XXX_Merge(src proto.Message)

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error

type MsgChangeAdmin

type MsgChangeAdmin struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	Denom    string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty" yaml:"new_admin"`
}

MsgChangeAdmin is the sdk.Msg type for allowing an admin account to change admin of a denom to a new account

func (*MsgChangeAdmin) Descriptor

func (*MsgChangeAdmin) Descriptor() ([]byte, []int)

func (*MsgChangeAdmin) GetDenom

func (m *MsgChangeAdmin) GetDenom() string

func (*MsgChangeAdmin) GetNewAdmin

func (m *MsgChangeAdmin) GetNewAdmin() string

func (*MsgChangeAdmin) GetSender

func (m *MsgChangeAdmin) GetSender() string

func (MsgChangeAdmin) GetSignBytes

func (m MsgChangeAdmin) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgChangeAdmin) GetSigners

func (m MsgChangeAdmin) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgChangeAdmin) Marshal

func (m *MsgChangeAdmin) Marshal() (dAtA []byte, err error)

func (*MsgChangeAdmin) MarshalTo

func (m *MsgChangeAdmin) MarshalTo(dAtA []byte) (int, error)

func (*MsgChangeAdmin) MarshalToSizedBuffer

func (m *MsgChangeAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChangeAdmin) ProtoMessage

func (*MsgChangeAdmin) ProtoMessage()

func (*MsgChangeAdmin) Reset

func (m *MsgChangeAdmin) Reset()

func (MsgChangeAdmin) Route

func (m MsgChangeAdmin) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgChangeAdmin) Size

func (m *MsgChangeAdmin) Size() (n int)

func (*MsgChangeAdmin) String

func (m *MsgChangeAdmin) String() string

func (MsgChangeAdmin) Type

func (m MsgChangeAdmin) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgChangeAdmin) Unmarshal

func (m *MsgChangeAdmin) Unmarshal(dAtA []byte) error

func (MsgChangeAdmin) ValidateBasic

func (m MsgChangeAdmin) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgChangeAdmin) XXX_DiscardUnknown

func (m *MsgChangeAdmin) XXX_DiscardUnknown()

func (*MsgChangeAdmin) XXX_Marshal

func (m *MsgChangeAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChangeAdmin) XXX_Merge

func (m *MsgChangeAdmin) XXX_Merge(src proto.Message)

func (*MsgChangeAdmin) XXX_Size

func (m *MsgChangeAdmin) XXX_Size() int

func (*MsgChangeAdmin) XXX_Unmarshal

func (m *MsgChangeAdmin) XXX_Unmarshal(b []byte) error

type MsgChangeAdminResponse

type MsgChangeAdminResponse struct {
}

MsgChangeAdminResponse is the gRPC response for the MsgChangeAdmin TxMsg.

func (*MsgChangeAdminResponse) Descriptor

func (*MsgChangeAdminResponse) Descriptor() ([]byte, []int)

func (*MsgChangeAdminResponse) Marshal

func (m *MsgChangeAdminResponse) Marshal() (dAtA []byte, err error)

func (*MsgChangeAdminResponse) MarshalTo

func (m *MsgChangeAdminResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgChangeAdminResponse) MarshalToSizedBuffer

func (m *MsgChangeAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChangeAdminResponse) ProtoMessage

func (*MsgChangeAdminResponse) ProtoMessage()

func (*MsgChangeAdminResponse) Reset

func (m *MsgChangeAdminResponse) Reset()

func (*MsgChangeAdminResponse) Size

func (m *MsgChangeAdminResponse) Size() (n int)

func (*MsgChangeAdminResponse) String

func (m *MsgChangeAdminResponse) String() string

func (*MsgChangeAdminResponse) Unmarshal

func (m *MsgChangeAdminResponse) Unmarshal(dAtA []byte) error

func (*MsgChangeAdminResponse) XXX_DiscardUnknown

func (m *MsgChangeAdminResponse) XXX_DiscardUnknown()

func (*MsgChangeAdminResponse) XXX_Marshal

func (m *MsgChangeAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChangeAdminResponse) XXX_Merge

func (m *MsgChangeAdminResponse) XXX_Merge(src proto.Message)

func (*MsgChangeAdminResponse) XXX_Size

func (m *MsgChangeAdminResponse) XXX_Size() int

func (*MsgChangeAdminResponse) XXX_Unmarshal

func (m *MsgChangeAdminResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// CreateDenom: registers a token factory denom.
	CreateDenom(ctx context.Context, in *MsgCreateDenom, opts ...grpc.CallOption) (*MsgCreateDenomResponse, error)
	ChangeAdmin(ctx context.Context, in *MsgChangeAdmin, opts ...grpc.CallOption) (*MsgChangeAdminResponse, error)
	// UpdateModuleParams: A governance operation for updating the x/tokenfactory
	// module parameters.
	UpdateModuleParams(ctx context.Context, in *MsgUpdateModuleParams, opts ...grpc.CallOption) (*MsgUpdateModuleParamsResponse, error)
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
	SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error)
	// burns a native token such as unibi
	BurnNative(ctx context.Context, in *MsgBurnNative, opts ...grpc.CallOption) (*MsgBurnNativeResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateDenom

type MsgCreateDenom struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// subdenom can be up to 44 "alphanumeric" characters long.
	Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"`
}

MsgCreateDenom: sdk.Msg that registers an a token factory denom. A denom has the form "tf/[creatorAddr]/[subdenom]".

  • Denoms become unique x/bank tokens, so the creator-subdenom pair that defines a denom cannot be reused.
  • The resulting denom's admin is originally set to be the creator, but the admin can be changed later.

func (*MsgCreateDenom) Descriptor

func (*MsgCreateDenom) Descriptor() ([]byte, []int)

func (*MsgCreateDenom) GetSender

func (m *MsgCreateDenom) GetSender() string

func (MsgCreateDenom) GetSignBytes

func (m MsgCreateDenom) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgCreateDenom) GetSigners

func (m MsgCreateDenom) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgCreateDenom) GetSubdenom

func (m *MsgCreateDenom) GetSubdenom() string

func (*MsgCreateDenom) Marshal

func (m *MsgCreateDenom) Marshal() (dAtA []byte, err error)

func (*MsgCreateDenom) MarshalTo

func (m *MsgCreateDenom) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDenom) MarshalToSizedBuffer

func (m *MsgCreateDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDenom) ProtoMessage

func (*MsgCreateDenom) ProtoMessage()

func (*MsgCreateDenom) Reset

func (m *MsgCreateDenom) Reset()

func (MsgCreateDenom) Route

func (m MsgCreateDenom) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgCreateDenom) Size

func (m *MsgCreateDenom) Size() (n int)

func (*MsgCreateDenom) String

func (m *MsgCreateDenom) String() string

func (MsgCreateDenom) Type

func (m MsgCreateDenom) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgCreateDenom) Unmarshal

func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error

func (MsgCreateDenom) ValidateBasic

func (m MsgCreateDenom) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgCreateDenom) XXX_DiscardUnknown

func (m *MsgCreateDenom) XXX_DiscardUnknown()

func (*MsgCreateDenom) XXX_Marshal

func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDenom) XXX_Merge

func (m *MsgCreateDenom) XXX_Merge(src proto.Message)

func (*MsgCreateDenom) XXX_Size

func (m *MsgCreateDenom) XXX_Size() int

func (*MsgCreateDenom) XXX_Unmarshal

func (m *MsgCreateDenom) XXX_Unmarshal(b []byte) error

type MsgCreateDenomResponse

type MsgCreateDenomResponse struct {
	// NewTokenDenom: identifier for the newly created token factory denom.
	NewTokenDenom string `protobuf:"bytes,1,opt,name=new_token_denom,json=newTokenDenom,proto3" json:"new_token_denom,omitempty" yaml:"new_token_denom"`
}

MsgCreateDenomResponse is the return value of MsgCreateDenom

func (*MsgCreateDenomResponse) Descriptor

func (*MsgCreateDenomResponse) Descriptor() ([]byte, []int)

func (*MsgCreateDenomResponse) GetNewTokenDenom

func (m *MsgCreateDenomResponse) GetNewTokenDenom() string

func (*MsgCreateDenomResponse) Marshal

func (m *MsgCreateDenomResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateDenomResponse) MarshalTo

func (m *MsgCreateDenomResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDenomResponse) MarshalToSizedBuffer

func (m *MsgCreateDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDenomResponse) ProtoMessage

func (*MsgCreateDenomResponse) ProtoMessage()

func (*MsgCreateDenomResponse) Reset

func (m *MsgCreateDenomResponse) Reset()

func (*MsgCreateDenomResponse) Size

func (m *MsgCreateDenomResponse) Size() (n int)

func (*MsgCreateDenomResponse) String

func (m *MsgCreateDenomResponse) String() string

func (*MsgCreateDenomResponse) Unmarshal

func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateDenomResponse) XXX_DiscardUnknown

func (m *MsgCreateDenomResponse) XXX_DiscardUnknown()

func (*MsgCreateDenomResponse) XXX_Marshal

func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDenomResponse) XXX_Merge

func (m *MsgCreateDenomResponse) XXX_Merge(src proto.Message)

func (*MsgCreateDenomResponse) XXX_Size

func (m *MsgCreateDenomResponse) XXX_Size() int

func (*MsgCreateDenomResponse) XXX_Unmarshal

func (m *MsgCreateDenomResponse) XXX_Unmarshal(b []byte) error

type MsgMint

type MsgMint struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// coin: The denom identifier and amount to mint.
	Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin" yaml:"coin"`
	// mint_to_addr: An address to which tokens will be minted. If blank,
	// tokens are minted to the "sender".
	MintTo string `protobuf:"bytes,3,opt,name=mint_to,json=mintTo,proto3" json:"mint_to,omitempty" yaml:"mint_to"`
}

MsgMint: sdk.Msg (TxMsg) where an denom admin mints more of the token.

func (*MsgMint) Descriptor

func (*MsgMint) Descriptor() ([]byte, []int)

func (*MsgMint) GetCoin

func (m *MsgMint) GetCoin() types.Coin

func (*MsgMint) GetMintTo

func (m *MsgMint) GetMintTo() string

func (*MsgMint) GetSender

func (m *MsgMint) GetSender() string

func (MsgMint) GetSignBytes

func (m MsgMint) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgMint) GetSigners

func (m MsgMint) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgMint) Marshal

func (m *MsgMint) Marshal() (dAtA []byte, err error)

func (*MsgMint) MarshalTo

func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgMint) MarshalToSizedBuffer

func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (MsgMint) Route

func (m MsgMint) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgMint) Size

func (m *MsgMint) Size() (n int)

func (*MsgMint) String

func (m *MsgMint) String() string

func (MsgMint) Type

func (m MsgMint) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgMint) Unmarshal

func (m *MsgMint) Unmarshal(dAtA []byte) error

func (MsgMint) ValidateBasic

func (m MsgMint) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMint) XXX_Merge

func (m *MsgMint) XXX_Merge(src proto.Message)

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

func (m *MsgMint) XXX_Unmarshal(b []byte) error

type MsgMintResponse

type MsgMintResponse struct {
	MintTo string `protobuf:"bytes,1,opt,name=mint_to,json=mintTo,proto3" json:"mint_to,omitempty"`
}

func (*MsgMintResponse) Descriptor

func (*MsgMintResponse) Descriptor() ([]byte, []int)

func (*MsgMintResponse) GetMintTo

func (m *MsgMintResponse) GetMintTo() string

func (*MsgMintResponse) Marshal

func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgMintResponse) MarshalTo

func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgMintResponse) MarshalToSizedBuffer

func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

func (m *MsgMintResponse) Size() (n int)

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

func (m *MsgMintResponse) Unmarshal(dAtA []byte) error

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMintResponse) XXX_Merge

func (m *MsgMintResponse) XXX_Merge(src proto.Message)

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateDenom: registers a token factory denom.
	CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error)
	ChangeAdmin(context.Context, *MsgChangeAdmin) (*MsgChangeAdminResponse, error)
	// UpdateModuleParams: A governance operation for updating the x/tokenfactory
	// module parameters.
	UpdateModuleParams(context.Context, *MsgUpdateModuleParams) (*MsgUpdateModuleParamsResponse, error)
	Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
	Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
	SetDenomMetadata(context.Context, *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error)
	// burns a native token such as unibi
	BurnNative(context.Context, *MsgBurnNative) (*MsgBurnNativeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetDenomMetadata

type MsgSetDenomMetadata struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Metadata: Official x/bank metadata for the denom. All token factory denoms
	// are standard, native assets. The "metadata.base" is the denom.
	Metadata types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata"`
}

MsgSetDenomMetadata: sdk.Msg (TxMsg) enabling the denom admin to change its bank metadata.

func (*MsgSetDenomMetadata) Descriptor

func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int)

func (*MsgSetDenomMetadata) GetMetadata

func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata

func (*MsgSetDenomMetadata) GetSender

func (m *MsgSetDenomMetadata) GetSender() string

func (MsgSetDenomMetadata) GetSignBytes

func (m MsgSetDenomMetadata) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgSetDenomMetadata) GetSigners

func (m MsgSetDenomMetadata) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgSetDenomMetadata) Marshal

func (m *MsgSetDenomMetadata) Marshal() (dAtA []byte, err error)

func (*MsgSetDenomMetadata) MarshalTo

func (m *MsgSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetDenomMetadata) MarshalToSizedBuffer

func (m *MsgSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetDenomMetadata) ProtoMessage

func (*MsgSetDenomMetadata) ProtoMessage()

func (*MsgSetDenomMetadata) Reset

func (m *MsgSetDenomMetadata) Reset()

func (MsgSetDenomMetadata) Route

func (m MsgSetDenomMetadata) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgSetDenomMetadata) Size

func (m *MsgSetDenomMetadata) Size() (n int)

func (*MsgSetDenomMetadata) String

func (m *MsgSetDenomMetadata) String() string

func (MsgSetDenomMetadata) Type

func (m MsgSetDenomMetadata) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgSetDenomMetadata) Unmarshal

func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error

func (MsgSetDenomMetadata) ValidateBasic

func (m MsgSetDenomMetadata) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgSetDenomMetadata) XXX_DiscardUnknown

func (m *MsgSetDenomMetadata) XXX_DiscardUnknown()

func (*MsgSetDenomMetadata) XXX_Marshal

func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetDenomMetadata) XXX_Merge

func (m *MsgSetDenomMetadata) XXX_Merge(src proto.Message)

func (*MsgSetDenomMetadata) XXX_Size

func (m *MsgSetDenomMetadata) XXX_Size() int

func (*MsgSetDenomMetadata) XXX_Unmarshal

func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error

type MsgSetDenomMetadataResponse

type MsgSetDenomMetadataResponse struct {
}

func (*MsgSetDenomMetadataResponse) Descriptor

func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int)

func (*MsgSetDenomMetadataResponse) Marshal

func (m *MsgSetDenomMetadataResponse) Marshal() (dAtA []byte, err error)

func (*MsgSetDenomMetadataResponse) MarshalTo

func (m *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataResponse) MarshalToSizedBuffer

func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSetDenomMetadataResponse) ProtoMessage

func (*MsgSetDenomMetadataResponse) ProtoMessage()

func (*MsgSetDenomMetadataResponse) Reset

func (m *MsgSetDenomMetadataResponse) Reset()

func (*MsgSetDenomMetadataResponse) Size

func (m *MsgSetDenomMetadataResponse) Size() (n int)

func (*MsgSetDenomMetadataResponse) String

func (m *MsgSetDenomMetadataResponse) String() string

func (*MsgSetDenomMetadataResponse) Unmarshal

func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error

func (*MsgSetDenomMetadataResponse) XXX_DiscardUnknown

func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown()

func (*MsgSetDenomMetadataResponse) XXX_Marshal

func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSetDenomMetadataResponse) XXX_Merge

func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message)

func (*MsgSetDenomMetadataResponse) XXX_Size

func (m *MsgSetDenomMetadataResponse) XXX_Size() int

func (*MsgSetDenomMetadataResponse) XXX_Unmarshal

func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateModuleParams

type MsgUpdateModuleParams struct {
	// Authority: Address of the governance module account.
	Authority string       `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    ModuleParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateModuleParams: sdk.Msg for updating the x/tokenfactory module params

func (*MsgUpdateModuleParams) Descriptor

func (*MsgUpdateModuleParams) Descriptor() ([]byte, []int)

func (*MsgUpdateModuleParams) GetAuthority

func (m *MsgUpdateModuleParams) GetAuthority() string

func (*MsgUpdateModuleParams) GetParams

func (m *MsgUpdateModuleParams) GetParams() ModuleParams

func (MsgUpdateModuleParams) GetSignBytes

func (m MsgUpdateModuleParams) GetSignBytes() []byte

GetSignBytes: Get the canonical byte representation of the Msg. Impl legacytx.LegacyMsg.

func (MsgUpdateModuleParams) GetSigners

func (m MsgUpdateModuleParams) GetSigners() []sdk.AccAddress

GetSigners: Impl sdk.Msg.

func (*MsgUpdateModuleParams) Marshal

func (m *MsgUpdateModuleParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateModuleParams) MarshalTo

func (m *MsgUpdateModuleParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateModuleParams) MarshalToSizedBuffer

func (m *MsgUpdateModuleParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateModuleParams) ProtoMessage

func (*MsgUpdateModuleParams) ProtoMessage()

func (*MsgUpdateModuleParams) Reset

func (m *MsgUpdateModuleParams) Reset()

func (MsgUpdateModuleParams) Route

func (m MsgUpdateModuleParams) Route() string

Route: Impl legacytx.LegacyMsg. The mesage route must be alphanumeric or empty.

func (*MsgUpdateModuleParams) Size

func (m *MsgUpdateModuleParams) Size() (n int)

func (*MsgUpdateModuleParams) String

func (m *MsgUpdateModuleParams) String() string

func (MsgUpdateModuleParams) Type

func (m MsgUpdateModuleParams) Type() string

Type: Impl legacytx.LegacyMsg. Returns a human-readable string for the message, intended for utilization within tags

func (*MsgUpdateModuleParams) Unmarshal

func (m *MsgUpdateModuleParams) Unmarshal(dAtA []byte) error

func (MsgUpdateModuleParams) ValidateBasic

func (m MsgUpdateModuleParams) ValidateBasic() error

ValidateBasic performs stateless validation checks. Impl sdk.Msg.

func (*MsgUpdateModuleParams) XXX_DiscardUnknown

func (m *MsgUpdateModuleParams) XXX_DiscardUnknown()

func (*MsgUpdateModuleParams) XXX_Marshal

func (m *MsgUpdateModuleParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateModuleParams) XXX_Merge

func (m *MsgUpdateModuleParams) XXX_Merge(src proto.Message)

func (*MsgUpdateModuleParams) XXX_Size

func (m *MsgUpdateModuleParams) XXX_Size() int

func (*MsgUpdateModuleParams) XXX_Unmarshal

func (m *MsgUpdateModuleParams) XXX_Unmarshal(b []byte) error

type MsgUpdateModuleParamsResponse

type MsgUpdateModuleParamsResponse struct {
}

MsgUpdateModuleParamsResponse is the gRPC response for the MsgUpdateModuleParams TxMsg.

func (*MsgUpdateModuleParamsResponse) Descriptor

func (*MsgUpdateModuleParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateModuleParamsResponse) Marshal

func (m *MsgUpdateModuleParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateModuleParamsResponse) MarshalTo

func (m *MsgUpdateModuleParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateModuleParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateModuleParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateModuleParamsResponse) ProtoMessage

func (*MsgUpdateModuleParamsResponse) ProtoMessage()

func (*MsgUpdateModuleParamsResponse) Reset

func (m *MsgUpdateModuleParamsResponse) Reset()

func (*MsgUpdateModuleParamsResponse) Size

func (m *MsgUpdateModuleParamsResponse) Size() (n int)

func (*MsgUpdateModuleParamsResponse) String

func (*MsgUpdateModuleParamsResponse) Unmarshal

func (m *MsgUpdateModuleParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateModuleParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateModuleParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateModuleParamsResponse) XXX_Marshal

func (m *MsgUpdateModuleParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateModuleParamsResponse) XXX_Merge

func (m *MsgUpdateModuleParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateModuleParamsResponse) XXX_Size

func (m *MsgUpdateModuleParamsResponse) XXX_Size() int

func (*MsgUpdateModuleParamsResponse) XXX_Unmarshal

func (m *MsgUpdateModuleParamsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params retrieves the module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Denoms retrieves all registered denoms for a given creator
	Denoms(ctx context.Context, in *QueryDenomsRequest, opts ...grpc.CallOption) (*QueryDenomsResponse, error)
	// DenomInfo retrieves the denom metadata and admin info
	DenomInfo(ctx context.Context, in *QueryDenomInfoRequest, opts ...grpc.CallOption) (*QueryDenomInfoResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDenomInfoRequest

type QueryDenomInfoRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryDenomInfoRequest: gRPC query for the denom admin and x/bank metadata

func (*QueryDenomInfoRequest) Descriptor

func (*QueryDenomInfoRequest) Descriptor() ([]byte, []int)

func (*QueryDenomInfoRequest) GetDenom

func (m *QueryDenomInfoRequest) GetDenom() string

func (*QueryDenomInfoRequest) Marshal

func (m *QueryDenomInfoRequest) Marshal() (dAtA []byte, err error)

func (*QueryDenomInfoRequest) MarshalTo

func (m *QueryDenomInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomInfoRequest) MarshalToSizedBuffer

func (m *QueryDenomInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomInfoRequest) ProtoMessage

func (*QueryDenomInfoRequest) ProtoMessage()

func (*QueryDenomInfoRequest) Reset

func (m *QueryDenomInfoRequest) Reset()

func (*QueryDenomInfoRequest) Size

func (m *QueryDenomInfoRequest) Size() (n int)

func (*QueryDenomInfoRequest) String

func (m *QueryDenomInfoRequest) String() string

func (*QueryDenomInfoRequest) Unmarshal

func (m *QueryDenomInfoRequest) Unmarshal(dAtA []byte) error

func (*QueryDenomInfoRequest) XXX_DiscardUnknown

func (m *QueryDenomInfoRequest) XXX_DiscardUnknown()

func (*QueryDenomInfoRequest) XXX_Marshal

func (m *QueryDenomInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomInfoRequest) XXX_Merge

func (m *QueryDenomInfoRequest) XXX_Merge(src proto.Message)

func (*QueryDenomInfoRequest) XXX_Size

func (m *QueryDenomInfoRequest) XXX_Size() int

func (*QueryDenomInfoRequest) XXX_Unmarshal

func (m *QueryDenomInfoRequest) XXX_Unmarshal(b []byte) error

type QueryDenomInfoResponse

type QueryDenomInfoResponse struct {
	// Admin of the token factory denom
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Metadata: Official x/bank metadata for the denom. All token factory denoms
	// are standard, native assets.
	Metadata types.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata"`
}

QueryDenomInfoResponse: All registered denoms for a creator

func (*QueryDenomInfoResponse) Descriptor

func (*QueryDenomInfoResponse) Descriptor() ([]byte, []int)

func (*QueryDenomInfoResponse) GetAdmin

func (m *QueryDenomInfoResponse) GetAdmin() string

func (*QueryDenomInfoResponse) GetMetadata

func (m *QueryDenomInfoResponse) GetMetadata() types.Metadata

func (*QueryDenomInfoResponse) Marshal

func (m *QueryDenomInfoResponse) Marshal() (dAtA []byte, err error)

func (*QueryDenomInfoResponse) MarshalTo

func (m *QueryDenomInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomInfoResponse) MarshalToSizedBuffer

func (m *QueryDenomInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomInfoResponse) ProtoMessage

func (*QueryDenomInfoResponse) ProtoMessage()

func (*QueryDenomInfoResponse) Reset

func (m *QueryDenomInfoResponse) Reset()

func (*QueryDenomInfoResponse) Size

func (m *QueryDenomInfoResponse) Size() (n int)

func (*QueryDenomInfoResponse) String

func (m *QueryDenomInfoResponse) String() string

func (*QueryDenomInfoResponse) Unmarshal

func (m *QueryDenomInfoResponse) Unmarshal(dAtA []byte) error

func (*QueryDenomInfoResponse) XXX_DiscardUnknown

func (m *QueryDenomInfoResponse) XXX_DiscardUnknown()

func (*QueryDenomInfoResponse) XXX_Marshal

func (m *QueryDenomInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomInfoResponse) XXX_Merge

func (m *QueryDenomInfoResponse) XXX_Merge(src proto.Message)

func (*QueryDenomInfoResponse) XXX_Size

func (m *QueryDenomInfoResponse) XXX_Size() int

func (*QueryDenomInfoResponse) XXX_Unmarshal

func (m *QueryDenomInfoResponse) XXX_Unmarshal(b []byte) error

type QueryDenomsRequest

type QueryDenomsRequest struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

QueryDenomsRequest: gRPC query for all denoms registered for a creator

func (*QueryDenomsRequest) Descriptor

func (*QueryDenomsRequest) Descriptor() ([]byte, []int)

func (*QueryDenomsRequest) GetCreator

func (m *QueryDenomsRequest) GetCreator() string

func (*QueryDenomsRequest) Marshal

func (m *QueryDenomsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDenomsRequest) MarshalTo

func (m *QueryDenomsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomsRequest) MarshalToSizedBuffer

func (m *QueryDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomsRequest) ProtoMessage

func (*QueryDenomsRequest) ProtoMessage()

func (*QueryDenomsRequest) Reset

func (m *QueryDenomsRequest) Reset()

func (*QueryDenomsRequest) Size

func (m *QueryDenomsRequest) Size() (n int)

func (*QueryDenomsRequest) String

func (m *QueryDenomsRequest) String() string

func (*QueryDenomsRequest) Unmarshal

func (m *QueryDenomsRequest) Unmarshal(dAtA []byte) error

func (*QueryDenomsRequest) XXX_DiscardUnknown

func (m *QueryDenomsRequest) XXX_DiscardUnknown()

func (*QueryDenomsRequest) XXX_Marshal

func (m *QueryDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomsRequest) XXX_Merge

func (m *QueryDenomsRequest) XXX_Merge(src proto.Message)

func (*QueryDenomsRequest) XXX_Size

func (m *QueryDenomsRequest) XXX_Size() int

func (*QueryDenomsRequest) XXX_Unmarshal

func (m *QueryDenomsRequest) XXX_Unmarshal(b []byte) error

type QueryDenomsResponse

type QueryDenomsResponse struct {
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

QueryDenomsResponse: All registered denoms for a creator

func (*QueryDenomsResponse) Descriptor

func (*QueryDenomsResponse) Descriptor() ([]byte, []int)

func (*QueryDenomsResponse) GetDenoms

func (m *QueryDenomsResponse) GetDenoms() []string

func (*QueryDenomsResponse) Marshal

func (m *QueryDenomsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDenomsResponse) MarshalTo

func (m *QueryDenomsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDenomsResponse) MarshalToSizedBuffer

func (m *QueryDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDenomsResponse) ProtoMessage

func (*QueryDenomsResponse) ProtoMessage()

func (*QueryDenomsResponse) Reset

func (m *QueryDenomsResponse) Reset()

func (*QueryDenomsResponse) Size

func (m *QueryDenomsResponse) Size() (n int)

func (*QueryDenomsResponse) String

func (m *QueryDenomsResponse) String() string

func (*QueryDenomsResponse) Unmarshal

func (m *QueryDenomsResponse) Unmarshal(dAtA []byte) error

func (*QueryDenomsResponse) XXX_DiscardUnknown

func (m *QueryDenomsResponse) XXX_DiscardUnknown()

func (*QueryDenomsResponse) XXX_Marshal

func (m *QueryDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDenomsResponse) XXX_Merge

func (m *QueryDenomsResponse) XXX_Merge(src proto.Message)

func (*QueryDenomsResponse) XXX_Size

func (m *QueryDenomsResponse) XXX_Size() int

func (*QueryDenomsResponse) XXX_Unmarshal

func (m *QueryDenomsResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// Module parameters stored in state
	Params ModuleParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() ModuleParams

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params retrieves the module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Denoms retrieves all registered denoms for a given creator
	Denoms(context.Context, *QueryDenomsRequest) (*QueryDenomsResponse, error)
	// DenomInfo retrieves the denom metadata and admin info
	DenomInfo(context.Context, *QueryDenomInfoRequest) (*QueryDenomInfoResponse, error)
}

QueryServer is the server API for Query service.

type TFDenom

type TFDenom struct {
	// Creator: Bech32 address of the creator of the denom.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// Subdenom: Unique suffix of a token factory denom. A subdenom is specific
	// to a given creator. It is the name given during a token factory "Mint".
	Subdenom string `protobuf:"bytes,2,opt,name=subdenom,proto3" json:"subdenom,omitempty"`
}

TFDenom is a token factory (TF) denom. The canonical representation is "tf/{creator}/{subdenom}", its unique denomination in the x/bank module.

func (TFDenom) DefaultBankMetadata

func (tfd TFDenom) DefaultBankMetadata() banktypes.Metadata

func (TFDenom) Denom

func (tfd TFDenom) Denom() DenomStr

func (*TFDenom) Descriptor

func (*TFDenom) Descriptor() ([]byte, []int)

func (*TFDenom) GetCreator

func (m *TFDenom) GetCreator() string

func (*TFDenom) GetSubdenom

func (m *TFDenom) GetSubdenom() string

func (TFDenom) IsEqual

func (tfd TFDenom) IsEqual(other TFDenom) bool

func (*TFDenom) Marshal

func (m *TFDenom) Marshal() (dAtA []byte, err error)

func (*TFDenom) MarshalTo

func (m *TFDenom) MarshalTo(dAtA []byte) (int, error)

func (*TFDenom) MarshalToSizedBuffer

func (m *TFDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TFDenom) ProtoMessage

func (*TFDenom) ProtoMessage()

func (*TFDenom) Reset

func (m *TFDenom) Reset()

func (*TFDenom) Size

func (m *TFDenom) Size() (n int)

func (*TFDenom) String

func (m *TFDenom) String() string

func (*TFDenom) Unmarshal

func (m *TFDenom) Unmarshal(dAtA []byte) error

func (TFDenom) Validate

func (tfd TFDenom) Validate() error

func (*TFDenom) XXX_DiscardUnknown

func (m *TFDenom) XXX_DiscardUnknown()

func (*TFDenom) XXX_Marshal

func (m *TFDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TFDenom) XXX_Merge

func (m *TFDenom) XXX_Merge(src proto.Message)

func (*TFDenom) XXX_Size

func (m *TFDenom) XXX_Size() int

func (*TFDenom) XXX_Unmarshal

func (m *TFDenom) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) BurnNative

func (*UnimplementedMsgServer) ChangeAdmin

func (*UnimplementedMsgServer) CreateDenom

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) SetDenomMetadata

func (*UnimplementedMsgServer) UpdateModuleParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DenomInfo

func (*UnimplementedQueryServer) Denoms

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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