types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCommitmentChanged = "commitment_changed"

	AttributeCreator = "creator"
	AttributeAmount  = "token_amount"
	AttributeDenom   = "token_denom"
)

epochs events

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

	// 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_commitment"
)
View Source
const (
	// CommitmentsKeyPrefix is the prefix to retrieve all Commitments
	CommitmentsKeyPrefix = "Commitments/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgCancelVest = "cancel_vest"
View Source
const TypeMsgCommitTokens = "commit_tokens"
View Source
const TypeMsgDepositTokens = "deposit_tokens"
View Source
const TypeMsgUncommitTokens = "uncommit_tokens"
View Source
const TypeMsgVest = "vest"
View Source
const TypeMsgVestNow = "vest_now"
View Source
const TypeMsgWithdrawTokens = "withdraw_tokens"

Variables

View Source
var (
	ErrInvalidLengthCommitments        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommitments          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommitments = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrCommitmentsNotFound           = sdkerrors.Register(ModuleName, 1001, "commitments not found for creator")
	ErrInsufficientUncommittedTokens = sdkerrors.Register(ModuleName, 1002, "insufficient uncommitted tokens for creator and denom")
	ErrInsufficientCommittedTokens   = sdkerrors.Register(ModuleName, 1003, "insufficient committed tokens for creator and denom")
	ErrInvalidAmount                 = sdkerrors.Register(ModuleName, 1004, "invalid amount")
	ErrInvalidDenom                  = sdkerrors.Register(ModuleName, 1005, "invalid denom")
	ErrInsufficientVestingTokens     = sdkerrors.Register(ModuleName, 1006, "insufficient vesting tokens for creator and denom")
	ErrCommitDisabled                = sdkerrors.Register(ModuleName, 1007, "commitment disabled for denom")
	ErrWithdrawDisabled              = sdkerrors.Register(ModuleName, 1008, "withdraw disabled for denom")
)

x/commitment 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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	KeyVestingInfos = []byte("VestingInfos")
)

Functions

func CommitmentsKey

func CommitmentsKey(
	creator string,
) []byte

CommitmentsKey returns the store key to retrieve a Commitments from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

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 AssetProfileKeeper

type AssetProfileKeeper interface {
	GetEntry(ctx sdk.Context, baseDenom string) (val aptypes.Entry, found bool)
}

AssetProfileKeeper defines the expected interface needed to retrieve denom info

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CommitmentHooks

type CommitmentHooks interface {
	// Token commitment changed
	CommitmentChanged(ctx sdk.Context, creator string, amount sdk.Coin)
}

CommitmentHooks event hooks for commitment processing

type Commitments

