Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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 BlockTimeKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetVestEntries() []VestEntry
- 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 MsgDeleteVestEntry
- func (*MsgDeleteVestEntry) Descriptor() ([]byte, []int)
- func (m *MsgDeleteVestEntry) GetAuthority() string
- func (msg *MsgDeleteVestEntry) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteVestEntry) GetVesterAccount() string
- func (m *MsgDeleteVestEntry) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteVestEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteVestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteVestEntry) ProtoMessage()
- func (m *MsgDeleteVestEntry) Reset()
- func (m *MsgDeleteVestEntry) Size() (n int)
- func (m *MsgDeleteVestEntry) String() string
- func (m *MsgDeleteVestEntry) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteVestEntry) ValidateBasic() error
- func (m *MsgDeleteVestEntry) XXX_DiscardUnknown()
- func (m *MsgDeleteVestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteVestEntry) XXX_Merge(src proto.Message)
- func (m *MsgDeleteVestEntry) XXX_Size() int
- func (m *MsgDeleteVestEntry) XXX_Unmarshal(b []byte) error
- type MsgDeleteVestEntryResponse
- func (*MsgDeleteVestEntryResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteVestEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteVestEntryResponse) ProtoMessage()
- func (m *MsgDeleteVestEntryResponse) Reset()
- func (m *MsgDeleteVestEntryResponse) Size() (n int)
- func (m *MsgDeleteVestEntryResponse) String() string
- func (m *MsgDeleteVestEntryResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteVestEntryResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteVestEntryResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteVestEntryResponse) XXX_Size() int
- func (m *MsgDeleteVestEntryResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetVestEntry
- func (*MsgSetVestEntry) Descriptor() ([]byte, []int)
- func (m *MsgSetVestEntry) GetAuthority() string
- func (m *MsgSetVestEntry) GetEntry() VestEntry
- func (msg *MsgSetVestEntry) GetSigners() []sdk.AccAddress
- func (m *MsgSetVestEntry) Marshal() (dAtA []byte, err error)
- func (m *MsgSetVestEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetVestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetVestEntry) ProtoMessage()
- func (m *MsgSetVestEntry) Reset()
- func (m *MsgSetVestEntry) Size() (n int)
- func (m *MsgSetVestEntry) String() string
- func (m *MsgSetVestEntry) Unmarshal(dAtA []byte) error
- func (msg *MsgSetVestEntry) ValidateBasic() error
- func (m *MsgSetVestEntry) XXX_DiscardUnknown()
- func (m *MsgSetVestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetVestEntry) XXX_Merge(src proto.Message)
- func (m *MsgSetVestEntry) XXX_Size() int
- func (m *MsgSetVestEntry) XXX_Unmarshal(b []byte) error
- type MsgSetVestEntryResponse
- func (*MsgSetVestEntryResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetVestEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetVestEntryResponse) ProtoMessage()
- func (m *MsgSetVestEntryResponse) Reset()
- func (m *MsgSetVestEntryResponse) Size() (n int)
- func (m *MsgSetVestEntryResponse) String() string
- func (m *MsgSetVestEntryResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetVestEntryResponse) XXX_DiscardUnknown()
- func (m *MsgSetVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetVestEntryResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetVestEntryResponse) XXX_Size() int
- func (m *MsgSetVestEntryResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type QueryVestEntryRequest
- func (*QueryVestEntryRequest) Descriptor() ([]byte, []int)
- func (m *QueryVestEntryRequest) GetVesterAccount() string
- func (m *QueryVestEntryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVestEntryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVestEntryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVestEntryRequest) ProtoMessage()
- func (m *QueryVestEntryRequest) Reset()
- func (m *QueryVestEntryRequest) Size() (n int)
- func (m *QueryVestEntryRequest) String() string
- func (m *QueryVestEntryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVestEntryRequest) XXX_DiscardUnknown()
- func (m *QueryVestEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVestEntryRequest) XXX_Merge(src proto.Message)
- func (m *QueryVestEntryRequest) XXX_Size() int
- func (m *QueryVestEntryRequest) XXX_Unmarshal(b []byte) error
- type QueryVestEntryResponse
- func (*QueryVestEntryResponse) Descriptor() ([]byte, []int)
- func (m *QueryVestEntryResponse) GetEntry() VestEntry
- func (m *QueryVestEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVestEntryResponse) ProtoMessage()
- func (m *QueryVestEntryResponse) Reset()
- func (m *QueryVestEntryResponse) Size() (n int)
- func (m *QueryVestEntryResponse) String() string
- func (m *QueryVestEntryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVestEntryResponse) XXX_DiscardUnknown()
- func (m *QueryVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVestEntryResponse) XXX_Merge(src proto.Message)
- func (m *QueryVestEntryResponse) XXX_Size() int
- func (m *QueryVestEntryResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type VestEntry
- func (*VestEntry) Descriptor() ([]byte, []int)
- func (m *VestEntry) GetDenom() string
- func (m *VestEntry) GetEndTime() time.Time
- func (m *VestEntry) GetStartTime() time.Time
- func (m *VestEntry) GetTreasuryAccount() string
- func (m *VestEntry) GetVesterAccount() string
- func (m *VestEntry) Marshal() (dAtA []byte, err error)
- func (m *VestEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *VestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestEntry) ProtoMessage()
- func (m *VestEntry) Reset()
- func (m *VestEntry) Size() (n int)
- func (m *VestEntry) String() string
- func (m *VestEntry) Unmarshal(dAtA []byte) error
- func (entry VestEntry) Validate() error
- func (m *VestEntry) XXX_DiscardUnknown()
- func (m *VestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestEntry) XXX_Merge(src proto.Message)
- func (m *VestEntry) XXX_Size() int
- func (m *VestEntry) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "vest" // StoreKey defines the primary module store key StoreKey = ModuleName )
Module name and store keys
const ( // CommunityTreasuryAccountName defines the root string for community treasury module account. CommunityTreasuryAccountName = "community_treasury" // CommunityVesterAccountName defines the root string for community vester module account. CommunityVesterAccountName = "community_vester" )
Module accounts
const TypeMsgSetVestEntry = "set_vest_entry"
const (
// VestEntryKeyPrefix is the prefix used when storing a VestEntry in the state.
VestEntryKeyPrefix = "Entry:"
)
State
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidAuthority = errorsmod.Register(ModuleName, 1000, "invalid authority") ErrInvalidVesterAccount = errorsmod.Register(ModuleName, 1001, "invalid vester account") ErrInvalidTreasuryAccount = errorsmod.Register(ModuleName, 1002, "invalid treasury account") ErrInvalidDenom = errorsmod.Register(ModuleName, 1003, "invalid denom") ErrVestEntryNotFound = errorsmod.Register(ModuleName, 1004, "account is not associated with a vest entry") ErrInvalidStartAndEndTimes = errorsmod.Register(ModuleName, 1005, "start_time must be before end_time") ErrInvalidTimeZone = errorsmod.Register(ModuleName, 1006, "timestamp must be in UTC") )
x/vest module sentinel errors
var ( DefaultVestingStartTime = time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC).In(time.UTC) DefaultVestingEndTime = time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC).In(time.UTC) )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
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 ¶
type BankKeeper interface { GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type BlockTimeKeeper ¶
type BlockTimeKeeper interface {
GetPreviousBlockInfo(ctx sdk.Context) blocktimetypes.BlockInfo
}
type GenesisState ¶
type GenesisState struct { // The vest entries at genesis. VestEntries []VestEntry `protobuf:"bytes,1,rep,name=vest_entries,json=vestEntries,proto3" json:"vest_entries"` }
GenesisState defines the vest 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) GetVestEntries ¶
func (m *GenesisState) GetVestEntries() []VestEntry
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 { // SetVestEntry sets a VestEntry in state. SetVestEntry(ctx context.Context, in *MsgSetVestEntry, opts ...grpc.CallOption) (*MsgSetVestEntryResponse, error) // DeleteVestEntry deletes a VestEntry from state. DeleteVestEntry(ctx context.Context, in *MsgDeleteVestEntry, opts ...grpc.CallOption) (*MsgDeleteVestEntryResponse, 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 MsgDeleteVestEntry ¶
type MsgDeleteVestEntry struct { // authority is the address that controls the module. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // The vester account of the vest entry to delete. VesterAccount string `protobuf:"bytes,2,opt,name=vester_account,json=vesterAccount,proto3" json:"vester_account,omitempty"` }
MsgDeleteVestEntry is the Msg/DeleteVestEntry request type.
func NewMsgDeleteVestEntry ¶
func NewMsgDeleteVestEntry(authority string, vesterAccount string) *MsgDeleteVestEntry
func (*MsgDeleteVestEntry) Descriptor ¶
func (*MsgDeleteVestEntry) Descriptor() ([]byte, []int)
func (*MsgDeleteVestEntry) GetAuthority ¶
func (m *MsgDeleteVestEntry) GetAuthority() string
func (*MsgDeleteVestEntry) GetSigners ¶
func (msg *MsgDeleteVestEntry) GetSigners() []sdk.AccAddress
func (*MsgDeleteVestEntry) GetVesterAccount ¶
func (m *MsgDeleteVestEntry) GetVesterAccount() string
func (*MsgDeleteVestEntry) Marshal ¶
func (m *MsgDeleteVestEntry) Marshal() (dAtA []byte, err error)
func (*MsgDeleteVestEntry) MarshalTo ¶
func (m *MsgDeleteVestEntry) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteVestEntry) MarshalToSizedBuffer ¶
func (m *MsgDeleteVestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteVestEntry) ProtoMessage ¶
func (*MsgDeleteVestEntry) ProtoMessage()
func (*MsgDeleteVestEntry) Reset ¶
func (m *MsgDeleteVestEntry) Reset()
func (*MsgDeleteVestEntry) Size ¶
func (m *MsgDeleteVestEntry) Size() (n int)
func (*MsgDeleteVestEntry) String ¶
func (m *MsgDeleteVestEntry) String() string
func (*MsgDeleteVestEntry) Unmarshal ¶
func (m *MsgDeleteVestEntry) Unmarshal(dAtA []byte) error
func (*MsgDeleteVestEntry) ValidateBasic ¶
func (msg *MsgDeleteVestEntry) ValidateBasic() error
func (*MsgDeleteVestEntry) XXX_DiscardUnknown ¶
func (m *MsgDeleteVestEntry) XXX_DiscardUnknown()
func (*MsgDeleteVestEntry) XXX_Marshal ¶
func (m *MsgDeleteVestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteVestEntry) XXX_Merge ¶
func (m *MsgDeleteVestEntry) XXX_Merge(src proto.Message)
func (*MsgDeleteVestEntry) XXX_Size ¶
func (m *MsgDeleteVestEntry) XXX_Size() int
func (*MsgDeleteVestEntry) XXX_Unmarshal ¶
func (m *MsgDeleteVestEntry) XXX_Unmarshal(b []byte) error
type MsgDeleteVestEntryResponse ¶
type MsgDeleteVestEntryResponse struct { }
MsgDeleteVestEntryResponse is the Msg/DeleteVestEntry response type.
func (*MsgDeleteVestEntryResponse) Descriptor ¶
func (*MsgDeleteVestEntryResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteVestEntryResponse) Marshal ¶
func (m *MsgDeleteVestEntryResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteVestEntryResponse) MarshalTo ¶
func (m *MsgDeleteVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteVestEntryResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteVestEntryResponse) ProtoMessage ¶
func (*MsgDeleteVestEntryResponse) ProtoMessage()
func (*MsgDeleteVestEntryResponse) Reset ¶
func (m *MsgDeleteVestEntryResponse) Reset()
func (*MsgDeleteVestEntryResponse) Size ¶
func (m *MsgDeleteVestEntryResponse) Size() (n int)
func (*MsgDeleteVestEntryResponse) String ¶
func (m *MsgDeleteVestEntryResponse) String() string
func (*MsgDeleteVestEntryResponse) Unmarshal ¶
func (m *MsgDeleteVestEntryResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteVestEntryResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteVestEntryResponse) XXX_DiscardUnknown()
func (*MsgDeleteVestEntryResponse) XXX_Marshal ¶
func (m *MsgDeleteVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteVestEntryResponse) XXX_Merge ¶
func (m *MsgDeleteVestEntryResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteVestEntryResponse) XXX_Size ¶
func (m *MsgDeleteVestEntryResponse) XXX_Size() int
func (*MsgDeleteVestEntryResponse) XXX_Unmarshal ¶
func (m *MsgDeleteVestEntryResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // SetVestEntry sets a VestEntry in state. SetVestEntry(context.Context, *MsgSetVestEntry) (*MsgSetVestEntryResponse, error) // DeleteVestEntry deletes a VestEntry from state. DeleteVestEntry(context.Context, *MsgDeleteVestEntry) (*MsgDeleteVestEntryResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetVestEntry ¶
type MsgSetVestEntry struct { // authority is the address that controls the module. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // The vest entry to set. Entry VestEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry"` }
MsgSetVestEntry is the Msg/SetVestEntry request type.
func NewMsgSetVestEntry ¶
func NewMsgSetVestEntry(authority string, entry VestEntry) *MsgSetVestEntry
func (*MsgSetVestEntry) Descriptor ¶
func (*MsgSetVestEntry) Descriptor() ([]byte, []int)
func (*MsgSetVestEntry) GetAuthority ¶
func (m *MsgSetVestEntry) GetAuthority() string
func (*MsgSetVestEntry) GetEntry ¶
func (m *MsgSetVestEntry) GetEntry() VestEntry
func (*MsgSetVestEntry) GetSigners ¶
func (msg *MsgSetVestEntry) GetSigners() []sdk.AccAddress
func (*MsgSetVestEntry) Marshal ¶
func (m *MsgSetVestEntry) Marshal() (dAtA []byte, err error)
func (*MsgSetVestEntry) MarshalToSizedBuffer ¶
func (m *MsgSetVestEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetVestEntry) ProtoMessage ¶
func (*MsgSetVestEntry) ProtoMessage()
func (*MsgSetVestEntry) Reset ¶
func (m *MsgSetVestEntry) Reset()
func (*MsgSetVestEntry) Size ¶
func (m *MsgSetVestEntry) Size() (n int)
func (*MsgSetVestEntry) String ¶
func (m *MsgSetVestEntry) String() string
func (*MsgSetVestEntry) Unmarshal ¶
func (m *MsgSetVestEntry) Unmarshal(dAtA []byte) error
func (*MsgSetVestEntry) ValidateBasic ¶
func (msg *MsgSetVestEntry) ValidateBasic() error
func (*MsgSetVestEntry) XXX_DiscardUnknown ¶
func (m *MsgSetVestEntry) XXX_DiscardUnknown()
func (*MsgSetVestEntry) XXX_Marshal ¶
func (m *MsgSetVestEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetVestEntry) XXX_Merge ¶
func (m *MsgSetVestEntry) XXX_Merge(src proto.Message)
func (*MsgSetVestEntry) XXX_Size ¶
func (m *MsgSetVestEntry) XXX_Size() int
func (*MsgSetVestEntry) XXX_Unmarshal ¶
func (m *MsgSetVestEntry) XXX_Unmarshal(b []byte) error
type MsgSetVestEntryResponse ¶
type MsgSetVestEntryResponse struct { }
MsgSetVestEntryResponse is the Msg/SetVestEntry response type.
func (*MsgSetVestEntryResponse) Descriptor ¶
func (*MsgSetVestEntryResponse) Descriptor() ([]byte, []int)
func (*MsgSetVestEntryResponse) Marshal ¶
func (m *MsgSetVestEntryResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetVestEntryResponse) MarshalTo ¶
func (m *MsgSetVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetVestEntryResponse) MarshalToSizedBuffer ¶
func (m *MsgSetVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetVestEntryResponse) ProtoMessage ¶
func (*MsgSetVestEntryResponse) ProtoMessage()
func (*MsgSetVestEntryResponse) Reset ¶
func (m *MsgSetVestEntryResponse) Reset()
func (*MsgSetVestEntryResponse) Size ¶
func (m *MsgSetVestEntryResponse) Size() (n int)
func (*MsgSetVestEntryResponse) String ¶
func (m *MsgSetVestEntryResponse) String() string
func (*MsgSetVestEntryResponse) Unmarshal ¶
func (m *MsgSetVestEntryResponse) Unmarshal(dAtA []byte) error
func (*MsgSetVestEntryResponse) XXX_DiscardUnknown ¶
func (m *MsgSetVestEntryResponse) XXX_DiscardUnknown()
func (*MsgSetVestEntryResponse) XXX_Marshal ¶
func (m *MsgSetVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetVestEntryResponse) XXX_Merge ¶
func (m *MsgSetVestEntryResponse) XXX_Merge(src proto.Message)
func (*MsgSetVestEntryResponse) XXX_Size ¶
func (m *MsgSetVestEntryResponse) XXX_Size() int
func (*MsgSetVestEntryResponse) XXX_Unmarshal ¶
func (m *MsgSetVestEntryResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries the VestEntry. VestEntry(ctx context.Context, in *QueryVestEntryRequest, opts ...grpc.CallOption) (*QueryVestEntryResponse, 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 QueryServer ¶
type QueryServer interface { // Queries the VestEntry. VestEntry(context.Context, *QueryVestEntryRequest) (*QueryVestEntryResponse, error) }
QueryServer is the server API for Query service.
type QueryVestEntryRequest ¶
type QueryVestEntryRequest struct {
VesterAccount string `protobuf:"bytes,1,opt,name=vester_account,json=vesterAccount,proto3" json:"vester_account,omitempty"`
}
QueryVestEntryRequest is a request type for the VestEntry RPC method.
func (*QueryVestEntryRequest) Descriptor ¶
func (*QueryVestEntryRequest) Descriptor() ([]byte, []int)
func (*QueryVestEntryRequest) GetVesterAccount ¶
func (m *QueryVestEntryRequest) GetVesterAccount() string
func (*QueryVestEntryRequest) Marshal ¶
func (m *QueryVestEntryRequest) Marshal() (dAtA []byte, err error)
func (*QueryVestEntryRequest) MarshalTo ¶
func (m *QueryVestEntryRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVestEntryRequest) MarshalToSizedBuffer ¶
func (m *QueryVestEntryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVestEntryRequest) ProtoMessage ¶
func (*QueryVestEntryRequest) ProtoMessage()
func (*QueryVestEntryRequest) Reset ¶
func (m *QueryVestEntryRequest) Reset()
func (*QueryVestEntryRequest) Size ¶
func (m *QueryVestEntryRequest) Size() (n int)
func (*QueryVestEntryRequest) String ¶
func (m *QueryVestEntryRequest) String() string
func (*QueryVestEntryRequest) Unmarshal ¶
func (m *QueryVestEntryRequest) Unmarshal(dAtA []byte) error
func (*QueryVestEntryRequest) XXX_DiscardUnknown ¶
func (m *QueryVestEntryRequest) XXX_DiscardUnknown()
func (*QueryVestEntryRequest) XXX_Marshal ¶
func (m *QueryVestEntryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVestEntryRequest) XXX_Merge ¶
func (m *QueryVestEntryRequest) XXX_Merge(src proto.Message)
func (*QueryVestEntryRequest) XXX_Size ¶
func (m *QueryVestEntryRequest) XXX_Size() int
func (*QueryVestEntryRequest) XXX_Unmarshal ¶
func (m *QueryVestEntryRequest) XXX_Unmarshal(b []byte) error
type QueryVestEntryResponse ¶
type QueryVestEntryResponse struct {
Entry VestEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry"`
}
QueryVestEntryResponse is a response type for the VestEntry RPC method.
func (*QueryVestEntryResponse) Descriptor ¶
func (*QueryVestEntryResponse) Descriptor() ([]byte, []int)
func (*QueryVestEntryResponse) GetEntry ¶
func (m *QueryVestEntryResponse) GetEntry() VestEntry
func (*QueryVestEntryResponse) Marshal ¶
func (m *QueryVestEntryResponse) Marshal() (dAtA []byte, err error)
func (*QueryVestEntryResponse) MarshalTo ¶
func (m *QueryVestEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVestEntryResponse) MarshalToSizedBuffer ¶
func (m *QueryVestEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVestEntryResponse) ProtoMessage ¶
func (*QueryVestEntryResponse) ProtoMessage()
func (*QueryVestEntryResponse) Reset ¶
func (m *QueryVestEntryResponse) Reset()
func (*QueryVestEntryResponse) Size ¶
func (m *QueryVestEntryResponse) Size() (n int)
func (*QueryVestEntryResponse) String ¶
func (m *QueryVestEntryResponse) String() string
func (*QueryVestEntryResponse) Unmarshal ¶
func (m *QueryVestEntryResponse) Unmarshal(dAtA []byte) error
func (*QueryVestEntryResponse) XXX_DiscardUnknown ¶
func (m *QueryVestEntryResponse) XXX_DiscardUnknown()
func (*QueryVestEntryResponse) XXX_Marshal ¶
func (m *QueryVestEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVestEntryResponse) XXX_Merge ¶
func (m *QueryVestEntryResponse) XXX_Merge(src proto.Message)
func (*QueryVestEntryResponse) XXX_Size ¶
func (m *QueryVestEntryResponse) XXX_Size() int
func (*QueryVestEntryResponse) XXX_Unmarshal ¶
func (m *QueryVestEntryResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) DeleteVestEntry ¶
func (*UnimplementedMsgServer) DeleteVestEntry(ctx context.Context, req *MsgDeleteVestEntry) (*MsgDeleteVestEntryResponse, error)
func (*UnimplementedMsgServer) SetVestEntry ¶
func (*UnimplementedMsgServer) SetVestEntry(ctx context.Context, req *MsgSetVestEntry) (*MsgSetVestEntryResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) VestEntry ¶
func (*UnimplementedQueryServer) VestEntry(ctx context.Context, req *QueryVestEntryRequest) (*QueryVestEntryResponse, error)
type VestEntry ¶
type VestEntry struct { // The module account to vest tokens from. // This is also the key to this `VestEntry` in state. VesterAccount string `protobuf:"bytes,1,opt,name=vester_account,json=vesterAccount,proto3" json:"vester_account,omitempty"` // The module account to vest tokens to. TreasuryAccount string `protobuf:"bytes,2,opt,name=treasury_account,json=treasuryAccount,proto3" json:"treasury_account,omitempty"` // The denom of the token to vest. Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` // The start time of vest. Before this time, no vest will occur. StartTime time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // The end time of vest. At this target date, all funds should be in the // Treasury Account and none left in the Vester Account. EndTime time.Time `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"` }
VestEntry specifies a Vester Account and the rate at which tokens are dripped into the corresponding Treasury Account.
func (*VestEntry) Descriptor ¶
func (*VestEntry) GetEndTime ¶
func (*VestEntry) GetStartTime ¶
func (*VestEntry) GetTreasuryAccount ¶
func (*VestEntry) GetVesterAccount ¶
func (*VestEntry) MarshalToSizedBuffer ¶
func (*VestEntry) ProtoMessage ¶
func (*VestEntry) ProtoMessage()
func (*VestEntry) XXX_DiscardUnknown ¶
func (m *VestEntry) XXX_DiscardUnknown()