types

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateClawbackVestingAccount = "create_clawback_vesting_account"
	EventTypeClawback                     = "clawback"
	EventTypeUpdateVestingFunder          = "update_vesting_funder"
	EventTypeUpdateVestingSchedule        = "update_vesting_schedule"

	AttributeKeyCoins       = "coins"
	AttributeKeyStartTime   = "start_time"
	AttributeKeyMerge       = "merge"
	AttributeKeyAccount     = "account"
	AttributeKeyFunder      = "funder"
	AttributeKeyNewFunder   = "new_funder"
	AttributeKeyDestination = "destination"
)

vesting events

View Source
const (
	// ModuleName defines the module's name.
	ModuleName = "haqqvesting"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgCreateClawbackVestingAccount = "create_clawback_vesting_account"
	TypeMsgClawback                     = "clawback"
	TypeMsgUpdateVestingFunder          = "update_vesting_funder"
	TypeMsgConvertVestingAccount        = "convert_vesting_account"
	TypeMsgConvertIntoVestingAccount    = "convert_into_vesting_account"
	TypeMsgUpdateVestingSchedule        = "update_vesting_schedule"
)

Variables

View Source
var (

	// ModuleCdc references the global vesting  module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding.
	ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
	// AminoCdc is a amino codec created to support amino JSON compatible msgs.
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ErrInsufficientVestedCoins   = errorsmod.Register(ModuleName, 2, "insufficient vested coins error")
	ErrVestingLockup             = errorsmod.Register(ModuleName, 3, "vesting lockup error")
	ErrInsufficientUnlockedCoins = errorsmod.Register(ModuleName, 4, "insufficient unlocked coins error")
	ErrApplyShedule              = errorsmod.Register(ModuleName, 5, "failed to apply schedule")
	ErrNotSubjectToClawback      = errorsmod.Register(ModuleName, 6, "account is not subject to clawback vesting")
	ErrNothingToClawback         = errorsmod.Register(ModuleName, 7, "nothing to clawback from the account")
)

errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	ErrInvalidLengthVesting        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVesting          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AlignSchedules

func AlignSchedules(
	startTimePeriodA,
	startTimePeriodB int64,
	periodsA, periodsB sdkvesting.Periods,
) (startTime, endTime int64)

AlignSchedules extends the first period's length to align the two given periods to the same start time. The earliest start time is chosen. It returns the aligned new start and end times of the periods.

func CoinEq added in v1.8.0

func CoinEq(a, b sdk.Coins) bool

CoinEq returns whether two Coins are equal. The IsEqual() method can panic.

func ConjunctPeriods

func ConjunctPeriods(
	startTimePeriodA, startTimePeriodB int64,
	periodsA, periodsB sdkvesting.Periods,
) (startTime, endTime int64, conjunctionPeriods sdkvesting.Periods)

ConjunctPeriods returns the combination of two period schedules. The resulting schedule is the result is the minimum of the two schedules. It returns the resulting periods start and end times as well as the conjuncted periods.

func DisjunctPeriods

func DisjunctPeriods(
	startTimePeriodsA, startTimePeriodsB int64,
	periodsA, periodsB sdkvesting.Periods,
) (startTime, endTime int64, periods sdkvesting.Periods)

DisjunctPeriods returns the union of two vesting period schedules. The returned schedule is the union of the vesting events. Simultaneous events are combined into a single event.

Input schedules A and B are defined by their start times and periods. From this, the combined schedule with new start and end times, as well as the joined periods.

func Max64

func Max64(i, j int64) int64

Max64 returns the maximum of its inputs.

func Min64

func Min64(i, j int64) int64

Min64 returns the minimum of its inputs.

func ReadPastPeriodCount

func ReadPastPeriodCount(
	startTime, endTime int64,
	periods sdkvesting.Periods,
	readTime int64,
) int

ReadPastPeriodCount returns the amount of passed periods before read time

func ReadSchedule

func ReadSchedule(
	startTime, endTime int64,
	periods sdkvesting.Periods,
	totalCoins sdk.Coins,
	readTime int64,
) sdk.Coins

ReadSchedule returns the coins of a schedule at readTime.

A "schedule" is an increasing step function of Coins over time. It's specified as an absolute start time and a sequence of relative periods, with each step at the end of a period. A schedule may also give the time and total value at the last step, which can speed evaluation of the step function after the last step.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces associates protoName with AccountI and VestingAccount Interfaces and creates a registry of it's concrete implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/erc20 interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization and EIP-712 compatibility.

func RegisterMsgHandler

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

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

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint

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

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

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

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 {
	GetAllAccounts(ctx sdk.Context) (accounts []authtypes.AccountI)
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
	GetModuleAddress(name string) sdk.AccAddress
	GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI
	SetAccount(sdk.Context, authtypes.AccountI)
	NewAccount(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) bool)
	RemoveAccount(ctx sdk.Context, acc authtypes.AccountI)
}

AccountKeeper defines the expected interface contract the vesting module requires for storing accounts.

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface contract the vesting module requires for creating vesting accounts with funds.

type ClawbackVestingAccount

type ClawbackVestingAccount struct {
	// base_vesting_account implements the VestingAccount interface. It contains
	// all the necessary fields needed for any vesting account implementation
	*types.BaseVestingAccount `` /* 147-byte string literal not displayed */
	// funder_address specifies the account which can perform clawback
	FunderAddress string `protobuf:"bytes,2,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"`
	// start_time defines the time at which the vesting period begins
	StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// lockup_periods defines the unlocking schedule relative to the start_time
	LockupPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 161-byte string literal not displayed */
	// vesting_periods defines the vesting schedule relative to the start_time
	VestingPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 164-byte string literal not displayed */
	// code_hash is the hash calculated from the code contents
	CodeHash string `protobuf:"bytes,6,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"`
}

ClawbackVestingAccount implements the VestingAccount interface. It provides an account that can hold contributions subject to "lockup" (like a PeriodicVestingAccount), or vesting which is subject to clawback of unvested tokens, or a combination (tokens vest, but are still locked).

func NewClawbackVestingAccount

func NewClawbackVestingAccount(
	baseAcc *authtypes.BaseAccount,
	funder sdk.AccAddress,
	originalVesting sdk.Coins,
	startTime time.Time,
	lockupPeriods,
	vestingPeriods sdkvesting.Periods,
	code *common.Hash,
) *ClawbackVestingAccount

NewClawbackVestingAccount returns a new ClawbackVestingAccount

func (ClawbackVestingAccount) ComputeClawback

func (va ClawbackVestingAccount) ComputeClawback(
	clawbackTime int64,
) (ClawbackVestingAccount, sdk.Coins)

