Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BurnAmountKey(index uint64) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type BurnAmount
- func (burnAmount BurnAmount) CalculateBurntAmount() sdk.Coin
- func (burnAmount *BurnAmount) CumulateBurntAmount(amount sdk.Coin)
- func (*BurnAmount) Descriptor() ([]byte, []int)
- func (m *BurnAmount) GetBurnStarted() bool
- func (m *BurnAmount) GetCumulativeBurntAmount() types.Coin
- func (m *BurnAmount) GetCurrentEpoch() uint64
- func (m *BurnAmount) GetIndex() uint64
- func (m *BurnAmount) GetTotalBurnAmount() types.Coin
- func (m *BurnAmount) GetTotalEpochs() uint64
- func (m *BurnAmount) Marshal() (dAtA []byte, err error)
- func (m *BurnAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *BurnAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BurnAmount) ProtoMessage()
- func (m *BurnAmount) Reset()
- func (m *BurnAmount) Size() (n int)
- func (m *BurnAmount) String() string
- func (m *BurnAmount) Unmarshal(dAtA []byte) error
- func (m *BurnAmount) XXX_DiscardUnknown()
- func (m *BurnAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurnAmount) XXX_Merge(src proto.Message)
- func (m *BurnAmount) XXX_Size() int
- func (m *BurnAmount) XXX_Unmarshal(b []byte) error
- type EpochBurnConfig
- func (*EpochBurnConfig) Descriptor() ([]byte, []int)
- func (m *EpochBurnConfig) GetCurrentBurnAmountIndex() uint64
- func (m *EpochBurnConfig) GetDefaultTotalEpochs() uint64
- func (m *EpochBurnConfig) GetEpochIdentifier() string
- func (m *EpochBurnConfig) GetStartTime() time.Time
- func (m *EpochBurnConfig) Marshal() (dAtA []byte, err error)
- func (m *EpochBurnConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *EpochBurnConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EpochBurnConfig) ProtoMessage()
- func (m *EpochBurnConfig) Reset()
- func (m *EpochBurnConfig) Size() (n int)
- func (m *EpochBurnConfig) String() string
- func (m *EpochBurnConfig) Unmarshal(dAtA []byte) error
- func (m *EpochBurnConfig) XXX_DiscardUnknown()
- func (m *EpochBurnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EpochBurnConfig) XXX_Merge(src proto.Message)
- func (m *EpochBurnConfig) XXX_Size() int
- func (m *EpochBurnConfig) XXX_Unmarshal(b []byte) error
- type EpochsKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBurnAmounts() []BurnAmount
- func (m *GenesisState) GetEpochBurnConfig() EpochBurnConfig
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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 QueryAllBurnAmountRequest
- func (*QueryAllBurnAmountRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBurnAmountRequest) GetPagination() *query.PageRequest
- func (m *QueryAllBurnAmountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBurnAmountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBurnAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBurnAmountRequest) ProtoMessage()
- func (m *QueryAllBurnAmountRequest) Reset()
- func (m *QueryAllBurnAmountRequest) Size() (n int)
- func (m *QueryAllBurnAmountRequest) String() string
- func (m *QueryAllBurnAmountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBurnAmountRequest) XXX_DiscardUnknown()
- func (m *QueryAllBurnAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBurnAmountRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBurnAmountRequest) XXX_Size() int
- func (m *QueryAllBurnAmountRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBurnAmountResponse
- func (*QueryAllBurnAmountResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBurnAmountResponse) GetBurnAmount() []BurnAmount
- func (m *QueryAllBurnAmountResponse) GetPagination() *query.PageResponse
- func (m *QueryAllBurnAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBurnAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBurnAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBurnAmountResponse) ProtoMessage()
- func (m *QueryAllBurnAmountResponse) Reset()
- func (m *QueryAllBurnAmountResponse) Size() (n int)
- func (m *QueryAllBurnAmountResponse) String() string
- func (m *QueryAllBurnAmountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBurnAmountResponse) XXX_DiscardUnknown()
- func (m *QueryAllBurnAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBurnAmountResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBurnAmountResponse) XXX_Size() int
- func (m *QueryAllBurnAmountResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetBurnAmountRequest
- func (*QueryGetBurnAmountRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBurnAmountRequest) GetIndex() uint64
- func (m *QueryGetBurnAmountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBurnAmountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBurnAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBurnAmountRequest) ProtoMessage()
- func (m *QueryGetBurnAmountRequest) Reset()
- func (m *QueryGetBurnAmountRequest) Size() (n int)
- func (m *QueryGetBurnAmountRequest) String() string
- func (m *QueryGetBurnAmountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBurnAmountRequest) XXX_DiscardUnknown()
- func (m *QueryGetBurnAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBurnAmountRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBurnAmountRequest) XXX_Size() int
- func (m *QueryGetBurnAmountRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBurnAmountResponse
- func (*QueryGetBurnAmountResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBurnAmountResponse) GetBurnAmount() BurnAmount
- func (m *QueryGetBurnAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBurnAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBurnAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBurnAmountResponse) ProtoMessage()
- func (m *QueryGetBurnAmountResponse) Reset()
- func (m *QueryGetBurnAmountResponse) Size() (n int)
- func (m *QueryGetBurnAmountResponse) String() string
- func (m *QueryGetBurnAmountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBurnAmountResponse) XXX_DiscardUnknown()
- func (m *QueryGetBurnAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBurnAmountResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBurnAmountResponse) XXX_Size() int
- func (m *QueryGetBurnAmountResponse) XXX_Unmarshal(b []byte) error
- type QueryGetEpochBurnConfigRequest
- func (*QueryGetEpochBurnConfigRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetEpochBurnConfigRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetEpochBurnConfigRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetEpochBurnConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetEpochBurnConfigRequest) ProtoMessage()
- func (m *QueryGetEpochBurnConfigRequest) Reset()
- func (m *QueryGetEpochBurnConfigRequest) Size() (n int)
- func (m *QueryGetEpochBurnConfigRequest) String() string
- func (m *QueryGetEpochBurnConfigRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetEpochBurnConfigRequest) XXX_DiscardUnknown()
- func (m *QueryGetEpochBurnConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetEpochBurnConfigRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetEpochBurnConfigRequest) XXX_Size() int
- func (m *QueryGetEpochBurnConfigRequest) XXX_Unmarshal(b []byte) error
- type QueryGetEpochBurnConfigResponse
- func (*QueryGetEpochBurnConfigResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetEpochBurnConfigResponse) GetEpochBurnConfig() EpochBurnConfig
- func (m *QueryGetEpochBurnConfigResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetEpochBurnConfigResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetEpochBurnConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetEpochBurnConfigResponse) ProtoMessage()
- func (m *QueryGetEpochBurnConfigResponse) Reset()
- func (m *QueryGetEpochBurnConfigResponse) Size() (n int)
- func (m *QueryGetEpochBurnConfigResponse) String() string
- func (m *QueryGetEpochBurnConfigResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetEpochBurnConfigResponse) XXX_DiscardUnknown()
- func (m *QueryGetEpochBurnConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetEpochBurnConfigResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetEpochBurnConfigResponse) XXX_Size() int
- func (m *QueryGetEpochBurnConfigResponse) 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 UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) BurnAmount(ctx context.Context, req *QueryGetBurnAmountRequest) (*QueryGetBurnAmountResponse, error)
- func (*UnimplementedQueryServer) BurnAmountAll(ctx context.Context, req *QueryAllBurnAmountRequest) (*QueryAllBurnAmountResponse, error)
- func (*UnimplementedQueryServer) EpochBurnConfig(ctx context.Context, req *QueryGetEpochBurnConfigRequest) (*QueryGetEpochBurnConfigResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeEpochBurn = "epoch-burn" AttributeKeyEpochIdentifier = "epoch-identifier" AttributeKeyEpochNumber = "epoch-number" AttributeKeyBurnIndex = "burn-index" AttributeKeyBurnTotalEpochs = "burn-total-epochs" AttributeKeyBurnCurrentEpoch = "burn-current-epoch" AttributeKeybBurnAmount = "burn-amount" AttributeKeyBurnCumulativeAmount = "burn-cumulative-amount" AttributeKeyBurnTimestamp = "burn-timestamp" )
const ( EventTypeBurnAmountCreated = "burn-amount-created" AttributeKeyBurnAmountIndex = "burn-amount-index" )
const ( // ModuleName defines the module name ModuleName = "furnace" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_furnace" )
const (
// BurnAmountKeyPrefix is the prefix to retrieve all BurnAmount
BurnAmountKeyPrefix = "BurnAmount/value/"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
EpochBurnConfigKey = "EpochBurnConfig/value/"
)
Variables ¶
var ( ErrInvalidLengthBurnAmount = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBurnAmount = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBurnAmount = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthEpochBurnConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEpochBurnConfig = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEpochBurnConfig = fmt.Errorf("proto: unexpected end of group") )
var ( ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") ErrInvalidRegistrationPeriod = sdkerrors.Register(ModuleName, 1101, "invalid registration period") )
x/furnace module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func BurnAmountKey ¶
BurnAmountKey returns the store key to retrieve a BurnAmount from the index fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type BurnAmount ¶
type BurnAmount struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` BurnStarted bool `protobuf:"varint,2,opt,name=burnStarted,proto3" json:"burnStarted,omitempty"` TotalEpochs uint64 `protobuf:"varint,3,opt,name=totalEpochs,proto3" json:"totalEpochs,omitempty"` CurrentEpoch uint64 `protobuf:"varint,4,opt,name=currentEpoch,proto3" json:"currentEpoch,omitempty"` TotalBurnAmount types.Coin `protobuf:"bytes,5,opt,name=totalBurnAmount,proto3" json:"totalBurnAmount"` CumulativeBurntAmount types.Coin `protobuf:"bytes,6,opt,name=cumulativeBurntAmount,proto3" json:"cumulativeBurntAmount"` }
func NewBurnAmount ¶
func NewBurnAmount(config EpochBurnConfig, index uint64) BurnAmount
func (BurnAmount) CalculateBurntAmount ¶
func (burnAmount BurnAmount) CalculateBurntAmount() sdk.Coin
func (*BurnAmount) CumulateBurntAmount ¶
func (burnAmount *BurnAmount) CumulateBurntAmount(amount sdk.Coin)
func (*BurnAmount) Descriptor ¶
func (*BurnAmount) Descriptor() ([]byte, []int)
func (*BurnAmount) GetBurnStarted ¶
func (m *BurnAmount) GetBurnStarted() bool
func (*BurnAmount) GetCumulativeBurntAmount ¶
func (m *BurnAmount) GetCumulativeBurntAmount() types.Coin
func (*BurnAmount) GetCurrentEpoch ¶
func (m *BurnAmount) GetCurrentEpoch() uint64
func (*BurnAmount) GetIndex ¶
func (m *BurnAmount) GetIndex() uint64
func (*BurnAmount) GetTotalBurnAmount ¶
func (m *BurnAmount) GetTotalBurnAmount() types.Coin
func (*BurnAmount) GetTotalEpochs ¶
func (m *BurnAmount) GetTotalEpochs() uint64
func (*BurnAmount) Marshal ¶
func (m *BurnAmount) Marshal() (dAtA []byte, err error)
func (*BurnAmount) MarshalToSizedBuffer ¶
func (m *BurnAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BurnAmount) ProtoMessage ¶
func (*BurnAmount) ProtoMessage()
func (*BurnAmount) Reset ¶
func (m *BurnAmount) Reset()
func (*BurnAmount) Size ¶
func (m *BurnAmount) Size() (n int)
func (*BurnAmount) String ¶
func (m *BurnAmount) String() string
func (*BurnAmount) Unmarshal ¶
func (m *BurnAmount) Unmarshal(dAtA []byte) error
func (*BurnAmount) XXX_DiscardUnknown ¶
func (m *BurnAmount) XXX_DiscardUnknown()
func (*BurnAmount) XXX_Marshal ¶
func (m *BurnAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BurnAmount) XXX_Merge ¶
func (m *BurnAmount) XXX_Merge(src proto.Message)
func (*BurnAmount) XXX_Size ¶
func (m *BurnAmount) XXX_Size() int
func (*BurnAmount) XXX_Unmarshal ¶
func (m *BurnAmount) XXX_Unmarshal(b []byte) error
type EpochBurnConfig ¶
type EpochBurnConfig struct { EpochIdentifier string `protobuf:"bytes,1,opt,name=epochIdentifier,proto3" json:"epochIdentifier,omitempty"` CurrentBurnAmountIndex uint64 `protobuf:"varint,2,opt,name=currentBurnAmountIndex,proto3" json:"currentBurnAmountIndex,omitempty"` DefaultTotalEpochs uint64 `protobuf:"varint,3,opt,name=defaultTotalEpochs,proto3" json:"defaultTotalEpochs,omitempty"` StartTime time.Time `protobuf:"bytes,4,opt,name=startTime,proto3,stdtime" json:"startTime" yaml:"start_time"` }
func GetDefaultEpochBurnConfig ¶
func GetDefaultEpochBurnConfig() EpochBurnConfig
func (*EpochBurnConfig) Descriptor ¶
func (*EpochBurnConfig) Descriptor() ([]byte, []int)
func (*EpochBurnConfig) GetCurrentBurnAmountIndex ¶
func (m *EpochBurnConfig) GetCurrentBurnAmountIndex() uint64
func (*EpochBurnConfig) GetDefaultTotalEpochs ¶
func (m *EpochBurnConfig) GetDefaultTotalEpochs() uint64
func (*EpochBurnConfig) GetEpochIdentifier ¶
func (m *EpochBurnConfig) GetEpochIdentifier() string
func (*EpochBurnConfig) GetStartTime ¶
func (m *EpochBurnConfig) GetStartTime() time.Time
func (*EpochBurnConfig) Marshal ¶
func (m *EpochBurnConfig) Marshal() (dAtA []byte, err error)
func (*EpochBurnConfig) MarshalToSizedBuffer ¶
func (m *EpochBurnConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EpochBurnConfig) ProtoMessage ¶
func (*EpochBurnConfig) ProtoMessage()
func (*EpochBurnConfig) Reset ¶
func (m *EpochBurnConfig) Reset()
func (*EpochBurnConfig) Size ¶
func (m *EpochBurnConfig) Size() (n int)
func (*EpochBurnConfig) String ¶
func (m *EpochBurnConfig) String() string
func (*EpochBurnConfig) Unmarshal ¶
func (m *EpochBurnConfig) Unmarshal(dAtA []byte) error
func (*EpochBurnConfig) XXX_DiscardUnknown ¶
func (m *EpochBurnConfig) XXX_DiscardUnknown()
func (*EpochBurnConfig) XXX_Marshal ¶
func (m *EpochBurnConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EpochBurnConfig) XXX_Merge ¶
func (m *EpochBurnConfig) XXX_Merge(src proto.Message)
func (*EpochBurnConfig) XXX_Size ¶
func (m *EpochBurnConfig) XXX_Size() int
func (*EpochBurnConfig) XXX_Unmarshal ¶
func (m *EpochBurnConfig) XXX_Unmarshal(b []byte) error
type EpochsKeeper ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` EpochBurnConfig EpochBurnConfig `protobuf:"bytes,2,opt,name=epochBurnConfig,proto3" json:"epochBurnConfig"` BurnAmounts []BurnAmount `protobuf:"bytes,3,rep,name=burnAmounts,proto3" json:"burnAmounts"` }
GenesisState defines the furnace module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBurnAmounts ¶
func (m *GenesisState) GetBurnAmounts() []BurnAmount
func (*GenesisState) GetEpochBurnConfig ¶
func (m *GenesisState) GetEpochBurnConfig() EpochBurnConfig
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
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 Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the 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 QueryAllBurnAmountRequest ¶
type QueryAllBurnAmountRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllBurnAmountRequest) Descriptor ¶
func (*QueryAllBurnAmountRequest) Descriptor() ([]byte, []int)
func (*QueryAllBurnAmountRequest) GetPagination ¶
func (m *QueryAllBurnAmountRequest) GetPagination() *query.PageRequest
func (*QueryAllBurnAmountRequest) Marshal ¶
func (m *QueryAllBurnAmountRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBurnAmountRequest) MarshalTo ¶
func (m *QueryAllBurnAmountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBurnAmountRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBurnAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBurnAmountRequest) ProtoMessage ¶
func (*QueryAllBurnAmountRequest) ProtoMessage()
func (*QueryAllBurnAmountRequest) Reset ¶
func (m *QueryAllBurnAmountRequest) Reset()
func (*QueryAllBurnAmountRequest) Size ¶
func (m *QueryAllBurnAmountRequest) Size() (n int)
func (*QueryAllBurnAmountRequest) String ¶
func (m *QueryAllBurnAmountRequest) String() string
func (*QueryAllBurnAmountRequest) Unmarshal ¶
func (m *QueryAllBurnAmountRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBurnAmountRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBurnAmountRequest) XXX_DiscardUnknown()
func (*QueryAllBurnAmountRequest) XXX_Marshal ¶
func (m *QueryAllBurnAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBurnAmountRequest) XXX_Merge ¶
func (m *QueryAllBurnAmountRequest) XXX_Merge(src proto.Message)
func (*QueryAllBurnAmountRequest) XXX_Size ¶
func (m *QueryAllBurnAmountRequest) XXX_Size() int
func (*QueryAllBurnAmountRequest) XXX_Unmarshal ¶
func (m *QueryAllBurnAmountRequest) XXX_Unmarshal(b []byte) error
type QueryAllBurnAmountResponse ¶
type QueryAllBurnAmountResponse struct { BurnAmount []BurnAmount `protobuf:"bytes,1,rep,name=burnAmount,proto3" json:"burnAmount"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllBurnAmountResponse) Descriptor ¶
func (*QueryAllBurnAmountResponse) Descriptor() ([]byte, []int)
func (*QueryAllBurnAmountResponse) GetBurnAmount ¶
func (m *QueryAllBurnAmountResponse) GetBurnAmount() []BurnAmount
func (*QueryAllBurnAmountResponse) GetPagination ¶
func (m *QueryAllBurnAmountResponse) GetPagination() *query.PageResponse
func (*QueryAllBurnAmountResponse) Marshal ¶
func (m *QueryAllBurnAmountResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBurnAmountResponse) MarshalTo ¶
func (m *QueryAllBurnAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBurnAmountResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBurnAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBurnAmountResponse) ProtoMessage ¶
func (*QueryAllBurnAmountResponse) ProtoMessage()
func (*QueryAllBurnAmountResponse) Reset ¶
func (m *QueryAllBurnAmountResponse) Reset()
func (*QueryAllBurnAmountResponse) Size ¶
func (m *QueryAllBurnAmountResponse) Size() (n int)
func (*QueryAllBurnAmountResponse) String ¶
func (m *QueryAllBurnAmountResponse) String() string
func (*QueryAllBurnAmountResponse) Unmarshal ¶
func (m *QueryAllBurnAmountResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBurnAmountResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBurnAmountResponse) XXX_DiscardUnknown()
func (*QueryAllBurnAmountResponse) XXX_Marshal ¶
func (m *QueryAllBurnAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBurnAmountResponse) XXX_Merge ¶
func (m *QueryAllBurnAmountResponse) XXX_Merge(src proto.Message)
func (*QueryAllBurnAmountResponse) XXX_Size ¶
func (m *QueryAllBurnAmountResponse) XXX_Size() int
func (*QueryAllBurnAmountResponse) XXX_Unmarshal ¶
func (m *QueryAllBurnAmountResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a EpochBurnConfig by index. EpochBurnConfig(ctx context.Context, in *QueryGetEpochBurnConfigRequest, opts ...grpc.CallOption) (*QueryGetEpochBurnConfigResponse, error) // Queries a list of BurnAmount items. BurnAmount(ctx context.Context, in *QueryGetBurnAmountRequest, opts ...grpc.CallOption) (*QueryGetBurnAmountResponse, error) BurnAmountAll(ctx context.Context, in *QueryAllBurnAmountRequest, opts ...grpc.CallOption) (*QueryAllBurnAmountResponse, 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 QueryGetBurnAmountRequest ¶
type QueryGetBurnAmountRequest struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetBurnAmountRequest) Descriptor ¶
func (*QueryGetBurnAmountRequest) Descriptor() ([]byte, []int)
func (*QueryGetBurnAmountRequest) GetIndex ¶
func (m *QueryGetBurnAmountRequest) GetIndex() uint64
func (*QueryGetBurnAmountRequest) Marshal ¶
func (m *QueryGetBurnAmountRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBurnAmountRequest) MarshalTo ¶
func (m *QueryGetBurnAmountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBurnAmountRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBurnAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBurnAmountRequest) ProtoMessage ¶
func (*QueryGetBurnAmountRequest) ProtoMessage()
func (*QueryGetBurnAmountRequest) Reset ¶
func (m *QueryGetBurnAmountRequest) Reset()
func (*QueryGetBurnAmountRequest) Size ¶
func (m *QueryGetBurnAmountRequest) Size() (n int)
func (*QueryGetBurnAmountRequest) String ¶
func (m *QueryGetBurnAmountRequest) String() string
func (*QueryGetBurnAmountRequest) Unmarshal ¶
func (m *QueryGetBurnAmountRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBurnAmountRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBurnAmountRequest) XXX_DiscardUnknown()
func (*QueryGetBurnAmountRequest) XXX_Marshal ¶
func (m *QueryGetBurnAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBurnAmountRequest) XXX_Merge ¶
func (m *QueryGetBurnAmountRequest) XXX_Merge(src proto.Message)
func (*QueryGetBurnAmountRequest) XXX_Size ¶
func (m *QueryGetBurnAmountRequest) XXX_Size() int
func (*QueryGetBurnAmountRequest) XXX_Unmarshal ¶
func (m *QueryGetBurnAmountRequest) XXX_Unmarshal(b []byte) error
type QueryGetBurnAmountResponse ¶
type QueryGetBurnAmountResponse struct {
BurnAmount BurnAmount `protobuf:"bytes,1,opt,name=burnAmount,proto3" json:"burnAmount"`
}
func (*QueryGetBurnAmountResponse) Descriptor ¶
func (*QueryGetBurnAmountResponse) Descriptor() ([]byte, []int)
func (*QueryGetBurnAmountResponse) GetBurnAmount ¶
func (m *QueryGetBurnAmountResponse) GetBurnAmount() BurnAmount
func (*QueryGetBurnAmountResponse) Marshal ¶
func (m *QueryGetBurnAmountResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBurnAmountResponse) MarshalTo ¶
func (m *QueryGetBurnAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBurnAmountResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBurnAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBurnAmountResponse) ProtoMessage ¶
func (*QueryGetBurnAmountResponse) ProtoMessage()
func (*QueryGetBurnAmountResponse) Reset ¶
func (m *QueryGetBurnAmountResponse) Reset()
func (*QueryGetBurnAmountResponse) Size ¶
func (m *QueryGetBurnAmountResponse) Size() (n int)
func (*QueryGetBurnAmountResponse) String ¶
func (m *QueryGetBurnAmountResponse) String() string
func (*QueryGetBurnAmountResponse) Unmarshal ¶
func (m *QueryGetBurnAmountResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBurnAmountResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBurnAmountResponse) XXX_DiscardUnknown()
func (*QueryGetBurnAmountResponse) XXX_Marshal ¶
func (m *QueryGetBurnAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBurnAmountResponse) XXX_Merge ¶
func (m *QueryGetBurnAmountResponse) XXX_Merge(src proto.Message)
func (*QueryGetBurnAmountResponse) XXX_Size ¶
func (m *QueryGetBurnAmountResponse) XXX_Size() int
func (*QueryGetBurnAmountResponse) XXX_Unmarshal ¶
func (m *QueryGetBurnAmountResponse) XXX_Unmarshal(b []byte) error
type QueryGetEpochBurnConfigRequest ¶
type QueryGetEpochBurnConfigRequest struct { }
func (*QueryGetEpochBurnConfigRequest) Descriptor ¶
func (*QueryGetEpochBurnConfigRequest) Descriptor() ([]byte, []int)
func (*QueryGetEpochBurnConfigRequest) Marshal ¶
func (m *QueryGetEpochBurnConfigRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetEpochBurnConfigRequest) MarshalTo ¶
func (m *QueryGetEpochBurnConfigRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetEpochBurnConfigRequest) MarshalToSizedBuffer ¶
func (m *QueryGetEpochBurnConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetEpochBurnConfigRequest) ProtoMessage ¶
func (*QueryGetEpochBurnConfigRequest) ProtoMessage()
func (*QueryGetEpochBurnConfigRequest) Reset ¶
func (m *QueryGetEpochBurnConfigRequest) Reset()
func (*QueryGetEpochBurnConfigRequest) Size ¶
func (m *QueryGetEpochBurnConfigRequest) Size() (n int)
func (*QueryGetEpochBurnConfigRequest) String ¶
func (m *QueryGetEpochBurnConfigRequest) String() string
func (*QueryGetEpochBurnConfigRequest) Unmarshal ¶
func (m *QueryGetEpochBurnConfigRequest) Unmarshal(dAtA []byte) error
func (*QueryGetEpochBurnConfigRequest) XXX_DiscardUnknown ¶
func (m *QueryGetEpochBurnConfigRequest) XXX_DiscardUnknown()
func (*QueryGetEpochBurnConfigRequest) XXX_Marshal ¶
func (m *QueryGetEpochBurnConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetEpochBurnConfigRequest) XXX_Merge ¶
func (m *QueryGetEpochBurnConfigRequest) XXX_Merge(src proto.Message)
func (*QueryGetEpochBurnConfigRequest) XXX_Size ¶
func (m *QueryGetEpochBurnConfigRequest) XXX_Size() int
func (*QueryGetEpochBurnConfigRequest) XXX_Unmarshal ¶
func (m *QueryGetEpochBurnConfigRequest) XXX_Unmarshal(b []byte) error
type QueryGetEpochBurnConfigResponse ¶
type QueryGetEpochBurnConfigResponse struct {
EpochBurnConfig EpochBurnConfig `protobuf:"bytes,1,opt,name=EpochBurnConfig,proto3" json:"EpochBurnConfig"`
}
func (*QueryGetEpochBurnConfigResponse) Descriptor ¶
func (*QueryGetEpochBurnConfigResponse) Descriptor() ([]byte, []int)
func (*QueryGetEpochBurnConfigResponse) GetEpochBurnConfig ¶
func (m *QueryGetEpochBurnConfigResponse) GetEpochBurnConfig() EpochBurnConfig
func (*QueryGetEpochBurnConfigResponse) Marshal ¶
func (m *QueryGetEpochBurnConfigResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetEpochBurnConfigResponse) MarshalTo ¶
func (m *QueryGetEpochBurnConfigResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetEpochBurnConfigResponse) MarshalToSizedBuffer ¶
func (m *QueryGetEpochBurnConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetEpochBurnConfigResponse) ProtoMessage ¶
func (*QueryGetEpochBurnConfigResponse) ProtoMessage()
func (*QueryGetEpochBurnConfigResponse) Reset ¶
func (m *QueryGetEpochBurnConfigResponse) Reset()
func (*QueryGetEpochBurnConfigResponse) Size ¶
func (m *QueryGetEpochBurnConfigResponse) Size() (n int)
func (*QueryGetEpochBurnConfigResponse) String ¶
func (m *QueryGetEpochBurnConfigResponse) String() string
func (*QueryGetEpochBurnConfigResponse) Unmarshal ¶
func (m *QueryGetEpochBurnConfigResponse) Unmarshal(dAtA []byte) error
func (*QueryGetEpochBurnConfigResponse) XXX_DiscardUnknown ¶
func (m *QueryGetEpochBurnConfigResponse) XXX_DiscardUnknown()
func (*QueryGetEpochBurnConfigResponse) XXX_Marshal ¶
func (m *QueryGetEpochBurnConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetEpochBurnConfigResponse) XXX_Merge ¶
func (m *QueryGetEpochBurnConfigResponse) XXX_Merge(src proto.Message)
func (*QueryGetEpochBurnConfigResponse) XXX_Size ¶
func (m *QueryGetEpochBurnConfigResponse) XXX_Size() int
func (*QueryGetEpochBurnConfigResponse) XXX_Unmarshal ¶
func (m *QueryGetEpochBurnConfigResponse) 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 holds all the parameters of this 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 { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a EpochBurnConfig by index. EpochBurnConfig(context.Context, *QueryGetEpochBurnConfigRequest) (*QueryGetEpochBurnConfigResponse, error) // Queries a list of BurnAmount items. BurnAmount(context.Context, *QueryGetBurnAmountRequest) (*QueryGetBurnAmountResponse, error) BurnAmountAll(context.Context, *QueryAllBurnAmountRequest) (*QueryAllBurnAmountResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) BurnAmount ¶
func (*UnimplementedQueryServer) BurnAmount(ctx context.Context, req *QueryGetBurnAmountRequest) (*QueryGetBurnAmountResponse, error)
func (*UnimplementedQueryServer) BurnAmountAll ¶
func (*UnimplementedQueryServer) BurnAmountAll(ctx context.Context, req *QueryAllBurnAmountRequest) (*QueryAllBurnAmountResponse, error)
func (*UnimplementedQueryServer) EpochBurnConfig ¶
func (*UnimplementedQueryServer) EpochBurnConfig(ctx context.Context, req *QueryGetEpochBurnConfigRequest) (*QueryGetEpochBurnConfigResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)