Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetCurrencyKey(denom string) []byte
- func ParamsKeyTable() 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)
- type BankKeeper
- type Currencies
- func (*Currencies) Descriptor() ([]byte, []int)
- func (m *Currencies) GetDenoms() []string
- func (m *Currencies) Marshal() (dAtA []byte, err error)
- func (m *Currencies) MarshalTo(dAtA []byte) (int, error)
- func (m *Currencies) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Currencies) ProtoMessage()
- func (m *Currencies) Reset()
- func (m *Currencies) Size() (n int)
- func (m *Currencies) String() string
- func (m *Currencies) Unmarshal(dAtA []byte) error
- func (m *Currencies) XXX_DiscardUnknown()
- func (m *Currencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Currencies) XXX_Merge(src proto.Message)
- func (m *Currencies) XXX_Size() int
- func (m *Currencies) XXX_Unmarshal(b []byte) error
- type Currency
- func (*Currency) Descriptor() ([]byte, []int)
- func (m *Currency) GetDenom() string
- func (m *Currency) GetDesc() string
- func (m *Currency) GetMintable() bool
- func (m *Currency) GetOwner() string
- func (m *Currency) Marshal() (dAtA []byte, err error)
- func (m *Currency) MarshalTo(dAtA []byte) (int, error)
- func (m *Currency) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Currency) ProtoMessage()
- func (m *Currency) Reset()
- func (m *Currency) Size() (n int)
- func (m *Currency) String() string
- func (m *Currency) Unmarshal(dAtA []byte) error
- func (m *Currency) XXX_DiscardUnknown()
- func (m *Currency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Currency) XXX_Merge(src proto.Message)
- func (m *Currency) XXX_Size() int
- func (m *Currency) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSeq() Sequence
- 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 (s *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 MaxAtoloSupply
- func (*MaxAtoloSupply) Descriptor() ([]byte, []int)
- func (m *MaxAtoloSupply) GetAmount() int64
- func (m *MaxAtoloSupply) Marshal() (dAtA []byte, err error)
- func (m *MaxAtoloSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *MaxAtoloSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MaxAtoloSupply) ProtoMessage()
- func (m *MaxAtoloSupply) Reset()
- func (m *MaxAtoloSupply) Size() (n int)
- func (m *MaxAtoloSupply) String() string
- func (m *MaxAtoloSupply) Unmarshal(dAtA []byte) error
- func (m *MaxAtoloSupply) XXX_DiscardUnknown()
- func (m *MaxAtoloSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaxAtoloSupply) XXX_Merge(src proto.Message)
- func (m *MaxAtoloSupply) XXX_Size() int
- func (m *MaxAtoloSupply) XXX_Unmarshal(b []byte) error
- type MsgBurnRequest
- func (*MsgBurnRequest) Descriptor() ([]byte, []int)
- func (m *MsgBurnRequest) GetAmount() types.Coin
- func (msg MsgBurnRequest) GetSignBytes() []byte
- func (m *MsgBurnRequest) GetSigner() string
- func (msg MsgBurnRequest) GetSigners() []sdk.AccAddress
- func (m *MsgBurnRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnRequest) ProtoMessage()
- func (m *MsgBurnRequest) Reset()
- func (msg MsgBurnRequest) Route() string
- func (m *MsgBurnRequest) Size() (n int)
- func (m *MsgBurnRequest) String() string
- func (msg MsgBurnRequest) Type() string
- func (m *MsgBurnRequest) Unmarshal(dAtA []byte) error
- func (msg MsgBurnRequest) ValidateBasic() error
- func (m *MsgBurnRequest) XXX_DiscardUnknown()
- func (m *MsgBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnRequest) XXX_Merge(src proto.Message)
- func (m *MsgBurnRequest) XXX_Size() int
- func (m *MsgBurnRequest) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgMintRequest
- func (*MsgMintRequest) Descriptor() ([]byte, []int)
- func (m *MsgMintRequest) GetAmount() types.Coin
- func (m *MsgMintRequest) GetReceiver() string
- func (msg MsgMintRequest) GetSignBytes() []byte
- func (m *MsgMintRequest) GetSigner() string
- func (msg MsgMintRequest) GetSigners() []sdk.AccAddress
- func (m *MsgMintRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgMintRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintRequest) ProtoMessage()
- func (m *MsgMintRequest) Reset()
- func (msg MsgMintRequest) Route() string
- func (m *MsgMintRequest) Size() (n int)
- func (m *MsgMintRequest) String() string
- func (msg MsgMintRequest) Type() string
- func (m *MsgMintRequest) Unmarshal(dAtA []byte) error
- func (msg MsgMintRequest) ValidateBasic() error
- func (m *MsgMintRequest) XXX_DiscardUnknown()
- func (m *MsgMintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintRequest) XXX_Merge(src proto.Message)
- func (m *MsgMintRequest) XXX_Size() int
- func (m *MsgMintRequest) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetCurrencyList() []Currency
- func (m *Params) GetMintable() bool
- func (m *Params) GetSequence() int64
- 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 QueryClient
- type QueryCurrenciesRequest
- func (*QueryCurrenciesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCurrenciesRequest) GetPagination() *query.PageRequest
- func (m *QueryCurrenciesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrenciesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrenciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrenciesRequest) ProtoMessage()
- func (m *QueryCurrenciesRequest) Reset()
- func (m *QueryCurrenciesRequest) Size() (n int)
- func (m *QueryCurrenciesRequest) String() string
- func (m *QueryCurrenciesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCurrenciesRequest) XXX_DiscardUnknown()
- func (m *QueryCurrenciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrenciesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCurrenciesRequest) XXX_Size() int
- func (m *QueryCurrenciesRequest) XXX_Unmarshal(b []byte) error
- type QueryCurrenciesResponse
- func (*QueryCurrenciesResponse) Descriptor() ([]byte, []int)
- func (m *QueryCurrenciesResponse) GetCurrencies() *Currencies
- func (m *QueryCurrenciesResponse) GetPagination() *query.PageResponse
- func (m *QueryCurrenciesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrenciesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrenciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrenciesResponse) ProtoMessage()
- func (m *QueryCurrenciesResponse) Reset()
- func (m *QueryCurrenciesResponse) Size() (n int)
- func (m *QueryCurrenciesResponse) String() string
- func (m *QueryCurrenciesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCurrenciesResponse) XXX_DiscardUnknown()
- func (m *QueryCurrenciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrenciesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCurrenciesResponse) XXX_Size() int
- func (m *QueryCurrenciesResponse) XXX_Unmarshal(b []byte) error
- type QueryCurrencyParam
- type QueryCurrencyRequest
- func (*QueryCurrencyRequest) Descriptor() ([]byte, []int)
- func (m *QueryCurrencyRequest) GetDenom() string
- func (m *QueryCurrencyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrencyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrencyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrencyRequest) ProtoMessage()
- func (m *QueryCurrencyRequest) Reset()
- func (m *QueryCurrencyRequest) Size() (n int)
- func (m *QueryCurrencyRequest) String() string
- func (m *QueryCurrencyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCurrencyRequest) XXX_DiscardUnknown()
- func (m *QueryCurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrencyRequest) XXX_Merge(src proto.Message)
- func (m *QueryCurrencyRequest) XXX_Size() int
- func (m *QueryCurrencyRequest) XXX_Unmarshal(b []byte) error
- type QueryCurrencyResponse
- func (*QueryCurrencyResponse) Descriptor() ([]byte, []int)
- func (m *QueryCurrencyResponse) GetCurrency() *Currency
- func (m *QueryCurrencyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCurrencyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCurrencyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCurrencyResponse) ProtoMessage()
- func (m *QueryCurrencyResponse) Reset()
- func (m *QueryCurrencyResponse) Size() (n int)
- func (m *QueryCurrencyResponse) String() string
- func (m *QueryCurrencyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCurrencyResponse) XXX_DiscardUnknown()
- func (m *QueryCurrencyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCurrencyResponse) XXX_Merge(src proto.Message)
- func (m *QueryCurrencyResponse) XXX_Size() int
- func (m *QueryCurrencyResponse) XXX_Unmarshal(b []byte) error
- type QueryMaxRequest
- func (*QueryMaxRequest) Descriptor() ([]byte, []int)
- func (m *QueryMaxRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxRequest) ProtoMessage()
- func (m *QueryMaxRequest) Reset()
- func (m *QueryMaxRequest) Size() (n int)
- func (m *QueryMaxRequest) String() string
- func (m *QueryMaxRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMaxRequest) XXX_DiscardUnknown()
- func (m *QueryMaxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxRequest) XXX_Merge(src proto.Message)
- func (m *QueryMaxRequest) XXX_Size() int
- func (m *QueryMaxRequest) XXX_Unmarshal(b []byte) error
- type QueryMaxResponse
- func (*QueryMaxResponse) Descriptor() ([]byte, []int)
- func (m *QueryMaxResponse) GetMaxAtoloSupply() MaxAtoloSupply
- func (m *QueryMaxResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMaxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMaxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMaxResponse) ProtoMessage()
- func (m *QueryMaxResponse) Reset()
- func (m *QueryMaxResponse) Size() (n int)
- func (m *QueryMaxResponse) String() string
- func (m *QueryMaxResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMaxResponse) XXX_DiscardUnknown()
- func (m *QueryMaxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMaxResponse) XXX_Merge(src proto.Message)
- func (m *QueryMaxResponse) XXX_Size() int
- func (m *QueryMaxResponse) XXX_Unmarshal(b []byte) error
- 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 Sequence
- func (*Sequence) Descriptor() ([]byte, []int)
- func (m *Sequence) GetNumber() int64
- func (m *Sequence) Marshal() (dAtA []byte, err error)
- func (m *Sequence) MarshalTo(dAtA []byte) (int, error)
- func (m *Sequence) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sequence) ProtoMessage()
- func (m *Sequence) Reset()
- func (m *Sequence) Size() (n int)
- func (m *Sequence) String() string
- func (m *Sequence) Unmarshal(dAtA []byte) error
- func (m *Sequence) XXX_DiscardUnknown()
- func (m *Sequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sequence) XXX_Merge(src proto.Message)
- func (m *Sequence) XXX_Size() int
- func (m *Sequence) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Currencies(ctx context.Context, req *QueryCurrenciesRequest) (*QueryCurrenciesResponse, error)
- func (*UnimplementedQueryServer) Currency(ctx context.Context, req *QueryCurrencyRequest) (*QueryCurrencyResponse, error)
- func (*UnimplementedQueryServer) MaxAtoloSupply(ctx context.Context, req *QueryMaxRequest) (*QueryMaxResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeMint = "mint" EventTypeBurn = "burn" EventTypeCurrencyUpdate = "currencyUpdate" AttributeKeyDenom = "denom" AttributeKeyDesc = "desc" AttributeKeyMintable = "mintable" AttributeKeyOwner = "owner" AttributeKeyReceiver = "receiver" AttributeValueCategory = ModuleName )
treasury event types and attribute keys
const ( // ModuleName defines the module name ModuleName = "treasury" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines message route key RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( // treasury module is enabled or not DefaultMintable = true DefaultOwner = "rizon136fzkc73rm5def5fngs386qdlxcuvxvrte8lk7" DefaultSequence = 1 )
const ( QueryCurrencies = "currencies" QueryCurrency = "currency" QueryParams = "parameters" )
query endpoints supported by the Querier
Variables ¶
var ( ErrModuleUnmintable = sdkerrors.Register(ModuleName, 2, "treasury module is unable to mint / burn") ErrCurrencyUnmintable = sdkerrors.Register(ModuleName, 3, "this currency is unable to mint / burn") )
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 ( // global key of currency's denom list CurrenciesKey = []byte{0x11} // global key of currency state sequence SequenceKey = []byte{0x12} )
var ( KeyMintable = []byte("Mintable") KeyCurrencyList = []byte("CurrencyList") KeyParamSequence = []byte("ParamSequence") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTreasury = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTreasury = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTreasury = 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 ( // prefix for single currency key CurrencyPrefix = []byte{0x21} )
var ( DefaultCurrencyList = []Currency{ { Denom: "skrw", Desc: "stable coin of KRW", Owner: DefaultOwner, Mintable: true, }, { Denom: "susd", Desc: "stable coin of USD", Owner: DefaultOwner, Mintable: true, }, } )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetCurrencyKey ¶ added in v0.3.0
get the key for the currency from denom string
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the module interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary module interfaces and concrete types on the provided LegacyAmino codec These types are used for Amino JSON serialization
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type BankKeeper interface { // MintCoins is used for minting new stable coins MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error // SendCoinsFromModuleToAccount used for sending minted coins to proper receiver SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error // BurnCoins is used for burning coins BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error // SendCoinsFromAccountToModule is used for moving coins from owner address to module account to burn SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper
type Currencies ¶
type Currencies struct { // denoms is the denom list of all currencies Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"` }
Currencies
func NewCurrencies ¶
func NewCurrencies(denoms []string) Currencies
NewCurrencies creates new currency list
func (*Currencies) Descriptor ¶
func (*Currencies) Descriptor() ([]byte, []int)
func (*Currencies) GetDenoms ¶
func (m *Currencies) GetDenoms() []string
func (*Currencies) Marshal ¶
func (m *Currencies) Marshal() (dAtA []byte, err error)
func (*Currencies) MarshalToSizedBuffer ¶
func (m *Currencies) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Currencies) ProtoMessage ¶
func (*Currencies) ProtoMessage()
func (*Currencies) Reset ¶
func (m *Currencies) Reset()
func (*Currencies) Size ¶
func (m *Currencies) Size() (n int)
func (*Currencies) String ¶
func (m *Currencies) String() string
func (*Currencies) Unmarshal ¶
func (m *Currencies) Unmarshal(dAtA []byte) error
func (*Currencies) XXX_DiscardUnknown ¶
func (m *Currencies) XXX_DiscardUnknown()
func (*Currencies) XXX_Marshal ¶
func (m *Currencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Currencies) XXX_Merge ¶
func (m *Currencies) XXX_Merge(src proto.Message)
func (*Currencies) XXX_Size ¶
func (m *Currencies) XXX_Size() int
func (*Currencies) XXX_Unmarshal ¶
func (m *Currencies) XXX_Unmarshal(b []byte) error
type Currency ¶
type Currency struct { // denom is the name of the currency Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` // desc is a description of the currency Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty" yaml:"desc"` // owner is who can mint this currency Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // mintable indicates whether this currency can be minted or not Mintable bool `protobuf:"varint,4,opt,name=mintable,proto3" json:"mintable,omitempty" yaml:"mintable"` }
Currency defines a single currency info
func NewCurrency ¶
NewCurrency creates new currency
func (*Currency) Descriptor ¶
func (*Currency) GetMintable ¶
func (*Currency) MarshalToSizedBuffer ¶
func (*Currency) ProtoMessage ¶
func (*Currency) ProtoMessage()
func (*Currency) XXX_DiscardUnknown ¶
func (m *Currency) XXX_DiscardUnknown()
func (*Currency) XXX_Marshal ¶
func (*Currency) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of treasury module Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Seq Sequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq"` }
GenesisState defines the module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns default genesis state of treasury module
func NewGenesisState ¶
func NewGenesisState(params Params, seq Sequence) *GenesisState
NewGenesisState creates a new GenesisState instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSeq ¶
func (m *GenesisState) GetSeq() Sequence
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (s *GenesisState) Validate() error
Validate checks all genesis states are valid
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 MaxAtoloSupply ¶ added in v0.2.7
type MaxAtoloSupply struct { // amount is maximum mintable amount of atolo Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"` }
Maximum mintable amount of atolo
func NewMaxAtoloSupply ¶ added in v0.2.7
func NewMaxAtoloSupply(amount int64) MaxAtoloSupply
NewMaxAtoloSupply creates a new max atolo supply
func (*MaxAtoloSupply) Descriptor ¶ added in v0.2.7
func (*MaxAtoloSupply) Descriptor() ([]byte, []int)
func (*MaxAtoloSupply) GetAmount ¶ added in v0.2.7
func (m *MaxAtoloSupply) GetAmount() int64
func (*MaxAtoloSupply) Marshal ¶ added in v0.2.7
func (m *MaxAtoloSupply) Marshal() (dAtA []byte, err error)
func (*MaxAtoloSupply) MarshalTo ¶ added in v0.2.7
func (m *MaxAtoloSupply) MarshalTo(dAtA []byte) (int, error)
func (*MaxAtoloSupply) MarshalToSizedBuffer ¶ added in v0.2.7
func (m *MaxAtoloSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MaxAtoloSupply) ProtoMessage ¶ added in v0.2.7
func (*MaxAtoloSupply) ProtoMessage()
func (*MaxAtoloSupply) Reset ¶ added in v0.2.7
func (m *MaxAtoloSupply) Reset()
func (*MaxAtoloSupply) Size ¶ added in v0.2.7
func (m *MaxAtoloSupply) Size() (n int)
func (*MaxAtoloSupply) String ¶ added in v0.2.7
func (m *MaxAtoloSupply) String() string
func (*MaxAtoloSupply) Unmarshal ¶ added in v0.2.7
func (m *MaxAtoloSupply) Unmarshal(dAtA []byte) error
func (*MaxAtoloSupply) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *MaxAtoloSupply) XXX_DiscardUnknown()
func (*MaxAtoloSupply) XXX_Marshal ¶ added in v0.2.7
func (m *MaxAtoloSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MaxAtoloSupply) XXX_Merge ¶ added in v0.2.7
func (m *MaxAtoloSupply) XXX_Merge(src proto.Message)
func (*MaxAtoloSupply) XXX_Size ¶ added in v0.2.7
func (m *MaxAtoloSupply) XXX_Size() int
func (*MaxAtoloSupply) XXX_Unmarshal ¶ added in v0.2.7
func (m *MaxAtoloSupply) XXX_Unmarshal(b []byte) error
type MsgBurnRequest ¶
type MsgBurnRequest struct { // signer is who requests burning Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` // amount is the amount to burn Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
MsgBurnRequest defines the Msg/Burn request type
func NewMsgBurnRequest ¶
func NewMsgBurnRequest(signer string, amount sdk.Coin) *MsgBurnRequest
NewMsgBurnRequest creates a new MsgBurnRequest object
func (*MsgBurnRequest) Descriptor ¶
func (*MsgBurnRequest) Descriptor() ([]byte, []int)
func (*MsgBurnRequest) GetAmount ¶
func (m *MsgBurnRequest) GetAmount() types.Coin
func (MsgBurnRequest) GetSignBytes ¶
func (msg MsgBurnRequest) GetSignBytes() []byte
GetSignBytes returns the message bytes to sign over
func (*MsgBurnRequest) GetSigner ¶
func (m *MsgBurnRequest) GetSigner() string
func (MsgBurnRequest) GetSigners ¶
func (msg MsgBurnRequest) GetSigners() []sdk.AccAddress
GetSigners returns the AccAddress of signer
func (*MsgBurnRequest) Marshal ¶
func (m *MsgBurnRequest) Marshal() (dAtA []byte, err error)
func (*MsgBurnRequest) MarshalToSizedBuffer ¶
func (m *MsgBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnRequest) ProtoMessage ¶
func (*MsgBurnRequest) ProtoMessage()
func (*MsgBurnRequest) Reset ¶
func (m *MsgBurnRequest) Reset()
func (MsgBurnRequest) Route ¶
func (msg MsgBurnRequest) Route() string
implements of the sdk.Msg interface // Route returns the RouterKey
func (*MsgBurnRequest) Size ¶
func (m *MsgBurnRequest) Size() (n int)
func (*MsgBurnRequest) String ¶
func (m *MsgBurnRequest) String() string
func (MsgBurnRequest) Type ¶
func (msg MsgBurnRequest) Type() string
Type returns the name of message type
func (*MsgBurnRequest) Unmarshal ¶
func (m *MsgBurnRequest) Unmarshal(dAtA []byte) error
func (MsgBurnRequest) ValidateBasic ¶
func (msg MsgBurnRequest) ValidateBasic() error
ValidateBasic validates the MsgBurnRequest
func (*MsgBurnRequest) XXX_DiscardUnknown ¶
func (m *MsgBurnRequest) XXX_DiscardUnknown()
func (*MsgBurnRequest) XXX_Marshal ¶
func (m *MsgBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnRequest) XXX_Merge ¶
func (m *MsgBurnRequest) XXX_Merge(src proto.Message)
func (*MsgBurnRequest) XXX_Size ¶
func (m *MsgBurnRequest) XXX_Size() int
func (*MsgBurnRequest) XXX_Unmarshal ¶
func (m *MsgBurnRequest) XXX_Unmarshal(b []byte) error
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
MsgBurnResponse defines the Msg/Burn response type
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Mint defines a method for minting coins Mint(ctx context.Context, in *MsgMintRequest, opts ...grpc.CallOption) (*MsgMintResponse, error) // Burn defines a method for burning coins Burn(ctx context.Context, in *MsgBurnRequest, opts ...grpc.CallOption) (*MsgBurnResponse, 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 MsgMintRequest ¶
type MsgMintRequest struct { // receiver is the target address of minted coins Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` // signer is who requests minting Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` // amount is the amount to mint Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
MsgMintRequest defines the Msg/Mint request type
func NewMsgMintRequest ¶
func NewMsgMintRequest(receiver string, signer string, amount sdk.Coin) *MsgMintRequest
NewMsgMintRequest creates a new MsgMintRequest object
func (*MsgMintRequest) Descriptor ¶
func (*MsgMintRequest) Descriptor() ([]byte, []int)
func (*MsgMintRequest) GetAmount ¶
func (m *MsgMintRequest) GetAmount() types.Coin
func (*MsgMintRequest) GetReceiver ¶
func (m *MsgMintRequest) GetReceiver() string
func (MsgMintRequest) GetSignBytes ¶
func (msg MsgMintRequest) GetSignBytes() []byte
GetSignBytes returns the message bytes to sign over
func (*MsgMintRequest) GetSigner ¶
func (m *MsgMintRequest) GetSigner() string
func (MsgMintRequest) GetSigners ¶
func (msg MsgMintRequest) GetSigners() []sdk.AccAddress
GetSigners returns the AccAddress of signer
func (*MsgMintRequest) Marshal ¶
func (m *MsgMintRequest) Marshal() (dAtA []byte, err error)
func (*MsgMintRequest) MarshalToSizedBuffer ¶
func (m *MsgMintRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintRequest) ProtoMessage ¶
func (*MsgMintRequest) ProtoMessage()
func (*MsgMintRequest) Reset ¶
func (m *MsgMintRequest) Reset()
func (MsgMintRequest) Route ¶
func (msg MsgMintRequest) Route() string
implements of the sdk.Msg interface // Route returns the RouterKey
func (*MsgMintRequest) Size ¶
func (m *MsgMintRequest) Size() (n int)
func (*MsgMintRequest) String ¶
func (m *MsgMintRequest) String() string
func (MsgMintRequest) Type ¶
func (msg MsgMintRequest) Type() string
Type returns the name of message type
func (*MsgMintRequest) Unmarshal ¶
func (m *MsgMintRequest) Unmarshal(dAtA []byte) error
func (MsgMintRequest) ValidateBasic ¶
func (msg MsgMintRequest) ValidateBasic() error
ValidateBasic validates the MsgMintRequest
func (*MsgMintRequest) XXX_DiscardUnknown ¶
func (m *MsgMintRequest) XXX_DiscardUnknown()
func (*MsgMintRequest) XXX_Marshal ¶
func (m *MsgMintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintRequest) XXX_Merge ¶
func (m *MsgMintRequest) XXX_Merge(src proto.Message)
func (*MsgMintRequest) XXX_Size ¶
func (m *MsgMintRequest) XXX_Size() int
func (*MsgMintRequest) XXX_Unmarshal ¶
func (m *MsgMintRequest) XXX_Unmarshal(b []byte) error
type MsgMintResponse ¶
type MsgMintResponse struct { }
MsgMintResponse defines the Msg/Mint response type
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Mint defines a method for minting coins Mint(context.Context, *MsgMintRequest) (*MsgMintResponse, error) // Burn defines a method for burning coins Burn(context.Context, *MsgBurnRequest) (*MsgBurnResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { // mintable indicates whether every currencie of treasury module are able to mint or not Mintable bool `protobuf:"varint,1,opt,name=mintable,proto3" json:"mintable,omitempty" yaml:"mintable"` // sequence of currency state Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty" yaml:"sequence"` // currency_list is the list of supported currencies CurrencyList []Currency `protobuf:"bytes,3,rep,name=currency_list,json=currencyList,proto3" json:"currency_list" yaml:"currency_list"` }
Params defines the parameters for the treasury module
func (*Params) Descriptor ¶
func (*Params) GetCurrencyList ¶
func (*Params) GetMintable ¶
func (*Params) GetSequence ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Currencies queries all supported currency denom list Currencies(ctx context.Context, in *QueryCurrenciesRequest, opts ...grpc.CallOption) (*QueryCurrenciesResponse, error) // Currency queries a currency info Currency(ctx context.Context, in *QueryCurrencyRequest, opts ...grpc.CallOption) (*QueryCurrencyResponse, error) // Max queries maximum mintable amount of uatolo MaxAtoloSupply(ctx context.Context, in *QueryMaxRequest, opts ...grpc.CallOption) (*QueryMaxResponse, error) // Params queries parameters of treasury 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 QueryCurrenciesRequest ¶
type QueryCurrenciesRequest struct { // pagination defines an optional pagination for the request Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCurrenciesRequest is request type for the Query/Currencies RPC method
func (*QueryCurrenciesRequest) Descriptor ¶
func (*QueryCurrenciesRequest) Descriptor() ([]byte, []int)
func (*QueryCurrenciesRequest) GetPagination ¶
func (m *QueryCurrenciesRequest) GetPagination() *query.PageRequest
func (*QueryCurrenciesRequest) Marshal ¶
func (m *QueryCurrenciesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCurrenciesRequest) MarshalTo ¶
func (m *QueryCurrenciesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrenciesRequest) MarshalToSizedBuffer ¶
func (m *QueryCurrenciesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrenciesRequest) ProtoMessage ¶
func (*QueryCurrenciesRequest) ProtoMessage()
func (*QueryCurrenciesRequest) Reset ¶
func (m *QueryCurrenciesRequest) Reset()
func (*QueryCurrenciesRequest) Size ¶
func (m *QueryCurrenciesRequest) Size() (n int)
func (*QueryCurrenciesRequest) String ¶
func (m *QueryCurrenciesRequest) String() string
func (*QueryCurrenciesRequest) Unmarshal ¶
func (m *QueryCurrenciesRequest) Unmarshal(dAtA []byte) error
func (*QueryCurrenciesRequest) XXX_DiscardUnknown ¶
func (m *QueryCurrenciesRequest) XXX_DiscardUnknown()
func (*QueryCurrenciesRequest) XXX_Marshal ¶
func (m *QueryCurrenciesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrenciesRequest) XXX_Merge ¶
func (m *QueryCurrenciesRequest) XXX_Merge(src proto.Message)
func (*QueryCurrenciesRequest) XXX_Size ¶
func (m *QueryCurrenciesRequest) XXX_Size() int
func (*QueryCurrenciesRequest) XXX_Unmarshal ¶
func (m *QueryCurrenciesRequest) XXX_Unmarshal(b []byte) error
type QueryCurrenciesResponse ¶
type QueryCurrenciesResponse struct { // Currencies defines all supported currency denom list Currencies *Currencies `protobuf:"bytes,1,opt,name=currencies,proto3" json:"currencies,omitempty"` // pagination defines the pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCurrenciesResponse is response type for the Query/Currencies RPC method
func (*QueryCurrenciesResponse) Descriptor ¶
func (*QueryCurrenciesResponse) Descriptor() ([]byte, []int)
func (*QueryCurrenciesResponse) GetCurrencies ¶
func (m *QueryCurrenciesResponse) GetCurrencies() *Currencies
func (*QueryCurrenciesResponse) GetPagination ¶
func (m *QueryCurrenciesResponse) GetPagination() *query.PageResponse
func (*QueryCurrenciesResponse) Marshal ¶
func (m *QueryCurrenciesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCurrenciesResponse) MarshalTo ¶
func (m *QueryCurrenciesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrenciesResponse) MarshalToSizedBuffer ¶
func (m *QueryCurrenciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrenciesResponse) ProtoMessage ¶
func (*QueryCurrenciesResponse) ProtoMessage()
func (*QueryCurrenciesResponse) Reset ¶
func (m *QueryCurrenciesResponse) Reset()
func (*QueryCurrenciesResponse) Size ¶
func (m *QueryCurrenciesResponse) Size() (n int)
func (*QueryCurrenciesResponse) String ¶
func (m *QueryCurrenciesResponse) String() string
func (*QueryCurrenciesResponse) Unmarshal ¶
func (m *QueryCurrenciesResponse) Unmarshal(dAtA []byte) error
func (*QueryCurrenciesResponse) XXX_DiscardUnknown ¶
func (m *QueryCurrenciesResponse) XXX_DiscardUnknown()
func (*QueryCurrenciesResponse) XXX_Marshal ¶
func (m *QueryCurrenciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrenciesResponse) XXX_Merge ¶
func (m *QueryCurrenciesResponse) XXX_Merge(src proto.Message)
func (*QueryCurrenciesResponse) XXX_Size ¶
func (m *QueryCurrenciesResponse) XXX_Size() int
func (*QueryCurrenciesResponse) XXX_Unmarshal ¶
func (m *QueryCurrenciesResponse) XXX_Unmarshal(b []byte) error
type QueryCurrencyParam ¶
type QueryCurrencyParam struct {
Denom string
}
QueryCurrencyParam defines the param for the following query: - 'custom/treasury/currencies/{denom}'
func NewQueryCurrencyParam ¶
func NewQueryCurrencyParam(denom string) QueryCurrencyParam
NewQueryCurrencyParam creates a new QueryCurrencyParam
type QueryCurrencyRequest ¶
type QueryCurrencyRequest struct { // denom defines the denom to query for Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryCurrencyRequest is request type for the Query/Currency RPC method
func (*QueryCurrencyRequest) Descriptor ¶
func (*QueryCurrencyRequest) Descriptor() ([]byte, []int)
func (*QueryCurrencyRequest) GetDenom ¶
func (m *QueryCurrencyRequest) GetDenom() string
func (*QueryCurrencyRequest) Marshal ¶
func (m *QueryCurrencyRequest) Marshal() (dAtA []byte, err error)
func (*QueryCurrencyRequest) MarshalTo ¶
func (m *QueryCurrencyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrencyRequest) MarshalToSizedBuffer ¶
func (m *QueryCurrencyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrencyRequest) ProtoMessage ¶
func (*QueryCurrencyRequest) ProtoMessage()
func (*QueryCurrencyRequest) Reset ¶
func (m *QueryCurrencyRequest) Reset()
func (*QueryCurrencyRequest) Size ¶
func (m *QueryCurrencyRequest) Size() (n int)
func (*QueryCurrencyRequest) String ¶
func (m *QueryCurrencyRequest) String() string
func (*QueryCurrencyRequest) Unmarshal ¶
func (m *QueryCurrencyRequest) Unmarshal(dAtA []byte) error
func (*QueryCurrencyRequest) XXX_DiscardUnknown ¶
func (m *QueryCurrencyRequest) XXX_DiscardUnknown()
func (*QueryCurrencyRequest) XXX_Marshal ¶
func (m *QueryCurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrencyRequest) XXX_Merge ¶
func (m *QueryCurrencyRequest) XXX_Merge(src proto.Message)
func (*QueryCurrencyRequest) XXX_Size ¶
func (m *QueryCurrencyRequest) XXX_Size() int
func (*QueryCurrencyRequest) XXX_Unmarshal ¶
func (m *QueryCurrencyRequest) XXX_Unmarshal(b []byte) error
type QueryCurrencyResponse ¶
type QueryCurrencyResponse struct { // Currency defines a currency info Currency *Currency `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"` }
QueryCurrencyResponse is response type for the Query/Currency RPC method
func (*QueryCurrencyResponse) Descriptor ¶
func (*QueryCurrencyResponse) Descriptor() ([]byte, []int)
func (*QueryCurrencyResponse) GetCurrency ¶
func (m *QueryCurrencyResponse) GetCurrency() *Currency
func (*QueryCurrencyResponse) Marshal ¶
func (m *QueryCurrencyResponse) Marshal() (dAtA []byte, err error)
func (*QueryCurrencyResponse) MarshalTo ¶
func (m *QueryCurrencyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCurrencyResponse) MarshalToSizedBuffer ¶
func (m *QueryCurrencyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCurrencyResponse) ProtoMessage ¶
func (*QueryCurrencyResponse) ProtoMessage()
func (*QueryCurrencyResponse) Reset ¶
func (m *QueryCurrencyResponse) Reset()
func (*QueryCurrencyResponse) Size ¶
func (m *QueryCurrencyResponse) Size() (n int)
func (*QueryCurrencyResponse) String ¶
func (m *QueryCurrencyResponse) String() string
func (*QueryCurrencyResponse) Unmarshal ¶
func (m *QueryCurrencyResponse) Unmarshal(dAtA []byte) error
func (*QueryCurrencyResponse) XXX_DiscardUnknown ¶
func (m *QueryCurrencyResponse) XXX_DiscardUnknown()
func (*QueryCurrencyResponse) XXX_Marshal ¶
func (m *QueryCurrencyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCurrencyResponse) XXX_Merge ¶
func (m *QueryCurrencyResponse) XXX_Merge(src proto.Message)
func (*QueryCurrencyResponse) XXX_Size ¶
func (m *QueryCurrencyResponse) XXX_Size() int
func (*QueryCurrencyResponse) XXX_Unmarshal ¶
func (m *QueryCurrencyResponse) XXX_Unmarshal(b []byte) error
type QueryMaxRequest ¶ added in v0.2.7
type QueryMaxRequest struct { }
QueryMaxRequest is request type for the Query/MaxAtoloSupply RPC method
func (*QueryMaxRequest) Descriptor ¶ added in v0.2.7
func (*QueryMaxRequest) Descriptor() ([]byte, []int)
func (*QueryMaxRequest) Marshal ¶ added in v0.2.7
func (m *QueryMaxRequest) Marshal() (dAtA []byte, err error)
func (*QueryMaxRequest) MarshalTo ¶ added in v0.2.7
func (m *QueryMaxRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxRequest) MarshalToSizedBuffer ¶ added in v0.2.7
func (m *QueryMaxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxRequest) ProtoMessage ¶ added in v0.2.7
func (*QueryMaxRequest) ProtoMessage()
func (*QueryMaxRequest) Reset ¶ added in v0.2.7
func (m *QueryMaxRequest) Reset()
func (*QueryMaxRequest) Size ¶ added in v0.2.7
func (m *QueryMaxRequest) Size() (n int)
func (*QueryMaxRequest) String ¶ added in v0.2.7
func (m *QueryMaxRequest) String() string
func (*QueryMaxRequest) Unmarshal ¶ added in v0.2.7
func (m *QueryMaxRequest) Unmarshal(dAtA []byte) error
func (*QueryMaxRequest) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *QueryMaxRequest) XXX_DiscardUnknown()
func (*QueryMaxRequest) XXX_Marshal ¶ added in v0.2.7
func (m *QueryMaxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxRequest) XXX_Merge ¶ added in v0.2.7
func (m *QueryMaxRequest) XXX_Merge(src proto.Message)
func (*QueryMaxRequest) XXX_Size ¶ added in v0.2.7
func (m *QueryMaxRequest) XXX_Size() int
func (*QueryMaxRequest) XXX_Unmarshal ¶ added in v0.2.7
func (m *QueryMaxRequest) XXX_Unmarshal(b []byte) error
type QueryMaxResponse ¶ added in v0.2.7
type QueryMaxResponse struct { // params defines maximum mintable amount of uatolo MaxAtoloSupply MaxAtoloSupply `protobuf:"bytes,1,opt,name=max_atolo_supply,json=maxAtoloSupply,proto3" json:"max_atolo_supply"` }
QueryMaxResponse is response type for the Query/MaxAtoloSupply RPC method
func (*QueryMaxResponse) Descriptor ¶ added in v0.2.7
func (*QueryMaxResponse) Descriptor() ([]byte, []int)
func (*QueryMaxResponse) GetMaxAtoloSupply ¶ added in v0.2.7
func (m *QueryMaxResponse) GetMaxAtoloSupply() MaxAtoloSupply
func (*QueryMaxResponse) Marshal ¶ added in v0.2.7
func (m *QueryMaxResponse) Marshal() (dAtA []byte, err error)
func (*QueryMaxResponse) MarshalTo ¶ added in v0.2.7
func (m *QueryMaxResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMaxResponse) MarshalToSizedBuffer ¶ added in v0.2.7
func (m *QueryMaxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMaxResponse) ProtoMessage ¶ added in v0.2.7
func (*QueryMaxResponse) ProtoMessage()
func (*QueryMaxResponse) Reset ¶ added in v0.2.7
func (m *QueryMaxResponse) Reset()
func (*QueryMaxResponse) Size ¶ added in v0.2.7
func (m *QueryMaxResponse) Size() (n int)
func (*QueryMaxResponse) String ¶ added in v0.2.7
func (m *QueryMaxResponse) String() string
func (*QueryMaxResponse) Unmarshal ¶ added in v0.2.7
func (m *QueryMaxResponse) Unmarshal(dAtA []byte) error
func (*QueryMaxResponse) XXX_DiscardUnknown ¶ added in v0.2.7
func (m *QueryMaxResponse) XXX_DiscardUnknown()
func (*QueryMaxResponse) XXX_Marshal ¶ added in v0.2.7
func (m *QueryMaxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMaxResponse) XXX_Merge ¶ added in v0.2.7
func (m *QueryMaxResponse) XXX_Merge(src proto.Message)
func (*QueryMaxResponse) XXX_Size ¶ added in v0.2.7
func (m *QueryMaxResponse) XXX_Size() int
func (*QueryMaxResponse) XXX_Unmarshal ¶ added in v0.2.7
func (m *QueryMaxResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of treasury module Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Currencies queries all supported currency denom list Currencies(context.Context, *QueryCurrenciesRequest) (*QueryCurrenciesResponse, error) // Currency queries a currency info Currency(context.Context, *QueryCurrencyRequest) (*QueryCurrencyResponse, error) // Max queries maximum mintable amount of uatolo MaxAtoloSupply(context.Context, *QueryMaxRequest) (*QueryMaxResponse, error) // Params queries parameters of treasury Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type Sequence ¶
type Sequence struct { // number is the currency sequence number of current state Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty" yaml:"number"` }
Sequence
func (*Sequence) Descriptor ¶
func (*Sequence) MarshalToSizedBuffer ¶
func (*Sequence) ProtoMessage ¶
func (*Sequence) ProtoMessage()
func (*Sequence) XXX_DiscardUnknown ¶
func (m *Sequence) XXX_DiscardUnknown()
func (*Sequence) XXX_Marshal ¶
func (*Sequence) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurnRequest) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMintRequest) (*MsgMintResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Currencies ¶
func (*UnimplementedQueryServer) Currencies(ctx context.Context, req *QueryCurrenciesRequest) (*QueryCurrenciesResponse, error)
func (*UnimplementedQueryServer) Currency ¶
func (*UnimplementedQueryServer) Currency(ctx context.Context, req *QueryCurrencyRequest) (*QueryCurrencyResponse, error)
func (*UnimplementedQueryServer) MaxAtoloSupply ¶ added in v0.2.7
func (*UnimplementedQueryServer) MaxAtoloSupply(ctx context.Context, req *QueryMaxRequest) (*QueryMaxResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)