types

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ModuleDenomPrefix = "factory"
	// See the TokenFactory readme for a derivation of these.
	// TL;DR, MaxSubdenomLength + MaxHrpLength = 60 comes from SDK max denom length = 128
	// and the structure of tokenfactory denoms.
	MaxSubdenomLength = 44
	MaxHrpLength      = 16
	// MaxCreatorLength = 59 + MaxHrpLength
	MaxCreatorLength  = 59 + MaxHrpLength
	MinSubdenomLength = 1
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "tokenfactory"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_tokenfactory"
)
View Source
const (
	TypeMsgCreateDenom      = "create_denom"
	TypeMsgMint             = "tf_mint"
	TypeMsgBurn             = "tf_burn"
	TypeMsgChangeAdmin      = "change_admin"
	TypeMsgSetDenomMetadata = "set_denom_metadata"
	TypeMsgUpdateParams     = "update_params"
)

constants

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const KeySeparator = "|"

KeySeparator is used to combine parts of the keys in the store

View Source
const (
	ProposalTypeUpdateDenomsMetaData = "UpdateDenomsMetaData"
)

Variables

View Source
var (
	ErrInvalidLengthAuthorityMetadata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthorityMetadata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthorityMetadata = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrDenomExists              = errors.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)")
	ErrUnauthorized             = errors.Register(ModuleName, 3, "unauthorized account")
	ErrInvalidDenom             = errors.Register(ModuleName, 4, "invalid denom")
	ErrInvalidCreator           = errors.Register(ModuleName, 5, "invalid creator")
	ErrInvalidAuthorityMetadata = errors.Register(ModuleName, 6, "invalid authority metadata")
	ErrInvalidGenesis           = errors.Register(ModuleName, 7, "invalid genesis")
	ErrSubdenomTooLong          = errors.Register(ModuleName, 8, fmt.Sprintf("subdenom too long, max length is %d bytes", MaxSubdenomLength))
	ErrSubdenomTooShort         = errors.Register(ModuleName, 9, fmt.Sprintf("subdenom too short, min length is %d bytes", MinSubdenomLength))
	ErrSubdenomNestedTooShort   = errors.Register(ModuleName, 10, fmt.Sprintf("nested subdenom too short, each one should have at least %d bytes", MinSubdenomLength))
	ErrCreatorTooLong           = errors.Register(ModuleName, 11, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength))
	ErrDenomDoesNotExist        = errors.Register(ModuleName, 12, "denom does not exist")
	ErrAmountNotPositive        = errors.Register(ModuleName, 13, "amount has to be positive")
)

x/tokenfactory module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DenomAuthorityMetadataKey = []byte{0x01}
	DenomsPrefixKey           = []byte{0x02}
	CreatorPrefixKey          = []byte{0x03}
	AdminPrefixKey            = []byte{0x04}
	ParamsKey                 = []byte{0x05}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyDenomCreationFee = []byte("DenomCreationFee")
)

Parameter store keys.

View Source
var (
	ModuleCdc = codec.NewLegacyAmino()
)

Functions

func DeconstructDenom

func DeconstructDenom(denom string) (creator, subdenom string, err error)

DeconstructDenom takes a token denom string and verifies that it is a valid denom of the tokenfactory module, and is of the form `factory/{creator}/{subdenom}` If valid, it returns the creator address and subdenom

func GetCreatorPrefix

func GetCreatorPrefix(creator string) []byte

GetCreatorPrefix returns the store prefix where the list of the denoms created by a specific creator are stored.

func GetCreatorsPrefix

func GetCreatorsPrefix() []byte

GetCreatorsPrefix returns the store prefix where a list of all creator addresses are stored

func GetDenomPrefixStore

func GetDenomPrefixStore(denom string) []byte

GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom is stored

func GetTokenDenom

func GetTokenDenom(creator, subdenom string) (string, error)

GetTokenDenom constructs a denom string for tokens created by tokenfactory based on an input creator address and a subdenom The denom constructed is factory/{creator}/{subdenom}

func NewTokenFactoryDenomMintCoinsRestriction

func NewTokenFactoryDenomMintCoinsRestriction() banktypes.MintingRestrictionFn

NewTokenFactoryDenomMintCoinsRestriction creates and returns a MintingRestrictionFn that only allows minting of valid tokenfactory denoms

