types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
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
)
View Source
const (
	TypeMsgIssueTokens    = "issue_tokens"
	TypeMsgRedeemTokens   = "redeem_tokens"
	TypeMsgBlockAddress   = "block_address"
	TypeMsgUnBlockAddress = "unblock_address"
	TypeMsgSetPauseStatus = "change_pause_status"
)
View Source
const (
	QueryGetParams = "parameters"
	QueryGetAsset  = "asset"
)

Querier routes for the issuance module

Variables

View Source
var (
	ErrAssetNotFound           = errorsmod.Register(ModuleName, 2, "no asset with input denom found")
	ErrNotAuthorized           = errorsmod.Register(ModuleName, 3, "account not authorized")
	ErrAssetPaused             = errorsmod.Register(ModuleName, 4, "asset is paused")
	ErrAccountBlocked          = errorsmod.Register(ModuleName, 5, "account is blocked")
	ErrAccountAlreadyBlocked   = errorsmod.Register(ModuleName, 6, "account is already blocked")
	ErrAccountAlreadyUnblocked = errorsmod.Register(ModuleName, 7, "account is already unblocked")
	ErrIssueToModuleAccount    = errorsmod.Register(ModuleName, 8, "cannot issue tokens to module account")
	ErrExceedsSupplyLimit      = errorsmod.Register(ModuleName, 9, "asset supply over limit")
	ErrAssetUnblockable        = errorsmod.Register(ModuleName, 10, "asset does not support block/unblock functionality")
	ErrAccountNotFound         = errorsmod.Register(ModuleName, 11, "cannot block account that does not exist in state")
)

Errors used by the issuance module

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	AssetSupplyPrefix    = []byte{0x01}
	PreviousBlockTimeKey = []byte{0x02}
)

KVStore key prefixes

View Source
var (
	KeyAssets         = []byte("Assets")
	DefaultAssets     = []Asset{}
	ModuleAccountName = ModuleName
)

Parameter keys and default values

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DefaultSupplies = []AssetSupply{}

DefaultSupplies is used to set default asset supplies in default genesis state

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable Key declaration for parameters

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary types and interfaces for the issuance module.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAssets

func ValidateAssets(as []Asset) error

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"`
	Denom            string    `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	BlockedAddresses []string  `protobuf:"bytes,3,rep,name=blocked_addresses,json=blockedAddresses,proto3" json:"blocked_addresses,omitempty"`
	Paused           bool      `protobuf:"varint,4,opt,name=paused,proto3" json:"paused,omitempty"`
	Blockable        bool      `protobuf:"varint,5,opt,name=blockable,proto3" json:"blockable,omitempty"`
	RateLimit        RateLimit `protobuf:"bytes,6,opt,name=rate_limit,json=rateLimit,proto3" json:"rate_limit"`
}

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

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

func (*Asset) GetBlockable

func (m *Asset) GetBlockable() bool

func (*Asset) GetBlockedAddresses

func (m *Asset) GetBlockedAddresses() []string

func (*Asset) GetDenom

func (m *Asset) GetDenom() string

func (*Asset) GetOwner

func (m *Asset) GetOwner() string

func (*Asset) GetPaused

func (m *Asset) GetPaused() bool

func (*Asset) GetRateLimit

func (m *Asset) GetRateLimit() RateLimit

func (*Asset) Marshal

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

func (*Asset) MarshalTo

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

func (*Asset) MarshalToSizedBuffer

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

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) Size

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

func (Asset) String

func (a Asset) String() string

String implements fmt.Stringer

func (*Asset) Unmarshal

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

func (Asset) Validate

func (a Asset) Validate() error

Validate performs a basic check of asset fields

func (*Asset) XXX_DiscardUnknown

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal

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

func (*Asset) XXX_Merge

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

func (*Asset) XXX_Size

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal

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

type AssetSupply

type AssetSupply struct {
	CurrentSupply types.Coin    `protobuf:"bytes,1,opt,name=current_supply,json=currentSupply,proto3" json:"current_supply"`
	TimeElapsed   time.Duration `protobuf:"bytes,2,opt,name=time_elapsed,json=timeElapsed,proto3,stdduration" json:"time_elapsed"`
}

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

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

func (*AssetSupply) GetCurrentSupply

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

func (m *AssetSupply) GetTimeElapsed() time.Duration

func (*AssetSupply) Marshal

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

func (*AssetSupply) MarshalTo

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

func (*AssetSupply) MarshalToSizedBuffer

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

func (*AssetSupply) ProtoMessage

func (*AssetSupply) ProtoMessage()

func (*AssetSupply) Reset

func (m *AssetSupply) Reset()

func (*AssetSupply) Size

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

func (AssetSupply) String

func (a AssetSupply) String() string

String implements stringer

func (*AssetSupply) Unmarshal

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

func (m *AssetSupply) XXX_DiscardUnknown()

func (*AssetSupply) XXX_Marshal

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

func (*AssetSupply) XXX_Merge

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

func (*AssetSupply) XXX_Size

func (m *AssetSupply) XXX_Size() int

func (*AssetSupply) XXX_Unmarshal

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

type BankKeeper

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"`
}

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

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSupplies

