types

package
v1.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeDelegate        = "vesting_delegate"
	EventTypeUnbond          = "vesting_unbond"
	EventTypeRedelegate      = "vesting_redelegate"
	EventTypeWithdrawRewards = "vesting_withdraw_rewards"
	EventTypeWithdrawVesting = "vesting_withdraw_vesting"
	EventTypeVest            = "vesting_vest"
	EventTypeTransfer        = "vesting_transfer"

	AttributeKeyValidator   = "validator"
	AttributeKeyVestingType = "vesting_type"

	AttributeKeySrcValidator     = "source_validator"
	AttributeKeyDstValidator     = "destination_validator"
	AttributeKeyDelegator        = "delegator"
	AttributeKeyDelegableAddress = "delegable_address"
	AttributeKeyCompletionTime   = "completion_time"
	AttributeKeyRecipient        = "recipient"
	AttributeKeySender           = "sender"
	AttributeKeyWithdrawn        = "withdrawn"
	AttributeValueCategory       = ModuleName
)

staking module event types

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

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_cfevesting"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgCreateVestingAccount = "create_vesting_account"
View Source
const TypeMsgSendToVestingAccount = "send_to_vesting_account"
View Source
const TypeMsgVest = "vest"
View Source
const TypeMsgWithdrawAllAvailable = "withdraw_all_available"

Variables

View Source
var (
	ErrInvalidLengthAccountVesting        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccountVesting          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccountVesting = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
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 (
	VestingTypesKey = []byte{0x01}

	AccountVestingsKeyPrefix = []byte{0x02}
)
View Source
var (
	KeyDenom            = []byte("Denom")
	DefaultDenom string = "uc4e"
)
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 (
	ErrInvalidLengthVestingTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVestingTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVestingTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/cfevesting module sentinel errors

Functions

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 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
	// Methods imported from account should be defined here
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
	NewAccount(ctx sdk.Context, acc types.AccountI) types.AccountI
	SetModuleAccount(ctx sdk.Context, macc types.ModuleAccountI)
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	SetAccount(ctx sdk.Context, acc types.AccountI)
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AccountVestings

type AccountVestings struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// string delegable_address = 2;
	VestingPools []*VestingPool `protobuf:"bytes,3,rep,name=vesting_pools,json=vestingPools,proto3" json:"vesting_pools,omitempty"`
}

func (*AccountVestings) Descriptor

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

func (*AccountVestings) GetAddress

func (m *AccountVestings) GetAddress() string

func (*AccountVestings) GetVestingPools

func (m *AccountVestings) GetVestingPools() []*VestingPool

func (*AccountVestings) Marshal

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

func (*AccountVestings) MarshalTo

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

func (*AccountVestings) MarshalToSizedBuffer

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

func (*AccountVestings) ProtoMessage

func (*AccountVestings) ProtoMessage()

func (*AccountVestings) Reset

func (m *AccountVestings) Reset()

func (*AccountVestings) Size

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

func (*AccountVestings) String

func (m *AccountVestings) String() string

func (*AccountVestings) Unmarshal

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

func (AccountVestings) Validate

func (av AccountVestings) Validate() error

func (AccountVestings) ValidateAgainstVestingTypes

func (av AccountVestings) ValidateAgainstVestingTypes(vestingTypes []GenesisVestingType) error

func (*AccountVestings) XXX_DiscardUnknown

func (m *AccountVestings) XXX_DiscardUnknown()

func (*AccountVestings) XXX_Marshal

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

func (*AccountVestings) XXX_Merge

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

func (*AccountVestings) XXX_Size

func (m *AccountVestings) XXX_Size() int

func (*AccountVestings) XXX_Unmarshal

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

type AccountVestingsList

type AccountVestingsList struct {
	Vestings []*AccountVestings `protobuf:"bytes,1,rep,name=vestings,proto3" json:"vestings,omitempty"`
}

func (*AccountVestingsList) Descriptor

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

func (*AccountVestingsList) GetVestings

func (m *AccountVestingsList) GetVestings() []*AccountVestings

func (*AccountVestingsList) Marshal

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

func (*AccountVestingsList) MarshalTo

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

func (*AccountVestingsList) MarshalToSizedBuffer

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

func (*AccountVestingsList) ProtoMessage

func (*AccountVestingsList) ProtoMessage()

func (*AccountVestingsList) Reset

func (m *AccountVestingsList) Reset()

func (*AccountVestingsList) Size

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

func (*AccountVestingsList) String

func (m *AccountVestingsList) String() string

func (*AccountVestingsList) Unmarshal

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

func (*AccountVestingsList) XXX_DiscardUnknown

func (m *AccountVestingsList) XXX_DiscardUnknown()

func (*AccountVestingsList) XXX_Marshal

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

func (*AccountVestingsList) XXX_Merge

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

func (*AccountVestingsList) XXX_Size

func (m *AccountVestingsList) XXX_Size() int

func (*AccountVestingsList) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	// Methods imported from bank should be defined here
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DistributionKeeper

type DistributionKeeper interface {
	GetDelegatorWithdrawAddr(ctx sdk.Context, delAddr sdk.AccAddress) sdk.AccAddress
	SetDelegatorWithdrawAddr(ctx sdk.Context, delAddr, withdrawAddr sdk.AccAddress)
}

DistributionKeeper defines the expected interface needed for distribution functionality.

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// this line is used by starport scaffolding # genesis/proto/state
	VestingTypes        []GenesisVestingType `protobuf:"bytes,2,rep,name=vesting_types,json=vestingTypes,proto3" json:"vesting_types" yaml:"vesting_types"`
	AccountVestingsList AccountVestingsList  `` /* 139-byte string literal not displayed */
}