func NewUpdateDenomsMetadataProposal added in v1.51.0

func NewUpdateDenomsMetadataProposal(title, description string, metadatas []banktypes.Metadata) govtypes.Content

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for gamm module.

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	SetModuleAccount(ctx context.Context, macc sdk.ModuleAccountI)
	NewAccount(ctx context.Context, acc sdk.AccountI) sdk.AccountI
}

type BankKeeper

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

	HasSupply(ctx context.Context, denom string) bool

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

	SendCoins(ctx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	HasBalance(ctx context.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	BlockedAddr(addr sdk.AccAddress) bool
}

type CommunityPoolKeeper

type CommunityPoolKeeper interface {
	FundCommunityPool(ctx context.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 {
	// Can be empty for no admin, or a valid injective address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
}

DenomAuthorityMetadata specifies metadata for addresses 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) Validate

func (metadata DenomAuthorityMetadata) Validate() 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 EventBurnDenom added in v1.49.0

type EventBurnDenom struct {
	BurnerAddress string     `protobuf:"bytes,1,opt,name=burner_address,json=burnerAddress,proto3" json:"burner_address,omitempty"`
	Amount        types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func (*EventBurnDenom) Descriptor added in v1.49.0

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

func (*EventBurnDenom) GetAmount added in v1.49.0

func (m *EventBurnDenom) GetAmount() types.Coin

func (*EventBurnDenom) GetBurnerAddress added in v1.49.0

func (m *EventBurnDenom) GetBurnerAddress() string

func (*EventBurnDenom) Marshal added in v1.49.0

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

func (*EventBurnDenom) MarshalTo added in v1.49.0

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

func (*EventBurnDenom) MarshalToSizedBuffer added in v1.49.0

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

func (*EventBurnDenom) ProtoMessage added in v1.49.0

func (*EventBurnDenom) ProtoMessage()

func (*EventBurnDenom) Reset added in v1.49.0

func (m *EventBurnDenom) Reset()

func (*EventBurnDenom) Size added in v1.49.0

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

func (*EventBurnDenom) String added in v1.49.0

func (m *EventBurnDenom) String() string

func (*EventBurnDenom) Unmarshal added in v1.49.0

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

func (*EventBurnDenom) XXX_DiscardUnknown added in v1.49.0

func (m *EventBurnDenom) XXX_DiscardUnknown()

func (*EventBurnDenom) XXX_Marshal added in v1.49.0

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

func (*EventBurnDenom) XXX_Merge added in v1.49.0

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

func (*EventBurnDenom) XXX_Size added in v1.49.0

func (m *EventBurnDenom) XXX_Size() int

func (*EventBurnDenom) XXX_Unmarshal added in v1.49.0

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

type EventChangeTFAdmin

type EventChangeTFAdmin struct {
	Denom           string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	NewAdminAddress string `protobuf:"bytes,2,opt,name=new_admin_address,json=newAdminAddress,proto3" json:"new_admin_address,omitempty"`
}

func (*EventChangeTFAdmin) Descriptor

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

func (*EventChangeTFAdmin) GetDenom

func (m *EventChangeTFAdmin) GetDenom() string

func (*EventChangeTFAdmin) GetNewAdminAddress

func (m *EventChangeTFAdmin) GetNewAdminAddress() string

func (*EventChangeTFAdmin) Marshal

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

func (*EventChangeTFAdmin) MarshalTo

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

func (*EventChangeTFAdmin) MarshalToSizedBuffer

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

func (*EventChangeTFAdmin) ProtoMessage

func (*EventChangeTFAdmin) ProtoMessage()

func (*EventChangeTFAdmin) Reset

func (m *EventChangeTFAdmin) Reset()

func (*EventChangeTFAdmin) Size

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

func (*EventChangeTFAdmin) String

func (m *EventChangeTFAdmin) String() string

func (*EventChangeTFAdmin) Unmarshal

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

func (*EventChangeTFAdmin) XXX_DiscardUnknown

func (m *EventChangeTFAdmin) XXX_DiscardUnknown()

func (*EventChangeTFAdmin) XXX_Marshal

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

func (*EventChangeTFAdmin) XXX_Merge

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

func (*EventChangeTFAdmin) XXX_Size

func (m *EventChangeTFAdmin) XXX_Size() int

func (*EventChangeTFAdmin) XXX_Unmarshal

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

type EventCreateTFDenom

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

func (*EventCreateTFDenom) Descriptor

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

func (*EventCreateTFDenom) GetAccount

func (m *EventCreateTFDenom) GetAccount() string

func (*EventCreateTFDenom) GetDenom

func (m *EventCreateTFDenom) GetDenom() string

func (*EventCreateTFDenom) Marshal

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

func (*EventCreateTFDenom) MarshalTo

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

func (*EventCreateTFDenom) MarshalToSizedBuffer

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

func (*EventCreateTFDenom) ProtoMessage

func (*EventCreateTFDenom) ProtoMessage()

func (*EventCreateTFDenom) Reset

func (m *EventCreateTFDenom) Reset()

func (*EventCreateTFDenom) Size

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

func (*EventCreateTFDenom) String

func (m *EventCreateTFDenom) String() string

func (*EventCreateTFDenom) Unmarshal

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

func (*EventCreateTFDenom) XXX_DiscardUnknown

func (m *EventCreateTFDenom) XXX_DiscardUnknown()

func (*EventCreateTFDenom) XXX_Marshal

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

func (*EventCreateTFDenom) XXX_Merge

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

func (*EventCreateTFDenom) XXX_Size

func (m *EventCreateTFDenom) XXX_Size() int

func (*EventCreateTFDenom) XXX_Unmarshal

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

type EventMintTFDenom

type EventMintTFDenom struct {
	RecipientAddress string     `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Amount           types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func (*EventMintTFDenom) Descriptor

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

func (*EventMintTFDenom) GetAmount

func (m *EventMintTFDenom) GetAmount() types.Coin

func (*EventMintTFDenom) GetRecipientAddress

func (m *EventMintTFDenom) GetRecipientAddress() string

func (*EventMintTFDenom) Marshal

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

func (*EventMintTFDenom) MarshalTo

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

func (*EventMintTFDenom) MarshalToSizedBuffer

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

func (*EventMintTFDenom) ProtoMessage

func (*EventMintTFDenom) ProtoMessage()

func (*EventMintTFDenom) Reset

func (m *EventMintTFDenom) Reset()

func (*EventMintTFDenom) Size

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

func (*EventMintTFDenom) String

func (m *EventMintTFDenom) String() string

func (*EventMintTFDenom) Unmarshal

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

func (*EventMintTFDenom) XXX_DiscardUnknown

func (m *EventMintTFDenom) XXX_DiscardUnknown()

func (*EventMintTFDenom) XXX_Marshal

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

func (*EventMintTFDenom) XXX_Merge

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

func (*EventMintTFDenom) XXX_Size

func (m *EventMintTFDenom) XXX_Size() int

func (*EventMintTFDenom) XXX_Unmarshal

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

type EventSetTFDenomMetadata

type EventSetTFDenomMetadata struct {
	Denom    string          `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Metadata types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata"`
}

func (*EventSetTFDenomMetadata) Descriptor

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

func (*EventSetTFDenomMetadata) GetDenom

func (m *EventSetTFDenomMetadata) GetDenom() string

func (*EventSetTFDenomMetadata) GetMetadata

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

func (*EventSetTFDenomMetadata) Marshal

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

func (*EventSetTFDenomMetadata) MarshalTo

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

func (*EventSetTFDenomMetadata) MarshalToSizedBuffer

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

func (*EventSetTFDenomMetadata) ProtoMessage

func (*EventSetTFDenomMetadata) ProtoMessage()

func (*EventSetTFDenomMetadata) Reset

func (m *EventSetTFDenomMetadata) Reset()

func (*EventSetTFDenomMetadata) Size

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

func (*EventSetTFDenomMetadata) String

func (m *EventSetTFDenomMetadata) String() string

func (*EventSetTFDenomMetadata) Unmarshal

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

func (*EventSetTFDenomMetadata) XXX_DiscardUnknown

func (m *EventSetTFDenomMetadata) XXX_DiscardUnknown()

func (*EventSetTFDenomMetadata) XXX_Marshal

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

func (*EventSetTFDenomMetadata) XXX_Merge

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

func (*EventSetTFDenomMetadata) XXX_Size

func (m *EventSetTFDenomMetadata) XXX_Size() int

func (*EventSetTFDenomMetadata) XXX_Unmarshal

func (m *EventSetTFDenomMetadata) 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 */
	Name              string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Symbol            string                 `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty" yaml:"symbol"`
	Decimals          uint32                 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty" yaml:"decimals"`
}

GenesisDenom defines a tokenfactory denom that is defined within genesis state. The structure contains DenomAuthorityMetadata which defines the denom's admin.

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) GetDecimals added in v1.51.0

func (m *GenesisDenom) GetDecimals() uint32

func (*GenesisDenom) GetDenom

func (m *GenesisDenom) GetDenom() string

func (*GenesisDenom) GetName added in v1.48.5

func (m *GenesisDenom) GetName() string

func (*GenesisDenom) GetSymbol added in v1.48.5

func (m *GenesisDenom) GetSymbol() 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) 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 defines the parameters of the module.
	Params        Params         `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 defines the tokenfactory module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetFactoryDenoms

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 returning an error upon any failure.

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 MsgBurn

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

MsgBurn is the sdk.Msg type for allowing an admin account to burn a token. For now, we only support burning from the sender account.

func NewMsgBurn

func NewMsgBurn(sender string, amount sdk.Coin) *MsgBurn

NewMsgBurn creates a message to burn tokens

func (*MsgBurn) Descriptor

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

func (*MsgBurn) GetAmount

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

func (*MsgBurn) GetSender

func (m *MsgBurn) GetSender() string

func (*MsgBurn) GetSignBytes

func (m *MsgBurn) GetSignBytes() []byte

func (MsgBurn) GetSigners

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

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

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

func (*MsgBurn) Unmarshal

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

func (MsgBurn) ValidateBasic

func (m MsgBurn) ValidateBasic() error

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 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 reassign adminship of a denom to a new account

func NewMsgChangeAdmin

func NewMsgChangeAdmin(sender, denom, newAdmin string) *MsgChangeAdmin

NewMsgChangeAdmin creates a message to change the admin

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

func (MsgChangeAdmin) GetSigners

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

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

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

func (*MsgChangeAdmin) Unmarshal

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

func (MsgChangeAdmin) ValidateBasic

func (m MsgChangeAdmin) ValidateBasic() error

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 defines the response structure for an executed MsgChangeAdmin message.

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(ctx context.Context, in *MsgCreateDenom, opts ...grpc.CallOption) (*MsgCreateDenomResponse, error)
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
	ChangeAdmin(ctx context.Context, in *MsgChangeAdmin, opts ...grpc.CallOption) (*MsgChangeAdminResponse, error)
	SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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"`
	Name     string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Symbol   string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty" yaml:"symbol"`
	Decimals uint32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty" yaml:"decimals"`
}

