Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- func ValidateMinter(minter Minter) error
- type AccountKeeper
- type BankKeeper
- type EpochKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetMinter() Minter
- 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 (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 MintHooks
- type Minter
- func (*Minter) Descriptor() ([]byte, []int)
- func (m *Minter) GetDenom() string
- func (m *Minter) GetEndDate() string
- func (m *Minter) GetEndDateTime() time.Time
- func (m *Minter) GetLastMintAmount() uint64
- func (m Minter) GetLastMintAmountCoin() sdk.Coin
- func (m *Minter) GetLastMintDate() string
- func (m *Minter) GetLastMintDateTime() time.Time
- func (m *Minter) GetLastMintHeight() uint64
- func (m *Minter) GetReleaseAmountToday(currentTime time.Time) sdk.Coins
- func (m *Minter) GetRemainingMintAmount() uint64
- func (m *Minter) GetStartDate() string
- func (m *Minter) GetStartDateTime() time.Time
- func (m *Minter) GetTotalMintAmount() uint64
- func (m *Minter) Marshal() (dAtA []byte, err error)
- func (m *Minter) MarshalTo(dAtA []byte) (int, error)
- func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *Minter) OngoingRelease() bool
- func (*Minter) ProtoMessage()
- func (m *Minter) RecordSuccessfulMint(ctx sdk.Context, epoch epochTypes.Epoch, mintedAmount uint64)
- func (m *Minter) Reset()
- func (m *Minter) Size() (n int)
- func (m *Minter) String() string
- func (m *Minter) Unmarshal(dAtA []byte) error
- func (m *Minter) XXX_DiscardUnknown()
- func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Minter) XXX_Merge(src proto.Message)
- func (m *Minter) XXX_Size() int
- func (m *Minter) XXX_Unmarshal(b []byte) error
- type MultiMintHooks
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMintDenom() string
- func (m *Params) GetTokenReleaseSchedule() []ScheduledTokenRelease
- 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 QueryMinterRequest
- func (*QueryMinterRequest) Descriptor() ([]byte, []int)
- func (m *QueryMinterRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMinterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMinterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMinterRequest) ProtoMessage()
- func (m *QueryMinterRequest) Reset()
- func (m *QueryMinterRequest) Size() (n int)
- func (m *QueryMinterRequest) String() string
- func (m *QueryMinterRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMinterRequest) XXX_DiscardUnknown()
- func (m *QueryMinterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMinterRequest) XXX_Merge(src proto.Message)
- func (m *QueryMinterRequest) XXX_Size() int
- func (m *QueryMinterRequest) XXX_Unmarshal(b []byte) error
- type QueryMinterResponse
- func (*QueryMinterResponse) Descriptor() ([]byte, []int)
- func (m *QueryMinterResponse) GetDenom() string
- func (m *QueryMinterResponse) GetEndDate() string
- func (m *QueryMinterResponse) GetLastMintAmount() uint64
- func (m *QueryMinterResponse) GetLastMintDate() string
- func (m *QueryMinterResponse) GetLastMintHeight() uint64
- func (m *QueryMinterResponse) GetRemainingMintAmount() uint64
- func (m *QueryMinterResponse) GetStartDate() string
- func (m *QueryMinterResponse) GetTotalMintAmount() uint64
- func (m *QueryMinterResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMinterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMinterResponse) ProtoMessage()
- func (m *QueryMinterResponse) Reset()
- func (m *QueryMinterResponse) Size() (n int)
- func (m *QueryMinterResponse) String() string
- func (m *QueryMinterResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMinterResponse) XXX_DiscardUnknown()
- func (m *QueryMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMinterResponse) XXX_Merge(src proto.Message)
- func (m *QueryMinterResponse) XXX_Size() int
- func (m *QueryMinterResponse) 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 ScheduledTokenRelease
- func (*ScheduledTokenRelease) Descriptor() ([]byte, []int)
- func (m *ScheduledTokenRelease) GetEndDate() string
- func (m *ScheduledTokenRelease) GetStartDate() string
- func (m *ScheduledTokenRelease) GetTokenReleaseAmount() uint64
- func (m *ScheduledTokenRelease) Marshal() (dAtA []byte, err error)
- func (m *ScheduledTokenRelease) MarshalTo(dAtA []byte) (int, error)
- func (m *ScheduledTokenRelease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ScheduledTokenRelease) ProtoMessage()
- func (m *ScheduledTokenRelease) Reset()
- func (m *ScheduledTokenRelease) Size() (n int)
- func (m *ScheduledTokenRelease) String() string
- func (m *ScheduledTokenRelease) Unmarshal(dAtA []byte) error
- func (m *ScheduledTokenRelease) XXX_DiscardUnknown()
- func (m *ScheduledTokenRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScheduledTokenRelease) XXX_Merge(src proto.Message)
- func (m *ScheduledTokenRelease) XXX_Size() int
- func (m *ScheduledTokenRelease) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedQueryServer
- type UpdateMinterProposal
- func (*UpdateMinterProposal) Descriptor() ([]byte, []int)
- func (p *UpdateMinterProposal) GetDescription() string
- func (p *UpdateMinterProposal) GetTitle() string
- func (m *UpdateMinterProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateMinterProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateMinterProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdateMinterProposal) ProposalRoute() string
- func (p *UpdateMinterProposal) ProposalType() string
- func (*UpdateMinterProposal) ProtoMessage()
- func (m *UpdateMinterProposal) Reset()
- func (m *UpdateMinterProposal) Size() (n int)
- func (p UpdateMinterProposal) String() string
- func (m *UpdateMinterProposal) Unmarshal(dAtA []byte) error
- func (p *UpdateMinterProposal) ValidateBasic() error
- func (m *UpdateMinterProposal) XXX_DiscardUnknown()
- func (m *UpdateMinterProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateMinterProposal) XXX_Merge(src proto.Message)
- func (m *UpdateMinterProposal) XXX_Size() int
- func (m *UpdateMinterProposal) XXX_Unmarshal(b []byte) error
- type Version2Minter
- func (*Version2Minter) Descriptor() ([]byte, []int)
- func (m *Version2Minter) GetDenom() string
- func (m *Version2Minter) GetLastMintDate() string
- func (m *Version2Minter) GetLastMintHeight() int64
- func (m *Version2Minter) Marshal() (dAtA []byte, err error)
- func (m *Version2Minter) MarshalTo(dAtA []byte) (int, error)
- func (m *Version2Minter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Version2Minter) ProtoMessage()
- func (m *Version2Minter) Reset()
- func (m *Version2Minter) Size() (n int)
- func (m *Version2Minter) String() string
- func (m *Version2Minter) Unmarshal(dAtA []byte) error
- func (m *Version2Minter) XXX_DiscardUnknown()
- func (m *Version2Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version2Minter) XXX_Merge(src proto.Message)
- func (m *Version2Minter) XXX_Size() int
- func (m *Version2Minter) XXX_Unmarshal(b []byte) error
- type Version2Params
- func (*Version2Params) Descriptor() ([]byte, []int)
- func (m *Version2Params) GetMintDenom() string
- func (m *Version2Params) GetTokenReleaseSchedule() []Version2ScheduledTokenRelease
- func (m *Version2Params) Marshal() (dAtA []byte, err error)
- func (m *Version2Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Version2Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Version2Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Version2Params) ProtoMessage()
- func (m *Version2Params) Reset()
- func (m *Version2Params) Size() (n int)
- func (p Version2Params) String() string
- func (m *Version2Params) Unmarshal(dAtA []byte) error
- func (m *Version2Params) XXX_DiscardUnknown()
- func (m *Version2Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version2Params) XXX_Merge(src proto.Message)
- func (m *Version2Params) XXX_Size() int
- func (m *Version2Params) XXX_Unmarshal(b []byte) error
- type Version2ScheduledTokenRelease
- func (*Version2ScheduledTokenRelease) Descriptor() ([]byte, []int)
- func (m *Version2ScheduledTokenRelease) GetDate() string
- func (m *Version2ScheduledTokenRelease) GetTokenReleaseAmount() int64
- func (m *Version2ScheduledTokenRelease) Marshal() (dAtA []byte, err error)
- func (m *Version2ScheduledTokenRelease) MarshalTo(dAtA []byte) (int, error)
- func (m *Version2ScheduledTokenRelease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Version2ScheduledTokenRelease) ProtoMessage()
- func (m *Version2ScheduledTokenRelease) Reset()
- func (m *Version2ScheduledTokenRelease) Size() (n int)
- func (m *Version2ScheduledTokenRelease) String() string
- func (m *Version2ScheduledTokenRelease) Unmarshal(dAtA []byte) error
- func (m *Version2ScheduledTokenRelease) XXX_DiscardUnknown()
- func (m *Version2ScheduledTokenRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version2ScheduledTokenRelease) XXX_Merge(src proto.Message)
- func (m *Version2ScheduledTokenRelease) XXX_Size() int
- func (m *Version2ScheduledTokenRelease) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeMint = ModuleName AttribtueMintDate = "mint_date" AttributeMintEpoch = "mint_epoch" )
Minting module event types
const ( // module name ModuleName = "mint" // StoreKey is the default store key for mint StoreKey = ModuleName RouterKey = ModuleName MemStoreKey = "mem_mint" // QuerierRoute is the querier route for the minting store. QuerierRoute = StoreKey // Query endpoints supported by the minting querier QueryParameters = "parameters" QueryInflation = "inflation" QueryAnnualProvisions = "annual_provisions" // Format used for scheduling token releases /*#nosec G101 Not a hard coded credential*/ TokenReleaseDateFormat = "2006-01-02" )
const (
ProposalTypeUpdateMinter = "UpdateMinter"
)
Variables ¶
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 ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMint = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMint = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMint = fmt.Errorf("proto: unexpected end of group") )
var ( KeyMintDenom = []byte("MintDenom") KeyTokenReleaseSchedule = []byte("TokenReleaseSchedule") )
Parameter store keys
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 MinterKey = []byte{0x00}
MinterKey is the key to use for the keeper store.
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, types.ModuleAccountI) GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI }
AccountKeeper defines the contract required for account APIs.
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error DeferredMintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error DeferredBurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.
type EpochKeeper ¶
type EpochKeeper interface {
GetEpoch(ctx sdk.Context) epochtypes.Epoch
}
EpochKeeper defines the contract needed to be fulfilled for epoch keepers
type GenesisState ¶
type GenesisState struct { // minter is a space for holding current inflation information. Minter Minter `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter"` // params defines all the paramaters of the module. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
GenesisState defines the mint module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object.
func NewGenesisState ¶
func NewGenesisState(minter Minter, params Params) *GenesisState
NewGenesisState creates a new GenesisState object.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetMinter ¶
func (m *GenesisState) GetMinter() Minter
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) 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 Minter ¶
type Minter struct { StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` TotalMintAmount uint64 `protobuf:"varint,4,opt,name=total_mint_amount,json=totalMintAmount,proto3" json:"total_mint_amount,omitempty"` RemainingMintAmount uint64 `protobuf:"varint,5,opt,name=remaining_mint_amount,json=remainingMintAmount,proto3" json:"remaining_mint_amount,omitempty"` LastMintAmount uint64 `protobuf:"varint,6,opt,name=last_mint_amount,json=lastMintAmount,proto3" json:"last_mint_amount,omitempty"` LastMintDate string `protobuf:"bytes,7,opt,name=last_mint_date,json=lastMintDate,proto3" json:"last_mint_date,omitempty"` LastMintHeight uint64 `protobuf:"varint,8,opt,name=last_mint_height,json=lastMintHeight,proto3" json:"last_mint_height,omitempty"` }
Minter represents the most recent
func DefaultInitialMinter ¶
func DefaultInitialMinter() Minter
DefaultInitialMinter returns a default initial Minter object for a new chain which uses an inflation rate of 0%.
func InitialMinter ¶
func InitialMinter() Minter
InitialMinter returns an initial Minter object with default values with no previous mints
func NewMinter ¶
NewMinter returns a new Minter object with the given inflation and annual provisions values.
func (*Minter) Descriptor ¶
func (*Minter) GetEndDate ¶
func (*Minter) GetEndDateTime ¶
func (*Minter) GetLastMintAmount ¶
func (Minter) GetLastMintAmountCoin ¶
func (*Minter) GetLastMintDate ¶
func (*Minter) GetLastMintDateTime ¶
func (*Minter) GetLastMintHeight ¶
func (*Minter) GetReleaseAmountToday ¶
func (*Minter) GetRemainingMintAmount ¶
func (*Minter) GetStartDate ¶
func (*Minter) GetStartDateTime ¶
func (*Minter) GetTotalMintAmount ¶
func (*Minter) MarshalToSizedBuffer ¶
func (*Minter) OngoingRelease ¶
func (*Minter) ProtoMessage ¶
func (*Minter) ProtoMessage()
func (*Minter) RecordSuccessfulMint ¶
func (*Minter) XXX_DiscardUnknown ¶
func (m *Minter) XXX_DiscardUnknown()
func (*Minter) XXX_Marshal ¶
func (*Minter) XXX_Unmarshal ¶
type MultiMintHooks ¶
type MultiMintHooks []MintHooks
combine multiple mint hooks, all hook functions are run in array sequence.
func NewMultiMintHooks ¶
func NewMultiMintHooks(hooks ...MintHooks) MultiMintHooks
func (MultiMintHooks) AfterDistributeMintedCoin ¶
func (h MultiMintHooks) AfterDistributeMintedCoin(ctx sdk.Context, mintedCoin sdk.Coin)
type Params ¶
type Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // List of token release schedules TokenReleaseSchedule []ScheduledTokenRelease `` /* 143-byte string literal not displayed */ }
Params holds parameters for the mint module.
func NewParams ¶
func NewParams( mintDenom string, tokenReleaseSchedule []ScheduledTokenRelease, ) Params
func (*Params) Descriptor ¶
func (*Params) GetMintDenom ¶
func (*Params) GetTokenReleaseSchedule ¶
func (m *Params) GetTokenReleaseSchedule() []ScheduledTokenRelease
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 { // Params returns the total set of minting parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // EpochProvisions current minting epoch provisions value. Minter(ctx context.Context, in *QueryMinterRequest, opts ...grpc.CallOption) (*QueryMinterResponse, 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 QueryMinterRequest ¶
type QueryMinterRequest struct { }
QueryMinterRequest is the request type for the Query/Minter RPC method.
func (*QueryMinterRequest) Descriptor ¶
func (*QueryMinterRequest) Descriptor() ([]byte, []int)
func (*QueryMinterRequest) Marshal ¶
func (m *QueryMinterRequest) Marshal() (dAtA []byte, err error)
func (*QueryMinterRequest) MarshalTo ¶
func (m *QueryMinterRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMinterRequest) MarshalToSizedBuffer ¶
func (m *QueryMinterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMinterRequest) ProtoMessage ¶
func (*QueryMinterRequest) ProtoMessage()
func (*QueryMinterRequest) Reset ¶
func (m *QueryMinterRequest) Reset()
func (*QueryMinterRequest) Size ¶
func (m *QueryMinterRequest) Size() (n int)
func (*QueryMinterRequest) String ¶
func (m *QueryMinterRequest) String() string
func (*QueryMinterRequest) Unmarshal ¶
func (m *QueryMinterRequest) Unmarshal(dAtA []byte) error
func (*QueryMinterRequest) XXX_DiscardUnknown ¶
func (m *QueryMinterRequest) XXX_DiscardUnknown()
func (*QueryMinterRequest) XXX_Marshal ¶
func (m *QueryMinterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMinterRequest) XXX_Merge ¶
func (m *QueryMinterRequest) XXX_Merge(src proto.Message)
func (*QueryMinterRequest) XXX_Size ¶
func (m *QueryMinterRequest) XXX_Size() int
func (*QueryMinterRequest) XXX_Unmarshal ¶
func (m *QueryMinterRequest) XXX_Unmarshal(b []byte) error
type QueryMinterResponse ¶
type QueryMinterResponse struct { StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty" yaml:"start_date"` EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty" yaml:"end_date"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` TotalMintAmount uint64 `` /* 134-byte string literal not displayed */ RemainingMintAmount uint64 `` /* 150-byte string literal not displayed */ LastMintAmount uint64 `` /* 130-byte string literal not displayed */ LastMintDate string `protobuf:"bytes,7,opt,name=last_mint_date,json=lastMintDate,proto3" json:"last_mint_date,omitempty" yaml:"last_mint_date"` LastMintHeight uint64 `` /* 130-byte string literal not displayed */ }
QueryMinterResponse is the response type for the Query/Minter RPC method.
func (*QueryMinterResponse) Descriptor ¶
func (*QueryMinterResponse) Descriptor() ([]byte, []int)
func (*QueryMinterResponse) GetDenom ¶
func (m *QueryMinterResponse) GetDenom() string
func (*QueryMinterResponse) GetEndDate ¶
func (m *QueryMinterResponse) GetEndDate() string
func (*QueryMinterResponse) GetLastMintAmount ¶
func (m *QueryMinterResponse) GetLastMintAmount() uint64
func (*QueryMinterResponse) GetLastMintDate ¶
func (m *QueryMinterResponse) GetLastMintDate() string
func (*QueryMinterResponse) GetLastMintHeight ¶
func (m *QueryMinterResponse) GetLastMintHeight() uint64
func (*QueryMinterResponse) GetRemainingMintAmount ¶
func (m *QueryMinterResponse) GetRemainingMintAmount() uint64
func (*QueryMinterResponse) GetStartDate ¶
func (m *QueryMinterResponse) GetStartDate() string
func (*QueryMinterResponse) GetTotalMintAmount ¶
func (m *QueryMinterResponse) GetTotalMintAmount() uint64
func (*QueryMinterResponse) Marshal ¶
func (m *QueryMinterResponse) Marshal() (dAtA []byte, err error)
func (*QueryMinterResponse) MarshalTo ¶
func (m *QueryMinterResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMinterResponse) MarshalToSizedBuffer ¶
func (m *QueryMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMinterResponse) ProtoMessage ¶
func (*QueryMinterResponse) ProtoMessage()
func (*QueryMinterResponse) Reset ¶
func (m *QueryMinterResponse) Reset()
func (*QueryMinterResponse) Size ¶
func (m *QueryMinterResponse) Size() (n int)
func (*QueryMinterResponse) String ¶
func (m *QueryMinterResponse) String() string
func (*QueryMinterResponse) Unmarshal ¶
func (m *QueryMinterResponse) Unmarshal(dAtA []byte) error
func (*QueryMinterResponse) XXX_DiscardUnknown ¶
func (m *QueryMinterResponse) XXX_DiscardUnknown()
func (*QueryMinterResponse) XXX_Marshal ¶
func (m *QueryMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMinterResponse) XXX_Merge ¶
func (m *QueryMinterResponse) XXX_Merge(src proto.Message)
func (*QueryMinterResponse) XXX_Size ¶
func (m *QueryMinterResponse) XXX_Size() int
func (*QueryMinterResponse) XXX_Unmarshal ¶
func (m *QueryMinterResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the 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 the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params returns the total set of minting parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // EpochProvisions current minting epoch provisions value. Minter(context.Context, *QueryMinterRequest) (*QueryMinterResponse, error) }
QueryServer is the server API for Query service.
type ScheduledTokenRelease ¶
type ScheduledTokenRelease struct { StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` TokenReleaseAmount uint64 `protobuf:"varint,3,opt,name=token_release_amount,json=tokenReleaseAmount,proto3" json:"token_release_amount,omitempty"` }
func SortTokenReleaseCalendar ¶
func SortTokenReleaseCalendar(tokenReleaseSchedule []ScheduledTokenRelease) []ScheduledTokenRelease
func (*ScheduledTokenRelease) Descriptor ¶
func (*ScheduledTokenRelease) Descriptor() ([]byte, []int)
func (*ScheduledTokenRelease) GetEndDate ¶
func (m *ScheduledTokenRelease) GetEndDate() string
func (*ScheduledTokenRelease) GetStartDate ¶
func (m *ScheduledTokenRelease) GetStartDate() string
func (*ScheduledTokenRelease) GetTokenReleaseAmount ¶
func (m *ScheduledTokenRelease) GetTokenReleaseAmount() uint64
func (*ScheduledTokenRelease) Marshal ¶
func (m *ScheduledTokenRelease) Marshal() (dAtA []byte, err error)
func (*ScheduledTokenRelease) MarshalTo ¶
func (m *ScheduledTokenRelease) MarshalTo(dAtA []byte) (int, error)
func (*ScheduledTokenRelease) MarshalToSizedBuffer ¶
func (m *ScheduledTokenRelease) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ScheduledTokenRelease) ProtoMessage ¶
func (*ScheduledTokenRelease) ProtoMessage()
func (*ScheduledTokenRelease) Reset ¶
func (m *ScheduledTokenRelease) Reset()
func (*ScheduledTokenRelease) Size ¶
func (m *ScheduledTokenRelease) Size() (n int)
func (*ScheduledTokenRelease) String ¶
func (m *ScheduledTokenRelease) String() string
func (*ScheduledTokenRelease) Unmarshal ¶
func (m *ScheduledTokenRelease) Unmarshal(dAtA []byte) error
func (*ScheduledTokenRelease) XXX_DiscardUnknown ¶
func (m *ScheduledTokenRelease) XXX_DiscardUnknown()
func (*ScheduledTokenRelease) XXX_Marshal ¶
func (m *ScheduledTokenRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScheduledTokenRelease) XXX_Merge ¶
func (m *ScheduledTokenRelease) XXX_Merge(src proto.Message)
func (*ScheduledTokenRelease) XXX_Size ¶
func (m *ScheduledTokenRelease) XXX_Size() int
func (*ScheduledTokenRelease) XXX_Unmarshal ¶
func (m *ScheduledTokenRelease) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { StakingTokenSupply(ctx sdk.Context) sdk.Int BondedRatio(ctx sdk.Context) sdk.Dec }
StakingKeeper defines the expected staking keeper
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Minter ¶
func (*UnimplementedQueryServer) Minter(ctx context.Context, req *QueryMinterRequest) (*QueryMinterResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type UpdateMinterProposal ¶
type UpdateMinterProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Minter *Minter `protobuf:"bytes,3,opt,name=minter,proto3" json:"minter,omitempty" yaml:"minter"` }
AddAssetMetadataProposal is a gov Content type for adding a new asset to the dex module's asset list.
func NewUpdateMinterProposalHandler ¶
func NewUpdateMinterProposalHandler(title, description string, minter Minter) *UpdateMinterProposal
func (*UpdateMinterProposal) Descriptor ¶
func (*UpdateMinterProposal) Descriptor() ([]byte, []int)
func (*UpdateMinterProposal) GetDescription ¶
func (p *UpdateMinterProposal) GetDescription() string
func (*UpdateMinterProposal) GetTitle ¶
func (p *UpdateMinterProposal) GetTitle() string
func (*UpdateMinterProposal) Marshal ¶
func (m *UpdateMinterProposal) Marshal() (dAtA []byte, err error)
func (*UpdateMinterProposal) MarshalTo ¶
func (m *UpdateMinterProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateMinterProposal) MarshalToSizedBuffer ¶
func (m *UpdateMinterProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateMinterProposal) ProposalRoute ¶
func (p *UpdateMinterProposal) ProposalRoute() string
func (*UpdateMinterProposal) ProposalType ¶
func (p *UpdateMinterProposal) ProposalType() string
func (*UpdateMinterProposal) ProtoMessage ¶
func (*UpdateMinterProposal) ProtoMessage()
func (*UpdateMinterProposal) Reset ¶
func (m *UpdateMinterProposal) Reset()
func (*UpdateMinterProposal) Size ¶
func (m *UpdateMinterProposal) Size() (n int)
func (UpdateMinterProposal) String ¶
func (p UpdateMinterProposal) String() string
func (*UpdateMinterProposal) Unmarshal ¶
func (m *UpdateMinterProposal) Unmarshal(dAtA []byte) error
func (*UpdateMinterProposal) ValidateBasic ¶
func (p *UpdateMinterProposal) ValidateBasic() error
func (*UpdateMinterProposal) XXX_DiscardUnknown ¶
func (m *UpdateMinterProposal) XXX_DiscardUnknown()
func (*UpdateMinterProposal) XXX_Marshal ¶
func (m *UpdateMinterProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateMinterProposal) XXX_Merge ¶
func (m *UpdateMinterProposal) XXX_Merge(src proto.Message)
func (*UpdateMinterProposal) XXX_Size ¶
func (m *UpdateMinterProposal) XXX_Size() int
func (*UpdateMinterProposal) XXX_Unmarshal ¶
func (m *UpdateMinterProposal) XXX_Unmarshal(b []byte) error
type Version2Minter ¶
type Version2Minter struct { LastMintAmount github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ LastMintDate string `protobuf:"bytes,2,opt,name=last_mint_date,json=lastMintDate,proto3" json:"last_mint_date,omitempty" yaml:"last_mint_date"` LastMintHeight int64 `` /* 130-byte string literal not displayed */ Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` }
Minter represents the most recent
func (*Version2Minter) Descriptor ¶
func (*Version2Minter) Descriptor() ([]byte, []int)
func (*Version2Minter) GetDenom ¶
func (m *Version2Minter) GetDenom() string
func (*Version2Minter) GetLastMintDate ¶
func (m *Version2Minter) GetLastMintDate() string
func (*Version2Minter) GetLastMintHeight ¶
func (m *Version2Minter) GetLastMintHeight() int64
func (*Version2Minter) Marshal ¶
func (m *Version2Minter) Marshal() (dAtA []byte, err error)
func (*Version2Minter) MarshalToSizedBuffer ¶
func (m *Version2Minter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Version2Minter) ProtoMessage ¶
func (*Version2Minter) ProtoMessage()
func (*Version2Minter) Reset ¶
func (m *Version2Minter) Reset()
func (*Version2Minter) Size ¶
func (m *Version2Minter) Size() (n int)
func (*Version2Minter) String ¶
func (m *Version2Minter) String() string
func (*Version2Minter) Unmarshal ¶
func (m *Version2Minter) Unmarshal(dAtA []byte) error
func (*Version2Minter) XXX_DiscardUnknown ¶
func (m *Version2Minter) XXX_DiscardUnknown()
func (*Version2Minter) XXX_Marshal ¶
func (m *Version2Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Version2Minter) XXX_Merge ¶
func (m *Version2Minter) XXX_Merge(src proto.Message)
func (*Version2Minter) XXX_Size ¶
func (m *Version2Minter) XXX_Size() int
func (*Version2Minter) XXX_Unmarshal ¶
func (m *Version2Minter) XXX_Unmarshal(b []byte) error
type Version2Params ¶
type Version2Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // List of token release schedules TokenReleaseSchedule []Version2ScheduledTokenRelease `` /* 143-byte string literal not displayed */ }
Params holds parameters for the mint module.
func (*Version2Params) Descriptor ¶
func (*Version2Params) Descriptor() ([]byte, []int)
func (*Version2Params) GetMintDenom ¶
func (m *Version2Params) GetMintDenom() string
func (*Version2Params) GetTokenReleaseSchedule ¶
func (m *Version2Params) GetTokenReleaseSchedule() []Version2ScheduledTokenRelease
func (*Version2Params) Marshal ¶
func (m *Version2Params) Marshal() (dAtA []byte, err error)
func (*Version2Params) MarshalToSizedBuffer ¶
func (m *Version2Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Version2Params) ParamSetPairs ¶
func (p *Version2Params) ParamSetPairs() paramtypes.ParamSetPairs
Used for v2 -> v3 migration
func (*Version2Params) ProtoMessage ¶
func (*Version2Params) ProtoMessage()
func (*Version2Params) Reset ¶
func (m *Version2Params) Reset()
func (*Version2Params) Size ¶
func (m *Version2Params) Size() (n int)
func (Version2Params) String ¶
func (p Version2Params) String() string
func (*Version2Params) Unmarshal ¶
func (m *Version2Params) Unmarshal(dAtA []byte) error
func (*Version2Params) XXX_DiscardUnknown ¶
func (m *Version2Params) XXX_DiscardUnknown()
func (*Version2Params) XXX_Marshal ¶
func (m *Version2Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Version2Params) XXX_Merge ¶
func (m *Version2Params) XXX_Merge(src proto.Message)
func (*Version2Params) XXX_Size ¶
func (m *Version2Params) XXX_Size() int
func (*Version2Params) XXX_Unmarshal ¶
func (m *Version2Params) XXX_Unmarshal(b []byte) error
type Version2ScheduledTokenRelease ¶
type Version2ScheduledTokenRelease struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` TokenReleaseAmount int64 `protobuf:"varint,2,opt,name=token_release_amount,json=tokenReleaseAmount,proto3" json:"token_release_amount,omitempty"` }
func (*Version2ScheduledTokenRelease) Descriptor ¶
func (*Version2ScheduledTokenRelease) Descriptor() ([]byte, []int)
func (*Version2ScheduledTokenRelease) GetDate ¶
func (m *Version2ScheduledTokenRelease) GetDate() string
func (*Version2ScheduledTokenRelease) GetTokenReleaseAmount ¶
func (m *Version2ScheduledTokenRelease) GetTokenReleaseAmount() int64
func (*Version2ScheduledTokenRelease) Marshal ¶
func (m *Version2ScheduledTokenRelease) Marshal() (dAtA []byte, err error)
func (*Version2ScheduledTokenRelease) MarshalTo ¶
func (m *Version2ScheduledTokenRelease) MarshalTo(dAtA []byte) (int, error)
func (*Version2ScheduledTokenRelease) MarshalToSizedBuffer ¶
func (m *Version2ScheduledTokenRelease) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Version2ScheduledTokenRelease) ProtoMessage ¶
func (*Version2ScheduledTokenRelease) ProtoMessage()
func (*Version2ScheduledTokenRelease) Reset ¶
func (m *Version2ScheduledTokenRelease) Reset()
func (*Version2ScheduledTokenRelease) Size ¶
func (m *Version2ScheduledTokenRelease) Size() (n int)
func (*Version2ScheduledTokenRelease) String ¶
func (m *Version2ScheduledTokenRelease) String() string
func (*Version2ScheduledTokenRelease) Unmarshal ¶
func (m *Version2ScheduledTokenRelease) Unmarshal(dAtA []byte) error
func (*Version2ScheduledTokenRelease) XXX_DiscardUnknown ¶
func (m *Version2ScheduledTokenRelease) XXX_DiscardUnknown()
func (*Version2ScheduledTokenRelease) XXX_Marshal ¶
func (m *Version2ScheduledTokenRelease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Version2ScheduledTokenRelease) XXX_Merge ¶
func (m *Version2ScheduledTokenRelease) XXX_Merge(src proto.Message)
func (*Version2ScheduledTokenRelease) XXX_Size ¶
func (m *Version2ScheduledTokenRelease) XXX_Size() int
func (*Version2ScheduledTokenRelease) XXX_Unmarshal ¶
func (m *Version2ScheduledTokenRelease) XXX_Unmarshal(b []byte) error