GenesisState defines the cfevesting module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAccountVestingsList

func (m *GenesisState) GetAccountVestingsList() AccountVestingsList

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetVestingTypes

func (m *GenesisState) GetVestingTypes() []GenesisVestingType

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 GenesisVestingType

type GenesisVestingType struct {
	// vesting type name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// period of locked coins from vesting start
	LockupPeriod     int64  `protobuf:"varint,2,opt,name=lockup_period,json=lockupPeriod,proto3" json:"lockup_period,omitempty"`
	LockupPeriodUnit string `protobuf:"bytes,3,opt,name=lockup_period_unit,json=lockupPeriodUnit,proto3" json:"lockup_period_unit,omitempty"`
	// period of veesting coins from lockup period end
	VestingPeriod     int64  `protobuf:"varint,4,opt,name=vesting_period,json=vestingPeriod,proto3" json:"vesting_period,omitempty"`
	VestingPeriodUnit string `protobuf:"bytes,5,opt,name=vesting_period_unit,json=vestingPeriodUnit,proto3" json:"vesting_period_unit,omitempty"`
}

func (*GenesisVestingType) Descriptor

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

func (*GenesisVestingType) GetLockupPeriod

func (m *GenesisVestingType) GetLockupPeriod() int64

func (*GenesisVestingType) GetLockupPeriodUnit

func (m *GenesisVestingType) GetLockupPeriodUnit() string

func (*GenesisVestingType) GetName

func (m *GenesisVestingType) GetName() string

func (*GenesisVestingType) GetVestingPeriod

func (m *GenesisVestingType) GetVestingPeriod() int64

func (*GenesisVestingType) GetVestingPeriodUnit

func (m *GenesisVestingType) GetVestingPeriodUnit() string

func (*GenesisVestingType) Marshal

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

func (*GenesisVestingType) MarshalTo

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

func (*GenesisVestingType) MarshalToSizedBuffer

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

func (*GenesisVestingType) ProtoMessage

func (*GenesisVestingType) ProtoMessage()

func (*GenesisVestingType) Reset

func (m *GenesisVestingType) Reset()

func (*GenesisVestingType) Size

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

func (*GenesisVestingType) String

func (m *GenesisVestingType) String() string

func (*GenesisVestingType) Unmarshal

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

func (*GenesisVestingType) XXX_DiscardUnknown

func (m *GenesisVestingType) XXX_DiscardUnknown()

func (*GenesisVestingType) XXX_Marshal

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

func (*GenesisVestingType) XXX_Merge

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

func (*GenesisVestingType) XXX_Size

func (m *GenesisVestingType) XXX_Size() int

func (*GenesisVestingType) XXX_Unmarshal

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

type GovKeeper

type GovKeeper interface {
}

GovKeeper defines the expected interface needed for distribution functionality.

type MsgClient