MsgCreateDenom defines the message structure for the CreateDenom gRPC service method. It allows an account to create a new denom. It requires a sender address and a sub denomination. The (sender_address, sub_denomination) tuple must be unique and cannot be re-used.

The resulting denom created is defined as <factory/{creatorAddress}/{subdenom}>. The resulting denom's admin is originally set to be the creator, but this can be changed later. The token denom does not indicate the current admin.

func NewMsgCreateDenom

func NewMsgCreateDenom(sender, subdenom, name, symbol string, decimals uint32) *MsgCreateDenom

NewMsgCreateDenom creates a msg to create a new denom

func (*MsgCreateDenom) Descriptor

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

func (*MsgCreateDenom) GetDecimals added in v1.51.0

func (m *MsgCreateDenom) GetDecimals() uint32

func (*MsgCreateDenom) GetName added in v1.47.15

func (m *MsgCreateDenom) GetName() string

func (*MsgCreateDenom) GetSender

func (m *MsgCreateDenom) GetSender() string

func (*MsgCreateDenom) GetSignBytes

func (m *MsgCreateDenom) GetSignBytes() []byte

func (MsgCreateDenom) GetSigners

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

func (*MsgCreateDenom) GetSubdenom

func (m *MsgCreateDenom) GetSubdenom() string