func (m *GenesisState) GetSupplies() []AssetSupply

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic validation of genesis data returning an error for any failed validation criteria.

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

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

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

func (*MsgBlockAddress) MarshalTo

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

func (*MsgBlockAddress) MarshalToSizedBuffer

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

func (*MsgBlockAddress) ProtoMessage

func (*MsgBlockAddress) ProtoMessage()

func (*MsgBlockAddress) Reset

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

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

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

func (m *MsgBlockAddress) XXX_DiscardUnknown()

func (*MsgBlockAddress) XXX_Marshal

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

func (*MsgBlockAddress) XXX_Merge

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

func (*MsgBlockAddress) XXX_Size

func (m *MsgBlockAddress) XXX_Size() int

func (*MsgBlockAddress) XXX_Unmarshal

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

type MsgBlockAddressResponse

type MsgBlockAddressResponse struct {
}

MsgBlockAddressResponse defines the Msg/BlockAddress response type.

func (*MsgBlockAddressResponse) Descriptor

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

func (*MsgBlockAddressResponse) Marshal

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

func (*MsgBlockAddressResponse) MarshalTo

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

func (*MsgBlockAddressResponse) MarshalToSizedBuffer

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

func (*MsgBlockAddressResponse) ProtoMessage

func (*MsgBlockAddressResponse) ProtoMessage()

func (*MsgBlockAddressResponse) Reset

func (m *MsgBlockAddressResponse) Reset()

func (*MsgBlockAddressResponse) Size

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

func (*MsgBlockAddressResponse) String

func (m *MsgBlockAddressResponse) String() string

func (*MsgBlockAddressResponse) Unmarshal

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

func (*MsgBlockAddressResponse) XXX_DiscardUnknown

func (m *MsgBlockAddressResponse) XXX_DiscardUnknown()

func (*MsgBlockAddressResponse) XXX_Marshal

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

func (*MsgBlockAddressResponse) XXX_Merge

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

func (*MsgBlockAddressResponse) XXX_Size

func (m *MsgBlockAddressResponse) XXX_Size() int

func (*MsgBlockAddressResponse) XXX_Unmarshal

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

type MsgClient

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

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

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

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

func (*MsgIssueTokens) MarshalTo

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

func (*MsgIssueTokens) MarshalToSizedBuffer

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

func (*MsgIssueTokens) ProtoMessage

func (*MsgIssueTokens) ProtoMessage()

func (*MsgIssueTokens) Reset

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

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

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

func (m *MsgIssueTokens) XXX_DiscardUnknown()

func (*MsgIssueTokens) XXX_Marshal

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

func (*MsgIssueTokens) XXX_Merge

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

func (*MsgIssueTokens) XXX_Size

func (m *MsgIssueTokens) XXX_Size() int

func (*MsgIssueTokens) XXX_Unmarshal

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

type MsgIssueTokensResponse

type MsgIssueTokensResponse struct {
}

MsgIssueTokensResponse defines the Msg/IssueTokens response type.

func (*MsgIssueTokensResponse) Descriptor

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

func (*MsgIssueTokensResponse) Marshal

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

func (*MsgIssueTokensResponse) MarshalTo

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

func (*MsgIssueTokensResponse) MarshalToSizedBuffer

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

func (*MsgIssueTokensResponse) ProtoMessage

func (*MsgIssueTokensResponse) ProtoMessage()

func (*MsgIssueTokensResponse) Reset

func (m *MsgIssueTokensResponse) Reset()

func (*MsgIssueTokensResponse) Size

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

func (*MsgIssueTokensResponse) String

func (m *MsgIssueTokensResponse) String() string

func (*MsgIssueTokensResponse) Unmarshal

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

func (*MsgIssueTokensResponse) XXX_DiscardUnknown

func (m *MsgIssueTokensResponse) XXX_DiscardUnknown()