ComputeClawback returns an account with all future vesting events removed and the clawback amount (total sum of these events). Future unlocking events are preserved and update in case unlocked vested coins remain after clawback.

func (*ClawbackVestingAccount) Descriptor

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

func (ClawbackVestingAccount) EthAddress added in v1.5.0

func (va ClawbackVestingAccount) EthAddress() common.Address

EthAddress returns the account address ethereum format.

func (ClawbackVestingAccount) GetCodeHash added in v1.5.0

func (va ClawbackVestingAccount) GetCodeHash() common.Hash

GetCodeHash returns the account code hash in byte format

func (ClawbackVestingAccount) GetLockedUpCoins added in v1.8.0

func (va ClawbackVestingAccount) GetLockedUpCoins(blockTime time.Time) sdk.Coins

GetLockedUpCoins returns the locked coins at blockTime. Note that these locked up coins can be vested or unvested, and is determined by the lockup periods

func (ClawbackVestingAccount) GetLockedUpVestedCoins added in v1.8.0

func (va ClawbackVestingAccount) GetLockedUpVestedCoins(blockTime time.Time) sdk.Coins

GetLockedUpVestedCoins returns the total number of vested coins that are locked.

func (ClawbackVestingAccount) GetPassedPeriodCount

func (va ClawbackVestingAccount) GetPassedPeriodCount(blockTime time.Time) int

GetPassedPeriodCount returns the amount of passed periods at blockTime.

func (ClawbackVestingAccount) GetStartTime

func (va ClawbackVestingAccount) GetStartTime() int64

GetStartTime returns the time when vesting starts for a periodic vesting account.

func (ClawbackVestingAccount) GetUnlockedCoins added in v1.8.0

func (va ClawbackVestingAccount) GetUnlockedCoins(blockTime time.Time) sdk.Coins

GetUnlockedCoins returns the unlocked coins at blockTime. Note that these unlocked coins can be vested or unvested and is determined by the lockup periods

func (ClawbackVestingAccount) GetUnlockedVestedCoins added in v1.8.0

func (va ClawbackVestingAccount) GetUnlockedVestedCoins(blockTime time.Time) sdk.Coins

GetUnlockedVestedCoins returns the total number of vested coins that are unlocked. If no coins are vested and unlocked, nil is returned.

func (ClawbackVestingAccount) GetVestedCoins