func (*MsgCreateDenom) GetSymbol added in v1.47.15

func (m *MsgCreateDenom) GetSymbol() 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

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

func (*MsgCreateDenom) Unmarshal

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

func (MsgCreateDenom) ValidateBasic

func (m MsgCreateDenom) ValidateBasic() error

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 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 It returns the full string of the newly created denom

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"`
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"`
}

MsgMint is the sdk.Msg type for allowing an admin account to mint more of a token. For now, we only support minting to the sender account

func NewMsgMint

func NewMsgMint(sender string, amount sdk.Coin) *MsgMint

NewMsgMint creates a message to mint tokens

func (*MsgMint) Descriptor

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

func (*MsgMint) GetAmount

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

func (*MsgMint) GetSender

func (m *MsgMint) GetSender() string

func (MsgMint) GetSignBytes

func (m MsgMint) GetSignBytes() []byte

func (MsgMint) GetSigners

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

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

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

func (*MsgMint) Unmarshal

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

func (MsgMint) ValidateBasic

func (m MsgMint) ValidateBasic() error

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 {
}

func (*MsgMintResponse) Descriptor

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

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

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 types1.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata" yaml:"metadata"`
}

MsgSetDenomMetadata is the sdk.Msg type for allowing an admin account to set the denom's bank metadata