func (*MsgIssueTokensResponse) XXX_Marshal

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

func (*MsgIssueTokensResponse) XXX_Merge

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

func (*MsgIssueTokensResponse) XXX_Size

func (m *MsgIssueTokensResponse) XXX_Size() int

func (*MsgIssueTokensResponse) XXX_Unmarshal

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

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

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

func (*MsgRedeemTokens) MarshalTo

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

func (*MsgRedeemTokens) MarshalToSizedBuffer

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

func (*MsgRedeemTokens) ProtoMessage

func (*MsgRedeemTokens) ProtoMessage()

func (*MsgRedeemTokens) Reset

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

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

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

func (m *MsgRedeemTokens) XXX_DiscardUnknown()

func (*MsgRedeemTokens) XXX_Marshal

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

func (*MsgRedeemTokens) XXX_Merge

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

func (*MsgRedeemTokens) XXX_Size

func (m *MsgRedeemTokens) XXX_Size() int

func (*MsgRedeemTokens) XXX_Unmarshal

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

type MsgRedeemTokensResponse

type MsgRedeemTokensResponse struct {
}

MsgRedeemTokensResponse defines the Msg/RedeemTokens response type.

func (*MsgRedeemTokensResponse) Descriptor

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

func (*MsgRedeemTokensResponse) Marshal

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

func (*MsgRedeemTokensResponse) MarshalTo

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

func (*MsgRedeemTokensResponse) MarshalToSizedBuffer

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

func (*MsgRedeemTokensResponse) ProtoMessage

func (*MsgRedeemTokensResponse) ProtoMessage()

func (*MsgRedeemTokensResponse) Reset

func (m *MsgRedeemTokensResponse) Reset()

func (*MsgRedeemTokensResponse) Size

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

func (*MsgRedeemTokensResponse) String

func (m *MsgRedeemTokensResponse) String() string

func (*MsgRedeemTokensResponse) Unmarshal

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

func (*MsgRedeemTokensResponse) XXX_DiscardUnknown

func (m *MsgRedeemTokensResponse) XXX_DiscardUnknown()

func (*MsgRedeemTokensResponse) XXX_Marshal

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

func (*MsgRedeemTokensResponse) XXX_Merge

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

func (*MsgRedeemTokensResponse) XXX_Size

func (m *MsgRedeemTokensResponse) XXX_Size() int

func (*MsgRedeemTokensResponse) XXX_Unmarshal

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

type MsgServer

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

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

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

func (*MsgSetPauseStatus) MarshalTo

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

func (*MsgSetPauseStatus) MarshalToSizedBuffer

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

func (*MsgSetPauseStatus) ProtoMessage

func (*MsgSetPauseStatus) ProtoMessage()

func (*MsgSetPauseStatus) Reset

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

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

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

func (m *MsgSetPauseStatus) XXX_DiscardUnknown()

func (*MsgSetPauseStatus) XXX_Marshal

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

func (*MsgSetPauseStatus) XXX_Merge

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

func (*MsgSetPauseStatus) XXX_Size

func (m *MsgSetPauseStatus) XXX_Size() int

func (*MsgSetPauseStatus) XXX_Unmarshal

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

type MsgSetPauseStatusResponse

type MsgSetPauseStatusResponse struct {
}

MsgSetPauseStatusResponse defines the Msg/SetPauseStatus response type.

func (*MsgSetPauseStatusResponse) Descriptor

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

func (*MsgSetPauseStatusResponse) Marshal

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

func (*MsgSetPauseStatusResponse) MarshalTo

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

func (*MsgSetPauseStatusResponse) MarshalToSizedBuffer

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

func (*MsgSetPauseStatusResponse) ProtoMessage

func (*MsgSetPauseStatusResponse) ProtoMessage()

func (*MsgSetPauseStatusResponse) Reset

func (m *MsgSetPauseStatusResponse) Reset()

func (*MsgSetPauseStatusResponse) Size

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

func (*MsgSetPauseStatusResponse) String

func (m *MsgSetPauseStatusResponse) String() string

func (*MsgSetPauseStatusResponse) Unmarshal

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

func (*MsgSetPauseStatusResponse) XXX_DiscardUnknown

func (m *MsgSetPauseStatusResponse) XXX_DiscardUnknown()

func (*MsgSetPauseStatusResponse) XXX_Marshal

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

func (*MsgSetPauseStatusResponse) XXX_Merge

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

func (*MsgSetPauseStatusResponse) XXX_Size

func (m *MsgSetPauseStatusResponse) XXX_Size() int