func (va ClawbackVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins

GetVestedCoins returns the vested coins at blockTime.

func (ClawbackVestingAccount) GetVestingCoins

func (va ClawbackVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins

GetVestingCoins returns the total number of vesting coins (unvested coins). If no coins are vesting, nil is returned.

func (ClawbackVestingAccount) GetVestingPeriods

func (va ClawbackVestingAccount) GetVestingPeriods() sdkvesting.Periods

GetVestingPeriods returns vesting periods associated with periodic vesting account.

func (ClawbackVestingAccount) HasLockedCoins

func (va ClawbackVestingAccount) HasLockedCoins(blockTime time.Time) bool

HasLockedCoins returns true if the blocktime has not passed all clawback account's lockup periods

func (ClawbackVestingAccount) LockedCoins

func (va ClawbackVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins

LockedCoins returns the set of coins that are not spendable (i.e. locked or unvested), defined as the vesting coins (unvested) plus locked vested coins.

totalAmt = vesting(un/locked) + lockedVested + unlockedVested

(all)   =   (cannot spend)    (cannot spend)   (CAN spend)

lockedCoins = totalAmt - unlockedVested

func (*ClawbackVestingAccount) Marshal

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

func (*ClawbackVestingAccount) MarshalTo

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

func (*ClawbackVestingAccount) MarshalToSizedBuffer

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

func (*ClawbackVestingAccount) ProtoMessage

func (*ClawbackVestingAccount) ProtoMessage()

func (*ClawbackVestingAccount) Reset

func (m *ClawbackVestingAccount) Reset()

func (*ClawbackVestingAccount) SetCodeHash added in v1.5.0

func (va *ClawbackVestingAccount) SetCodeHash(codeHash common.Hash) error

SetCodeHash sets the account code hash to the EthAccount fields

func (*ClawbackVestingAccount) Size

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

func (*ClawbackVestingAccount) TrackDelegation

func (va *ClawbackVestingAccount) TrackDelegation(_ time.Time, balance, amount sdk.Coins)

TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated free coins. The 'balance' input parameter is the delegator account balance. The 'amount' input parameter are the delegated coins Note that unvested coins cannot be delegated

func (ClawbackVestingAccount) Type added in v1.5.0

func (va ClawbackVestingAccount) Type() int8

Type returns the type of Ethereum Account (EOA or Contract)

func (*ClawbackVestingAccount) Unmarshal

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

func (ClawbackVestingAccount) Validate

func (va ClawbackVestingAccount) Validate() error

Validate checks for errors on the account fields

func (*ClawbackVestingAccount) XXX_DiscardUnknown

func (m *ClawbackVestingAccount) XXX_DiscardUnknown()

func (*ClawbackVestingAccount) XXX_Marshal

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

func (*ClawbackVestingAccount) XXX_Merge

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

func (*ClawbackVestingAccount) XXX_Size

func (m *ClawbackVestingAccount) XXX_Size() int

func (*ClawbackVestingAccount) XXX_Unmarshal

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

type EventClawback

type EventClawback struct {
	// funder is the address of the funder
	Funder string `protobuf:"bytes,1,opt,name=funder,proto3" json:"funder,omitempty"`
	// account is the address of the account
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// destination is the address of the destination
	Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
}

EventClawback defines the event type for clawback

func (*EventClawback) Descriptor

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

func (*EventClawback) GetAccount

func (m *EventClawback) GetAccount() string

func (*EventClawback) GetDestination

func (m *EventClawback) GetDestination() string

func (*EventClawback) GetFunder

func (m *EventClawback) GetFunder() string

func (*EventClawback) Marshal

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

func (*EventClawback) MarshalTo

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

func (*EventClawback) MarshalToSizedBuffer

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

func (*EventClawback) ProtoMessage

func (*EventClawback) ProtoMessage()

func (*EventClawback) Reset

func (m *EventClawback) Reset()

func (*EventClawback) Size

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

func (*EventClawback) String

func (m *EventClawback) String() string

func (*EventClawback) Unmarshal

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

func (*EventClawback) XXX_DiscardUnknown

func (m *EventClawback) XXX_DiscardUnknown()

func (*EventClawback) XXX_Marshal

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

func (*EventClawback) XXX_Merge

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

func (*EventClawback) XXX_Size

func (m *EventClawback) XXX_Size() int

func (*EventClawback) XXX_Unmarshal

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

type EventCreateClawbackVestingAccount

type EventCreateClawbackVestingAccount struct {
	// sender is the address of the sender
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// coins to be vested
	Coins string `protobuf:"bytes,2,opt,name=coins,proto3" json:"coins,omitempty"`
	// start_time is the time when the coins start to vest
	StartTime string `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// merge
	Merge string `protobuf:"bytes,4,opt,name=merge,proto3" json:"merge,omitempty"`
	// account address of recipient
	Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"`
}

EventCreateClawbackVestingAccount defines the event type for creating a clawback vesting account

func (*EventCreateClawbackVestingAccount) Descriptor

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

func (*EventCreateClawbackVestingAccount) GetAccount

func (m *EventCreateClawbackVestingAccount) GetAccount() string

func (*EventCreateClawbackVestingAccount) GetCoins

func (*EventCreateClawbackVestingAccount) GetMerge

func (*EventCreateClawbackVestingAccount) GetSender

func (*EventCreateClawbackVestingAccount) GetStartTime

func (m *EventCreateClawbackVestingAccount) GetStartTime() string

func (*EventCreateClawbackVestingAccount) Marshal

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

func (*EventCreateClawbackVestingAccount) MarshalTo

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

func (*EventCreateClawbackVestingAccount) MarshalToSizedBuffer

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

func (*EventCreateClawbackVestingAccount) ProtoMessage

func (*EventCreateClawbackVestingAccount) ProtoMessage()

func (*EventCreateClawbackVestingAccount) Reset

func (*EventCreateClawbackVestingAccount) Size

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

func (*EventCreateClawbackVestingAccount) String

func (*EventCreateClawbackVestingAccount) Unmarshal

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

func (*EventCreateClawbackVestingAccount) XXX_DiscardUnknown

func (m *EventCreateClawbackVestingAccount) XXX_DiscardUnknown()

func (*EventCreateClawbackVestingAccount) XXX_Marshal

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

func (*EventCreateClawbackVestingAccount) XXX_Merge

func (*EventCreateClawbackVestingAccount) XXX_Size

func (m *EventCreateClawbackVestingAccount) XXX_Size() int

func (*EventCreateClawbackVestingAccount) XXX_Unmarshal

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

type EventUpdateVestingFunder

type EventUpdateVestingFunder struct {
	// funder is the address of the funder
	Funder string `protobuf:"bytes,1,opt,name=funder,proto3" json:"funder,omitempty"`
	// account is the address of the account
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	// new_funder is the address of the new funder
	NewFunder string `protobuf:"bytes,3,opt,name=new_funder,json=newFunder,proto3" json:"new_funder,omitempty"`
}

EventUpdateVestingFunder defines the event type for updating the vesting funder

func (*EventUpdateVestingFunder) Descriptor

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

func (*EventUpdateVestingFunder) GetAccount

func (m *EventUpdateVestingFunder) GetAccount() string

func (*EventUpdateVestingFunder) GetFunder

func (m *EventUpdateVestingFunder) GetFunder() string

func (*EventUpdateVestingFunder) GetNewFunder

func (m *EventUpdateVestingFunder) GetNewFunder() string

func (*EventUpdateVestingFunder) Marshal

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

func (*EventUpdateVestingFunder) MarshalTo

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

func (*EventUpdateVestingFunder) MarshalToSizedBuffer

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

func (*EventUpdateVestingFunder) ProtoMessage

func (*EventUpdateVestingFunder) ProtoMessage()

func (*EventUpdateVestingFunder) Reset

func (m *EventUpdateVestingFunder) Reset()

func (*EventUpdateVestingFunder) Size

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

func (*EventUpdateVestingFunder) String

func (m *EventUpdateVestingFunder) String() string

func (*EventUpdateVestingFunder) Unmarshal

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

func (*EventUpdateVestingFunder) XXX_DiscardUnknown

func (m *EventUpdateVestingFunder) XXX_DiscardUnknown()

func (*EventUpdateVestingFunder) XXX_Marshal

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

func (*EventUpdateVestingFunder) XXX_Merge

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

func (*EventUpdateVestingFunder) XXX_Size

func (m *EventUpdateVestingFunder) XXX_Size() int

func (*EventUpdateVestingFunder) XXX_Unmarshal

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

type MsgClawback

type MsgClawback struct {
	// funder_address is the address which funded the account
	FunderAddress string `protobuf:"bytes,1,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"`
	// account_address is the address of the ClawbackVestingAccount to claw back
	// from.
	AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	// dest_address specifies where the clawed-back tokens should be transferred
	// to. If empty, the tokens will be transferred back to the original funder of
	// the account.
	DestAddress string `protobuf:"bytes,3,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"`
}

MsgClawback defines a message that removes unvested tokens from a ClawbackVestingAccount.

func NewMsgClawback

func NewMsgClawback(funder, addr, dest sdk.AccAddress) *MsgClawback

NewMsgClawback creates new instance of MsgClawback. The dest address may be nil - defaulting to the funder.

func (*MsgClawback) Descriptor

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

func (*MsgClawback) GetAccountAddress

func (m *MsgClawback) GetAccountAddress() string

func (*MsgClawback) GetDestAddress

func (m *MsgClawback) GetDestAddress() string

func (*MsgClawback) GetFunderAddress

func (m *MsgClawback) GetFunderAddress() string

func (*MsgClawback) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgClawback) GetSigners

func (msg MsgClawback) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgClawback) Marshal

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

func (*MsgClawback) MarshalTo

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

func (*MsgClawback) MarshalToSizedBuffer

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

func (*MsgClawback) ProtoMessage

func (*MsgClawback) ProtoMessage()

func (*MsgClawback) Reset

func (m *MsgClawback) Reset()

func (MsgClawback) Route

func (msg MsgClawback) Route() string

Route returns the message route for a MsgClawback.

func (*MsgClawback) Size

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

func (*MsgClawback) String

func (m *MsgClawback) String() string

func (MsgClawback) Type

func (msg MsgClawback) Type() string

Type returns the message type for a MsgClawback.

func (*MsgClawback) Unmarshal

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

func (MsgClawback) ValidateBasic

func (msg MsgClawback) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgClawback) XXX_DiscardUnknown

func (m *MsgClawback) XXX_DiscardUnknown()

func (*MsgClawback) XXX_Marshal

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

func (*MsgClawback) XXX_Merge

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

func (*MsgClawback) XXX_Size

func (m *MsgClawback) XXX_Size() int

func (*MsgClawback) XXX_Unmarshal

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

