types

package
v0.7.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TypeMsgCreatePeriodicVestingAccount = "msg_create_periodic_vesting_account"

TypeMsgCreatePeriodicVestingAccount defines the type value for a MsgCreateVestingAccount.

Variables

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

Functions

func RegisterMsgExtendServer

func RegisterMsgExtendServer(s grpc1.Server, srv MsgExtendServer)

Types

type BankKeeper

type BankKeeper interface {
	IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	BlockedAddr(addr sdk.AccAddress) bool
}

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

type MsgCreatePeriodicVestingAccount

type MsgCreatePeriodicVestingAccount 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"`
	StartTime      int64          `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	VestingPeriods []types.Period `protobuf:"bytes,4,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"`
}

MsgCreatePeriodicVestingAccount defines a message that enables creating a periodic vesting account.

func NewMsgCreatePeriodicVestingAccount

func NewMsgCreatePeriodicVestingAccount(fromAddr, toAddr sdk.AccAddress, startTime int64, periods []orgtypes.Period) *MsgCreatePeriodicVestingAccount

NewMsgCreatePeriodicVestingAccount returns a reference to a new MsgCreatePeriodicVestingAccount.

func (*MsgCreatePeriodicVestingAccount) Descriptor

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

func (*MsgCreatePeriodicVestingAccount) GetFromAddress

func (m *MsgCreatePeriodicVestingAccount) GetFromAddress() string

func (MsgCreatePeriodicVestingAccount) GetSignBytes

func (msg MsgCreatePeriodicVestingAccount) GetSignBytes() []byte

GetSignBytes returns the bytes all expected signers must sign over for a MsgCreatePeriodicVestingAccount.

func (MsgCreatePeriodicVestingAccount) GetSigners

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

GetSigners returns the expected signers for a MsgCreatePeriodicVestingAccount.

func (*MsgCreatePeriodicVestingAccount) GetStartTime

func (m *MsgCreatePeriodicVestingAccount) GetStartTime() int64

func (*MsgCreatePeriodicVestingAccount) GetToAddress

func (m *MsgCreatePeriodicVestingAccount) GetToAddress() string

func (*MsgCreatePeriodicVestingAccount) GetVestingPeriods

func (m *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []types.Period

func (*MsgCreatePeriodicVestingAccount) Marshal

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

func (*MsgCreatePeriodicVestingAccount) MarshalTo

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

func (*MsgCreatePeriodicVestingAccount) MarshalToSizedBuffer

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

func (*MsgCreatePeriodicVestingAccount) ProtoMessage

func (*MsgCreatePeriodicVestingAccount) ProtoMessage()

func (*MsgCreatePeriodicVestingAccount) Reset

func (MsgCreatePeriodicVestingAccount) Route

Route returns the message route for a MsgCreatePeriodicVestingAccount.

func (*MsgCreatePeriodicVestingAccount) Size

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

func (*MsgCreatePeriodicVestingAccount) String

func (MsgCreatePeriodicVestingAccount) Type

Type returns the message type for a MsgCreatePeriodicVestingAccount.

func (*MsgCreatePeriodicVestingAccount) Unmarshal

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

func (MsgCreatePeriodicVestingAccount) ValidateBasic

func (msg MsgCreatePeriodicVestingAccount) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown

func (m *MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown()

func (*MsgCreatePeriodicVestingAccount) XXX_Marshal

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

func (*MsgCreatePeriodicVestingAccount) XXX_Merge

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

func (*MsgCreatePeriodicVestingAccount) XXX_Size

func (m *MsgCreatePeriodicVestingAccount) XXX_Size() int

func (*MsgCreatePeriodicVestingAccount) XXX_Unmarshal

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

type MsgCreatePeriodicVestingAccountResponse

type MsgCreatePeriodicVestingAccountResponse struct {
}

MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount response type.

func (*MsgCreatePeriodicVestingAccountResponse) Descriptor

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

func (*MsgCreatePeriodicVestingAccountResponse) Marshal

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

func (*MsgCreatePeriodicVestingAccountResponse) MarshalTo

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

func (*MsgCreatePeriodicVestingAccountResponse) MarshalToSizedBuffer

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

func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage

func (*MsgCreatePeriodicVestingAccountResponse) Reset

func (*MsgCreatePeriodicVestingAccountResponse) Size

func (*MsgCreatePeriodicVestingAccountResponse) String

func (*MsgCreatePeriodicVestingAccountResponse) Unmarshal

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

func (*MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown

func (m *MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown()

func (*MsgCreatePeriodicVestingAccountResponse) XXX_Marshal

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

func (*MsgCreatePeriodicVestingAccountResponse) XXX_Merge

func (*MsgCreatePeriodicVestingAccountResponse) XXX_Size

func (*MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal

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

type MsgExtendClient

type MsgExtendClient interface {
	// Aura move from cosmos-sdk 0.46
	CreatePeriodicVestingAccount(ctx context.Context, in *MsgCreatePeriodicVestingAccount, opts ...grpc.CallOption) (*MsgCreatePeriodicVestingAccountResponse, error)
}

MsgExtendClient is the client API for MsgExtend service.

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

func NewMsgExtendClient

func NewMsgExtendClient(cc grpc1.ClientConn) MsgExtendClient

type MsgExtendServer

type MsgExtendServer interface {
	// Aura move from cosmos-sdk 0.46
	CreatePeriodicVestingAccount(context.Context, *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error)
}

MsgExtendServer is the server API for MsgExtend service.

type UnimplementedMsgExtendServer

type UnimplementedMsgExtendServer struct {
}

UnimplementedMsgExtendServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgExtendServer) CreatePeriodicVestingAccount

Jump to

Keyboard shortcuts

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