func (*MsgSetPauseStatusResponse) XXX_Unmarshal

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

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

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

func (*MsgUnblockAddress) MarshalTo

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

func (*MsgUnblockAddress) MarshalToSizedBuffer

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

func (*MsgUnblockAddress) ProtoMessage

func (*MsgUnblockAddress) ProtoMessage()

func (*MsgUnblockAddress) Reset

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

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

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

func (m *MsgUnblockAddress) XXX_DiscardUnknown()

func (*MsgUnblockAddress) XXX_Marshal

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

func (*MsgUnblockAddress) XXX_Merge

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

func (*MsgUnblockAddress) XXX_Size

func (m *MsgUnblockAddress) XXX_Size() int

func (*MsgUnblockAddress) XXX_Unmarshal

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

type MsgUnblockAddressResponse

type MsgUnblockAddressResponse struct {
}

MsgUnblockAddressResponse defines the Msg/UnblockAddress response type.

func (*MsgUnblockAddressResponse) Descriptor

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

func (*MsgUnblockAddressResponse) Marshal

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

func (*MsgUnblockAddressResponse) MarshalTo

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

func (*MsgUnblockAddressResponse) MarshalToSizedBuffer

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

func (*MsgUnblockAddressResponse) ProtoMessage

func (*MsgUnblockAddressResponse) ProtoMessage()

func (*MsgUnblockAddressResponse) Reset

func (m *MsgUnblockAddressResponse) Reset()

func (*MsgUnblockAddressResponse) Size

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

func (*MsgUnblockAddressResponse) String

func (m *MsgUnblockAddressResponse) String() string

func (*MsgUnblockAddressResponse) Unmarshal

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

func (*MsgUnblockAddressResponse) XXX_DiscardUnknown

func (m *MsgUnblockAddressResponse) XXX_DiscardUnknown()

func (*MsgUnblockAddressResponse) XXX_Marshal

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

func (*MsgUnblockAddressResponse) XXX_Merge

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

func (*MsgUnblockAddressResponse) XXX_Size

func (m *MsgUnblockAddressResponse) XXX_Size() int

func (*MsgUnblockAddressResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Assets []Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets"`
}

Params defines the parameters for the issuance module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default params for issuance module

func NewParams

func NewParams(assets []Asset) Params

NewParams returns a new params object

func (*Params) Descriptor

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

func (*Params) GetAssets

func (m *Params) GetAssets() []Asset

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements fmt.Stringer

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate checks that the parameters have valid values.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAssetParams

type QueryAssetParams struct {
	Denom string `json:"denom" yaml:"denom"`
}

QueryAssetParams params for querying an asset by denom

type QueryClient

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

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest defines the request type for querying x/issuance parameters.

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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse defines the response type for querying x/issuance parameters.

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 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"`
	Limit      github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=limit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"limit,omitempty"`
	TimePeriod time.Duration                          `protobuf:"bytes,3,opt,name=time_period,json=timePeriod,proto3,stdduration" json:"time_period"`
}

RateLimit parameters for rate-limiting the supply of an issued asset

func NewRateLimit

func NewRateLimit(active bool, limit sdkmath.Int, timePeriod time.Duration) RateLimit

NewRateLimit initializes a new RateLimit

func (*RateLimit) Descriptor

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

func (*RateLimit) GetActive

func (m *RateLimit) GetActive() bool

func (*RateLimit) GetTimePeriod

func (m *RateLimit) GetTimePeriod() time.Duration

func (*RateLimit) Marshal

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

func (*RateLimit) MarshalTo

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

func (*RateLimit) MarshalToSizedBuffer

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

func (*RateLimit) ProtoMessage

func (*RateLimit) ProtoMessage()

func (*RateLimit) Reset

func (m *RateLimit) Reset()

func (*RateLimit) Size

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

func (*RateLimit) String

func (m *RateLimit) String() string

func (*RateLimit) Unmarshal

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

func (*RateLimit) XXX_DiscardUnknown

func (m *RateLimit) XXX_DiscardUnknown()

func (*RateLimit) XXX_Marshal

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

func (*RateLimit) XXX_Merge

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

func (*RateLimit) XXX_Size

func (m *RateLimit) XXX_Size() int

func (*RateLimit) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BlockAddress

func (*UnimplementedMsgServer) IssueTokens

func (*UnimplementedMsgServer) RedeemTokens

func (*UnimplementedMsgServer) SetPauseStatus

func (*UnimplementedMsgServer) UnblockAddress

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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