func NewMsgSetDenomMetadata

func NewMsgSetDenomMetadata(sender string, metadata banktypes.Metadata) *MsgSetDenomMetadata

NewMsgSetDenomMetadata creates a message to set the denom 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

func (MsgSetDenomMetadata) GetSigners

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

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

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

func (*MsgSetDenomMetadata) Unmarshal

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

func (MsgSetDenomMetadata) ValidateBasic

func (m MsgSetDenomMetadata) ValidateBasic() error

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 {
}

MsgSetDenomMetadataResponse defines the response structure for an executed MsgSetDenomMetadata message.

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 MsgUpdateParams added in v1.47.1

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the tokenfactory parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func (*MsgUpdateParams) Descriptor added in v1.47.1

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

func (*MsgUpdateParams) GetAuthority added in v1.47.1

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v1.47.1

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes added in v1.47.1

func (m *MsgUpdateParams) GetSignBytes() []byte

func (MsgUpdateParams) GetSigners added in v1.47.1

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

func (*MsgUpdateParams) Marshal added in v1.47.1

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

func (*MsgUpdateParams) MarshalTo added in v1.47.1

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.47.1

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

func (*MsgUpdateParams) ProtoMessage added in v1.47.1

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.47.1

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route added in v1.47.1

func (m MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size added in v1.47.1

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

func (*MsgUpdateParams) String added in v1.47.1

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type added in v1.47.1

func (m MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal added in v1.47.1

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

func (MsgUpdateParams) ValidateBasic added in v1.47.1

func (m MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.47.1

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

func (*MsgUpdateParams) XXX_Merge added in v1.47.1

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

func (*MsgUpdateParams) XXX_Size added in v1.47.1

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.47.1

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

type MsgUpdateParamsResponse added in v1.47.1

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v1.47.1

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

func (*MsgUpdateParamsResponse) Marshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) MarshalTo added in v1.47.1

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.47.1

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.47.1

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.47.1

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.47.1

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

func (*MsgUpdateParamsResponse) String added in v1.47.1

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.47.1

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

func (*MsgUpdateParamsResponse) XXX_Size added in v1.47.1

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.47.1

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

type Params

type Params struct {
	DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 181-byte string literal not displayed */
}

Params defines the parameters for the tokenfactory module.

func DefaultParams

func DefaultParams() Params

default gamm module parameters.

func NewParams

func NewParams(denomCreationFee sdk.Coins) Params

func (*Params) Descriptor

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

func (*Params) GetDenomCreationFee

func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

Implements params.ParamSet.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

validate params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params defines a gRPC query method that returns the tokenfactory module's
	// parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// DenomAuthorityMetadata defines a gRPC query method for fetching
	// DenomAuthorityMetadata for a particular denom.
	DenomAuthorityMetadata(ctx context.Context, in *QueryDenomAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryDenomAuthorityMetadataResponse, error)
	// DenomsFromCreator defines a gRPC query method for fetching all
	// denominations created by a specific admin/creator.
	DenomsFromCreator(ctx context.Context, in *QueryDenomsFromCreatorRequest, opts ...grpc.CallOption) (*QueryDenomsFromCreatorResponse, error)
	// Retrieves the entire auction module's state
	TokenfactoryModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, 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 QueryDenomAuthorityMetadataRequest

type QueryDenomAuthorityMetadataRequest struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"denom"`
	SubDenom string `protobuf:"bytes,2,opt,name=sub_denom,json=subDenom,proto3" json:"sub_denom,omitempty" yaml:"sub_denom"`
}

QueryDenomAuthorityMetadataRequest defines the request structure for the DenomAuthorityMetadata gRPC query.

func (*QueryDenomAuthorityMetadataRequest) Descriptor

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

func (*QueryDenomAuthorityMetadataRequest) GetCreator

func (*QueryDenomAuthorityMetadataRequest) GetSubDenom

func (m *QueryDenomAuthorityMetadataRequest) GetSubDenom() string

func (*QueryDenomAuthorityMetadataRequest) Marshal

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

func (*QueryDenomAuthorityMetadataRequest) MarshalTo

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

func (*QueryDenomAuthorityMetadataRequest) MarshalToSizedBuffer

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

func (*QueryDenomAuthorityMetadataRequest) ProtoMessage

func (*QueryDenomAuthorityMetadataRequest) ProtoMessage()

func (*QueryDenomAuthorityMetadataRequest) Reset

func (*QueryDenomAuthorityMetadataRequest) Size

func (*QueryDenomAuthorityMetadataRequest) String

func (*QueryDenomAuthorityMetadataRequest) Unmarshal

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

func (*QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown

func (m *QueryDenomAuthorityMetadataRequest) XXX_DiscardUnknown()

func (*QueryDenomAuthorityMetadataRequest) XXX_Marshal

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

func (*QueryDenomAuthorityMetadataRequest) XXX_Merge

func (*QueryDenomAuthorityMetadataRequest) XXX_Size

func (*QueryDenomAuthorityMetadataRequest) XXX_Unmarshal

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

type QueryDenomAuthorityMetadataResponse

type QueryDenomAuthorityMetadataResponse struct {
	AuthorityMetadata DenomAuthorityMetadata `` /* 128-byte string literal not displayed */
}

QueryDenomAuthorityMetadataResponse defines the response structure for the DenomAuthorityMetadata gRPC query.

func (*QueryDenomAuthorityMetadataResponse) Descriptor

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

func (*QueryDenomAuthorityMetadataResponse) GetAuthorityMetadata

func (*QueryDenomAuthorityMetadataResponse) Marshal

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

func (*QueryDenomAuthorityMetadataResponse) MarshalTo

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

func (*QueryDenomAuthorityMetadataResponse) MarshalToSizedBuffer

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

func (*QueryDenomAuthorityMetadataResponse) ProtoMessage

func (*QueryDenomAuthorityMetadataResponse) ProtoMessage()

func (*QueryDenomAuthorityMetadataResponse) Reset

func (*QueryDenomAuthorityMetadataResponse) Size

func (*QueryDenomAuthorityMetadataResponse) String

func (*QueryDenomAuthorityMetadataResponse) Unmarshal

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

func (*QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown

func (m *QueryDenomAuthorityMetadataResponse) XXX_DiscardUnknown()

func (*QueryDenomAuthorityMetadataResponse) XXX_Marshal

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

func (*QueryDenomAuthorityMetadataResponse) XXX_Merge

func (*QueryDenomAuthorityMetadataResponse) XXX_Size

func (*QueryDenomAuthorityMetadataResponse) XXX_Unmarshal

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

type QueryDenomsFromCreatorRequest

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

QueryDenomsFromCreatorRequest defines the request structure for the DenomsFromCreator gRPC query.

func (*QueryDenomsFromCreatorRequest) Descriptor

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

func (*QueryDenomsFromCreatorRequest) GetCreator

func (m *QueryDenomsFromCreatorRequest) GetCreator() string

func (*QueryDenomsFromCreatorRequest) Marshal

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

func (*QueryDenomsFromCreatorRequest) MarshalTo

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

func (*QueryDenomsFromCreatorRequest) MarshalToSizedBuffer

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

func (*QueryDenomsFromCreatorRequest) ProtoMessage

func (*QueryDenomsFromCreatorRequest) ProtoMessage()

func (*QueryDenomsFromCreatorRequest) Reset

func (m *QueryDenomsFromCreatorRequest) Reset()

func (*QueryDenomsFromCreatorRequest) Size

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

func (*QueryDenomsFromCreatorRequest) String

func (*QueryDenomsFromCreatorRequest) Unmarshal

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

func (*QueryDenomsFromCreatorRequest) XXX_DiscardUnknown

func (m *QueryDenomsFromCreatorRequest) XXX_DiscardUnknown()

func (*QueryDenomsFromCreatorRequest) XXX_Marshal

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

func (*QueryDenomsFromCreatorRequest) XXX_Merge

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

func (*QueryDenomsFromCreatorRequest) XXX_Size

func (m *QueryDenomsFromCreatorRequest) XXX_Size() int

func (*QueryDenomsFromCreatorRequest) XXX_Unmarshal

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

type QueryDenomsFromCreatorResponse

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

QueryDenomsFromCreatorRequest defines the response structure for the DenomsFromCreator gRPC query.

func (*QueryDenomsFromCreatorResponse) Descriptor

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

func (*QueryDenomsFromCreatorResponse) GetDenoms

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

func (*QueryDenomsFromCreatorResponse) Marshal

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

func (*QueryDenomsFromCreatorResponse) MarshalTo

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

func (*QueryDenomsFromCreatorResponse) MarshalToSizedBuffer

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

func (*QueryDenomsFromCreatorResponse) ProtoMessage

func (*QueryDenomsFromCreatorResponse) ProtoMessage()

func (*QueryDenomsFromCreatorResponse) Reset

func (m *QueryDenomsFromCreatorResponse) Reset()

func (*QueryDenomsFromCreatorResponse) Size

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

func (*QueryDenomsFromCreatorResponse) String

func (*QueryDenomsFromCreatorResponse) Unmarshal

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

func (*QueryDenomsFromCreatorResponse) XXX_DiscardUnknown

func (m *QueryDenomsFromCreatorResponse) XXX_DiscardUnknown()

func (*QueryDenomsFromCreatorResponse) XXX_Marshal

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

func (*QueryDenomsFromCreatorResponse) XXX_Merge

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

func (*QueryDenomsFromCreatorResponse) XXX_Size

func (m *QueryDenomsFromCreatorResponse) XXX_Size() int

func (*QueryDenomsFromCreatorResponse) XXX_Unmarshal

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

type QueryModuleStateRequest

type QueryModuleStateRequest struct {
}

QueryModuleStateRequest is the request type for the Query/TokenfactoryModuleState RPC method.

func (*QueryModuleStateRequest) Descriptor

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

func (*QueryModuleStateRequest) Marshal

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

func (*QueryModuleStateRequest) MarshalTo

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

func (*QueryModuleStateRequest) MarshalToSizedBuffer

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

func (*QueryModuleStateRequest) ProtoMessage

func (*QueryModuleStateRequest) ProtoMessage()

func (*QueryModuleStateRequest) Reset

func (m *QueryModuleStateRequest) Reset()

func (*QueryModuleStateRequest) Size

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

func (*QueryModuleStateRequest) String

func (m *QueryModuleStateRequest) String() string

func (*QueryModuleStateRequest) Unmarshal

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

func (*QueryModuleStateRequest) XXX_DiscardUnknown

func (m *QueryModuleStateRequest) XXX_DiscardUnknown()

func (*QueryModuleStateRequest) XXX_Marshal

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

func (*QueryModuleStateRequest) XXX_Merge

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

func (*QueryModuleStateRequest) XXX_Size

func (m *QueryModuleStateRequest) XXX_Size() int

func (*QueryModuleStateRequest) XXX_Unmarshal

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

type QueryModuleStateResponse

type QueryModuleStateResponse struct {
	State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}

QueryModuleStateResponse is the response type for the Query/TokenfactoryModuleState RPC method.

func (*QueryModuleStateResponse) Descriptor

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

func (*QueryModuleStateResponse) GetState

func (m *QueryModuleStateResponse) GetState() *GenesisState

func (*QueryModuleStateResponse) Marshal

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

func (*QueryModuleStateResponse) MarshalTo

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

func (*QueryModuleStateResponse) MarshalToSizedBuffer

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

func (*QueryModuleStateResponse) ProtoMessage

func (*QueryModuleStateResponse) ProtoMessage()

func (*QueryModuleStateResponse) Reset

func (m *QueryModuleStateResponse) Reset()

func (*QueryModuleStateResponse) Size

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

func (*QueryModuleStateResponse) String

func (m *QueryModuleStateResponse) String() string

func (*QueryModuleStateResponse) Unmarshal

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

func (*QueryModuleStateResponse) XXX_DiscardUnknown

func (m *QueryModuleStateResponse) XXX_DiscardUnknown()

func (*QueryModuleStateResponse) XXX_Marshal

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

func (*QueryModuleStateResponse) XXX_Merge

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

func (*QueryModuleStateResponse) XXX_Size

func (m *QueryModuleStateResponse) XXX_Size() int

func (*QueryModuleStateResponse) XXX_Unmarshal

func (m *QueryModuleStateResponse) 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 {
	// params defines the parameters of the module.
	Params Params `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() Params

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 defines a gRPC query method that returns the tokenfactory module's
	// parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// DenomAuthorityMetadata defines a gRPC query method for fetching
	// DenomAuthorityMetadata for a particular denom.
	DenomAuthorityMetadata(context.Context, *QueryDenomAuthorityMetadataRequest) (*QueryDenomAuthorityMetadataResponse, error)
	// DenomsFromCreator defines a gRPC query method for fetching all
	// denominations created by a specific admin/creator.
	DenomsFromCreator(context.Context, *QueryDenomsFromCreatorRequest) (*QueryDenomsFromCreatorResponse, error)
	// Retrieves the entire auction module's state
	TokenfactoryModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) ChangeAdmin

func (*UnimplementedMsgServer) CreateDenom

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) SetDenomMetadata