type Commitments struct {
	Creator           string               `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	CommittedTokens   []*CommittedTokens   `protobuf:"bytes,2,rep,name=committed_tokens,json=committedTokens,proto3" json:"committed_tokens,omitempty"`
	UncommittedTokens []*UncommittedTokens `protobuf:"bytes,3,rep,name=uncommitted_tokens,json=uncommittedTokens,proto3" json:"uncommitted_tokens,omitempty"`
	VestingTokens     []*VestingTokens     `protobuf:"bytes,4,rep,name=vesting_tokens,json=vestingTokens,proto3" json:"vesting_tokens,omitempty"`
}

GenesisState defines the commitment module's genesis state.

func (*Commitments) Descriptor

func (*Commitments) Descriptor() ([]byte, []int)

func (*Commitments) GetCommittedAmountForDenom

func (c *Commitments) GetCommittedAmountForDenom(denom string) sdk.Int

func (*Commitments) GetCommittedTokens

func (m *Commitments) GetCommittedTokens() []*CommittedTokens

func (*Commitments) GetCommittedTokensForDenom

func (c *Commitments) GetCommittedTokensForDenom(denom string) (*CommittedTokens, bool)

func (*Commitments) GetCreator

func (m *Commitments) GetCreator() string

func (*Commitments) GetUncommittedAmountForDenom

func (c *Commitments) GetUncommittedAmountForDenom(denom string) sdk.Int

func (*Commitments) GetUncommittedTokens

func (m *Commitments) GetUncommittedTokens() []*UncommittedTokens

func (*Commitments) GetUncommittedTokensForDenom

func (c *Commitments) GetUncommittedTokensForDenom(denom string) (*UncommittedTokens, bool)

func (*Commitments) GetVestingTokens

func (m *Commitments) GetVestingTokens() []*VestingTokens

func (*Commitments) Marshal

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

func (*Commitments) MarshalTo

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

func (*Commitments) MarshalToSizedBuffer

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

func (*Commitments) ProtoMessage

func (*Commitments) ProtoMessage()

func (*Commitments) Reset

func (m *Commitments) Reset()

func (*Commitments) Size

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

func (*Commitments) String

func (m *Commitments) String() string

func (*Commitments) Unmarshal

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

func (*Commitments) XXX_DiscardUnknown

func (m *Commitments) XXX_DiscardUnknown()

func (*Commitments) XXX_Marshal

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

func (*Commitments) XXX_Merge

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

func (*Commitments) XXX_Size

func (m *Commitments) XXX_Size() int

func (*Commitments) XXX_Unmarshal

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

type CommittedTokens

type CommittedTokens struct {
	Denom  string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*CommittedTokens) Descriptor

func (*CommittedTokens) Descriptor() ([]byte, []int)

func (*CommittedTokens) GetDenom

func (m *CommittedTokens) GetDenom() string

func (*CommittedTokens) Marshal

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

func (*CommittedTokens) MarshalTo

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

func (*CommittedTokens) MarshalToSizedBuffer

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

func (*CommittedTokens) ProtoMessage

func (*CommittedTokens) ProtoMessage()

func (*CommittedTokens) Reset

func (m *CommittedTokens) Reset()

func (*CommittedTokens) Size

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

func (*CommittedTokens) String

func (m *CommittedTokens) String() string

func (*CommittedTokens) Unmarshal

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

func (*CommittedTokens) XXX_DiscardUnknown

func (m *CommittedTokens) XXX_DiscardUnknown()

func (*CommittedTokens) XXX_Marshal

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

func (*CommittedTokens) XXX_Merge

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

func (*CommittedTokens) XXX_Size

func (m *CommittedTokens) XXX_Size() int

func (*CommittedTokens) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the commitment 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) GetParams

func (m *GenesisState) GetParams() Params

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 MsgCancelVest

type MsgCancelVest struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgCancelVest

func NewMsgCancelVest(creator string, amount sdk.Int, denom string) *MsgCancelVest

func (*MsgCancelVest) Descriptor

func (*MsgCancelVest) Descriptor() ([]byte, []int)

func (*MsgCancelVest) GetCreator

func (m *MsgCancelVest) GetCreator() string

func (*MsgCancelVest) GetDenom

func (m *MsgCancelVest) GetDenom() string

func (*MsgCancelVest) GetSignBytes

func (msg *MsgCancelVest) GetSignBytes() []byte

func (*MsgCancelVest) GetSigners

func (msg *MsgCancelVest) GetSigners() []sdk.AccAddress

func (*MsgCancelVest) Marshal

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

func (*MsgCancelVest) MarshalTo

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

func (*MsgCancelVest) MarshalToSizedBuffer

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

func (*MsgCancelVest) ProtoMessage

func (*MsgCancelVest) ProtoMessage()

func (*MsgCancelVest) Reset

func (m *MsgCancelVest) Reset()

func (*MsgCancelVest) Route

func (msg *MsgCancelVest) Route() string

func (*MsgCancelVest) Size

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

func (*MsgCancelVest) String

func (m *MsgCancelVest) String() string

func (*MsgCancelVest) Type

func (msg *MsgCancelVest) Type() string

func (*MsgCancelVest) Unmarshal

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

func (*MsgCancelVest) ValidateBasic

func (msg *MsgCancelVest) ValidateBasic() error

func (*MsgCancelVest) XXX_DiscardUnknown

func (m *MsgCancelVest) XXX_DiscardUnknown()

func (*MsgCancelVest) XXX_Marshal

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

func (*MsgCancelVest) XXX_Merge

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

func (*MsgCancelVest) XXX_Size

func (m *MsgCancelVest) XXX_Size() int

func (*MsgCancelVest) XXX_Unmarshal

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

type MsgCancelVestResponse

type MsgCancelVestResponse struct {
}

func (*MsgCancelVestResponse) Descriptor

func (*MsgCancelVestResponse) Descriptor() ([]byte, []int)

func (*MsgCancelVestResponse) Marshal

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

func (*MsgCancelVestResponse) MarshalTo

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

func (*MsgCancelVestResponse) MarshalToSizedBuffer

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

func (*MsgCancelVestResponse) ProtoMessage

func (*MsgCancelVestResponse) ProtoMessage()

func (*MsgCancelVestResponse) Reset

func (m *MsgCancelVestResponse) Reset()

func (*MsgCancelVestResponse) Size

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

func (*MsgCancelVestResponse) String

func (m *MsgCancelVestResponse) String() string

func (*MsgCancelVestResponse) Unmarshal

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

func (*MsgCancelVestResponse) XXX_DiscardUnknown

func (m *MsgCancelVestResponse) XXX_DiscardUnknown()

func (*MsgCancelVestResponse) XXX_Marshal

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

func (*MsgCancelVestResponse) XXX_Merge

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

func (*MsgCancelVestResponse) XXX_Size

func (m *MsgCancelVestResponse) XXX_Size() int

func (*MsgCancelVestResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CommitTokens(ctx context.Context, in *MsgCommitTokens, opts ...grpc.CallOption) (*MsgCommitTokensResponse, error)
	UncommitTokens(ctx context.Context, in *MsgUncommitTokens, opts ...grpc.CallOption) (*MsgUncommitTokensResponse, error)
	WithdrawTokens(ctx context.Context, in *MsgWithdrawTokens, opts ...grpc.CallOption) (*MsgWithdrawTokensResponse, error)
	DepositTokens(ctx context.Context, in *MsgDepositTokens, opts ...grpc.CallOption) (*MsgDepositTokensResponse, error)
	Vest(ctx context.Context, in *MsgVest, opts ...grpc.CallOption) (*MsgVestResponse, error)
	CancelVest(ctx context.Context, in *MsgCancelVest, opts ...grpc.CallOption) (*MsgCancelVestResponse, error)
	VestNow(ctx context.Context, in *MsgVestNow, opts ...grpc.CallOption) (*MsgVestNowResponse, 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 MsgCommitTokens

type MsgCommitTokens struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgCommitTokens

func NewMsgCommitTokens(creator string, amount sdk.Int, denom string) *MsgCommitTokens

func (*MsgCommitTokens) Descriptor

func (*MsgCommitTokens) Descriptor() ([]byte, []int)

func (*MsgCommitTokens) GetCreator

func (m *MsgCommitTokens) GetCreator() string

func (*MsgCommitTokens) GetDenom

func (m *MsgCommitTokens) GetDenom() string

func (*MsgCommitTokens) GetSignBytes

func (msg *MsgCommitTokens) GetSignBytes() []byte

func (*MsgCommitTokens) GetSigners

func (msg *MsgCommitTokens) GetSigners() []sdk.AccAddress

func (*MsgCommitTokens) Marshal

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

func (*MsgCommitTokens) MarshalTo

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

func (*MsgCommitTokens) MarshalToSizedBuffer

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

func (*MsgCommitTokens) ProtoMessage

func (*MsgCommitTokens) ProtoMessage()

func (*MsgCommitTokens) Reset

func (m *MsgCommitTokens) Reset()

func (*MsgCommitTokens) Route

func (msg *MsgCommitTokens) Route() string

func (*MsgCommitTokens) Size

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

func (*MsgCommitTokens) String

func (m *MsgCommitTokens) String() string

func (*MsgCommitTokens) Type

func (msg *MsgCommitTokens) Type() string

func (*MsgCommitTokens) Unmarshal

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

func (*MsgCommitTokens) ValidateBasic

func (msg *MsgCommitTokens) ValidateBasic() error

func (*MsgCommitTokens) XXX_DiscardUnknown

func (m *MsgCommitTokens) XXX_DiscardUnknown()

func (*MsgCommitTokens) XXX_Marshal

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

func (*MsgCommitTokens) XXX_Merge

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

func (*MsgCommitTokens) XXX_Size

func (m *MsgCommitTokens) XXX_Size() int

func (*MsgCommitTokens) XXX_Unmarshal

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

type MsgCommitTokensResponse

type MsgCommitTokensResponse struct {
}

func (*MsgCommitTokensResponse) Descriptor

func (*MsgCommitTokensResponse) Descriptor() ([]byte, []int)

func (*MsgCommitTokensResponse) Marshal

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

func (*MsgCommitTokensResponse) MarshalTo

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

func (*MsgCommitTokensResponse) MarshalToSizedBuffer

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

func (*MsgCommitTokensResponse) ProtoMessage

func (*MsgCommitTokensResponse) ProtoMessage()

func (*MsgCommitTokensResponse) Reset

func (m *MsgCommitTokensResponse) Reset()

func (*MsgCommitTokensResponse) Size

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

func (*MsgCommitTokensResponse) String

func (m *MsgCommitTokensResponse) String() string

func (*MsgCommitTokensResponse) Unmarshal

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

func (*MsgCommitTokensResponse) XXX_DiscardUnknown

func (m *MsgCommitTokensResponse) XXX_DiscardUnknown()

func (*MsgCommitTokensResponse) XXX_Marshal

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

func (*MsgCommitTokensResponse) XXX_Merge

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

func (*MsgCommitTokensResponse) XXX_Size

func (m *MsgCommitTokensResponse) XXX_Size() int

func (*MsgCommitTokensResponse) XXX_Unmarshal

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

type MsgDepositTokens

type MsgDepositTokens struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgDepositTokens

func NewMsgDepositTokens(creator string, amount sdk.Int, denom string) *MsgDepositTokens

func (*MsgDepositTokens) Descriptor

func (*MsgDepositTokens) Descriptor() ([]byte, []int)

func (*MsgDepositTokens) GetCreator

func (m *MsgDepositTokens) GetCreator() string

func (*MsgDepositTokens) GetDenom

func (m *MsgDepositTokens) GetDenom() string

func (*MsgDepositTokens) GetSignBytes

func (msg *MsgDepositTokens) GetSignBytes() []byte

func (*MsgDepositTokens) GetSigners

func (msg *MsgDepositTokens) GetSigners() []sdk.AccAddress

func (*MsgDepositTokens) Marshal

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

func (*MsgDepositTokens) MarshalTo

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

func (*MsgDepositTokens) MarshalToSizedBuffer

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

func (*MsgDepositTokens) ProtoMessage

func (*MsgDepositTokens) ProtoMessage()

func (*MsgDepositTokens) Reset

func (m *MsgDepositTokens) Reset()

func (*MsgDepositTokens) Route

func (msg *MsgDepositTokens) Route() string

func (*MsgDepositTokens) Size

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

func (*MsgDepositTokens) String

func (m *MsgDepositTokens) String() string

func (*MsgDepositTokens) Type

func (msg *MsgDepositTokens) Type() string

func (*MsgDepositTokens) Unmarshal

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

func (*MsgDepositTokens) ValidateBasic

func (msg *MsgDepositTokens) ValidateBasic() error

func (*MsgDepositTokens) XXX_DiscardUnknown

func (m *MsgDepositTokens) XXX_DiscardUnknown()

func (*MsgDepositTokens) XXX_Marshal

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

func (*MsgDepositTokens) XXX_Merge

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

func (*MsgDepositTokens) XXX_Size

func (m *MsgDepositTokens) XXX_Size() int

func (*MsgDepositTokens) XXX_Unmarshal

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

type MsgDepositTokensResponse

type MsgDepositTokensResponse struct {
}

func (*MsgDepositTokensResponse) Descriptor

func (*MsgDepositTokensResponse) Descriptor() ([]byte, []int)

func (*MsgDepositTokensResponse) Marshal

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

func (*MsgDepositTokensResponse) MarshalTo

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

func (*MsgDepositTokensResponse) MarshalToSizedBuffer

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

func (*MsgDepositTokensResponse) ProtoMessage

func (*MsgDepositTokensResponse) ProtoMessage()

func (*MsgDepositTokensResponse) Reset

func (m *MsgDepositTokensResponse) Reset()

func (*MsgDepositTokensResponse) Size

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

func (*MsgDepositTokensResponse) String

func (m *MsgDepositTokensResponse) String() string

func (*MsgDepositTokensResponse) Unmarshal

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

func (*MsgDepositTokensResponse) XXX_DiscardUnknown

func (m *MsgDepositTokensResponse) XXX_DiscardUnknown()

func (*MsgDepositTokensResponse) XXX_Marshal

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

func (*MsgDepositTokensResponse) XXX_Merge

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

func (*MsgDepositTokensResponse) XXX_Size

func (m *MsgDepositTokensResponse) XXX_Size() int

func (*MsgDepositTokensResponse) XXX_Unmarshal

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

type MsgUncommitTokens

type MsgUncommitTokens struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgUncommitTokens

func NewMsgUncommitTokens(creator string, amount sdk.Int, denom string) *MsgUncommitTokens

func (*MsgUncommitTokens) Descriptor

func (*MsgUncommitTokens) Descriptor() ([]byte, []int)

func (*MsgUncommitTokens) GetCreator

func (m *MsgUncommitTokens) GetCreator() string

func (*MsgUncommitTokens) GetDenom

func (m *MsgUncommitTokens) GetDenom() string

func (*MsgUncommitTokens) GetSignBytes

func (msg *MsgUncommitTokens) GetSignBytes() []byte

func (*MsgUncommitTokens) GetSigners

func (msg *MsgUncommitTokens) GetSigners() []sdk.AccAddress

func (*MsgUncommitTokens) Marshal

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

func (*MsgUncommitTokens) MarshalTo

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

func (*MsgUncommitTokens) MarshalToSizedBuffer

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

func (*MsgUncommitTokens) ProtoMessage

func (*MsgUncommitTokens) ProtoMessage()

func (*MsgUncommitTokens) Reset

func (m *MsgUncommitTokens) Reset()

func (*MsgUncommitTokens) Route

func (msg *MsgUncommitTokens) Route() string

func (*MsgUncommitTokens) Size

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

func (*MsgUncommitTokens) String

func (m *MsgUncommitTokens) String() string

func (*MsgUncommitTokens) Type

func (msg *MsgUncommitTokens) Type() string

func (*MsgUncommitTokens) Unmarshal

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

func (MsgUncommitTokens) ValidateBasic

func (msg MsgUncommitTokens) ValidateBasic() error

func (*MsgUncommitTokens) XXX_DiscardUnknown

func (m *MsgUncommitTokens) XXX_DiscardUnknown()

func (*MsgUncommitTokens) XXX_Marshal

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

func (*MsgUncommitTokens) XXX_Merge

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

func (*MsgUncommitTokens) XXX_Size

func (m *MsgUncommitTokens) XXX_Size() int

func (*MsgUncommitTokens) XXX_Unmarshal

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

type MsgUncommitTokensResponse

type MsgUncommitTokensResponse struct {
}

func (*MsgUncommitTokensResponse) Descriptor

func (*MsgUncommitTokensResponse) Descriptor() ([]byte, []int)

func (*MsgUncommitTokensResponse) Marshal

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

func (*MsgUncommitTokensResponse) MarshalTo

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

func (*MsgUncommitTokensResponse) MarshalToSizedBuffer

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

func (*MsgUncommitTokensResponse) ProtoMessage

func (*MsgUncommitTokensResponse) ProtoMessage()

func (*MsgUncommitTokensResponse) Reset

func (m *MsgUncommitTokensResponse) Reset()

func (*MsgUncommitTokensResponse) Size

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

func (*MsgUncommitTokensResponse) String

func (m *MsgUncommitTokensResponse) String() string

func (*MsgUncommitTokensResponse) Unmarshal

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

func (*MsgUncommitTokensResponse) XXX_DiscardUnknown

func (m *MsgUncommitTokensResponse) XXX_DiscardUnknown()

func (*MsgUncommitTokensResponse) XXX_Marshal

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

func (*MsgUncommitTokensResponse) XXX_Merge

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

func (*MsgUncommitTokensResponse) XXX_Size

func (m *MsgUncommitTokensResponse) XXX_Size() int

func (*MsgUncommitTokensResponse) XXX_Unmarshal

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

type MsgVest

type MsgVest struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgVest

func NewMsgVest(creator string, amount sdk.Int, denom string) *MsgVest

func (*MsgVest) Descriptor

func (*MsgVest) Descriptor() ([]byte, []int)

func (*MsgVest) GetCreator

func (m *MsgVest) GetCreator() string

func (*MsgVest) GetDenom

func (m *MsgVest) GetDenom() string

func (*MsgVest) GetSignBytes

func (msg *MsgVest) GetSignBytes() []byte

func (*MsgVest) GetSigners

func (msg *MsgVest) GetSigners() []sdk.AccAddress

func (*MsgVest) Marshal

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

func (*MsgVest) MarshalTo

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

func (*MsgVest) MarshalToSizedBuffer

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

func (*MsgVest) ProtoMessage

func (*MsgVest) ProtoMessage()

func (*MsgVest) Reset

func (m *MsgVest) Reset()

func (*MsgVest) Route

func (msg *MsgVest) Route() string

func (*MsgVest) Size

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

func (*MsgVest) String

func (m *MsgVest) String() string

func (*MsgVest) Type

func (msg *MsgVest) Type() string

func (*MsgVest) Unmarshal

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

func (*MsgVest) ValidateBasic

func (msg *MsgVest) ValidateBasic() error

func (*MsgVest) XXX_DiscardUnknown

func (m *MsgVest) XXX_DiscardUnknown()

func (*MsgVest) XXX_Marshal

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

func (*MsgVest) XXX_Merge

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

func (*MsgVest) XXX_Size

func (m *MsgVest) XXX_Size() int

func (*MsgVest) XXX_Unmarshal

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

type MsgVestNow

type MsgVestNow struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgVestNow

func NewMsgVestNow(creator string, amount sdk.Int, denom string) *MsgVestNow

func (*MsgVestNow) Descriptor

func (*MsgVestNow) Descriptor() ([]byte, []int)

func (*MsgVestNow) GetCreator

func (m *MsgVestNow) GetCreator() string

func (*MsgVestNow) GetDenom

func (m *MsgVestNow) GetDenom() string

func (*MsgVestNow) GetSignBytes

func (msg *MsgVestNow) GetSignBytes() []byte

func (*MsgVestNow) GetSigners

func (msg *MsgVestNow) GetSigners() []sdk.AccAddress

func (*MsgVestNow) Marshal

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

func (*MsgVestNow) MarshalTo

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

func (*MsgVestNow) MarshalToSizedBuffer

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

func (*MsgVestNow) ProtoMessage

func (*MsgVestNow) ProtoMessage()

func (*MsgVestNow) Reset

func (m *MsgVestNow) Reset()

func (*MsgVestNow) Route

func (msg *MsgVestNow) Route() string

func (*MsgVestNow) Size

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

func (*MsgVestNow) String

func (m *MsgVestNow) String() string

func (*MsgVestNow) Type

func (msg *MsgVestNow) Type() string

func (*MsgVestNow) Unmarshal

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

func (*MsgVestNow) ValidateBasic

func (msg *MsgVestNow) ValidateBasic() error

func (*MsgVestNow) XXX_DiscardUnknown

func (m *MsgVestNow) XXX_DiscardUnknown()

func (*MsgVestNow) XXX_Marshal

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

func (*MsgVestNow) XXX_Merge

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

func (*MsgVestNow) XXX_Size

func (m *MsgVestNow) XXX_Size() int

func (*MsgVestNow) XXX_Unmarshal

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

type MsgVestNowResponse

type MsgVestNowResponse struct {
}

func (*MsgVestNowResponse) Descriptor

func (*MsgVestNowResponse) Descriptor() ([]byte, []int)

func (*MsgVestNowResponse) Marshal

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

func (*MsgVestNowResponse) MarshalTo

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

func (*MsgVestNowResponse) MarshalToSizedBuffer

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

func (*MsgVestNowResponse) ProtoMessage

func (*MsgVestNowResponse) ProtoMessage()

func (*MsgVestNowResponse) Reset

func (m *MsgVestNowResponse) Reset()

func (*MsgVestNowResponse) Size

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

func (*MsgVestNowResponse) String

func (m *MsgVestNowResponse) String() string

func (*MsgVestNowResponse) Unmarshal

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

func (*MsgVestNowResponse) XXX_DiscardUnknown

func (m *MsgVestNowResponse) XXX_DiscardUnknown()

func (*MsgVestNowResponse) XXX_Marshal

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

func (*MsgVestNowResponse) XXX_Merge

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

func (*MsgVestNowResponse) XXX_Size

func (m *MsgVestNowResponse) XXX_Size() int

func (*MsgVestNowResponse) XXX_Unmarshal

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

type MsgVestResponse

type MsgVestResponse struct {
}

func (*MsgVestResponse) Descriptor

func (*MsgVestResponse) Descriptor() ([]byte, []int)

func (*MsgVestResponse) Marshal

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

func (*MsgVestResponse) MarshalTo

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

func (*MsgVestResponse) MarshalToSizedBuffer

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

func (*MsgVestResponse) ProtoMessage

func (*MsgVestResponse) ProtoMessage()

func (*MsgVestResponse) Reset

func (m *MsgVestResponse) Reset()

func (*MsgVestResponse) Size

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

func (*MsgVestResponse) String

func (m *MsgVestResponse) String() string

func (*MsgVestResponse) Unmarshal

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

func (*MsgVestResponse) XXX_DiscardUnknown

func (m *MsgVestResponse) XXX_DiscardUnknown()

func (*MsgVestResponse) XXX_Marshal

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

func (*MsgVestResponse) XXX_Merge

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

func (*MsgVestResponse) XXX_Size

func (m *MsgVestResponse) XXX_Size() int

func (*MsgVestResponse) XXX_Unmarshal

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

type MsgWithdrawTokens

type MsgWithdrawTokens struct {
	Creator string                                 `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Amount  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Denom   string                                 `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgWithdrawTokens

func NewMsgWithdrawTokens(creator string, amount sdk.Int, denom string) *MsgWithdrawTokens

func (*MsgWithdrawTokens) Descriptor

func (*MsgWithdrawTokens) Descriptor() ([]byte, []int)

func (*MsgWithdrawTokens) GetCreator

func (m *MsgWithdrawTokens) GetCreator() string

func (*MsgWithdrawTokens) GetDenom

func (m *MsgWithdrawTokens) GetDenom() string

func (*MsgWithdrawTokens) GetSignBytes

func (msg *MsgWithdrawTokens) GetSignBytes() []byte

func (*MsgWithdrawTokens) GetSigners

func (msg *MsgWithdrawTokens) GetSigners() []sdk.AccAddress

func (*MsgWithdrawTokens) Marshal

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

func (*MsgWithdrawTokens) MarshalTo

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

func (*MsgWithdrawTokens) MarshalToSizedBuffer

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

func (*MsgWithdrawTokens) ProtoMessage

func (*MsgWithdrawTokens) ProtoMessage()

func (*MsgWithdrawTokens) Reset

func (m *MsgWithdrawTokens) Reset()

func (*MsgWithdrawTokens) Route

func (msg *MsgWithdrawTokens) Route() string

func (*MsgWithdrawTokens) Size

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

func (*MsgWithdrawTokens) String

func (m *MsgWithdrawTokens) String() string

func (*MsgWithdrawTokens) Type

func (msg *MsgWithdrawTokens) Type() string

func (*MsgWithdrawTokens) Unmarshal

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

func (*MsgWithdrawTokens) ValidateBasic

func (msg *MsgWithdrawTokens) ValidateBasic() error

func (*MsgWithdrawTokens) XXX_DiscardUnknown

func (m *MsgWithdrawTokens) XXX_DiscardUnknown()

func (*MsgWithdrawTokens) XXX_Marshal

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

func (*MsgWithdrawTokens) XXX_Merge

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

func (*MsgWithdrawTokens) XXX_Size

func (m *MsgWithdrawTokens) XXX_Size() int

func (*MsgWithdrawTokens) XXX_Unmarshal

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

type MsgWithdrawTokensResponse

type MsgWithdrawTokensResponse struct {
}

func (*MsgWithdrawTokensResponse) Descriptor

func (*MsgWithdrawTokensResponse) Descriptor() ([]byte, []int)

func (*MsgWithdrawTokensResponse) Marshal

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

func (*MsgWithdrawTokensResponse) MarshalTo

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

func (*MsgWithdrawTokensResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawTokensResponse) ProtoMessage

func (*MsgWithdrawTokensResponse) ProtoMessage()

func (*MsgWithdrawTokensResponse) Reset

func (m *MsgWithdrawTokensResponse) Reset()

func (*MsgWithdrawTokensResponse) Size

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

func (*MsgWithdrawTokensResponse) String

func (m *MsgWithdrawTokensResponse) String() string

func (*MsgWithdrawTokensResponse) Unmarshal

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

func (*MsgWithdrawTokensResponse) XXX_DiscardUnknown

func (m *MsgWithdrawTokensResponse) XXX_DiscardUnknown()

func (*MsgWithdrawTokensResponse) XXX_Marshal

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

func (*MsgWithdrawTokensResponse) XXX_Merge

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

func (*MsgWithdrawTokensResponse) XXX_Size

func (m *MsgWithdrawTokensResponse) XXX_Size() int

func (*MsgWithdrawTokensResponse) XXX_Unmarshal

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

type Params

type Params struct {
	VestingInfos []*VestingInfo `protobuf:"bytes,1,rep,name=vesting_infos,json=vestingInfos,proto3" json:"vesting_infos,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(vestingInfos []*VestingInfo) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetVestingInfos

func (m *Params) GetVestingInfos() []*VestingInfo

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of ShowCommitments items.
	ShowCommitments(ctx context.Context, in *QueryShowCommitmentsRequest, opts ...grpc.CallOption) (*QueryShowCommitmentsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of ShowCommitments items.
	ShowCommitments(context.Context, *QueryShowCommitmentsRequest) (*QueryShowCommitmentsResponse, error)
}

QueryServer is the server API for Query service.

type QueryShowCommitmentsRequest

type QueryShowCommitmentsRequest struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func (*QueryShowCommitmentsRequest) Descriptor

func (*QueryShowCommitmentsRequest) Descriptor() ([]byte, []int)

func (*QueryShowCommitmentsRequest) GetCreator

func (m *QueryShowCommitmentsRequest) GetCreator() string

func (*QueryShowCommitmentsRequest) Marshal

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

func (*QueryShowCommitmentsRequest) MarshalTo

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

func (*QueryShowCommitmentsRequest) MarshalToSizedBuffer

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

func (*QueryShowCommitmentsRequest) ProtoMessage

func (*QueryShowCommitmentsRequest) ProtoMessage()

func (*QueryShowCommitmentsRequest) Reset

func (m *QueryShowCommitmentsRequest) Reset()

func (*QueryShowCommitmentsRequest) Size

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

func (*QueryShowCommitmentsRequest) String

func (m *QueryShowCommitmentsRequest) String() string

func (*QueryShowCommitmentsRequest) Unmarshal

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

func (*QueryShowCommitmentsRequest) XXX_DiscardUnknown

func (m *QueryShowCommitmentsRequest) XXX_DiscardUnknown()

func (*QueryShowCommitmentsRequest) XXX_Marshal

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

func (*QueryShowCommitmentsRequest) XXX_Merge

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

func (*QueryShowCommitmentsRequest) XXX_Size

func (m *QueryShowCommitmentsRequest) XXX_Size() int

func (*QueryShowCommitmentsRequest) XXX_Unmarshal

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

type QueryShowCommitmentsResponse

type QueryShowCommitmentsResponse struct {
	Commitments *Commitments `protobuf:"bytes,1,opt,name=commitments,proto3" json:"commitments,omitempty"`
}

func (*QueryShowCommitmentsResponse) Descriptor

func (*QueryShowCommitmentsResponse) Descriptor() ([]byte, []int)

func (*QueryShowCommitmentsResponse) GetCommitments

func (m *QueryShowCommitmentsResponse) GetCommitments() *Commitments

func (*QueryShowCommitmentsResponse) Marshal

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

func (*QueryShowCommitmentsResponse) MarshalTo

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

func (*QueryShowCommitmentsResponse) MarshalToSizedBuffer

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

func (*QueryShowCommitmentsResponse) ProtoMessage

func (*QueryShowCommitmentsResponse) ProtoMessage()

func (*QueryShowCommitmentsResponse) Reset

func (m *QueryShowCommitmentsResponse) Reset()

func (*QueryShowCommitmentsResponse) Size

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

func (*QueryShowCommitmentsResponse) String

func (*QueryShowCommitmentsResponse) Unmarshal

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

func (*QueryShowCommitmentsResponse) XXX_DiscardUnknown

func (m *QueryShowCommitmentsResponse) XXX_DiscardUnknown()

func (*QueryShowCommitmentsResponse) XXX_Marshal

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

func (*QueryShowCommitmentsResponse) XXX_Merge

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

func (*QueryShowCommitmentsResponse) XXX_Size

func (m *QueryShowCommitmentsResponse) XXX_Size() int

func (*QueryShowCommitmentsResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
}

StakingKeeper defines the expected interface contract the vesting module requires for finding and changing the delegated tokens, used in clawback.

type UncommittedTokens

type UncommittedTokens struct {
	Denom  string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*UncommittedTokens) Descriptor

func (*UncommittedTokens) Descriptor() ([]byte, []int)

func (*UncommittedTokens) GetDenom

func (m *UncommittedTokens) GetDenom() string

func (*UncommittedTokens) Marshal

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

func (*UncommittedTokens) MarshalTo

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

func (*UncommittedTokens) MarshalToSizedBuffer

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

func (*UncommittedTokens) ProtoMessage

func (*UncommittedTokens) ProtoMessage()

func (*UncommittedTokens) Reset

func (m *UncommittedTokens) Reset()

func (*UncommittedTokens) Size

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

func (*UncommittedTokens) String

func (m *UncommittedTokens) String() string

func (*UncommittedTokens) Unmarshal

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

func (*UncommittedTokens) XXX_DiscardUnknown

func (m *UncommittedTokens) XXX_DiscardUnknown()

func (*UncommittedTokens) XXX_Marshal

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

func (*UncommittedTokens) XXX_Merge

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

func (*UncommittedTokens) XXX_Size

func (m *UncommittedTokens) XXX_Size() int

func (*UncommittedTokens) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CancelVest

func (*UnimplementedMsgServer) CommitTokens

func (*UnimplementedMsgServer) DepositTokens

func (*UnimplementedMsgServer) UncommitTokens

func (*UnimplementedMsgServer) Vest

func (*UnimplementedMsgServer) VestNow

func (*UnimplementedMsgServer) WithdrawTokens

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ShowCommitments

type VestingInfo

type VestingInfo struct {
	BaseDenom       string                                 `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
	VestingDenom    string                                 `protobuf:"bytes,2,opt,name=vesting_denom,json=vestingDenom,proto3" json:"vesting_denom,omitempty"`
	EpochIdentifier string                                 `protobuf:"bytes,3,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"`
	NumEpochs       int64                                  `protobuf:"varint,4,opt,name=num_epochs,json=numEpochs,proto3" json:"num_epochs,omitempty"`
	VestNowFactor   github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */
}

func (*VestingInfo) Descriptor

func (*VestingInfo) Descriptor() ([]byte, []int)

func (*VestingInfo) GetBaseDenom

func (m *VestingInfo) GetBaseDenom() string

func (*VestingInfo) GetEpochIdentifier

func (m *VestingInfo) GetEpochIdentifier() string

func (*VestingInfo) GetNumEpochs

func (m *VestingInfo) GetNumEpochs() int64

func (*VestingInfo) GetVestingDenom

func (m *VestingInfo) GetVestingDenom() string

func (*VestingInfo) Marshal

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

func (*VestingInfo) MarshalTo

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

func (*VestingInfo) MarshalToSizedBuffer

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

func (*VestingInfo) ProtoMessage

func (*VestingInfo) ProtoMessage()

func (*VestingInfo) Reset

func (m *VestingInfo) Reset()

func (*VestingInfo) Size

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

func (*VestingInfo) String

func (m *VestingInfo) String() string

func (*VestingInfo) Unmarshal

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

func (*VestingInfo) XXX_DiscardUnknown

func (m *VestingInfo) XXX_DiscardUnknown()

func (*VestingInfo) XXX_Marshal

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

func (*VestingInfo) XXX_Merge

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

func (*VestingInfo) XXX_Size

func (m *VestingInfo) XXX_Size() int

func (*VestingInfo) XXX_Unmarshal

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

type VestingTokens

type VestingTokens struct {
	Denom           string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	TotalAmount     github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	UnvestedAmount  github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	EpochIdentifier string                                 `protobuf:"bytes,4,opt,name=epoch_identifier,json=epochIdentifier,proto3" json:"epoch_identifier,omitempty"`
	NumEpochs       int64                                  `protobuf:"varint,5,opt,name=num_epochs,json=numEpochs,proto3" json:"num_epochs,omitempty"`
	CurrentEpoch    int64                                  `protobuf:"varint,6,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"`
}

func (*VestingTokens) Descriptor

func (*VestingTokens) Descriptor() ([]byte, []int)

func (*VestingTokens) GetCurrentEpoch

func (m *VestingTokens) GetCurrentEpoch() int64

func (*VestingTokens) GetDenom

func (m *VestingTokens) GetDenom() string

func (*VestingTokens) GetEpochIdentifier

func (m *VestingTokens) GetEpochIdentifier() string

func (*VestingTokens) GetNumEpochs

func (m *VestingTokens) GetNumEpochs() int64

func (*VestingTokens) Marshal

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

func (*VestingTokens) MarshalTo

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

func (*VestingTokens) MarshalToSizedBuffer

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

func (*VestingTokens) ProtoMessage

func (*VestingTokens) ProtoMessage()

func (*VestingTokens) Reset

func (m *VestingTokens) Reset()

func (*VestingTokens) Size

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

func (*VestingTokens) String

func (m *VestingTokens) String() string

func (*VestingTokens) Unmarshal

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

func (*VestingTokens) XXX_DiscardUnknown

func (m *VestingTokens) XXX_DiscardUnknown()

func (*VestingTokens) XXX_Marshal

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

func (*VestingTokens) XXX_Merge

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

func (*VestingTokens) XXX_Size

func (m *VestingTokens) XXX_Size() int

func (*VestingTokens) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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