Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.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)
- func ValidateAssets(as []Asset) error
- type AccountKeeper
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetBlockable() bool
- func (m *Asset) GetBlockedAddresses() []string
- func (m *Asset) GetDenom() string
- func (m *Asset) GetOwner() string
- func (m *Asset) GetPaused() bool
- func (m *Asset) GetRateLimit() RateLimit
- func (m *Asset) Marshal() (dAtA []byte, err error)
- func (m *Asset) MarshalTo(dAtA []byte) (int, error)
- func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) Size() (n int)
- func (a Asset) String() string
- func (m *Asset) Unmarshal(dAtA []byte) error
- func (a Asset) Validate() error
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type AssetSupply
- func (*AssetSupply) Descriptor() ([]byte, []int)
- func (m *AssetSupply) GetCurrentSupply() types.Coin
- func (a AssetSupply) GetDenom() string
- func (m *AssetSupply) GetTimeElapsed() time.Duration
- func (m *AssetSupply) Marshal() (dAtA []byte, err error)
- func (m *AssetSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetSupply) ProtoMessage()
- func (m *AssetSupply) Reset()
- func (m *AssetSupply) Size() (n int)
- func (a AssetSupply) String() string
- func (m *AssetSupply) Unmarshal(dAtA []byte) error
- func (a AssetSupply) Validate() error
- func (m *AssetSupply) XXX_DiscardUnknown()
- func (m *AssetSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetSupply) XXX_Merge(src proto.Message)
- func (m *AssetSupply) XXX_Size() int
- func (m *AssetSupply) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSupplies() []AssetSupply
- 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 MsgBlockAddress
- func (*MsgBlockAddress) Descriptor() ([]byte, []int)
- func (msg MsgBlockAddress) GetSignBytes() []byte
- func (msg MsgBlockAddress) GetSigners() []sdk.AccAddress
- func (m *MsgBlockAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockAddress) ProtoMessage()
- func (m *MsgBlockAddress) Reset()
- func (msg MsgBlockAddress) Route() string
- func (m *MsgBlockAddress) Size() (n int)
- func (m *MsgBlockAddress) String() string
- func (msg MsgBlockAddress) Type() string
- func (m *MsgBlockAddress) Unmarshal(dAtA []byte) error
- func (msg MsgBlockAddress) ValidateBasic() error
- func (m *MsgBlockAddress) XXX_DiscardUnknown()
- func (m *MsgBlockAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockAddress) XXX_Merge(src proto.Message)
- func (m *MsgBlockAddress) XXX_Size() int
- func (m *MsgBlockAddress) XXX_Unmarshal(b []byte) error
- type MsgBlockAddressResponse
- func (*MsgBlockAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgBlockAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockAddressResponse) ProtoMessage()
- func (m *MsgBlockAddressResponse) Reset()
- func (m *MsgBlockAddressResponse) Size() (n int)
- func (m *MsgBlockAddressResponse) String() string
- func (m *MsgBlockAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBlockAddressResponse) XXX_DiscardUnknown()
- func (m *MsgBlockAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgBlockAddressResponse) XXX_Size() int
- func (m *MsgBlockAddressResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgIssueTokens
- func (*MsgIssueTokens) Descriptor() ([]byte, []int)
- func (msg MsgIssueTokens) GetSignBytes() []byte
- func (msg MsgIssueTokens) GetSigners() []sdk.AccAddress
- func (m *MsgIssueTokens) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueTokens) ProtoMessage()
- func (m *MsgIssueTokens) Reset()
- func (msg MsgIssueTokens) Route() string
- func (m *MsgIssueTokens) Size() (n int)
- func (m *MsgIssueTokens) String() string
- func (msg MsgIssueTokens) Type() string
- func (m *MsgIssueTokens) Unmarshal(dAtA []byte) error
- func (msg MsgIssueTokens) ValidateBasic() error
- func (m *MsgIssueTokens) XXX_DiscardUnknown()
- func (m *MsgIssueTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueTokens) XXX_Merge(src proto.Message)
- func (m *MsgIssueTokens) XXX_Size() int
- func (m *MsgIssueTokens) XXX_Unmarshal(b []byte) error
- type MsgIssueTokensResponse
- func (*MsgIssueTokensResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueTokensResponse) ProtoMessage()
- func (m *MsgIssueTokensResponse) Reset()
- func (m *MsgIssueTokensResponse) Size() (n int)
- func (m *MsgIssueTokensResponse) String() string
- func (m *MsgIssueTokensResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueTokensResponse) XXX_DiscardUnknown()
- func (m *MsgIssueTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueTokensResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueTokensResponse) XXX_Size() int
- func (m *MsgIssueTokensResponse) XXX_Unmarshal(b []byte) error
- type MsgRedeemTokens
- func (*MsgRedeemTokens) Descriptor() ([]byte, []int)
- func (msg MsgRedeemTokens) GetSignBytes() []byte
- func (msg MsgRedeemTokens) GetSigners() []sdk.AccAddress
- func (m *MsgRedeemTokens) Marshal() (dAtA []byte, err error)
- func (m *MsgRedeemTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedeemTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedeemTokens) ProtoMessage()
- func (m *MsgRedeemTokens) Reset()
- func (msg MsgRedeemTokens) Route() string
- func (m *MsgRedeemTokens) Size() (n int)
- func (m *MsgRedeemTokens) String() string
- func (msg MsgRedeemTokens) Type() string
- func (m *MsgRedeemTokens) Unmarshal(dAtA []byte) error
- func (msg MsgRedeemTokens) ValidateBasic() error
- func (m *MsgRedeemTokens) XXX_DiscardUnknown()
- func (m *MsgRedeemTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedeemTokens) XXX_Merge(src proto.Message)
- func (m *MsgRedeemTokens) XXX_Size() int
- func (m *MsgRedeemTokens) XXX_Unmarshal(b []byte) error
- type MsgRedeemTokensResponse
- func (*MsgRedeemTokensResponse) Descriptor() ([]byte, []int)
- func (m *MsgRedeemTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRedeemTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRedeemTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRedeemTokensResponse) ProtoMessage()
- func (m *MsgRedeemTokensResponse) Reset()
- func (m *MsgRedeemTokensResponse) Size() (n int)
- func (m *MsgRedeemTokensResponse) String() string
- func (m *MsgRedeemTokensResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRedeemTokensResponse) XXX_DiscardUnknown()
- func (m *MsgRedeemTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRedeemTokensResponse) XXX_Merge(src proto.Message)
- func (m *MsgRedeemTokensResponse) XXX_Size() int
- func (m *MsgRedeemTokensResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetPauseStatus
- func (*MsgSetPauseStatus) Descriptor() ([]byte, []int)
- func (msg MsgSetPauseStatus) GetSignBytes() []byte
- func (msg MsgSetPauseStatus) GetSigners() []sdk.AccAddress
- func (m *MsgSetPauseStatus) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPauseStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPauseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPauseStatus) ProtoMessage()
- func (m *MsgSetPauseStatus) Reset()
- func (msg MsgSetPauseStatus) Route() string
- func (m *MsgSetPauseStatus) Size() (n int)
- func (m *MsgSetPauseStatus) String() string
- func (msg MsgSetPauseStatus) Type() string
- func (m *MsgSetPauseStatus) Unmarshal(dAtA []byte) error
- func (msg MsgSetPauseStatus) ValidateBasic() error
- func (m *MsgSetPauseStatus) XXX_DiscardUnknown()
- func (m *MsgSetPauseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPauseStatus) XXX_Merge(src proto.Message)
- func (m *MsgSetPauseStatus) XXX_Size() int
- func (m *MsgSetPauseStatus) XXX_Unmarshal(b []byte) error
- type MsgSetPauseStatusResponse
- func (*MsgSetPauseStatusResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetPauseStatusResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetPauseStatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetPauseStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetPauseStatusResponse) ProtoMessage()
- func (m *MsgSetPauseStatusResponse) Reset()
- func (m *MsgSetPauseStatusResponse) Size() (n int)
- func (m *MsgSetPauseStatusResponse) String() string
- func (m *MsgSetPauseStatusResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetPauseStatusResponse) XXX_DiscardUnknown()
- func (m *MsgSetPauseStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetPauseStatusResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetPauseStatusResponse) XXX_Size() int
- func (m *MsgSetPauseStatusResponse) XXX_Unmarshal(b []byte) error
- type MsgUnblockAddress
- func (*MsgUnblockAddress) Descriptor() ([]byte, []int)
- func (msg MsgUnblockAddress) GetSignBytes() []byte
- func (msg MsgUnblockAddress) GetSigners() []sdk.AccAddress
- func (m *MsgUnblockAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockAddress) ProtoMessage()
- func (m *MsgUnblockAddress) Reset()
- func (msg MsgUnblockAddress) Route() string
- func (m *MsgUnblockAddress) Size() (n int)
- func (m *MsgUnblockAddress) String() string
- func (msg MsgUnblockAddress) Type() string
- func (m *MsgUnblockAddress) Unmarshal(dAtA []byte) error
- func (msg MsgUnblockAddress) ValidateBasic() error
- func (m *MsgUnblockAddress) XXX_DiscardUnknown()
- func (m *MsgUnblockAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockAddress) XXX_Merge(src proto.Message)
- func (m *MsgUnblockAddress) XXX_Size() int
- func (m *MsgUnblockAddress) XXX_Unmarshal(b []byte) error
- type MsgUnblockAddressResponse
- func (*MsgUnblockAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnblockAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnblockAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnblockAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnblockAddressResponse) ProtoMessage()
- func (m *MsgUnblockAddressResponse) Reset()
- func (m *MsgUnblockAddressResponse) Size() (n int)
- func (m *MsgUnblockAddressResponse) String() string
- func (m *MsgUnblockAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnblockAddressResponse) XXX_DiscardUnknown()
- func (m *MsgUnblockAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnblockAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnblockAddressResponse) XXX_Size() int
- func (m *MsgUnblockAddressResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAssets() []Asset
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p 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 QueryAssetParams
- 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 RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetActive() bool
- func (m *RateLimit) GetTimePeriod() time.Duration
- func (m *RateLimit) Marshal() (dAtA []byte, err error)
- func (m *RateLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *RateLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) Size() (n int)
- func (m *RateLimit) String() string
- func (m *RateLimit) Unmarshal(dAtA []byte) error
- func (m *RateLimit) XXX_DiscardUnknown()
- func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RateLimit) XXX_Merge(src proto.Message)
- func (m *RateLimit) XXX_Size() int
- func (m *RateLimit) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BlockAddress(ctx context.Context, req *MsgBlockAddress) (*MsgBlockAddressResponse, error)
- func (*UnimplementedMsgServer) IssueTokens(ctx context.Context, req *MsgIssueTokens) (*MsgIssueTokensResponse, error)
- func (*UnimplementedMsgServer) RedeemTokens(ctx context.Context, req *MsgRedeemTokens) (*MsgRedeemTokensResponse, error)
- func (*UnimplementedMsgServer) SetPauseStatus(ctx context.Context, req *MsgSetPauseStatus) (*MsgSetPauseStatusResponse, error)
- func (*UnimplementedMsgServer) UnblockAddress(ctx context.Context, req *MsgUnblockAddress) (*MsgUnblockAddressResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeIssue = "issue_tokens" EventTypeRedeem = "redeem_tokens" EventTypeBlock = "block_address" EventTypeUnblock = "unblock_address" EventTypePause = "change_pause_status" EventTypeSeize = "seize_coins_from_blocked_address" AttributeValueCategory = ModuleName AttributeKeyDenom = "denom" AttributeKeyIssueAmount = "amount_issued" AttributeKeyRedeemAmount = "amount_redeemed" AttributeKeyBlock = "address_blocked" AttributeKeyUnblock = "address_unblocked" AttributeKeyAddress = "address" AttributeKeyPauseStatus = "pause_status" )
Events emitted by the issuance module
const ( // ModuleName The name that will be used throughout the module ModuleName = "issuance" // StoreKey Top level store key where all module items will be stored StoreKey = ModuleName // RouterKey Top level router key RouterKey = ModuleName // DefaultParamspace default name for parameter store DefaultParamspace = ModuleName // QuerierRoute route used for abci queries QuerierRoute = ModuleName )
const ( TypeMsgIssueTokens = "issue_tokens" TypeMsgRedeemTokens = "redeem_tokens" TypeMsgBlockAddress = "block_address" TypeMsgUnBlockAddress = "unblock_address" TypeMsgSetPauseStatus = "change_pause_status" )
const ( QueryGetParams = "parameters" QueryGetAsset = "asset" )
Querier routes for the issuance module
Variables ¶
var ( ErrAssetNotFound = sdkerrors.Register(ModuleName, 2, "no asset with input denom found") ErrNotAuthorized = sdkerrors.Register(ModuleName, 3, "account not authorized") ErrAssetPaused = sdkerrors.Register(ModuleName, 4, "asset is paused") ErrAccountBlocked = sdkerrors.Register(ModuleName, 5, "account is blocked") ErrAccountAlreadyBlocked = sdkerrors.Register(ModuleName, 6, "account is already blocked") ErrAccountAlreadyUnblocked = sdkerrors.Register(ModuleName, 7, "account is already unblocked") ErrIssueToModuleAccount = sdkerrors.Register(ModuleName, 8, "cannot issue tokens to module account") ErrExceedsSupplyLimit = sdkerrors.Register(ModuleName, 9, "asset supply over limit") ErrAssetUnblockable = sdkerrors.Register(ModuleName, 10, "asset does not support block/unblock functionality") ErrAccountNotFound = sdkerrors.Register(ModuleName, 11, "cannot block account that does not exist in state") )
Errors used by the issuance module
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 ( AssetSupplyPrefix = []byte{0x01} PreviousBlockTimeKey = []byte{0x02} )
KVStore key prefixes
var ( KeyAssets = []byte("Assets") DefaultAssets = []Asset{} ModuleAccountName = ModuleName )
Parameter keys and default values
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var DefaultSupplies = []AssetSupply{}
DefaultSupplies is used to set default asset supplies in default genesis state
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable Key declaration for parameters
func RegisterInterfaces ¶ added in v0.16.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.16.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the issuance module.
func RegisterMsgServer ¶ added in v0.16.0
func RegisterQueryHandler ¶ added in v0.16.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.16.0
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 ¶ added in v0.16.0
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 ¶ added in v0.16.0
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.16.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateAssets ¶ added in v0.16.0
Validate checks if all assets are valid and there are no duplicate entries
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI }
AccountKeeper expected interface for the account keeper (noalias)
type Asset ¶
type Asset struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom,omitempty"` BlockedAddresses []string `` /* 144-byte string literal not displayed */ Paused bool `protobuf:"varint,4,opt,name=paused,proto3" json:"paused,omitempty" yaml:"paused,omitempty"` Blockable bool `protobuf:"varint,5,opt,name=blockable,proto3" json:"blockable,omitempty" yaml:"blockable,omitempty"` RateLimit RateLimit `protobuf:"bytes,6,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit" yaml:"rate_limit,omitempty"` }
Asset type for assets in the issuance module
func NewAsset ¶
func NewAsset(owner string, denom string, blockedAddresses []string, paused bool, blockable bool, limit RateLimit) Asset
NewAsset returns a new Asset
func (*Asset) Descriptor ¶ added in v0.16.0
func (*Asset) GetBlockable ¶ added in v0.16.0
func (*Asset) GetBlockedAddresses ¶ added in v0.16.0
func (*Asset) GetRateLimit ¶ added in v0.16.0
func (*Asset) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Asset) ProtoMessage ¶ added in v0.16.0
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶ added in v0.16.0
func (*Asset) XXX_Unmarshal ¶ added in v0.16.0
type AssetSupply ¶
type AssetSupply struct { CurrentSupply types.Coin `protobuf:"bytes,1,opt,name=current_supply,json=currentSupply,proto3" json:"current_supply"` TimeElapsed time.Duration `` /* 126-byte string literal not displayed */ }
AssetSupply contains information about an asset's rate-limited supply (the total supply of the asset is tracked in the top-level supply module)
func NewAssetSupply ¶
func NewAssetSupply(currentSupply sdk.Coin, timeElapsed time.Duration) AssetSupply
NewAssetSupply initializes a new AssetSupply
func (*AssetSupply) Descriptor ¶ added in v0.16.0
func (*AssetSupply) Descriptor() ([]byte, []int)
func (*AssetSupply) GetCurrentSupply ¶ added in v0.16.0
func (m *AssetSupply) GetCurrentSupply() types.Coin
func (AssetSupply) GetDenom ¶
func (a AssetSupply) GetDenom() string
GetDenom getter method for the denom of the asset supply
func (*AssetSupply) GetTimeElapsed ¶ added in v0.16.0
func (m *AssetSupply) GetTimeElapsed() time.Duration
func (*AssetSupply) Marshal ¶ added in v0.16.0
func (m *AssetSupply) Marshal() (dAtA []byte, err error)
func (*AssetSupply) MarshalTo ¶ added in v0.16.0
func (m *AssetSupply) MarshalTo(dAtA []byte) (int, error)
func (*AssetSupply) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *AssetSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetSupply) ProtoMessage ¶ added in v0.16.0
func (*AssetSupply) ProtoMessage()
func (*AssetSupply) Reset ¶ added in v0.16.0
func (m *AssetSupply) Reset()
func (*AssetSupply) Size ¶ added in v0.16.0
func (m *AssetSupply) Size() (n int)
func (*AssetSupply) Unmarshal ¶ added in v0.16.0
func (m *AssetSupply) Unmarshal(dAtA []byte) error
func (AssetSupply) Validate ¶
func (a AssetSupply) Validate() error
Validate performs a basic validation of an asset supply fields.
func (*AssetSupply) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *AssetSupply) XXX_DiscardUnknown()
func (*AssetSupply) XXX_Marshal ¶ added in v0.16.0
func (m *AssetSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetSupply) XXX_Merge ¶ added in v0.16.0
func (m *AssetSupply) XXX_Merge(src proto.Message)
func (*AssetSupply) XXX_Size ¶ added in v0.16.0
func (m *AssetSupply) XXX_Size() int
func (*AssetSupply) XXX_Unmarshal ¶ added in v0.16.0
func (m *AssetSupply) XXX_Unmarshal(b []byte) error
type BankKeeper ¶ added in v0.16.0
type BankKeeper interface { 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 BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected interface needed to send coins
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Supplies []AssetSupply `protobuf:"bytes,2,rep,name=supplies,proto3" json:"supplies" yaml:"supplies,omitempty"` }
GenesisState defines the issuance module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns the default GenesisState for the issuance module
func NewGenesisState ¶
func NewGenesisState(params Params, supplies []AssetSupply) GenesisState
NewGenesisState returns a new GenesisState
func (*GenesisState) Descriptor ¶ added in v0.16.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶ added in v0.16.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSupplies ¶ added in v0.16.0
func (m *GenesisState) GetSupplies() []AssetSupply
func (*GenesisState) Marshal ¶ added in v0.16.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.16.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.16.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.16.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.16.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.16.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.16.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic validation of genesis data returning an error for any failed validation criteria.
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.16.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.16.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBlockAddress ¶
type MsgBlockAddress struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` BlockedAddress string `protobuf:"bytes,3,opt,name=blocked_address,json=blockedAddress,proto3" json:"blocked_address,omitempty"` }
MsgBlockAddress represents a message used by the issuer to block an address from holding or transferring tokens
func NewMsgBlockAddress ¶
func NewMsgBlockAddress(sender string, denom string, addr string) *MsgBlockAddress
NewMsgBlockAddress returns a new MsgBlockAddress
func (*MsgBlockAddress) Descriptor ¶ added in v0.16.0
func (*MsgBlockAddress) Descriptor() ([]byte, []int)
func (MsgBlockAddress) GetSignBytes ¶
func (msg MsgBlockAddress) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg
func (MsgBlockAddress) GetSigners ¶
func (msg MsgBlockAddress) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign
func (*MsgBlockAddress) Marshal ¶ added in v0.16.0
func (m *MsgBlockAddress) Marshal() (dAtA []byte, err error)
func (*MsgBlockAddress) MarshalTo ¶ added in v0.16.0
func (m *MsgBlockAddress) MarshalTo(dAtA []byte) (int, error)
func (*MsgBlockAddress) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgBlockAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBlockAddress) ProtoMessage ¶ added in v0.16.0
func (*MsgBlockAddress) ProtoMessage()
func (*MsgBlockAddress) Reset ¶ added in v0.16.0
func (m *MsgBlockAddress) Reset()
func (MsgBlockAddress) Route ¶
func (msg MsgBlockAddress) Route() string
Route return the message type used for routing the message.
func (*MsgBlockAddress) Size ¶ added in v0.16.0
func (m *MsgBlockAddress) Size() (n int)
func (*MsgBlockAddress) String ¶
func (m *MsgBlockAddress) String() string
func (MsgBlockAddress) Type ¶
func (msg MsgBlockAddress) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgBlockAddress) Unmarshal ¶ added in v0.16.0
func (m *MsgBlockAddress) Unmarshal(dAtA []byte) error
func (MsgBlockAddress) ValidateBasic ¶
func (msg MsgBlockAddress) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgBlockAddress) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgBlockAddress) XXX_DiscardUnknown()
func (*MsgBlockAddress) XXX_Marshal ¶ added in v0.16.0
func (m *MsgBlockAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBlockAddress) XXX_Merge ¶ added in v0.16.0
func (m *MsgBlockAddress) XXX_Merge(src proto.Message)
func (*MsgBlockAddress) XXX_Size ¶ added in v0.16.0
func (m *MsgBlockAddress) XXX_Size() int
func (*MsgBlockAddress) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgBlockAddress) XXX_Unmarshal(b []byte) error
type MsgBlockAddressResponse ¶ added in v0.16.0
type MsgBlockAddressResponse struct { }
MsgBlockAddressResponse defines the Msg/BlockAddress response type.
func (*MsgBlockAddressResponse) Descriptor ¶ added in v0.16.0
func (*MsgBlockAddressResponse) Descriptor() ([]byte, []int)
func (*MsgBlockAddressResponse) Marshal ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) Marshal() (dAtA []byte, err error)
func (*MsgBlockAddressResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBlockAddressResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBlockAddressResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgBlockAddressResponse) ProtoMessage()
func (*MsgBlockAddressResponse) Reset ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) Reset()
func (*MsgBlockAddressResponse) Size ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) Size() (n int)
func (*MsgBlockAddressResponse) String ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) String() string
func (*MsgBlockAddressResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) Unmarshal(dAtA []byte) error
func (*MsgBlockAddressResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) XXX_DiscardUnknown()
func (*MsgBlockAddressResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBlockAddressResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) XXX_Merge(src proto.Message)
func (*MsgBlockAddressResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) XXX_Size() int
func (*MsgBlockAddressResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgBlockAddressResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.16.0
type MsgClient interface { // IssueTokens message type used by the issuer to issue new tokens IssueTokens(ctx context.Context, in *MsgIssueTokens, opts ...grpc.CallOption) (*MsgIssueTokensResponse, error) // RedeemTokens message type used by the issuer to redeem (burn) tokens RedeemTokens(ctx context.Context, in *MsgRedeemTokens, opts ...grpc.CallOption) (*MsgRedeemTokensResponse, error) // BlockAddress message type used by the issuer to block an address from holding or transferring tokens BlockAddress(ctx context.Context, in *MsgBlockAddress, opts ...grpc.CallOption) (*MsgBlockAddressResponse, error) // UnblockAddress message type used by the issuer to unblock an address from holding or transferring tokens UnblockAddress(ctx context.Context, in *MsgUnblockAddress, opts ...grpc.CallOption) (*MsgUnblockAddressResponse, error) // SetPauseStatus message type used to pause or unpause status SetPauseStatus(ctx context.Context, in *MsgSetPauseStatus, opts ...grpc.CallOption) (*MsgSetPauseStatusResponse, 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 ¶ added in v0.16.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgIssueTokens ¶
type MsgIssueTokens struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Tokens types.Coin `protobuf:"bytes,2,opt,name=tokens,proto3" json:"tokens"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` }
MsgIssueTokens represents a message used by the issuer to issue new tokens
func NewMsgIssueTokens ¶
func NewMsgIssueTokens(sender string, tokens sdk.Coin, receiver string) *MsgIssueTokens
NewMsgIssueTokens returns a new MsgIssueTokens
func (*MsgIssueTokens) Descriptor ¶ added in v0.16.0
func (*MsgIssueTokens) Descriptor() ([]byte, []int)
func (MsgIssueTokens) GetSignBytes ¶
func (msg MsgIssueTokens) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg
func (MsgIssueTokens) GetSigners ¶
func (msg MsgIssueTokens) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign
func (*MsgIssueTokens) Marshal ¶ added in v0.16.0
func (m *MsgIssueTokens) Marshal() (dAtA []byte, err error)
func (*MsgIssueTokens) MarshalTo ¶ added in v0.16.0
func (m *MsgIssueTokens) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueTokens) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgIssueTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueTokens) ProtoMessage ¶ added in v0.16.0
func (*MsgIssueTokens) ProtoMessage()
func (*MsgIssueTokens) Reset ¶ added in v0.16.0
func (m *MsgIssueTokens) Reset()
func (MsgIssueTokens) Route ¶
func (msg MsgIssueTokens) Route() string
Route return the message type used for routing the message.
func (*MsgIssueTokens) Size ¶ added in v0.16.0
func (m *MsgIssueTokens) Size() (n int)
func (*MsgIssueTokens) String ¶
func (m *MsgIssueTokens) String() string
func (MsgIssueTokens) Type ¶
func (msg MsgIssueTokens) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgIssueTokens) Unmarshal ¶ added in v0.16.0
func (m *MsgIssueTokens) Unmarshal(dAtA []byte) error
func (MsgIssueTokens) ValidateBasic ¶
func (msg MsgIssueTokens) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgIssueTokens) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgIssueTokens) XXX_DiscardUnknown()
func (*MsgIssueTokens) XXX_Marshal ¶ added in v0.16.0
func (m *MsgIssueTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueTokens) XXX_Merge ¶ added in v0.16.0
func (m *MsgIssueTokens) XXX_Merge(src proto.Message)
func (*MsgIssueTokens) XXX_Size ¶ added in v0.16.0
func (m *MsgIssueTokens) XXX_Size() int
func (*MsgIssueTokens) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgIssueTokens) XXX_Unmarshal(b []byte) error
type MsgIssueTokensResponse ¶ added in v0.16.0
type MsgIssueTokensResponse struct { }
MsgIssueTokensResponse defines the Msg/IssueTokens response type.
func (*MsgIssueTokensResponse) Descriptor ¶ added in v0.16.0
func (*MsgIssueTokensResponse) Descriptor() ([]byte, []int)
func (*MsgIssueTokensResponse) Marshal ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueTokensResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueTokensResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueTokensResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgIssueTokensResponse) ProtoMessage()
func (*MsgIssueTokensResponse) Reset ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) Reset()
func (*MsgIssueTokensResponse) Size ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) Size() (n int)
func (*MsgIssueTokensResponse) String ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) String() string
func (*MsgIssueTokensResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueTokensResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) XXX_DiscardUnknown()
func (*MsgIssueTokensResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueTokensResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) XXX_Merge(src proto.Message)
func (*MsgIssueTokensResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) XXX_Size() int
func (*MsgIssueTokensResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgIssueTokensResponse) XXX_Unmarshal(b []byte) error
type MsgRedeemTokens ¶
type MsgRedeemTokens struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Tokens types.Coin `protobuf:"bytes,2,opt,name=tokens,proto3" json:"tokens"` }
MsgRedeemTokens represents a message used by the issuer to redeem (burn) tokens
func NewMsgRedeemTokens ¶
func NewMsgRedeemTokens(sender string, tokens sdk.Coin) *MsgRedeemTokens
NewMsgRedeemTokens returns a new MsgRedeemTokens
func (*MsgRedeemTokens) Descriptor ¶ added in v0.16.0
func (*MsgRedeemTokens) Descriptor() ([]byte, []int)
func (MsgRedeemTokens) GetSignBytes ¶
func (msg MsgRedeemTokens) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg
func (MsgRedeemTokens) GetSigners ¶
func (msg MsgRedeemTokens) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign
func (*MsgRedeemTokens) Marshal ¶ added in v0.16.0
func (m *MsgRedeemTokens) Marshal() (dAtA []byte, err error)
func (*MsgRedeemTokens) MarshalTo ¶ added in v0.16.0
func (m *MsgRedeemTokens) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedeemTokens) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgRedeemTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedeemTokens) ProtoMessage ¶ added in v0.16.0
func (*MsgRedeemTokens) ProtoMessage()
func (*MsgRedeemTokens) Reset ¶ added in v0.16.0
func (m *MsgRedeemTokens) Reset()
func (MsgRedeemTokens) Route ¶
func (msg MsgRedeemTokens) Route() string
Route return the message type used for routing the message.
func (*MsgRedeemTokens) Size ¶ added in v0.16.0
func (m *MsgRedeemTokens) Size() (n int)
func (*MsgRedeemTokens) String ¶
func (m *MsgRedeemTokens) String() string
func (MsgRedeemTokens) Type ¶
func (msg MsgRedeemTokens) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgRedeemTokens) Unmarshal ¶ added in v0.16.0
func (m *MsgRedeemTokens) Unmarshal(dAtA []byte) error
func (MsgRedeemTokens) ValidateBasic ¶
func (msg MsgRedeemTokens) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgRedeemTokens) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgRedeemTokens) XXX_DiscardUnknown()
func (*MsgRedeemTokens) XXX_Marshal ¶ added in v0.16.0
func (m *MsgRedeemTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedeemTokens) XXX_Merge ¶ added in v0.16.0
func (m *MsgRedeemTokens) XXX_Merge(src proto.Message)
func (*MsgRedeemTokens) XXX_Size ¶ added in v0.16.0
func (m *MsgRedeemTokens) XXX_Size() int
func (*MsgRedeemTokens) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgRedeemTokens) XXX_Unmarshal(b []byte) error
type MsgRedeemTokensResponse ¶ added in v0.16.0
type MsgRedeemTokensResponse struct { }
MsgRedeemTokensResponse defines the Msg/RedeemTokens response type.
func (*MsgRedeemTokensResponse) Descriptor ¶ added in v0.16.0
func (*MsgRedeemTokensResponse) Descriptor() ([]byte, []int)
func (*MsgRedeemTokensResponse) Marshal ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) Marshal() (dAtA []byte, err error)
func (*MsgRedeemTokensResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRedeemTokensResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRedeemTokensResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgRedeemTokensResponse) ProtoMessage()
func (*MsgRedeemTokensResponse) Reset ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) Reset()
func (*MsgRedeemTokensResponse) Size ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) Size() (n int)
func (*MsgRedeemTokensResponse) String ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) String() string
func (*MsgRedeemTokensResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) Unmarshal(dAtA []byte) error
func (*MsgRedeemTokensResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) XXX_DiscardUnknown()
func (*MsgRedeemTokensResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRedeemTokensResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) XXX_Merge(src proto.Message)
func (*MsgRedeemTokensResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) XXX_Size() int
func (*MsgRedeemTokensResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgRedeemTokensResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.16.0
type MsgServer interface { // IssueTokens message type used by the issuer to issue new tokens IssueTokens(context.Context, *MsgIssueTokens) (*MsgIssueTokensResponse, error) // RedeemTokens message type used by the issuer to redeem (burn) tokens RedeemTokens(context.Context, *MsgRedeemTokens) (*MsgRedeemTokensResponse, error) // BlockAddress message type used by the issuer to block an address from holding or transferring tokens BlockAddress(context.Context, *MsgBlockAddress) (*MsgBlockAddressResponse, error) // UnblockAddress message type used by the issuer to unblock an address from holding or transferring tokens UnblockAddress(context.Context, *MsgUnblockAddress) (*MsgUnblockAddressResponse, error) // SetPauseStatus message type used to pause or unpause status SetPauseStatus(context.Context, *MsgSetPauseStatus) (*MsgSetPauseStatusResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetPauseStatus ¶
type MsgSetPauseStatus struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` }
MsgSetPauseStatus message type used by the issuer to pause or unpause status
func NewMsgSetPauseStatus ¶
func NewMsgSetPauseStatus(sender string, denom string, status bool) *MsgSetPauseStatus
NewMsgSetPauseStatus returns a new MsgSetPauseStatus
func (*MsgSetPauseStatus) Descriptor ¶ added in v0.16.0
func (*MsgSetPauseStatus) Descriptor() ([]byte, []int)
func (MsgSetPauseStatus) GetSignBytes ¶
func (msg MsgSetPauseStatus) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg
func (MsgSetPauseStatus) GetSigners ¶
func (msg MsgSetPauseStatus) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign
func (*MsgSetPauseStatus) Marshal ¶ added in v0.16.0
func (m *MsgSetPauseStatus) Marshal() (dAtA []byte, err error)
func (*MsgSetPauseStatus) MarshalTo ¶ added in v0.16.0
func (m *MsgSetPauseStatus) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPauseStatus) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgSetPauseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPauseStatus) ProtoMessage ¶ added in v0.16.0
func (*MsgSetPauseStatus) ProtoMessage()
func (*MsgSetPauseStatus) Reset ¶ added in v0.16.0
func (m *MsgSetPauseStatus) Reset()
func (MsgSetPauseStatus) Route ¶
func (msg MsgSetPauseStatus) Route() string
Route return the message type used for routing the message.
func (*MsgSetPauseStatus) Size ¶ added in v0.16.0
func (m *MsgSetPauseStatus) Size() (n int)
func (*MsgSetPauseStatus) String ¶
func (m *MsgSetPauseStatus) String() string
func (MsgSetPauseStatus) Type ¶
func (msg MsgSetPauseStatus) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgSetPauseStatus) Unmarshal ¶ added in v0.16.0
func (m *MsgSetPauseStatus) Unmarshal(dAtA []byte) error
func (MsgSetPauseStatus) ValidateBasic ¶
func (msg MsgSetPauseStatus) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgSetPauseStatus) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgSetPauseStatus) XXX_DiscardUnknown()
func (*MsgSetPauseStatus) XXX_Marshal ¶ added in v0.16.0
func (m *MsgSetPauseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPauseStatus) XXX_Merge ¶ added in v0.16.0
func (m *MsgSetPauseStatus) XXX_Merge(src proto.Message)
func (*MsgSetPauseStatus) XXX_Size ¶ added in v0.16.0
func (m *MsgSetPauseStatus) XXX_Size() int
func (*MsgSetPauseStatus) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgSetPauseStatus) XXX_Unmarshal(b []byte) error
type MsgSetPauseStatusResponse ¶ added in v0.16.0
type MsgSetPauseStatusResponse struct { }
MsgSetPauseStatusResponse defines the Msg/SetPauseStatus response type.
func (*MsgSetPauseStatusResponse) Descriptor ¶ added in v0.16.0
func (*MsgSetPauseStatusResponse) Descriptor() ([]byte, []int)
func (*MsgSetPauseStatusResponse) Marshal ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetPauseStatusResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetPauseStatusResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetPauseStatusResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgSetPauseStatusResponse) ProtoMessage()
func (*MsgSetPauseStatusResponse) Reset ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) Reset()
func (*MsgSetPauseStatusResponse) Size ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) Size() (n int)
func (*MsgSetPauseStatusResponse) String ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) String() string
func (*MsgSetPauseStatusResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) Unmarshal(dAtA []byte) error
func (*MsgSetPauseStatusResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) XXX_DiscardUnknown()
func (*MsgSetPauseStatusResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetPauseStatusResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) XXX_Merge(src proto.Message)
func (*MsgSetPauseStatusResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) XXX_Size() int
func (*MsgSetPauseStatusResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgSetPauseStatusResponse) XXX_Unmarshal(b []byte) error
type MsgUnblockAddress ¶
type MsgUnblockAddress struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` BlockedAddress string `protobuf:"bytes,3,opt,name=blocked_address,json=blockedAddress,proto3" json:"blocked_address,omitempty"` }
MsgUnblockAddress message type used by the issuer to unblock an address from holding or transferring tokens
func NewMsgUnblockAddress ¶
func NewMsgUnblockAddress(sender string, denom string, addr string) *MsgUnblockAddress
NewMsgUnblockAddress returns a new MsgUnblockAddress
func (*MsgUnblockAddress) Descriptor ¶ added in v0.16.0
func (*MsgUnblockAddress) Descriptor() ([]byte, []int)
func (MsgUnblockAddress) GetSignBytes ¶
func (msg MsgUnblockAddress) GetSignBytes() []byte
GetSignBytes gets the canonical byte representation of the Msg
func (MsgUnblockAddress) GetSigners ¶
func (msg MsgUnblockAddress) GetSigners() []sdk.AccAddress
GetSigners returns the addresses of signers that must sign
func (*MsgUnblockAddress) Marshal ¶ added in v0.16.0
func (m *MsgUnblockAddress) Marshal() (dAtA []byte, err error)
func (*MsgUnblockAddress) MarshalTo ¶ added in v0.16.0
func (m *MsgUnblockAddress) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnblockAddress) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgUnblockAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnblockAddress) ProtoMessage ¶ added in v0.16.0
func (*MsgUnblockAddress) ProtoMessage()
func (*MsgUnblockAddress) Reset ¶ added in v0.16.0
func (m *MsgUnblockAddress) Reset()
func (MsgUnblockAddress) Route ¶
func (msg MsgUnblockAddress) Route() string
Route return the message type used for routing the message.
func (*MsgUnblockAddress) Size ¶ added in v0.16.0
func (m *MsgUnblockAddress) Size() (n int)
func (*MsgUnblockAddress) String ¶
func (m *MsgUnblockAddress) String() string
func (MsgUnblockAddress) Type ¶
func (msg MsgUnblockAddress) Type() string
Type returns a human-readable string for the message, intended for utilization within tags.
func (*MsgUnblockAddress) Unmarshal ¶ added in v0.16.0
func (m *MsgUnblockAddress) Unmarshal(dAtA []byte) error
func (MsgUnblockAddress) ValidateBasic ¶
func (msg MsgUnblockAddress) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to state.
func (*MsgUnblockAddress) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgUnblockAddress) XXX_DiscardUnknown()
func (*MsgUnblockAddress) XXX_Marshal ¶ added in v0.16.0
func (m *MsgUnblockAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnblockAddress) XXX_Merge ¶ added in v0.16.0
func (m *MsgUnblockAddress) XXX_Merge(src proto.Message)
func (*MsgUnblockAddress) XXX_Size ¶ added in v0.16.0
func (m *MsgUnblockAddress) XXX_Size() int
func (*MsgUnblockAddress) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgUnblockAddress) XXX_Unmarshal(b []byte) error
type MsgUnblockAddressResponse ¶ added in v0.16.0
type MsgUnblockAddressResponse struct { }
MsgUnblockAddressResponse defines the Msg/UnblockAddress response type.
func (*MsgUnblockAddressResponse) Descriptor ¶ added in v0.16.0
func (*MsgUnblockAddressResponse) Descriptor() ([]byte, []int)
func (*MsgUnblockAddressResponse) Marshal ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnblockAddressResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnblockAddressResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnblockAddressResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgUnblockAddressResponse) ProtoMessage()
func (*MsgUnblockAddressResponse) Reset ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) Reset()
func (*MsgUnblockAddressResponse) Size ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) Size() (n int)
func (*MsgUnblockAddressResponse) String ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) String() string
func (*MsgUnblockAddressResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) Unmarshal(dAtA []byte) error
func (*MsgUnblockAddressResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) XXX_DiscardUnknown()
func (*MsgUnblockAddressResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnblockAddressResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) XXX_Merge(src proto.Message)
func (*MsgUnblockAddressResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) XXX_Size() int
func (*MsgUnblockAddressResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgUnblockAddressResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
Assets []Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets" yaml:"assets,omitempty"`
}
Params defines the parameters for the issuance module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default params for issuance module
func (*Params) Descriptor ¶ added in v0.16.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs
func (*Params) ProtoMessage ¶ added in v0.16.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.16.0
func (*Params) XXX_Unmarshal ¶ added in v0.16.0
type QueryAssetParams ¶
type QueryAssetParams struct {
Denom string `json:"denom" yaml:"denom"`
}
QueryAssetParams params for querying an asset by denom
type QueryClient ¶ added in v0.16.0
type QueryClient interface { // Params queries all parameters of the issuance module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 ¶ added in v0.16.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v0.16.0
type QueryParamsRequest struct { }
QueryParamsRequest defines the request type for querying x/issuance parameters.
func (*QueryParamsRequest) Descriptor ¶ added in v0.16.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.16.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.16.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.16.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.16.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.16.0
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response type for querying x/issuance parameters.
func (*QueryParamsResponse) Descriptor ¶ added in v0.16.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.16.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.16.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.16.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.16.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.16.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.16.0
type QueryServer interface { // Params queries all parameters of the issuance module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type RateLimit ¶
type RateLimit struct { Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty" yaml:"active,omitempty"` Limit github_com_cosmos_cosmos_sdk_types.Int `` /* 126-byte string literal not displayed */ TimePeriod time.Duration `protobuf:"bytes,3,opt,name=time_period,json=timePeriod,proto3,stdduration" json:"time_period" yaml:"time_period,omitempty"` }
RateLimit parameters for rate-limiting the supply of an issued asset
func NewRateLimit ¶
NewRateLimit initializes a new RateLimit
func (*RateLimit) Descriptor ¶ added in v0.16.0
func (*RateLimit) GetTimePeriod ¶ added in v0.16.0
func (*RateLimit) MarshalToSizedBuffer ¶ added in v0.16.0
func (*RateLimit) ProtoMessage ¶ added in v0.16.0
func (*RateLimit) ProtoMessage()
func (*RateLimit) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *RateLimit) XXX_DiscardUnknown()
func (*RateLimit) XXX_Marshal ¶ added in v0.16.0
func (*RateLimit) XXX_Unmarshal ¶ added in v0.16.0
type UnimplementedMsgServer ¶ added in v0.16.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BlockAddress ¶ added in v0.16.0
func (*UnimplementedMsgServer) BlockAddress(ctx context.Context, req *MsgBlockAddress) (*MsgBlockAddressResponse, error)
func (*UnimplementedMsgServer) IssueTokens ¶ added in v0.16.0
func (*UnimplementedMsgServer) IssueTokens(ctx context.Context, req *MsgIssueTokens) (*MsgIssueTokensResponse, error)
func (*UnimplementedMsgServer) RedeemTokens ¶ added in v0.16.0
func (*UnimplementedMsgServer) RedeemTokens(ctx context.Context, req *MsgRedeemTokens) (*MsgRedeemTokensResponse, error)
func (*UnimplementedMsgServer) SetPauseStatus ¶ added in v0.16.0
func (*UnimplementedMsgServer) SetPauseStatus(ctx context.Context, req *MsgSetPauseStatus) (*MsgSetPauseStatusResponse, error)
func (*UnimplementedMsgServer) UnblockAddress ¶ added in v0.16.0
func (*UnimplementedMsgServer) UnblockAddress(ctx context.Context, req *MsgUnblockAddress) (*MsgUnblockAddressResponse, error)
type UnimplementedQueryServer ¶ added in v0.16.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.16.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)