type MsgClawbackResponse

type MsgClawbackResponse struct {
}

MsgClawbackResponse defines the MsgClawback response type.

func (*MsgClawbackResponse) Descriptor

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

func (*MsgClawbackResponse) Marshal

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

func (*MsgClawbackResponse) MarshalTo

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

func (*MsgClawbackResponse) MarshalToSizedBuffer

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

func (*MsgClawbackResponse) ProtoMessage

func (*MsgClawbackResponse) ProtoMessage()

func (*MsgClawbackResponse) Reset

func (m *MsgClawbackResponse) Reset()

func (*MsgClawbackResponse) Size

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

func (*MsgClawbackResponse) String

func (m *MsgClawbackResponse) String() string

func (*MsgClawbackResponse) Unmarshal

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

func (*MsgClawbackResponse) XXX_DiscardUnknown

func (m *MsgClawbackResponse) XXX_DiscardUnknown()

func (*MsgClawbackResponse) XXX_Marshal

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

func (*MsgClawbackResponse) XXX_Merge

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

func (*MsgClawbackResponse) XXX_Size

func (m *MsgClawbackResponse) XXX_Size() int

func (*MsgClawbackResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateClawbackVestingAccount creats a vesting account that is subject to
	// clawback and the configuration of vesting and lockup schedules.
	CreateClawbackVestingAccount(ctx context.Context, in *MsgCreateClawbackVestingAccount, opts ...grpc.CallOption) (*MsgCreateClawbackVestingAccountResponse, error)
	// Clawback removes the unvested tokens from a ClawbackVestingAccount.
	Clawback(ctx context.Context, in *MsgClawback, opts ...grpc.CallOption) (*MsgClawbackResponse, error)
	// UpdateVestingFunder updates the funder address of an existing
	// ClawbackVestingAccount.
	UpdateVestingFunder(ctx context.Context, in *MsgUpdateVestingFunder, opts ...grpc.CallOption) (*MsgUpdateVestingFunderResponse, error)
	// ConvertVestingAccount converts a ClawbackVestingAccount to a Eth account
	ConvertVestingAccount(ctx context.Context, in *MsgConvertVestingAccount, opts ...grpc.CallOption) (*MsgConvertVestingAccountResponse, error)
	// ConvertIntoVestingAccount converts a Eth account to a
	// ClawbackVestingAccount
	ConvertIntoVestingAccount(ctx context.Context, in *MsgConvertIntoVestingAccount, opts ...grpc.CallOption) (*MsgConvertIntoVestingAccountResponse, 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 MsgConvertIntoVestingAccount

type MsgConvertIntoVestingAccount struct {
	// from_address specifies the account to provide the funds and sign the
	// clawback request
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// to_address is the account to be converted into clawback vesting account
	ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// start_time defines the time at which the vesting period begins
	StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// lockup_periods defines the unlocking schedule relative to the start_time
	LockupPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 161-byte string literal not displayed */
	// vesting_periods defines the vesting schedule relative to the start_time
	VestingPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 164-byte string literal not displayed */
	// merge specifies a the conversion mechanism for existing
	// ClawbackVestingAccounts. If true, merge this new grant into an existing
	// ClawbackVestingAccount, or create it if it does not exist. If false,
	// creates a new account. New grants to an existing account must be from the
	// same from_address.
	Merge bool `protobuf:"varint,6,opt,name=merge,proto3" json:"merge,omitempty"`
	// stake specifies a the post-creation flow. If true, delegate the total
	// amount to a specified validator. If false, do nothing.
	Stake bool `protobuf:"varint,7,opt,name=stake,proto3" json:"stake,omitempty"`
	// validator_address specifies the validator to delegate tokens to.
	ValidatorAddress string `protobuf:"bytes,8,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

MsgConvertIntoVestingAccount defines a message that enables converting a eth account to a vesting account

func NewMsgConvertIntoVestingAccount

func NewMsgConvertIntoVestingAccount(
	funder, address sdk.AccAddress,
	startTime time.Time,
	lockupPeriods sdkvesting.Periods,
	vestingPeriods sdkvesting.Periods,
	merge bool,
	stake bool,
	validatorAddress sdk.ValAddress,
) *MsgConvertIntoVestingAccount

NewMsgConvertIntoVestingAccount creates new instance of MsgConvertIntoVestingAccount

func (*MsgConvertIntoVestingAccount) Descriptor

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

func (*MsgConvertIntoVestingAccount) GetFromAddress

func (m *MsgConvertIntoVestingAccount) GetFromAddress() string

func (*MsgConvertIntoVestingAccount) GetLockupPeriods added in v1.4.1

func (*MsgConvertIntoVestingAccount) GetMerge added in v1.4.1

func (m *MsgConvertIntoVestingAccount) GetMerge() bool

func (*MsgConvertIntoVestingAccount) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgConvertIntoVestingAccount) GetSigners

func (msg MsgConvertIntoVestingAccount) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgConvertIntoVestingAccount) GetStake added in v1.4.1

func (m *MsgConvertIntoVestingAccount) GetStake() bool

func (*MsgConvertIntoVestingAccount) GetStartTime

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

func (*MsgConvertIntoVestingAccount) GetToAddress added in v1.4.1

func (m *MsgConvertIntoVestingAccount) GetToAddress() string

func (*MsgConvertIntoVestingAccount) GetValidatorAddress added in v1.4.1

func (m *MsgConvertIntoVestingAccount) GetValidatorAddress() string

func (*MsgConvertIntoVestingAccount) GetVestingPeriods added in v1.4.1

func (*MsgConvertIntoVestingAccount) Marshal

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

func (*MsgConvertIntoVestingAccount) MarshalTo

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

func (*MsgConvertIntoVestingAccount) MarshalToSizedBuffer

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

func (*MsgConvertIntoVestingAccount) ProtoMessage

func (*MsgConvertIntoVestingAccount) ProtoMessage()

func (*MsgConvertIntoVestingAccount) Reset

func (m *MsgConvertIntoVestingAccount) Reset()

func (MsgConvertIntoVestingAccount) Route

Route returns the name of the module

func (*MsgConvertIntoVestingAccount) Size

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

func (*MsgConvertIntoVestingAccount) String

func (MsgConvertIntoVestingAccount) Type

Type returns the action

func (*MsgConvertIntoVestingAccount) Unmarshal

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

func (MsgConvertIntoVestingAccount) ValidateBasic

func (msg MsgConvertIntoVestingAccount) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertIntoVestingAccount) XXX_DiscardUnknown

func (m *MsgConvertIntoVestingAccount) XXX_DiscardUnknown()

func (*MsgConvertIntoVestingAccount) XXX_Marshal

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

func (*MsgConvertIntoVestingAccount) XXX_Merge

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

func (*MsgConvertIntoVestingAccount) XXX_Size

func (m *MsgConvertIntoVestingAccount) XXX_Size() int

func (*MsgConvertIntoVestingAccount) XXX_Unmarshal

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

type MsgConvertIntoVestingAccountResponse

type MsgConvertIntoVestingAccountResponse struct {
}

MsgConvertIntoVestingAccountResponse defines the MsgConvertIntoVestingAccount response type.

func (*MsgConvertIntoVestingAccountResponse) Descriptor

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

func (*MsgConvertIntoVestingAccountResponse) Marshal

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

func (*MsgConvertIntoVestingAccountResponse) MarshalTo

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

func (*MsgConvertIntoVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgConvertIntoVestingAccountResponse) ProtoMessage

func (*MsgConvertIntoVestingAccountResponse) ProtoMessage()

func (*MsgConvertIntoVestingAccountResponse) Reset

func (*MsgConvertIntoVestingAccountResponse) Size

func (*MsgConvertIntoVestingAccountResponse) String

func (*MsgConvertIntoVestingAccountResponse) Unmarshal

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

func (*MsgConvertIntoVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgConvertIntoVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgConvertIntoVestingAccountResponse) XXX_Marshal

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

func (*MsgConvertIntoVestingAccountResponse) XXX_Merge

func (*MsgConvertIntoVestingAccountResponse) XXX_Size

func (*MsgConvertIntoVestingAccountResponse) XXX_Unmarshal

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

type MsgConvertVestingAccount

type MsgConvertVestingAccount struct {
	// vesting_address is the address of the vesting account to convert
	VestingAddress string `protobuf:"bytes,1,opt,name=vesting_address,json=vestingAddress,proto3" json:"vesting_address,omitempty"`
}

MsgConvertVestingAccount defines a message that enables converting a vesting account to a eth account

func NewMsgConvertVestingAccount

func NewMsgConvertVestingAccount(vestingAcc sdk.AccAddress) *MsgConvertVestingAccount

NewMsgConvertVestingAccount creates new instance of MsgConvertVestingAccount

func (*MsgConvertVestingAccount) Descriptor

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

func (*MsgConvertVestingAccount) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgConvertVestingAccount) GetSigners

func (msg MsgConvertVestingAccount) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgConvertVestingAccount) GetVestingAddress

func (m *MsgConvertVestingAccount) GetVestingAddress() string

func (*MsgConvertVestingAccount) Marshal

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

func (*MsgConvertVestingAccount) MarshalTo

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

func (*MsgConvertVestingAccount) MarshalToSizedBuffer

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

func (*MsgConvertVestingAccount) ProtoMessage

func (*MsgConvertVestingAccount) ProtoMessage()

func (*MsgConvertVestingAccount) Reset

func (m *MsgConvertVestingAccount) Reset()

func (MsgConvertVestingAccount) Route

func (msg MsgConvertVestingAccount) Route() string

Route returns the name of the module

func (*MsgConvertVestingAccount) Size

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

func (*MsgConvertVestingAccount) String

func (m *MsgConvertVestingAccount) String() string

func (MsgConvertVestingAccount) Type

func (msg MsgConvertVestingAccount) Type() string

Type returns the action

func (*MsgConvertVestingAccount) Unmarshal

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

func (MsgConvertVestingAccount) ValidateBasic

func (msg MsgConvertVestingAccount) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertVestingAccount) XXX_DiscardUnknown

func (m *MsgConvertVestingAccount) XXX_DiscardUnknown()

func (*MsgConvertVestingAccount) XXX_Marshal

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

func (*MsgConvertVestingAccount) XXX_Merge

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

func (*MsgConvertVestingAccount) XXX_Size

func (m *MsgConvertVestingAccount) XXX_Size() int

func (*MsgConvertVestingAccount) XXX_Unmarshal

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

type MsgConvertVestingAccountResponse

type MsgConvertVestingAccountResponse struct {
}

MsgConvertVestingAccountResponse defines the MsgConvertVestingAccount response type.

func (*MsgConvertVestingAccountResponse) Descriptor

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

func (*MsgConvertVestingAccountResponse) Marshal

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

func (*MsgConvertVestingAccountResponse) MarshalTo

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

func (*MsgConvertVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgConvertVestingAccountResponse) ProtoMessage

func (*MsgConvertVestingAccountResponse) ProtoMessage()

func (*MsgConvertVestingAccountResponse) Reset

func (*MsgConvertVestingAccountResponse) Size

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

func (*MsgConvertVestingAccountResponse) String

func (*MsgConvertVestingAccountResponse) Unmarshal

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

func (*MsgConvertVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgConvertVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgConvertVestingAccountResponse) XXX_Marshal

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

func (*MsgConvertVestingAccountResponse) XXX_Merge

func (*MsgConvertVestingAccountResponse) XXX_Size

func (m *MsgConvertVestingAccountResponse) XXX_Size() int

func (*MsgConvertVestingAccountResponse) XXX_Unmarshal

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

type MsgCreateClawbackVestingAccount

type MsgCreateClawbackVestingAccount struct {
	// from_address specifies the account to provide the funds and sign the
	// clawback request
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// to_address specifies the account to receive the funds
	ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// start_time defines the time at which the vesting period begins
	StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// lockup_periods defines the unlocking schedule relative to the start_time
	LockupPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 161-byte string literal not displayed */
	// vesting_periods defines the vesting schedule relative to the start_time
	VestingPeriods github_com_cosmos_cosmos_sdk_x_auth_vesting_types.Periods `` /* 164-byte string literal not displayed */
	// merge specifies a the creation mechanism for existing
	// ClawbackVestingAccounts. If true, merge this new grant into an existing
	// ClawbackVestingAccount, or create it if it does not exist. If false,
	// creates a new account. New grants to an existing account must be from the
	// same from_address.
	Merge bool `protobuf:"varint,6,opt,name=merge,proto3" json:"merge,omitempty"`
}

MsgCreateClawbackVestingAccount defines a message that enables creating a ClawbackVestingAccount.

func NewMsgCreateClawbackVestingAccount

func NewMsgCreateClawbackVestingAccount(
	fromAddr, toAddr sdk.AccAddress,
	startTime time.Time,
	lockupPeriods,
	vestingPeriods sdkvesting.Periods,
	merge bool,
) *MsgCreateClawbackVestingAccount

NewMsgCreateClawbackVestingAccount creates new instance of MsgCreateClawbackVestingAccount

func (*MsgCreateClawbackVestingAccount) Descriptor

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

func (*MsgCreateClawbackVestingAccount) GetFromAddress

func (m *MsgCreateClawbackVestingAccount) GetFromAddress() string

func (*MsgCreateClawbackVestingAccount) GetLockupPeriods

func (*MsgCreateClawbackVestingAccount) GetMerge

func (m *MsgCreateClawbackVestingAccount) GetMerge() bool

func (*MsgCreateClawbackVestingAccount) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgCreateClawbackVestingAccount) GetSigners

func (msg MsgCreateClawbackVestingAccount) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCreateClawbackVestingAccount) GetStartTime

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

func (*MsgCreateClawbackVestingAccount) GetToAddress

func (m *MsgCreateClawbackVestingAccount) GetToAddress() string

func (*MsgCreateClawbackVestingAccount) GetVestingPeriods

func (*MsgCreateClawbackVestingAccount) Marshal

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

func (*MsgCreateClawbackVestingAccount) MarshalTo

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

func (*MsgCreateClawbackVestingAccount) MarshalToSizedBuffer

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

func (*MsgCreateClawbackVestingAccount) ProtoMessage

func (*MsgCreateClawbackVestingAccount) ProtoMessage()

func (*MsgCreateClawbackVestingAccount) Reset

func (MsgCreateClawbackVestingAccount) Route

Route returns the name of the module

func (*MsgCreateClawbackVestingAccount) Size

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

func (*MsgCreateClawbackVestingAccount) String

func (MsgCreateClawbackVestingAccount) Type

Type returns the the action

func (*MsgCreateClawbackVestingAccount) Unmarshal

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

func (MsgCreateClawbackVestingAccount) ValidateBasic

func (msg MsgCreateClawbackVestingAccount) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCreateClawbackVestingAccount) XXX_DiscardUnknown

func (m *MsgCreateClawbackVestingAccount) XXX_DiscardUnknown()

func (*MsgCreateClawbackVestingAccount) XXX_Marshal

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

func (*MsgCreateClawbackVestingAccount) XXX_Merge

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

func (*MsgCreateClawbackVestingAccount) XXX_Size

func (m *MsgCreateClawbackVestingAccount) XXX_Size() int

func (*MsgCreateClawbackVestingAccount) XXX_Unmarshal

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

type MsgCreateClawbackVestingAccountResponse

type MsgCreateClawbackVestingAccountResponse struct {
}

MsgCreateClawbackVestingAccountResponse defines the MsgCreateClawbackVestingAccount response type.

func (*MsgCreateClawbackVestingAccountResponse) Descriptor

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

func (*MsgCreateClawbackVestingAccountResponse) Marshal

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

func (*MsgCreateClawbackVestingAccountResponse) MarshalTo

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

func (*MsgCreateClawbackVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgCreateClawbackVestingAccountResponse) ProtoMessage

func (*MsgCreateClawbackVestingAccountResponse) Reset

func (*MsgCreateClawbackVestingAccountResponse) Size

func (*MsgCreateClawbackVestingAccountResponse) String

func (*MsgCreateClawbackVestingAccountResponse) Unmarshal

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

func (*MsgCreateClawbackVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgCreateClawbackVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgCreateClawbackVestingAccountResponse) XXX_Marshal

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

func (*MsgCreateClawbackVestingAccountResponse) XXX_Merge

func (*MsgCreateClawbackVestingAccountResponse) XXX_Size

func (*MsgCreateClawbackVestingAccountResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateClawbackVestingAccount creats a vesting account that is subject to
	// clawback and the configuration of vesting and lockup schedules.
	CreateClawbackVestingAccount(context.Context, *MsgCreateClawbackVestingAccount) (*MsgCreateClawbackVestingAccountResponse, error)
	// Clawback removes the unvested tokens from a ClawbackVestingAccount.
	Clawback(context.Context, *MsgClawback) (*MsgClawbackResponse, error)
	// UpdateVestingFunder updates the funder address of an existing
	// ClawbackVestingAccount.
	UpdateVestingFunder(context.Context, *MsgUpdateVestingFunder) (*MsgUpdateVestingFunderResponse, error)
	// ConvertVestingAccount converts a ClawbackVestingAccount to a Eth account
	ConvertVestingAccount(context.Context, *MsgConvertVestingAccount) (*MsgConvertVestingAccountResponse, error)
	// ConvertIntoVestingAccount converts a Eth account to a
	// ClawbackVestingAccount
	ConvertIntoVestingAccount(context.Context, *MsgConvertIntoVestingAccount) (*MsgConvertIntoVestingAccountResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateVestingFunder

type MsgUpdateVestingFunder struct {
	// funder_address is the current funder address of the ClawbackVestingAccount
	FunderAddress string `protobuf:"bytes,1,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"`
	// new_funder_address is the new address to replace the existing
	// funder_address
	NewFunderAddress string `protobuf:"bytes,2,opt,name=new_funder_address,json=newFunderAddress,proto3" json:"new_funder_address,omitempty"`
	// vesting_address is the address of the ClawbackVestingAccount being updated
	VestingAddress string `protobuf:"bytes,3,opt,name=vesting_address,json=vestingAddress,proto3" json:"vesting_address,omitempty"`
}

MsgUpdateVestingFunder defines a message that updates the funder account of a ClawbackVestingAccount.

func NewMsgUpdateVestingFunder

func NewMsgUpdateVestingFunder(funder, newFunder, vesting sdk.AccAddress) *MsgUpdateVestingFunder

NewMsgUpdateVestingFunder creates new instance of MsgUpdateVestingFunder

func (*MsgUpdateVestingFunder) Descriptor

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

func (*MsgUpdateVestingFunder) GetFunderAddress

func (m *MsgUpdateVestingFunder) GetFunderAddress() string

func (*MsgUpdateVestingFunder) GetNewFunderAddress

func (m *MsgUpdateVestingFunder) GetNewFunderAddress() string

func (*MsgUpdateVestingFunder) GetSignBytes

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

GetSignBytes encodes the message for signing

func (MsgUpdateVestingFunder) GetSigners

func (msg MsgUpdateVestingFunder) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgUpdateVestingFunder) GetVestingAddress

func (m *MsgUpdateVestingFunder) GetVestingAddress() string

func (*MsgUpdateVestingFunder) Marshal

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

func (*MsgUpdateVestingFunder) MarshalTo

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

func (*MsgUpdateVestingFunder) MarshalToSizedBuffer

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

func (*MsgUpdateVestingFunder) ProtoMessage

func (*MsgUpdateVestingFunder) ProtoMessage()

func (*MsgUpdateVestingFunder) Reset

func (m *MsgUpdateVestingFunder) Reset()

func (MsgUpdateVestingFunder) Route

func (msg MsgUpdateVestingFunder) Route() string

Route returns the message route for a MsgUpdateVestingFunder.

func (*MsgUpdateVestingFunder) Size

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

func (*MsgUpdateVestingFunder) String

func (m *MsgUpdateVestingFunder) String() string

func (MsgUpdateVestingFunder) Type

func (msg MsgUpdateVestingFunder) Type() string

Type returns the message type for a MsgUpdateVestingFunder.

func (*MsgUpdateVestingFunder) Unmarshal

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

func (MsgUpdateVestingFunder) ValidateBasic

func (msg MsgUpdateVestingFunder) ValidateBasic() error

ValidateBasic runs stateless checks on the MsgUpdateVestingFunder message

func (*MsgUpdateVestingFunder) XXX_DiscardUnknown

func (m *MsgUpdateVestingFunder) XXX_DiscardUnknown()

func (*MsgUpdateVestingFunder) XXX_Marshal

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

func (*MsgUpdateVestingFunder) XXX_Merge

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

func (*MsgUpdateVestingFunder) XXX_Size

func (m *MsgUpdateVestingFunder) XXX_Size() int

func (*MsgUpdateVestingFunder) XXX_Unmarshal

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

type MsgUpdateVestingFunderResponse

type MsgUpdateVestingFunderResponse struct {
}

MsgUpdateVestingFunderResponse defines the MsgUpdateVestingFunder response type.

func (*MsgUpdateVestingFunderResponse) Descriptor

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

func (*MsgUpdateVestingFunderResponse) Marshal

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

func (*MsgUpdateVestingFunderResponse) MarshalTo

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

func (*MsgUpdateVestingFunderResponse) MarshalToSizedBuffer

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

func (*MsgUpdateVestingFunderResponse) ProtoMessage

func (*MsgUpdateVestingFunderResponse) ProtoMessage()

func (*MsgUpdateVestingFunderResponse) Reset

func (m *MsgUpdateVestingFunderResponse) Reset()

func (*MsgUpdateVestingFunderResponse) Size

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

func (*MsgUpdateVestingFunderResponse) String

func (*MsgUpdateVestingFunderResponse) Unmarshal

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

func (*MsgUpdateVestingFunderResponse) XXX_DiscardUnknown

func (m *MsgUpdateVestingFunderResponse) XXX_DiscardUnknown()

func (*MsgUpdateVestingFunderResponse) XXX_Marshal

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

func (*MsgUpdateVestingFunderResponse) XXX_Merge

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

func (*MsgUpdateVestingFunderResponse) XXX_Size

func (m *MsgUpdateVestingFunderResponse) XXX_Size() int

func (*MsgUpdateVestingFunderResponse) XXX_Unmarshal

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

type QueryBalancesRequest

type QueryBalancesRequest struct {
	// address of the clawback vesting account
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryBalancesRequest is the request type for the Query/Balances RPC method.

func (*QueryBalancesRequest) Descriptor

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

func (*QueryBalancesRequest) GetAddress

func (m *QueryBalancesRequest) GetAddress() string

func (*QueryBalancesRequest) Marshal

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

func (*QueryBalancesRequest) MarshalTo

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

func (*QueryBalancesRequest) MarshalToSizedBuffer

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

func (*QueryBalancesRequest) ProtoMessage

func (*QueryBalancesRequest) ProtoMessage()

func (*QueryBalancesRequest) Reset

func (m *QueryBalancesRequest) Reset()

func (*QueryBalancesRequest) Size

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

func (*QueryBalancesRequest) String

func (m *QueryBalancesRequest) String() string

func (*QueryBalancesRequest) Unmarshal

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

func (*QueryBalancesRequest) XXX_DiscardUnknown

func (m *QueryBalancesRequest) XXX_DiscardUnknown()

func (*QueryBalancesRequest) XXX_Marshal

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

func (*QueryBalancesRequest) XXX_Merge

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

func (*QueryBalancesRequest) XXX_Size

func (m *QueryBalancesRequest) XXX_Size() int

func (*QueryBalancesRequest) XXX_Unmarshal

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

type QueryBalancesResponse

type QueryBalancesResponse struct {
	// locked defines the current amount of locked tokens
	Locked github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=locked,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"locked"`
	// unvested defines the current amount of unvested tokens
	Unvested github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=unvested,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"unvested"`
	// vested defines the current amount of vested tokens
	Vested github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=vested,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"vested"`
}

QueryBalancesResponse is the response type for the Query/Balances RPC method.

func (*QueryBalancesResponse) Descriptor

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

func (*QueryBalancesResponse) GetLocked

func (*QueryBalancesResponse) GetUnvested

func (*QueryBalancesResponse) GetVested

func (*QueryBalancesResponse) Marshal

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

func (*QueryBalancesResponse) MarshalTo

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

func (*QueryBalancesResponse) MarshalToSizedBuffer

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

func (*QueryBalancesResponse) ProtoMessage

func (*QueryBalancesResponse) ProtoMessage()

func (*QueryBalancesResponse) Reset

func (m *QueryBalancesResponse) Reset()

func (*QueryBalancesResponse) Size

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

func (*QueryBalancesResponse) String

func (m *QueryBalancesResponse) String() string

func (*QueryBalancesResponse) Unmarshal

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

func (*QueryBalancesResponse) XXX_DiscardUnknown

func (m *QueryBalancesResponse) XXX_DiscardUnknown()

func (*QueryBalancesResponse) XXX_Marshal

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

func (*QueryBalancesResponse) XXX_Merge

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

func (*QueryBalancesResponse) XXX_Size

func (m *QueryBalancesResponse) XXX_Size() int

func (*QueryBalancesResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Balances retrieves the unvested, vested and locked tokens for a vesting
	// account
	Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, error)
	// TotalLocked retrieves the total summary of all unvested, vested and locked
	// tokens
	TotalLocked(ctx context.Context, in *QueryTotalLockedRequest, opts ...grpc.CallOption) (*QueryTotalLockedResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryServer

type QueryServer interface {
	// Balances retrieves the unvested, vested and locked tokens for a vesting
	// account
	Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error)
	// TotalLocked retrieves the total summary of all unvested, vested and locked
	// tokens
	TotalLocked(context.Context, *QueryTotalLockedRequest) (*QueryTotalLockedResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalLockedRequest added in v1.6.4

type QueryTotalLockedRequest struct {
}

QueryTotalLockedRequest is the request type for the Query/TotalLocked RPC method.

func (*QueryTotalLockedRequest) Descriptor added in v1.6.4

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

func (*QueryTotalLockedRequest) Marshal added in v1.6.4

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

func (*QueryTotalLockedRequest) MarshalTo added in v1.6.4

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

func (*QueryTotalLockedRequest) MarshalToSizedBuffer added in v1.6.4

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

func (*QueryTotalLockedRequest) ProtoMessage added in v1.6.4

func (*QueryTotalLockedRequest) ProtoMessage()

func (*QueryTotalLockedRequest) Reset added in v1.6.4

func (m *QueryTotalLockedRequest) Reset()

func (*QueryTotalLockedRequest) Size added in v1.6.4

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

func (*QueryTotalLockedRequest) String added in v1.6.4

func (m *QueryTotalLockedRequest) String() string

func (*QueryTotalLockedRequest) Unmarshal added in v1.6.4

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

func (*QueryTotalLockedRequest) XXX_DiscardUnknown added in v1.6.4

func (m *QueryTotalLockedRequest) XXX_DiscardUnknown()

func (*QueryTotalLockedRequest) XXX_Marshal added in v1.6.4

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

func (*QueryTotalLockedRequest) XXX_Merge added in v1.6.4

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

func (*QueryTotalLockedRequest) XXX_Size added in v1.6.4

func (m *QueryTotalLockedRequest) XXX_Size() int

func (*QueryTotalLockedRequest) XXX_Unmarshal added in v1.6.4

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

type QueryTotalLockedResponse added in v1.6.4

type QueryTotalLockedResponse struct {
	// locked defines the current amount of locked tokens
	Locked github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=locked,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"locked"`
	// unvested defines the current amount of unvested tokens
	Unvested github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=unvested,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"unvested"`
	// vested defines the current amount of vested tokens
	Vested github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=vested,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"vested"`
}

QueryTotalLockedResponse is the response type for the Query/TotalLocked RPC method.

func (*QueryTotalLockedResponse) Descriptor added in v1.6.4

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

func (*QueryTotalLockedResponse) GetLocked added in v1.6.4

func (*QueryTotalLockedResponse) GetUnvested added in v1.6.4

func (*QueryTotalLockedResponse) GetVested added in v1.6.4

func (*QueryTotalLockedResponse) Marshal added in v1.6.4

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

func (*QueryTotalLockedResponse) MarshalTo added in v1.6.4

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

func (*QueryTotalLockedResponse) MarshalToSizedBuffer added in v1.6.4

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

func (*QueryTotalLockedResponse) ProtoMessage added in v1.6.4

func (*QueryTotalLockedResponse) ProtoMessage()

func (*QueryTotalLockedResponse) Reset added in v1.6.4

func (m *QueryTotalLockedResponse) Reset()

func (*QueryTotalLockedResponse) Size added in v1.6.4

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

func (*QueryTotalLockedResponse) String added in v1.6.4

func (m *QueryTotalLockedResponse) String() string

func (*QueryTotalLockedResponse) Unmarshal added in v1.6.4

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

func (*QueryTotalLockedResponse) XXX_DiscardUnknown added in v1.6.4

func (m *QueryTotalLockedResponse) XXX_DiscardUnknown()

func (*QueryTotalLockedResponse) XXX_Marshal added in v1.6.4

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

func (*QueryTotalLockedResponse) XXX_Merge added in v1.6.4

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

func (*QueryTotalLockedResponse) XXX_Size added in v1.6.4

func (m *QueryTotalLockedResponse) XXX_Size() int

func (*QueryTotalLockedResponse) XXX_Unmarshal added in v1.6.4

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

type StakingKeeper

type StakingKeeper interface {
	GetParams(ctx sdk.Context) stakingtypes.Params
	BondDenom(ctx sdk.Context) string
	GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) []stakingtypes.Delegation
	GetUnbondingDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) []stakingtypes.UnbondingDelegation
	GetValidator(ctx sdk.Context, valAddr sdk.ValAddress) (stakingtypes.Validator, bool)

	// Support iterating delegations for use in ante handlers
	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool))

	// Support functions for Agoric's custom stakingkeeper logic on vestingkeeper
	GetUnbondingDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.UnbondingDelegation, bool)
	HasMaxUnbondingDelegationEntries(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) bool
	SetUnbondingDelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress, creationHeight int64, minTime time.Time, balance math.Int) stakingtypes.UnbondingDelegation
	InsertUBDQueue(ctx sdk.Context, ubd stakingtypes.UnbondingDelegation, completionTime time.Time)
	RemoveUnbondingDelegation(ctx sdk.Context, ubd stakingtypes.UnbondingDelegation)
	SetUnbondingDelegation(ctx sdk.Context, ubd stakingtypes.UnbondingDelegation)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, bool)
	GetRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) (stakingtypes.Redelegation, bool)
	MaxEntries(ctx sdk.Context) uint32
	SetDelegation(ctx sdk.Context, delegation stakingtypes.Delegation)
	RemoveDelegation(ctx sdk.Context, delegation stakingtypes.Delegation) error
	GetRedelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) []stakingtypes.Redelegation
	SetRedelegationEntry(ctx sdk.Context, delegatorAddr sdk.AccAddress, validatorSrcAddr, validatorDstAddr sdk.ValAddress, creationHeight int64, minTime time.Time, balance math.Int, sharesSrc, sharesDst math.LegacyDec) stakingtypes.Redelegation
	InsertRedelegationQueue(ctx sdk.Context, red stakingtypes.Redelegation, completionTime time.Time)
	SetRedelegation(ctx sdk.Context, red stakingtypes.Redelegation)
	RemoveRedelegation(ctx sdk.Context, red stakingtypes.Redelegation)
	GetDelegatorUnbonding(ctx sdk.Context, delegator sdk.AccAddress) math.Int
	GetDelegatorBonded(ctx sdk.Context, delegator sdk.AccAddress) math.Int
}

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Clawback

func (*UnimplementedMsgServer) ConvertIntoVestingAccount

func (*UnimplementedMsgServer) ConvertVestingAccount

func (*UnimplementedMsgServer) UpdateVestingFunder

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Balances

func (*UnimplementedQueryServer) TotalLocked added in v1.6.4

type VestingKeeper added in v1.8.0

type VestingKeeper interface {
	ApplyVestingSchedule(
		ctx sdk.Context,
		funder, funded sdk.AccAddress,
		coins sdk.Coins,
		startTime time.Time,
		lockupPeriods, vestingPeriods sdkvesting.Periods,
		merge bool,
	) (vestingAcc *ClawbackVestingAccount, newAccountCreated, wasMerged bool, err error)
}

Jump to

Keyboard shortcuts

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