type MsgClient interface {
	CreateVestingPool(ctx context.Context, in *MsgCreateVestingPool, opts ...grpc.CallOption) (*MsgCreateVestingPoolResponse, error)
	WithdrawAllAvailable(ctx context.Context, in *MsgWithdrawAllAvailable, opts ...grpc.CallOption) (*MsgWithdrawAllAvailableResponse, error)
	// rpc Delegate(MsgDelegate) returns (MsgDelegateResponse);
	// rpc Undelegate(MsgUndelegate) returns (MsgUndelegateResponse);
	// rpc BeginRedelegate(MsgBeginRedelegate) returns (MsgBeginRedelegateResponse);
	// rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) returns (MsgWithdrawDelegatorRewardResponse);
	// rpc SendVesting(MsgSendVesting) returns (MsgSendVestingResponse);
	// rpc Vote(MsgVote) returns (MsgVoteResponse);
	// rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse);
	CreateVestingAccount(ctx context.Context, in *MsgCreateVestingAccount, opts ...grpc.CallOption) (*MsgCreateVestingAccountResponse, error)
	SendToVestingAccount(ctx context.Context, in *MsgSendToVestingAccount, opts ...grpc.CallOption) (*MsgSendToVestingAccountResponse, 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 MsgCreateVestingAccount

type MsgCreateVestingAccount struct {
	FromAddress string                                   `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"`
	ToAddress   string                                   `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"`
	Amount      github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	StartTime   int64                                    `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"`
	EndTime     int64                                    `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"`
}

func NewMsgCreateVestingAccount

func NewMsgCreateVestingAccount(fromAddress string, toAddress string, amount sdk.Coins, startTime int64, endTime int64) *MsgCreateVestingAccount

func (*MsgCreateVestingAccount) Descriptor

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

func (*MsgCreateVestingAccount) GetAmount

func (*MsgCreateVestingAccount) GetEndTime

func (m *MsgCreateVestingAccount) GetEndTime() int64

func (*MsgCreateVestingAccount) GetFromAddress

func (m *MsgCreateVestingAccount) GetFromAddress() string

func (*MsgCreateVestingAccount) GetSignBytes

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

func (*MsgCreateVestingAccount) GetSigners

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

func (*MsgCreateVestingAccount) GetStartTime

func (m *MsgCreateVestingAccount) GetStartTime() int64

func (*MsgCreateVestingAccount) GetToAddress

func (m *MsgCreateVestingAccount) GetToAddress() string

func (*MsgCreateVestingAccount) Marshal

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

func (*MsgCreateVestingAccount) MarshalTo

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

func (*MsgCreateVestingAccount) MarshalToSizedBuffer

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

func (*MsgCreateVestingAccount) ProtoMessage

func (*MsgCreateVestingAccount) ProtoMessage()

func (*MsgCreateVestingAccount) Reset

func (m *MsgCreateVestingAccount) Reset()

func (*MsgCreateVestingAccount) Route

func (msg *MsgCreateVestingAccount) Route() string

func (*MsgCreateVestingAccount) Size

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

func (*MsgCreateVestingAccount) String

func (m *MsgCreateVestingAccount) String() string

func (*MsgCreateVestingAccount) Type

func (msg *MsgCreateVestingAccount) Type() string

func (*MsgCreateVestingAccount) Unmarshal

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

func (*MsgCreateVestingAccount) ValidateBasic

func (msg *MsgCreateVestingAccount) ValidateBasic() error

func (*MsgCreateVestingAccount) XXX_DiscardUnknown

func (m *MsgCreateVestingAccount) XXX_DiscardUnknown()

func (*MsgCreateVestingAccount) XXX_Marshal

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

func (*MsgCreateVestingAccount) XXX_Merge

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

func (*MsgCreateVestingAccount) XXX_Size

func (m *MsgCreateVestingAccount) XXX_Size() int

func (*MsgCreateVestingAccount) XXX_Unmarshal

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

type MsgCreateVestingAccountResponse

type MsgCreateVestingAccountResponse struct {
}

func (*MsgCreateVestingAccountResponse) Descriptor

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

func (*MsgCreateVestingAccountResponse) Marshal

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

func (*MsgCreateVestingAccountResponse) MarshalTo

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

func (*MsgCreateVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgCreateVestingAccountResponse) ProtoMessage

func (*MsgCreateVestingAccountResponse) ProtoMessage()

func (*MsgCreateVestingAccountResponse) Reset

func (*MsgCreateVestingAccountResponse) Size

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

func (*MsgCreateVestingAccountResponse) String

func (*MsgCreateVestingAccountResponse) Unmarshal

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

func (*MsgCreateVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgCreateVestingAccountResponse) XXX_Marshal

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

func (*MsgCreateVestingAccountResponse) XXX_Merge

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

func (*MsgCreateVestingAccountResponse) XXX_Size

func (m *MsgCreateVestingAccountResponse) XXX_Size() int

func (*MsgCreateVestingAccountResponse) XXX_Unmarshal

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

type MsgCreateVestingPool

type MsgCreateVestingPool struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// uint64 amount = 2;
	Name        string                                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Amount      github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	Duration    time.Duration                          `protobuf:"bytes,5,opt,name=duration,proto3,stdduration" json:"duration"`
	VestingType string                                 `protobuf:"bytes,6,opt,name=vesting_type,json=vestingType,proto3" json:"vesting_type,omitempty"`
}

func NewMsgCreateVestingPool

func NewMsgCreateVestingPool(creator string, name string, amount sdk.Int, duration time.Duration, vestingType string) *MsgCreateVestingPool

func (*MsgCreateVestingPool) Descriptor

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

func (*MsgCreateVestingPool) GetCreator

func (m *MsgCreateVestingPool) GetCreator() string

func (*MsgCreateVestingPool) GetDuration

func (m *MsgCreateVestingPool) GetDuration() time.Duration

func (*MsgCreateVestingPool) GetName

func (m *MsgCreateVestingPool) GetName() string

func (*MsgCreateVestingPool) GetSignBytes

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

func (*MsgCreateVestingPool) GetSigners

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

func (*MsgCreateVestingPool) GetVestingType

func (m *MsgCreateVestingPool) GetVestingType() string

func (*MsgCreateVestingPool) Marshal

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

func (*MsgCreateVestingPool) MarshalTo

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

func (*MsgCreateVestingPool) MarshalToSizedBuffer

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

func (*MsgCreateVestingPool) ProtoMessage

func (*MsgCreateVestingPool) ProtoMessage()

func (*MsgCreateVestingPool) Reset

func (m *MsgCreateVestingPool) Reset()

func (*MsgCreateVestingPool) Route

func (msg *MsgCreateVestingPool) Route() string

func (*MsgCreateVestingPool) Size

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

func (*MsgCreateVestingPool) String

func (m *MsgCreateVestingPool) String() string

func (*MsgCreateVestingPool) Type

func (msg *MsgCreateVestingPool) Type() string

func (*MsgCreateVestingPool) Unmarshal

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

func (*MsgCreateVestingPool) ValidateBasic

func (msg *MsgCreateVestingPool) ValidateBasic() error

func (*MsgCreateVestingPool) XXX_DiscardUnknown

func (m *MsgCreateVestingPool) XXX_DiscardUnknown()

func (*MsgCreateVestingPool) XXX_Marshal

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

func (*MsgCreateVestingPool) XXX_Merge

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

func (*MsgCreateVestingPool) XXX_Size

func (m *MsgCreateVestingPool) XXX_Size() int

func (*MsgCreateVestingPool) XXX_Unmarshal

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

type MsgCreateVestingPoolResponse

type MsgCreateVestingPoolResponse struct {
}

func (*MsgCreateVestingPoolResponse) Descriptor

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

func (*MsgCreateVestingPoolResponse) Marshal

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

func (*MsgCreateVestingPoolResponse) MarshalTo

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

func (*MsgCreateVestingPoolResponse) MarshalToSizedBuffer

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

func (*MsgCreateVestingPoolResponse) ProtoMessage

func (*MsgCreateVestingPoolResponse) ProtoMessage()

func (*MsgCreateVestingPoolResponse) Reset

func (m *MsgCreateVestingPoolResponse) Reset()

func (*MsgCreateVestingPoolResponse) Size

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

func (*MsgCreateVestingPoolResponse) String

func (*MsgCreateVestingPoolResponse) Unmarshal

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

func (*MsgCreateVestingPoolResponse) XXX_DiscardUnknown

func (m *MsgCreateVestingPoolResponse) XXX_DiscardUnknown()

func (*MsgCreateVestingPoolResponse) XXX_Marshal

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

func (*MsgCreateVestingPoolResponse) XXX_Merge

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

func (*MsgCreateVestingPoolResponse) XXX_Size

func (m *MsgCreateVestingPoolResponse) XXX_Size() int

func (*MsgCreateVestingPoolResponse) XXX_Unmarshal

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

type MsgSendToVestingAccount

type MsgSendToVestingAccount struct {
	FromAddress    string                                 `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress      string                                 `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	VestingId      int32                                  `protobuf:"varint,3,opt,name=vesting_id,json=vestingId,proto3" json:"vesting_id,omitempty"`
	Amount         github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
	RestartVesting bool                                   `protobuf:"varint,5,opt,name=restart_vesting,json=restartVesting,proto3" json:"restart_vesting,omitempty"`
}

func NewMsgSendToVestingAccount

func NewMsgSendToVestingAccount(fromAddress string, toAddress string, vestingId int32, amount sdk.Int, restartVesting bool) *MsgSendToVestingAccount

func (*MsgSendToVestingAccount) Descriptor

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

func (*MsgSendToVestingAccount) GetFromAddress

func (m *MsgSendToVestingAccount) GetFromAddress() string

func (*MsgSendToVestingAccount) GetRestartVesting

func (m *MsgSendToVestingAccount) GetRestartVesting() bool

func (*MsgSendToVestingAccount) GetSignBytes

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

func (*MsgSendToVestingAccount) GetSigners

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

func (*MsgSendToVestingAccount) GetToAddress

func (m *MsgSendToVestingAccount) GetToAddress() string

func (*MsgSendToVestingAccount) GetVestingId

func (m *MsgSendToVestingAccount) GetVestingId() int32

func (*MsgSendToVestingAccount) Marshal

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

func (*MsgSendToVestingAccount) MarshalTo

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

func (*MsgSendToVestingAccount) MarshalToSizedBuffer

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

func (*MsgSendToVestingAccount) ProtoMessage

func (*MsgSendToVestingAccount) ProtoMessage()

func (*MsgSendToVestingAccount) Reset

func (m *MsgSendToVestingAccount) Reset()

func (*MsgSendToVestingAccount) Route

func (msg *MsgSendToVestingAccount) Route() string

func (*MsgSendToVestingAccount) Size

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

func (*MsgSendToVestingAccount) String

func (m *MsgSendToVestingAccount) String() string

func (*MsgSendToVestingAccount) Type

func (msg *MsgSendToVestingAccount) Type() string

func (*MsgSendToVestingAccount) Unmarshal

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

func (*MsgSendToVestingAccount) ValidateBasic

func (msg *MsgSendToVestingAccount) ValidateBasic() error

func (*MsgSendToVestingAccount) XXX_DiscardUnknown

func (m *MsgSendToVestingAccount) XXX_DiscardUnknown()

func (*MsgSendToVestingAccount) XXX_Marshal

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

func (*MsgSendToVestingAccount) XXX_Merge

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

func (*MsgSendToVestingAccount) XXX_Size

func (m *MsgSendToVestingAccount) XXX_Size() int

func (*MsgSendToVestingAccount) XXX_Unmarshal

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

type MsgSendToVestingAccountResponse

type MsgSendToVestingAccountResponse struct {
}

func (*MsgSendToVestingAccountResponse) Descriptor

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

func (*MsgSendToVestingAccountResponse) Marshal

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

func (*MsgSendToVestingAccountResponse) MarshalTo

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

func (*MsgSendToVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgSendToVestingAccountResponse) ProtoMessage

func (*MsgSendToVestingAccountResponse) ProtoMessage()

func (*MsgSendToVestingAccountResponse) Reset

func (*MsgSendToVestingAccountResponse) Size

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

func (*MsgSendToVestingAccountResponse) String

func (*MsgSendToVestingAccountResponse) Unmarshal

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

func (*MsgSendToVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgSendToVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgSendToVestingAccountResponse) XXX_Marshal

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

func (*MsgSendToVestingAccountResponse) XXX_Merge

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

func (*MsgSendToVestingAccountResponse) XXX_Size

func (m *MsgSendToVestingAccountResponse) XXX_Size() int

func (*MsgSendToVestingAccountResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateVestingPool(context.Context, *MsgCreateVestingPool) (*MsgCreateVestingPoolResponse, error)
	WithdrawAllAvailable(context.Context, *MsgWithdrawAllAvailable) (*MsgWithdrawAllAvailableResponse, error)
	// rpc Delegate(MsgDelegate) returns (MsgDelegateResponse);
	// rpc Undelegate(MsgUndelegate) returns (MsgUndelegateResponse);
	// rpc BeginRedelegate(MsgBeginRedelegate) returns (MsgBeginRedelegateResponse);
	// rpc WithdrawDelegatorReward(MsgWithdrawDelegatorReward) returns (MsgWithdrawDelegatorRewardResponse);
	// rpc SendVesting(MsgSendVesting) returns (MsgSendVestingResponse);
	// rpc Vote(MsgVote) returns (MsgVoteResponse);
	// rpc VoteWeighted(MsgVoteWeighted) returns (MsgVoteWeightedResponse);
	CreateVestingAccount(context.Context, *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error)
	SendToVestingAccount(context.Context, *MsgSendToVestingAccount) (*MsgSendToVestingAccountResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdrawAllAvailable

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

func NewMsgWithdrawAllAvailable

func NewMsgWithdrawAllAvailable(creator string) *MsgWithdrawAllAvailable

func (*MsgWithdrawAllAvailable) Descriptor

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

func (*MsgWithdrawAllAvailable) GetCreator

func (m *MsgWithdrawAllAvailable) GetCreator() string

func (*MsgWithdrawAllAvailable) GetSignBytes

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

func (*MsgWithdrawAllAvailable) GetSigners

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

func (*MsgWithdrawAllAvailable) Marshal

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

func (*MsgWithdrawAllAvailable) MarshalTo

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

func (*MsgWithdrawAllAvailable) MarshalToSizedBuffer

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

func (*MsgWithdrawAllAvailable) ProtoMessage

func (*MsgWithdrawAllAvailable) ProtoMessage()

func (*MsgWithdrawAllAvailable) Reset

func (m *MsgWithdrawAllAvailable) Reset()

func (*MsgWithdrawAllAvailable) Route

func (msg *MsgWithdrawAllAvailable) Route() string

func (*MsgWithdrawAllAvailable) Size

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

func (*MsgWithdrawAllAvailable) String

func (m *MsgWithdrawAllAvailable) String() string

func (*MsgWithdrawAllAvailable) Type

func (msg *MsgWithdrawAllAvailable) Type() string

func (*MsgWithdrawAllAvailable) Unmarshal

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

func (*MsgWithdrawAllAvailable) ValidateBasic

func (msg *MsgWithdrawAllAvailable) ValidateBasic() error

func (*MsgWithdrawAllAvailable) XXX_DiscardUnknown

func (m *MsgWithdrawAllAvailable) XXX_DiscardUnknown()

func (*MsgWithdrawAllAvailable) XXX_Marshal

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

func (*MsgWithdrawAllAvailable) XXX_Merge

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

func (*MsgWithdrawAllAvailable) XXX_Size

func (m *MsgWithdrawAllAvailable) XXX_Size() int

func (*MsgWithdrawAllAvailable) XXX_Unmarshal

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

type MsgWithdrawAllAvailableResponse

type MsgWithdrawAllAvailableResponse struct {
}

func (*MsgWithdrawAllAvailableResponse) Descriptor

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

func (*MsgWithdrawAllAvailableResponse) Marshal

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

func (*MsgWithdrawAllAvailableResponse) MarshalTo

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

func (*MsgWithdrawAllAvailableResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawAllAvailableResponse) ProtoMessage

func (*MsgWithdrawAllAvailableResponse) ProtoMessage()

func (*MsgWithdrawAllAvailableResponse) Reset

func (*MsgWithdrawAllAvailableResponse) Size

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

func (*MsgWithdrawAllAvailableResponse) String

func (*MsgWithdrawAllAvailableResponse) Unmarshal

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

func (*MsgWithdrawAllAvailableResponse) XXX_DiscardUnknown

func (m *MsgWithdrawAllAvailableResponse) XXX_DiscardUnknown()

func (*MsgWithdrawAllAvailableResponse) XXX_Marshal

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

func (*MsgWithdrawAllAvailableResponse) XXX_Merge

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

func (*MsgWithdrawAllAvailableResponse) XXX_Size

func (m *MsgWithdrawAllAvailableResponse) XXX_Size() int

func (*MsgWithdrawAllAvailableResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(denom string) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetDenom

func (m *Params) GetDenom() string

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 VestingType items.
	VestingType(ctx context.Context, in *QueryVestingTypeRequest, opts ...grpc.CallOption) (*QueryVestingTypeResponse, error)
	// Queries a list of Vesting items.
	VestingPools(ctx context.Context, in *QueryVestingPoolsRequest, opts ...grpc.CallOption) (*QueryVestingPoolsResponse, 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 VestingType items.
	VestingType(context.Context, *QueryVestingTypeRequest) (*QueryVestingTypeResponse, error)
	// Queries a list of Vesting items.
	VestingPools(context.Context, *QueryVestingPoolsRequest) (*QueryVestingPoolsResponse, error)
}

QueryServer is the server API for Query service.

type QueryVestingPoolsRequest

type QueryVestingPoolsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryVestingPoolsRequest) Descriptor

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

func (*QueryVestingPoolsRequest) GetAddress

func (m *QueryVestingPoolsRequest) GetAddress() string

func (*QueryVestingPoolsRequest) Marshal

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

func (*QueryVestingPoolsRequest) MarshalTo

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

func (*QueryVestingPoolsRequest) MarshalToSizedBuffer

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

func (*QueryVestingPoolsRequest) ProtoMessage

func (*QueryVestingPoolsRequest) ProtoMessage()

func (*QueryVestingPoolsRequest) Reset

func (m *QueryVestingPoolsRequest) Reset()

func (*QueryVestingPoolsRequest) Size

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

func (*QueryVestingPoolsRequest) String

func (m *QueryVestingPoolsRequest) String() string

func (*QueryVestingPoolsRequest) Unmarshal

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

func (*QueryVestingPoolsRequest) XXX_DiscardUnknown

func (m *QueryVestingPoolsRequest) XXX_DiscardUnknown()

func (*QueryVestingPoolsRequest) XXX_Marshal

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

func (*QueryVestingPoolsRequest) XXX_Merge

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

func (*QueryVestingPoolsRequest) XXX_Size

func (m *QueryVestingPoolsRequest) XXX_Size() int

func (*QueryVestingPoolsRequest) XXX_Unmarshal

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

type QueryVestingPoolsResponse

type QueryVestingPoolsResponse struct {
	DelegableAddress string             `` /* 134-byte string literal not displayed */
	VestingPools     []*VestingPoolInfo `protobuf:"bytes,2,rep,name=vesting_pools,json=vestingPools,proto3" json:"vesting_pools,omitempty"`
}

func (*QueryVestingPoolsResponse) Descriptor

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

func (*QueryVestingPoolsResponse) GetDelegableAddress

func (m *QueryVestingPoolsResponse) GetDelegableAddress() string

func (*QueryVestingPoolsResponse) GetVestingPools

func (m *QueryVestingPoolsResponse) GetVestingPools() []*VestingPoolInfo

func (*QueryVestingPoolsResponse) Marshal

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

func (*QueryVestingPoolsResponse) MarshalTo

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

func (*QueryVestingPoolsResponse) MarshalToSizedBuffer

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

func (*QueryVestingPoolsResponse) ProtoMessage

func (*QueryVestingPoolsResponse) ProtoMessage()

func (*QueryVestingPoolsResponse) Reset

func (m *QueryVestingPoolsResponse) Reset()

func (*QueryVestingPoolsResponse) Size

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

func (*QueryVestingPoolsResponse) String

func (m *QueryVestingPoolsResponse) String() string

func (*QueryVestingPoolsResponse) Unmarshal

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

func (*QueryVestingPoolsResponse) XXX_DiscardUnknown

func (m *QueryVestingPoolsResponse) XXX_DiscardUnknown()

func (*QueryVestingPoolsResponse) XXX_Marshal

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

func (*QueryVestingPoolsResponse) XXX_Merge

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

func (*QueryVestingPoolsResponse) XXX_Size

func (m *QueryVestingPoolsResponse) XXX_Size() int

func (*QueryVestingPoolsResponse) XXX_Unmarshal

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

type QueryVestingTypeRequest

type QueryVestingTypeRequest struct {
}

func (*QueryVestingTypeRequest) Descriptor

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

func (*QueryVestingTypeRequest) Marshal

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

func (*QueryVestingTypeRequest) MarshalTo

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

func (*QueryVestingTypeRequest) MarshalToSizedBuffer

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

func (*QueryVestingTypeRequest) ProtoMessage

func (*QueryVestingTypeRequest) ProtoMessage()

func (*QueryVestingTypeRequest) Reset

func (m *QueryVestingTypeRequest) Reset()

func (*QueryVestingTypeRequest) Size

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

func (*QueryVestingTypeRequest) String

func (m *QueryVestingTypeRequest) String() string

func (*QueryVestingTypeRequest) Unmarshal

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

func (*QueryVestingTypeRequest) XXX_DiscardUnknown

func (m *QueryVestingTypeRequest) XXX_DiscardUnknown()

func (*QueryVestingTypeRequest) XXX_Marshal

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

func (*QueryVestingTypeRequest) XXX_Merge

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

func (*QueryVestingTypeRequest) XXX_Size

func (m *QueryVestingTypeRequest) XXX_Size() int

func (*QueryVestingTypeRequest) XXX_Unmarshal

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

type QueryVestingTypeResponse

type QueryVestingTypeResponse struct {
	VestingTypes []GenesisVestingType `protobuf:"bytes,2,rep,name=vesting_types,json=vestingTypes,proto3" json:"vesting_types" yaml:"vesting_types"`
}

func (*QueryVestingTypeResponse) Descriptor

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

func (*QueryVestingTypeResponse) GetVestingTypes

func (m *QueryVestingTypeResponse) GetVestingTypes() []GenesisVestingType

func (*QueryVestingTypeResponse) Marshal

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

func (*QueryVestingTypeResponse) MarshalTo

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

func (*QueryVestingTypeResponse) MarshalToSizedBuffer

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

func (*QueryVestingTypeResponse) ProtoMessage

func (*QueryVestingTypeResponse) ProtoMessage()

func (*QueryVestingTypeResponse) Reset

func (m *QueryVestingTypeResponse) Reset()

func (*QueryVestingTypeResponse) Size

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

func (*QueryVestingTypeResponse) String

func (m *QueryVestingTypeResponse) String() string

func (*QueryVestingTypeResponse) Unmarshal

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

func (*QueryVestingTypeResponse) XXX_DiscardUnknown

func (m *QueryVestingTypeResponse) XXX_DiscardUnknown()

func (*QueryVestingTypeResponse) XXX_Marshal

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

func (*QueryVestingTypeResponse) XXX_Merge

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

func (*QueryVestingTypeResponse) XXX_Size

func (m *QueryVestingTypeResponse) XXX_Size() int

func (*QueryVestingTypeResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) (res string)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	Delegate(
		ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, tokenSrc stakingtypes.BondStatus,
		validator stakingtypes.Validator, subtractAccount bool,
	) (newShares sdk.Dec, err error)
}

StakingKeeper defines the expected interface needed for staking functionality.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateVestingAccount

func (*UnimplementedMsgServer) CreateVestingPool

func (*UnimplementedMsgServer) SendToVestingAccount

func (*UnimplementedMsgServer) WithdrawAllAvailable

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) VestingPools

func (*UnimplementedQueryServer) VestingType

type VestingPool

type VestingPool struct {
	Id          int32     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	VestingType string    `protobuf:"bytes,3,opt,name=vesting_type,json=vestingType,proto3" json:"vesting_type,omitempty"`
	LockStart   time.Time `protobuf:"bytes,4,opt,name=lock_start,json=lockStart,proto3,stdtime" json:"lock_start"`
	LockEnd     time.Time `protobuf:"bytes,5,opt,name=lock_end,json=lockEnd,proto3,stdtime" json:"lock_end"`
	// google.protobuf.Timestamp vesting_end = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
	Vested github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=vested,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"vested"`
	// google.protobuf.Duration release_period = 7 [(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
	// bool delegation_allowed = 8;
	Withdrawn                 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=withdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"withdrawn"`
	Sent                      github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=sent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sent"`
	LastModification          time.Time                              `protobuf:"bytes,9,opt,name=last_modification,json=lastModification,proto3,stdtime" json:"last_modification"`
	LastModificationVested    github_com_cosmos_cosmos_sdk_types.Int `` /* 170-byte string literal not displayed */
	LastModificationWithdrawn github_com_cosmos_cosmos_sdk_types.Int `` /* 179-byte string literal not displayed */
}

func (*VestingPool) Descriptor

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

func (*VestingPool) GetId

func (m *VestingPool) GetId() int32

func (*VestingPool) GetLastModification

func (m *VestingPool) GetLastModification() time.Time

func (*VestingPool) GetLockEnd

func (m *VestingPool) GetLockEnd() time.Time

func (*VestingPool) GetLockStart

func (m *VestingPool) GetLockStart() time.Time

func (*VestingPool) GetName

func (m *VestingPool) GetName() string

func (*VestingPool) GetVestingType

func (m *VestingPool) GetVestingType() string

func (*VestingPool) Marshal

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

func (*VestingPool) MarshalTo

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

func (*VestingPool) MarshalToSizedBuffer

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

func (*VestingPool) ProtoMessage

func (*VestingPool) ProtoMessage()

func (*VestingPool) Reset

func (m *VestingPool) Reset()

func (*VestingPool) Size

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

func (*VestingPool) String

func (m *VestingPool) String() string

func (*VestingPool) Unmarshal

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

func (*VestingPool) XXX_DiscardUnknown

func (m *VestingPool) XXX_DiscardUnknown()

func (*VestingPool) XXX_Marshal

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

func (*VestingPool) XXX_Merge

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

func (*VestingPool) XXX_Size

func (m *VestingPool) XXX_Size() int

func (*VestingPool) XXX_Unmarshal

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

type VestingPoolInfo

type VestingPoolInfo struct {
	Id          int32     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	VestingType string    `protobuf:"bytes,3,opt,name=vesting_type,json=vestingType,proto3" json:"vesting_type,omitempty"`
	LockStart   time.Time `protobuf:"bytes,4,opt,name=lock_start,json=lockStart,proto3,stdtime" json:"lock_start"`
	LockEnd     time.Time `protobuf:"bytes,5,opt,name=lock_end,json=lockEnd,proto3,stdtime" json:"lock_end"`
	// google.protobuf.Timestamp vesting_end = 5 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
	Withdrawable string `protobuf:"bytes,6,opt,name=withdrawable,proto3" json:"withdrawable,omitempty"`
	// bool delegation_allowed = 7;
	Vested              *types.Coin `protobuf:"bytes,7,opt,name=vested,proto3" json:"vested,omitempty"`
	CurrentVestedAmount string      `protobuf:"bytes,8,opt,name=current_vested_amount,json=currentVestedAmount,proto3" json:"current_vested_amount,omitempty"`
	SentAmount          string      `protobuf:"bytes,9,opt,name=sent_amount,json=sentAmount,proto3" json:"sent_amount,omitempty"`
}

func (*VestingPoolInfo) Descriptor

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

func (*VestingPoolInfo) GetCurrentVestedAmount

func (m *VestingPoolInfo) GetCurrentVestedAmount() string

func (*VestingPoolInfo) GetId

func (m *VestingPoolInfo) GetId() int32

func (*VestingPoolInfo) GetLockEnd

func (m *VestingPoolInfo) GetLockEnd() time.Time

func (*VestingPoolInfo) GetLockStart

func (m *VestingPoolInfo) GetLockStart() time.Time

func (*VestingPoolInfo) GetName

func (m *VestingPoolInfo) GetName() string

func (*VestingPoolInfo) GetSentAmount

func (m *VestingPoolInfo) GetSentAmount() string

func (*VestingPoolInfo) GetVested

func (m *VestingPoolInfo) GetVested() *types.Coin

func (*VestingPoolInfo) GetVestingType

func (m *VestingPoolInfo) GetVestingType() string

func (*VestingPoolInfo) GetWithdrawable

func (m *VestingPoolInfo) GetWithdrawable() string

func (*VestingPoolInfo) Marshal

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

func (*VestingPoolInfo) MarshalTo

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

func (*VestingPoolInfo) MarshalToSizedBuffer

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

func (*VestingPoolInfo) ProtoMessage

func (*VestingPoolInfo) ProtoMessage()

func (*VestingPoolInfo) Reset

func (m *VestingPoolInfo) Reset()

func (*VestingPoolInfo) Size

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

func (*VestingPoolInfo) String

func (m *VestingPoolInfo) String() string

func (*VestingPoolInfo) Unmarshal

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

func (*VestingPoolInfo) XXX_DiscardUnknown

func (m *VestingPoolInfo) XXX_DiscardUnknown()

func (*VestingPoolInfo) XXX_Marshal

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

func (*VestingPoolInfo) XXX_Merge

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

func (*VestingPoolInfo) XXX_Size

func (m *VestingPoolInfo) XXX_Size() int

func (*VestingPoolInfo) XXX_Unmarshal

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

type VestingType

type VestingType struct {
	// vesting type name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// period of locked coins (minutes) from vesting start
	LockupPeriod time.Duration `protobuf:"bytes,2,opt,name=lockup_period,json=lockupPeriod,proto3,stdduration" json:"lockup_period"`
	// period of veesting coins (minutes) from lockup period end
	VestingPeriod time.Duration `protobuf:"bytes,3,opt,name=vesting_period,json=vestingPeriod,proto3,stdduration" json:"vesting_period"`
}

func (*VestingType) Descriptor

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

func (*VestingType) GetLockupPeriod

func (m *VestingType) GetLockupPeriod() time.Duration

func (*VestingType) GetName

func (m *VestingType) GetName() string

func (*VestingType) GetVestingPeriod

func (m *VestingType) GetVestingPeriod() time.Duration

func (*VestingType) Marshal

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

func (*VestingType) MarshalTo

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

func (*VestingType) MarshalToSizedBuffer

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

func (*VestingType) ProtoMessage

func (*VestingType) ProtoMessage()

func (*VestingType) Reset

func (m *VestingType) Reset()

func (*VestingType) Size

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

func (*VestingType) String

func (m *VestingType) String() string

func (*VestingType) Unmarshal

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

func (*VestingType) XXX_DiscardUnknown

func (m *VestingType) XXX_DiscardUnknown()

func (*VestingType) XXX_Marshal

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

func (*VestingType) XXX_Merge

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

func (*VestingType) XXX_Size

func (m *VestingType) XXX_Size() int

func (*VestingType) XXX_Unmarshal

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

type VestingTypes

type VestingTypes struct {
	VestingTypes []*VestingType `protobuf:"bytes,1,rep,name=vesting_types,json=vestingTypes,proto3" json:"vesting_types,omitempty"`
}

func (*VestingTypes) Descriptor

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

func (*VestingTypes) GetVestingTypes

func (m *VestingTypes) GetVestingTypes() []*VestingType

func (*VestingTypes) Marshal

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

func (*VestingTypes) MarshalTo

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

func (*VestingTypes) MarshalToSizedBuffer

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

func (*VestingTypes) ProtoMessage

func (*VestingTypes) ProtoMessage()

func (*VestingTypes) Reset

func (m *VestingTypes) Reset()

func (*VestingTypes) Size

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

func (*VestingTypes) String

func (m *VestingTypes) String() string

func (*VestingTypes) Unmarshal

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

func (*VestingTypes) XXX_DiscardUnknown

func (m *VestingTypes) XXX_DiscardUnknown()

func (*VestingTypes) XXX_Marshal

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

func (*VestingTypes) XXX_Merge

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

func (*VestingTypes) XXX_Size

func (m *VestingTypes) XXX_Size() int

func (*VestingTypes) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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