func (*UnimplementedMsgServer) UpdateParams added in v1.47.1

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DenomsFromCreator

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TokenfactoryModuleState

type UpdateDenomsMetadataProposal added in v1.51.0

type UpdateDenomsMetadataProposal struct {
	Title       string           `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string           `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadatas   []types.Metadata `protobuf:"bytes,3,rep,name=metadatas,proto3" json:"metadatas"`
	Deposit     string           `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"`
}

func (*UpdateDenomsMetadataProposal) Descriptor added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) GetDescription added in v1.51.0

func (p *UpdateDenomsMetadataProposal) GetDescription() string

func (*UpdateDenomsMetadataProposal) GetTitle added in v1.51.0

func (p *UpdateDenomsMetadataProposal) GetTitle() string

func (*UpdateDenomsMetadataProposal) Marshal added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) MarshalTo added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) MarshalToSizedBuffer added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) ProposalRoute added in v1.51.0

func (p *UpdateDenomsMetadataProposal) ProposalRoute() string

func (*UpdateDenomsMetadataProposal) ProposalType added in v1.51.0

func (p *UpdateDenomsMetadataProposal) ProposalType() string

func (*UpdateDenomsMetadataProposal) ProtoMessage added in v1.51.0

func (*UpdateDenomsMetadataProposal) ProtoMessage()

func (*UpdateDenomsMetadataProposal) Reset added in v1.51.0

func (m *UpdateDenomsMetadataProposal) Reset()

func (*UpdateDenomsMetadataProposal) Size added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) String added in v1.51.0

func (*UpdateDenomsMetadataProposal) Unmarshal added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) ValidateBasic added in v1.51.0

func (p *UpdateDenomsMetadataProposal) ValidateBasic() error

func (*UpdateDenomsMetadataProposal) XXX_DiscardUnknown added in v1.51.0

func (m *UpdateDenomsMetadataProposal) XXX_DiscardUnknown()

func (*UpdateDenomsMetadataProposal) XXX_Marshal added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) XXX_Merge added in v1.51.0

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

func (*UpdateDenomsMetadataProposal) XXX_Size added in v1.51.0

func (m *UpdateDenomsMetadataProposal) XXX_Size() int

func (*UpdateDenomsMetadataProposal) XXX_Unmarshal added in v1.51.0

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

Jump to

Keyboard shortcuts

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