types

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "vest"

	// 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_vest"

	// VestEntryKeyPrefix is the prefix used when storing a VestEntry in the state.
	VestEntryKeyPrefix = "vest_entry"
)
View Source
const TypeMsgSetVestEntry = "set_vest_entry"

Variables

View Source
var (
	ErrInvalidVesterAccount    = sdkerrors.Register(ModuleName, 1001, "invalid vester account")
	ErrInvalidTreasuryAccount  = sdkerrors.Register(ModuleName, 1002, "invalid treasury account")
	ErrInvalidDenom            = sdkerrors.Register(ModuleName, 1003, "invalid denom")
	ErrVestEntryNotFound       = sdkerrors.Register(ModuleName, 1004, "account is not associated with a vest entry")
	ErrInvalidStartAndEndTimes = sdkerrors.Register(ModuleName, 1005, "start_time must be before end_time")
	ErrInvalidTimeZone         = sdkerrors.Register(ModuleName, 1006, "timestamp must be in UTC")
)

x/vest module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVestEntry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVestEntry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVestEntry = fmt.Errorf("proto: unexpected end of group")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func VestEntryKey

func VestEntryKey(
	vesterAccount string,
) []byte

VestEntryKey returns the store key (using the vester account) to retrieve a vest entry from state.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic 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) MarshalTo

func (m *MsgSetVestEntry) MarshalTo(dAtA []byte) (int, 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) SetVestEntry

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) VestEntry

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) Descriptor() ([]byte, []int)

func (*VestEntry) GetDenom

func (m *VestEntry) GetDenom() string

func (*VestEntry) GetEndTime

func (m *VestEntry) GetEndTime() time.Time

func (*VestEntry) GetStartTime

func (m *VestEntry) GetStartTime() time.Time

func (*VestEntry) GetTreasuryAccount

func (m *VestEntry) GetTreasuryAccount() string

func (*VestEntry) GetVesterAccount

func (m *VestEntry) GetVesterAccount() string

func (*VestEntry) Marshal

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

func (*VestEntry) MarshalTo

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

func (*VestEntry) MarshalToSizedBuffer

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

func (*VestEntry) ProtoMessage

func (*VestEntry) ProtoMessage()

func (*VestEntry) Reset

func (m *VestEntry) Reset()

func (*VestEntry) Size

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

func (*VestEntry) String

func (m *VestEntry) String() string

func (*VestEntry) Unmarshal

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

func (VestEntry) Validate

func (entry VestEntry) Validate() error

func (*VestEntry) XXX_DiscardUnknown

func (m *VestEntry) XXX_DiscardUnknown()

func (*VestEntry) XXX_Marshal

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

func (*VestEntry) XXX_Merge

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

func (*VestEntry) XXX_Size

func (m *VestEntry) XXX_Size() int

func (*VestEntry) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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