Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DeconstructDenom(denom string) (creator string, subdenom string, err error)
- func GetCreatorPrefix(creator string) []byte
- func GetCreatorsPrefix() []byte
- func GetDenomPrefixStore(denom string) []byte
- func GetTokenDenom(creator, subdenom string) (string, error)
- func NewTokenFactoryDenomMintCoinsRestriction() bankkeeper.MintingRestrictionFn
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type DenomAuthorityMetadata
- func (*DenomAuthorityMetadata) Descriptor() ([]byte, []int)
- func (this *DenomAuthorityMetadata) Equal(that interface{}) bool
- func (m *DenomAuthorityMetadata) GetAdmin() string
- func (m *DenomAuthorityMetadata) Marshal() (dAtA []byte, err error)
- func (m *DenomAuthorityMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomAuthorityMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomAuthorityMetadata) ProtoMessage()
- func (m *DenomAuthorityMetadata) Reset()
- func (m *DenomAuthorityMetadata) Size() (n int)
- func (m *DenomAuthorityMetadata) String() string
- func (m *DenomAuthorityMetadata) Unmarshal(dAtA []byte) error
- func (metadata DenomAuthorityMetadata) Validate() error
- func (m *DenomAuthorityMetadata) XXX_DiscardUnknown()
- func (m *DenomAuthorityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomAuthorityMetadata) XXX_Merge(src proto.Message)
- func (m *DenomAuthorityMetadata) XXX_Size() int
- func (m *DenomAuthorityMetadata) XXX_Unmarshal(b []byte) error
- type GenesisDenom
- func (*GenesisDenom) Descriptor() ([]byte, []int)
- func (this *GenesisDenom) Equal(that interface{}) bool
- func (m *GenesisDenom) GetAuthorityMetadata() DenomAuthorityMetadata
- func (m *GenesisDenom) GetDenom() string
- func (m *GenesisDenom) Marshal() (dAtA []byte, err error)
- func (m *GenesisDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisDenom) ProtoMessage()
- func (m *GenesisDenom) Reset()
- func (m *GenesisDenom) Size() (n int)
- func (m *GenesisDenom) String() string
- func (m *GenesisDenom) Unmarshal(dAtA []byte) error
- func (m *GenesisDenom) XXX_DiscardUnknown()
- func (m *GenesisDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisDenom) XXX_Merge(src proto.Message)
- func (m *GenesisDenom) XXX_Size() int
- func (m *GenesisDenom) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFactoryDenoms() []GenesisDenom
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (m *MsgBurn) GetAmount() types.Coin
- func (m *MsgBurn) GetSender() string
- func (msg MsgBurn) GetSignBytes() []byte
- func (msg MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) GetSubspaceID() uint64
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (msg MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (msg MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (msg MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateDenom
- func (*MsgCreateDenom) Descriptor() ([]byte, []int)
- func (m *MsgCreateDenom) GetSender() string
- func (msg MsgCreateDenom) GetSignBytes() []byte
- func (msg MsgCreateDenom) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDenom) GetSubdenom() string
- func (m *MsgCreateDenom) GetSubspaceID() uint64
- func (m *MsgCreateDenom) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDenom) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDenom) ProtoMessage()
- func (m *MsgCreateDenom) Reset()
- func (msg MsgCreateDenom) Route() string
- func (m *MsgCreateDenom) Size() (n int)
- func (m *MsgCreateDenom) String() string
- func (msg MsgCreateDenom) Type() string
- func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error
- func (msg MsgCreateDenom) ValidateBasic() error
- func (m *MsgCreateDenom) XXX_DiscardUnknown()
- func (m *MsgCreateDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDenom) XXX_Merge(src proto.Message)
- func (m *MsgCreateDenom) XXX_Size() int
- func (m *MsgCreateDenom) XXX_Unmarshal(b []byte) error
- type MsgCreateDenomResponse
- func (*MsgCreateDenomResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDenomResponse) GetNewTokenDenom() string
- func (m *MsgCreateDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDenomResponse) ProtoMessage()
- func (m *MsgCreateDenomResponse) Reset()
- func (m *MsgCreateDenomResponse) Size() (n int)
- func (m *MsgCreateDenomResponse) String() string
- func (m *MsgCreateDenomResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDenomResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDenomResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDenomResponse) XXX_Size() int
- func (m *MsgCreateDenomResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmount() types.Coin
- func (m *MsgMint) GetSender() string
- func (msg MsgMint) GetSignBytes() []byte
- func (msg MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) GetSubspaceID() uint64
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetDenomMetadata
- func (*MsgSetDenomMetadata) Descriptor() ([]byte, []int)
- func (m *MsgSetDenomMetadata) GetMetadata() types1.Metadata
- func (m *MsgSetDenomMetadata) GetSender() string
- func (msg MsgSetDenomMetadata) GetSignBytes() []byte
- func (msg MsgSetDenomMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgSetDenomMetadata) GetSubspaceID() uint64
- func (m *MsgSetDenomMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDenomMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDenomMetadata) ProtoMessage()
- func (m *MsgSetDenomMetadata) Reset()
- func (msg MsgSetDenomMetadata) Route() string
- func (m *MsgSetDenomMetadata) Size() (n int)
- func (m *MsgSetDenomMetadata) String() string
- func (msg MsgSetDenomMetadata) Type() string
- func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error
- func (msg MsgSetDenomMetadata) ValidateBasic() error
- func (m *MsgSetDenomMetadata) XXX_DiscardUnknown()
- func (m *MsgSetDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDenomMetadata) XXX_Merge(src proto.Message)
- func (m *MsgSetDenomMetadata) XXX_Size() int
- func (m *MsgSetDenomMetadata) XXX_Unmarshal(b []byte) error
- type MsgSetDenomMetadataResponse
- func (*MsgSetDenomMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetDenomMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetDenomMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetDenomMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetDenomMetadataResponse) ProtoMessage()
- func (m *MsgSetDenomMetadataResponse) Reset()
- func (m *MsgSetDenomMetadataResponse) Size() (n int)
- func (m *MsgSetDenomMetadataResponse) String() string
- func (m *MsgSetDenomMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetDenomMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgSetDenomMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetDenomMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetDenomMetadataResponse) XXX_Size() int
- func (m *MsgSetDenomMetadataResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg MsgUpdateParams) GetSignBytes() []byte
- func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySubspaceDenomsRequest
- func (*QuerySubspaceDenomsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubspaceDenomsRequest) GetSubspaceId() uint64
- func (m *QuerySubspaceDenomsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspaceDenomsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspaceDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspaceDenomsRequest) ProtoMessage()
- func (m *QuerySubspaceDenomsRequest) Reset()
- func (m *QuerySubspaceDenomsRequest) Size() (n int)
- func (m *QuerySubspaceDenomsRequest) String() string
- func (m *QuerySubspaceDenomsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubspaceDenomsRequest) XXX_DiscardUnknown()
- func (m *QuerySubspaceDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspaceDenomsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubspaceDenomsRequest) XXX_Size() int
- func (m *QuerySubspaceDenomsRequest) XXX_Unmarshal(b []byte) error
- type QuerySubspaceDenomsResponse
- func (*QuerySubspaceDenomsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubspaceDenomsResponse) GetDenoms() []string
- func (m *QuerySubspaceDenomsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspaceDenomsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspaceDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspaceDenomsResponse) ProtoMessage()
- func (m *QuerySubspaceDenomsResponse) Reset()
- func (m *QuerySubspaceDenomsResponse) Size() (n int)
- func (m *QuerySubspaceDenomsResponse) String() string
- func (m *QuerySubspaceDenomsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubspaceDenomsResponse) XXX_DiscardUnknown()
- func (m *QuerySubspaceDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspaceDenomsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubspaceDenomsResponse) XXX_Size() int
- func (m *QuerySubspaceDenomsResponse) XXX_Unmarshal(b []byte) error
- type SubspacesKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) CreateDenom(ctx context.Context, req *MsgCreateDenom) (*MsgCreateDenomResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
Constants ¶
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 )
const ( EventTypeCreateDenom = "create_denom" EventTypeMint = "tf_mint" EventTypeBurn = "tf_burn" EventTypeSetDenomMetadata = "set_denom_metadata" AttributeValueCategory = ModuleName AttributeKeySubspaceID = "subspace_id" AttributeAmount = "amount" AttributeCreator = "creator" AttributeSubdenom = "subdenom" AttributeNewTokenDenom = "new_token_denom" AttributeMintToAddress = "mint_to_address" AttributeBurnFromAddress = "burn_from_address" AttributeDenom = "denom" AttributeDenomMetadata = "denom_metadata" )
const ( ModuleName = "tokenfactory" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName ActionCreateDenom = "create_denom" ActionMint = "tf_mint" ActionBurn = "tf_burn" ActionSetDenomMetadata = "set_denom_metadata" ActionUpdateParams = "update_params" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const KeySeparator = "|"
KeySeparator is used to combine parts of the keys in the store
Variables ¶
var ( ErrDenomExists = errors.Register(ModuleName, 2, "attempting to create a denom that already exists (has bank metadata)") 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)) ErrCreatorTooLong = errors.Register(ModuleName, 9, fmt.Sprintf("creator too long, max length is %d bytes", MaxCreatorLength)) ErrDenomDoesNotExist = errors.Register(ModuleName, 10, "denom does not exist") )
x/tokenfactory module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( DenomAuthorityMetadataKey = "authoritymetadata" DenomsPrefixKey = "denoms" CreatorPrefixKey = "creator" ParamsPrefixKey = "params" )
var ( ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( // AminoCdc references the global x/tokenfactory module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/tokenfactory and // defined at the application level. AminoCdc = codec.NewAminoCodec(amino) )
var ( // PermissionManageSubspaceTokens allows users to manage subspace tokens PermissionManageSubspaceTokens = subspacestypes.RegisterPermission("manage custom subspace tokens") )
Functions ¶
func DeconstructDenom ¶
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 ¶
GetCreatorsPrefix 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 ¶
GetDenomPrefixStore returns the store prefix where all the data associated with a specific denom is stored
func GetTokenDenom ¶
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() bankkeeper.MintingRestrictionFn
NewTokenFactoryDenomMintCoinsRestriction creates and returns a MintingRestrictionFn that only allows minting of valid tokenfactory denoms
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI }
AccountKeeper represents a keeper that deals with x/auth
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) HasSupply(ctx sdk.Context, denom string) 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 }
BankKeeper represents a keeper that deals with x/bank
type DenomAuthorityMetadata ¶
type DenomAuthorityMetadata struct { // Admin of the denomination. // Can be empty for no admin, or a valid Desmos address Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"` }
DenomAuthorityMetadata contains the metadata for a single token denom.
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
Validate implements fmt.Validator
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 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 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) GetDenom ¶
func (m *GenesisDenom) GetDenom() string
func (*GenesisDenom) Marshal ¶
func (m *GenesisDenom) Marshal() (dAtA []byte, err 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 paramaters 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) 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 { // Id of the subspace which manages the denom SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Address of user having the permission to manage subspace denoms Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Amount of the burning subspace tokens Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` }
MsgBurn represents the message to be used to burn subspace tokens from treasury account
Since: Desmos 6.0.0
func NewMsgBurn ¶
NewMsgCreateDenom creates a new MsgBurn instance
func (*MsgBurn) Descriptor ¶
func (MsgBurn) GetSignBytes ¶
GetSignBytes implements legacytx.LegacyMsg
func (MsgBurn) GetSigners ¶
func (msg MsgBurn) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgBurn) GetSubspaceID ¶
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (MsgBurn) ValidateBasic ¶
ValidateBasic implements sdk.Msg
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
MsgBurnResponse represents the Msg/Burn response type
Since: Desmos 6.0.0
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err 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 MsgClient ¶
type MsgClient interface { // CreateDenom allows an account to create a new denom for subspace. It // requires a subspace and a sub denomination. The (subspace_treasury_address, // sub_denomination) tuple must be unique and cannot be re-used. // // The resulting denom created is defined as // <factory/{treasuryAddress}/{subdenom}>. The resulting denom's admin is // originally set to be the subspace treasury account, and this can not be // changed later. // // Since: Desmos 6.0.0 CreateDenom(ctx context.Context, in *MsgCreateDenom, opts ...grpc.CallOption) (*MsgCreateDenomResponse, error) // Mint allows subspace admins to mint more of a token. // // Since: Desmos 6.0.0 Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) // Burn allows subspace admins to burn a token. // For now, we only support burning from the treasury account. // // Since: Desmos 6.0.0 Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) // SetDenomMetadata allows subspace admins to set the denom's bank metadata. // // Since: Desmos 6.0.0 SetDenomMetadata(ctx context.Context, in *MsgSetDenomMetadata, opts ...grpc.CallOption) (*MsgSetDenomMetadataResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. // // Since: Desmos 6.0.0 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 { // Id of the subspace which manages the denom SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Address of user having the permission to manage subspace denoms Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Subdenom name of the creating denom // It can be up to 44 "alphanumeric" characters long Subdenom string `protobuf:"bytes,3,opt,name=subdenom,proto3" json:"subdenom,omitempty" yaml:"subdenom"` }
MsgCreateDenom represents the message to be used to create a denom for subspace
Since: Desmos 6.0.0
func NewMsgCreateDenom ¶
func NewMsgCreateDenom(subspaceID uint64, sender, subdenom string) *MsgCreateDenom
NewMsgCreateDenom creates a new MsgCreateDenom instance
func (*MsgCreateDenom) Descriptor ¶
func (*MsgCreateDenom) Descriptor() ([]byte, []int)
func (*MsgCreateDenom) GetSender ¶
func (m *MsgCreateDenom) GetSender() string
func (MsgCreateDenom) GetSignBytes ¶
func (msg MsgCreateDenom) GetSignBytes() []byte
GetSignBytes implements legacytx.LegacyMsg
func (MsgCreateDenom) GetSigners ¶
func (msg MsgCreateDenom) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateDenom) GetSubdenom ¶
func (m *MsgCreateDenom) GetSubdenom() string
func (*MsgCreateDenom) GetSubspaceID ¶
func (m *MsgCreateDenom) GetSubspaceID() uint64
func (*MsgCreateDenom) Marshal ¶
func (m *MsgCreateDenom) Marshal() (dAtA []byte, err 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 (msg MsgCreateDenom) Route() string
Route implements legacytx.LegacyMsg
func (*MsgCreateDenom) Size ¶
func (m *MsgCreateDenom) Size() (n int)
func (*MsgCreateDenom) String ¶
func (m *MsgCreateDenom) String() string
func (MsgCreateDenom) Type ¶
func (msg MsgCreateDenom) Type() string
Type implements legacytx.LegacyMsg
func (*MsgCreateDenom) Unmarshal ¶
func (m *MsgCreateDenom) Unmarshal(dAtA []byte) error
func (MsgCreateDenom) ValidateBasic ¶
func (msg MsgCreateDenom) ValidateBasic() error
ValidateBasic implements 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 { // Name of the newly created denom NewTokenDenom string `protobuf:"bytes,1,opt,name=new_token_denom,json=newTokenDenom,proto3" json:"new_token_denom,omitempty" yaml:"new_token_denom"` }
MsgCreateDenomResponse represents the Msg/CreateDenom response type 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 { // Id of the subspace which manages the denom SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Address of user having the permission to manage subspace denoms Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Amount of the minting subspace tokens Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` }
MsgMint represents the message to be used to mint subspace tokens to treasury account
Since: Desmos 6.0.0
func NewMsgMint ¶
NewMsgMint creates a new MsgMint instance
func (*MsgMint) Descriptor ¶
func (MsgMint) GetSignBytes ¶
MsgMint implements legacytx.LegacyMsg
func (MsgMint) GetSigners ¶
func (msg MsgMint) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMint) GetSubspaceID ¶
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (MsgMint) ValidateBasic ¶
ValidateBasic implements sdk.Msg
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
MsgMintResponse represents the Msg/Mint response type
Since: Desmos 6.0.0
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err 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 allows an account to create a new denom for subspace. It // requires a subspace and a sub denomination. The (subspace_treasury_address, // sub_denomination) tuple must be unique and cannot be re-used. // // The resulting denom created is defined as // <factory/{treasuryAddress}/{subdenom}>. The resulting denom's admin is // originally set to be the subspace treasury account, and this can not be // changed later. // // Since: Desmos 6.0.0 CreateDenom(context.Context, *MsgCreateDenom) (*MsgCreateDenomResponse, error) // Mint allows subspace admins to mint more of a token. // // Since: Desmos 6.0.0 Mint(context.Context, *MsgMint) (*MsgMintResponse, error) // Burn allows subspace admins to burn a token. // For now, we only support burning from the treasury account. // // Since: Desmos 6.0.0 Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) // SetDenomMetadata allows subspace admins to set the denom's bank metadata. // // Since: Desmos 6.0.0 SetDenomMetadata(context.Context, *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. // // Since: Desmos 6.0.0 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetDenomMetadata ¶
type MsgSetDenomMetadata struct { // Id of the subspace which manages the denom SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Address of user having the permission to manage subspace denoms Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Metadata of the denom Metadata types1.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata" yaml:"metadata"` }
MsgSetDenomMetadata represents the message to be used to set the subspace token's bank metadata
Since: Desmos 6.0.0
func NewMsgSetDenomMetadata ¶
func NewMsgSetDenomMetadata(subspaceID uint64, sender string, metadata banktypes.Metadata) *MsgSetDenomMetadata
NewMsgCreateDenom creates a new MsgSetDenomMetadata instance
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 (msg MsgSetDenomMetadata) GetSignBytes() []byte
GetSignBytes implements legacytx.LegacyMsg
func (MsgSetDenomMetadata) GetSigners ¶
func (msg MsgSetDenomMetadata) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSetDenomMetadata) GetSubspaceID ¶
func (m *MsgSetDenomMetadata) GetSubspaceID() uint64
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 (msg MsgSetDenomMetadata) Route() string
Route implements legacytx.LegacyMsg
func (*MsgSetDenomMetadata) Size ¶
func (m *MsgSetDenomMetadata) Size() (n int)
func (*MsgSetDenomMetadata) String ¶
func (m *MsgSetDenomMetadata) String() string
func (MsgSetDenomMetadata) Type ¶
func (msg MsgSetDenomMetadata) Type() string
Type implements legacytx.LegacyMsg
func (*MsgSetDenomMetadata) Unmarshal ¶
func (m *MsgSetDenomMetadata) Unmarshal(dAtA []byte) error
func (MsgSetDenomMetadata) ValidateBasic ¶
func (msg MsgSetDenomMetadata) ValidateBasic() error
ValidateBasic implements 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 { }
MsgSetDenomMetadataResponse represents the Msg/SetDenomMetadata response type
Since: Desmos 6.0.0
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 ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"` // params defines the parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: Desmos 6.0.0
func NewMsgUpdateParams ¶
func NewMsgUpdateParams(params Params, authority string) *MsgUpdateParams
NewMsgUpdateParams creates a new MsgUpdateParams instance
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶
func (msg MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements legacytx.LegacyMsg
func (MsgUpdateParams) GetSigners ¶
func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (MsgUpdateParams) Route ¶
func (msg MsgUpdateParams) Route() string
Route implements legacytx.LegacyMsg
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (MsgUpdateParams) Type ¶
func (msg MsgUpdateParams) Type() string
Type implements legacytx.LegacyMsg
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (MsgUpdateParams) ValidateBasic ¶
func (msg MsgUpdateParams) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse represents the Msg/UpdateParams response type
Since: Desmos 6.0.0
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // DenomCreationFee defines the fee to be charged on the creation of a new // denom. The fee is drawn from the subspace treasury account, and // burned. DenomCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 181-byte string literal not displayed */ }
Params defines the parameters for the tokenfactory module.
Since: Desmos 6.0.0
func (*Params) Descriptor ¶
func (*Params) GetDenomCreationFee ¶
func (m *Params) GetDenomCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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) // SubspaceDenoms defines a gRPC query method for fetching all // denominations created by a specific subspace. SubspaceDenoms(ctx context.Context, in *QuerySubspaceDenomsRequest, opts ...grpc.CallOption) (*QuerySubspaceDenomsResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func NewQueryParamsRequest ¶
func NewQueryParamsRequest() *QueryParamsRequest
NewQueryParamsRequest returns a new QueryParamsRequest instance
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) // SubspaceDenoms defines a gRPC query method for fetching all // denominations created by a specific subspace. SubspaceDenoms(context.Context, *QuerySubspaceDenomsRequest) (*QuerySubspaceDenomsResponse, error) }
QueryServer is the server API for Query service.
type QuerySubspaceDenomsRequest ¶
type QuerySubspaceDenomsRequest struct {
SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"creator"`
}
QuerySubspaceDenomsRequest defines the request structure for the SubspaceDenoms gRPC query.
func NewQuerySubspaceDenomsRequest ¶
func NewQuerySubspaceDenomsRequest(subspaceID uint64) *QuerySubspaceDenomsRequest
NewQuerySubspaceDenomsRequest returns a new QuerySubspaceDenomsRequest instance
func (*QuerySubspaceDenomsRequest) Descriptor ¶
func (*QuerySubspaceDenomsRequest) Descriptor() ([]byte, []int)
func (*QuerySubspaceDenomsRequest) GetSubspaceId ¶
func (m *QuerySubspaceDenomsRequest) GetSubspaceId() uint64
func (*QuerySubspaceDenomsRequest) Marshal ¶
func (m *QuerySubspaceDenomsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubspaceDenomsRequest) MarshalTo ¶
func (m *QuerySubspaceDenomsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspaceDenomsRequest) MarshalToSizedBuffer ¶
func (m *QuerySubspaceDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspaceDenomsRequest) ProtoMessage ¶
func (*QuerySubspaceDenomsRequest) ProtoMessage()
func (*QuerySubspaceDenomsRequest) Reset ¶
func (m *QuerySubspaceDenomsRequest) Reset()
func (*QuerySubspaceDenomsRequest) Size ¶
func (m *QuerySubspaceDenomsRequest) Size() (n int)
func (*QuerySubspaceDenomsRequest) String ¶
func (m *QuerySubspaceDenomsRequest) String() string
func (*QuerySubspaceDenomsRequest) Unmarshal ¶
func (m *QuerySubspaceDenomsRequest) Unmarshal(dAtA []byte) error
func (*QuerySubspaceDenomsRequest) XXX_DiscardUnknown ¶
func (m *QuerySubspaceDenomsRequest) XXX_DiscardUnknown()
func (*QuerySubspaceDenomsRequest) XXX_Marshal ¶
func (m *QuerySubspaceDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspaceDenomsRequest) XXX_Merge ¶
func (m *QuerySubspaceDenomsRequest) XXX_Merge(src proto.Message)
func (*QuerySubspaceDenomsRequest) XXX_Size ¶
func (m *QuerySubspaceDenomsRequest) XXX_Size() int
func (*QuerySubspaceDenomsRequest) XXX_Unmarshal ¶
func (m *QuerySubspaceDenomsRequest) XXX_Unmarshal(b []byte) error
type QuerySubspaceDenomsResponse ¶
type QuerySubspaceDenomsResponse struct {
Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"`
}
QuerySubspaceDenomsResponse defines the response structure for the SubspaceDenoms gRPC query.
func (*QuerySubspaceDenomsResponse) Descriptor ¶
func (*QuerySubspaceDenomsResponse) Descriptor() ([]byte, []int)
func (*QuerySubspaceDenomsResponse) GetDenoms ¶
func (m *QuerySubspaceDenomsResponse) GetDenoms() []string
func (*QuerySubspaceDenomsResponse) Marshal ¶
func (m *QuerySubspaceDenomsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubspaceDenomsResponse) MarshalTo ¶
func (m *QuerySubspaceDenomsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspaceDenomsResponse) MarshalToSizedBuffer ¶
func (m *QuerySubspaceDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspaceDenomsResponse) ProtoMessage ¶
func (*QuerySubspaceDenomsResponse) ProtoMessage()
func (*QuerySubspaceDenomsResponse) Reset ¶
func (m *QuerySubspaceDenomsResponse) Reset()
func (*QuerySubspaceDenomsResponse) Size ¶
func (m *QuerySubspaceDenomsResponse) Size() (n int)
func (*QuerySubspaceDenomsResponse) String ¶
func (m *QuerySubspaceDenomsResponse) String() string
func (*QuerySubspaceDenomsResponse) Unmarshal ¶
func (m *QuerySubspaceDenomsResponse) Unmarshal(dAtA []byte) error
func (*QuerySubspaceDenomsResponse) XXX_DiscardUnknown ¶
func (m *QuerySubspaceDenomsResponse) XXX_DiscardUnknown()
func (*QuerySubspaceDenomsResponse) XXX_Marshal ¶
func (m *QuerySubspaceDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspaceDenomsResponse) XXX_Merge ¶
func (m *QuerySubspaceDenomsResponse) XXX_Merge(src proto.Message)
func (*QuerySubspaceDenomsResponse) XXX_Size ¶
func (m *QuerySubspaceDenomsResponse) XXX_Size() int
func (*QuerySubspaceDenomsResponse) XXX_Unmarshal ¶
func (m *QuerySubspaceDenomsResponse) XXX_Unmarshal(b []byte) error
type SubspacesKeeper ¶
type SubspacesKeeper interface { GetAllSubspaces(ctx sdk.Context) []subspacestypes.Subspace GetSubspace(ctx sdk.Context, subspaceID uint64) (subspace subspacestypes.Subspace, found bool) HasPermission(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permission subspacestypes.Permission) bool GetUsersWithRootPermissions(ctx sdk.Context, subspaceID uint64, permission subspacestypes.Permissions) []string }
SubspacesKeeper represents a keeper that deals with x/subspaces
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) CreateDenom ¶
func (*UnimplementedMsgServer) CreateDenom(ctx context.Context, req *MsgCreateDenom) (*MsgCreateDenomResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) SetDenomMetadata ¶
func (*UnimplementedMsgServer) SetDenomMetadata(ctx context.Context, req *MsgSetDenomMetadata) (*MsgSetDenomMetadataResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SubspaceDenoms ¶
func (*UnimplementedQueryServer) SubspaceDenoms(ctx context.Context, req *QuerySubspaceDenomsRequest) (*QuerySubspaceDenomsResponse, error)