vestingv1beta1

package
v0.0.0-...-a315113 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_vesting_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var File_cosmos_vesting_v1beta1_vesting_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.vesting.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVestingAccount",
			Handler:    _Msg_CreateVestingAccount_Handler,
		},
		{
			MethodName: "CreatePermanentLockedAccount",
			Handler:    _Msg_CreatePermanentLockedAccount_Handler,
		},
		{
			MethodName: "CreatePeriodicVestingAccount",
			Handler:    _Msg_CreatePeriodicVestingAccount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/vesting/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

Types

type BaseVestingAccount

type BaseVestingAccount struct {
	BaseAccount      *v1beta11.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3" json:"base_account,omitempty"`
	OriginalVesting  []*v1beta1.Coin       `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3" json:"original_vesting,omitempty"`
	DelegatedFree    []*v1beta1.Coin       `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3" json:"delegated_free,omitempty"`
	DelegatedVesting []*v1beta1.Coin       `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3" json:"delegated_vesting,omitempty"`
	EndTime          int64                 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

BaseVestingAccount implements the VestingAccount interface. It contains all the necessary fields needed for any vesting account implementation.

func (*BaseVestingAccount) Descriptor deprecated

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

Deprecated: Use BaseVestingAccount.ProtoReflect.Descriptor instead.

func (*BaseVestingAccount) GetBaseAccount

func (x *BaseVestingAccount) GetBaseAccount() *v1beta11.BaseAccount

func (*BaseVestingAccount) GetDelegatedFree

func (x *BaseVestingAccount) GetDelegatedFree() []*v1beta1.Coin

func (*BaseVestingAccount) GetDelegatedVesting

func (x *BaseVestingAccount) GetDelegatedVesting() []*v1beta1.Coin

func (*BaseVestingAccount) GetEndTime

func (x *BaseVestingAccount) GetEndTime() int64

func (*BaseVestingAccount) GetOriginalVesting

func (x *BaseVestingAccount) GetOriginalVesting() []*v1beta1.Coin

func (*BaseVestingAccount) ProtoMessage

func (*BaseVestingAccount) ProtoMessage()

func (*BaseVestingAccount) ProtoReflect

func (x *BaseVestingAccount) ProtoReflect() protoreflect.Message

func (*BaseVestingAccount) Reset

func (x *BaseVestingAccount) Reset()

func (*BaseVestingAccount) String

func (x *BaseVestingAccount) String() string

type ContinuousVestingAccount

type ContinuousVestingAccount struct {
	BaseVestingAccount *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3" json:"base_vesting_account,omitempty"`
	StartTime          int64               `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// contains filtered or unexported fields
}

ContinuousVestingAccount implements the VestingAccount interface. It continuously vests by unlocking coins linearly with respect to time.

func (*ContinuousVestingAccount) Descriptor deprecated

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

Deprecated: Use ContinuousVestingAccount.ProtoReflect.Descriptor instead.

func (*ContinuousVestingAccount) GetBaseVestingAccount

func (x *ContinuousVestingAccount) GetBaseVestingAccount() *BaseVestingAccount

func (*ContinuousVestingAccount) GetStartTime

func (x *ContinuousVestingAccount) GetStartTime() int64

func (*ContinuousVestingAccount) ProtoMessage

func (*ContinuousVestingAccount) ProtoMessage()

func (*ContinuousVestingAccount) ProtoReflect

func (x *ContinuousVestingAccount) ProtoReflect() protoreflect.Message

func (*ContinuousVestingAccount) Reset

func (x *ContinuousVestingAccount) Reset()

func (*ContinuousVestingAccount) String

func (x *ContinuousVestingAccount) String() string

type DelayedVestingAccount

type DelayedVestingAccount struct {
	BaseVestingAccount *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3" json:"base_vesting_account,omitempty"`
	// contains filtered or unexported fields
}

DelayedVestingAccount implements the VestingAccount interface. It vests all coins after a specific time, but non prior. In other words, it keeps them locked until a specified time.

func (*DelayedVestingAccount) Descriptor deprecated

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

Deprecated: Use DelayedVestingAccount.ProtoReflect.Descriptor instead.

func (*DelayedVestingAccount) GetBaseVestingAccount

func (x *DelayedVestingAccount) GetBaseVestingAccount() *BaseVestingAccount

func (*DelayedVestingAccount) ProtoMessage

func (*DelayedVestingAccount) ProtoMessage()

func (*DelayedVestingAccount) ProtoReflect

func (x *DelayedVestingAccount) ProtoReflect() protoreflect.Message

func (*DelayedVestingAccount) Reset

func (x *DelayedVestingAccount) Reset()

func (*DelayedVestingAccount) String

func (x *DelayedVestingAccount) String() string

type MsgClient

type MsgClient interface {
	// CreateVestingAccount defines a method that enables creating a vesting
	// account.
	CreateVestingAccount(ctx context.Context, in *MsgCreateVestingAccount, opts ...grpc.CallOption) (*MsgCreateVestingAccountResponse, error)
	// CreatePermanentLockedAccount defines a method that enables creating a permanent
	// locked account.
	CreatePermanentLockedAccount(ctx context.Context, in *MsgCreatePermanentLockedAccount, opts ...grpc.CallOption) (*MsgCreatePermanentLockedAccountResponse, error)
	// CreatePeriodicVestingAccount defines a method that enables creating a
	// periodic vesting account.
	CreatePeriodicVestingAccount(ctx context.Context, in *MsgCreatePeriodicVestingAccount, opts ...grpc.CallOption) (*MsgCreatePeriodicVestingAccountResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

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 []*Period `protobuf:"bytes,4,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateVestingAccount defines a message that enables creating a vesting account.

func (*MsgCreatePeriodicVestingAccount) Descriptor deprecated

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

Deprecated: Use MsgCreatePeriodicVestingAccount.ProtoReflect.Descriptor instead.

func (*MsgCreatePeriodicVestingAccount) GetFromAddress

func (x *MsgCreatePeriodicVestingAccount) GetFromAddress() string

func (*MsgCreatePeriodicVestingAccount) GetStartTime

func (x *MsgCreatePeriodicVestingAccount) GetStartTime() int64

func (*MsgCreatePeriodicVestingAccount) GetToAddress

func (x *MsgCreatePeriodicVestingAccount) GetToAddress() string

func (*MsgCreatePeriodicVestingAccount) GetVestingPeriods

func (x *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []*Period

func (*MsgCreatePeriodicVestingAccount) ProtoMessage

func (*MsgCreatePeriodicVestingAccount) ProtoMessage()

func (*MsgCreatePeriodicVestingAccount) ProtoReflect

func (*MsgCreatePeriodicVestingAccount) Reset

func (*MsgCreatePeriodicVestingAccount) String

type MsgCreatePeriodicVestingAccountResponse

type MsgCreatePeriodicVestingAccountResponse struct {
	// contains filtered or unexported fields
}

MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount response type.

func (*MsgCreatePeriodicVestingAccountResponse) Descriptor deprecated

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

Deprecated: Use MsgCreatePeriodicVestingAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage

func (*MsgCreatePeriodicVestingAccountResponse) ProtoReflect

func (*MsgCreatePeriodicVestingAccountResponse) Reset

func (*MsgCreatePeriodicVestingAccountResponse) String

type MsgCreatePermanentLockedAccount

type MsgCreatePermanentLockedAccount 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"`
	Amount      []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgCreatePermanentLockedAccount defines a message that enables creating a permanent locked account.

func (*MsgCreatePermanentLockedAccount) Descriptor deprecated

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

Deprecated: Use MsgCreatePermanentLockedAccount.ProtoReflect.Descriptor instead.

func (*MsgCreatePermanentLockedAccount) GetAmount

func (x *MsgCreatePermanentLockedAccount) GetAmount() []*v1beta1.Coin

func (*MsgCreatePermanentLockedAccount) GetFromAddress

func (x *MsgCreatePermanentLockedAccount) GetFromAddress() string

func (*MsgCreatePermanentLockedAccount) GetToAddress

func (x *MsgCreatePermanentLockedAccount) GetToAddress() string

func (*MsgCreatePermanentLockedAccount) ProtoMessage

func (*MsgCreatePermanentLockedAccount) ProtoMessage()

func (*MsgCreatePermanentLockedAccount) ProtoReflect

func (*MsgCreatePermanentLockedAccount) Reset

func (*MsgCreatePermanentLockedAccount) String

type MsgCreatePermanentLockedAccountResponse

type MsgCreatePermanentLockedAccountResponse struct {
	// contains filtered or unexported fields
}

MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.

func (*MsgCreatePermanentLockedAccountResponse) Descriptor deprecated

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

Deprecated: Use MsgCreatePermanentLockedAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage

func (*MsgCreatePermanentLockedAccountResponse) ProtoReflect

func (*MsgCreatePermanentLockedAccountResponse) Reset

func (*MsgCreatePermanentLockedAccountResponse) String

type MsgCreateVestingAccount

type MsgCreateVestingAccount 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"`
	Amount      []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	EndTime     int64           `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Delayed     bool            `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateVestingAccount defines a message that enables creating a vesting account.

func (*MsgCreateVestingAccount) Descriptor deprecated

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

Deprecated: Use MsgCreateVestingAccount.ProtoReflect.Descriptor instead.

func (*MsgCreateVestingAccount) GetAmount

func (x *MsgCreateVestingAccount) GetAmount() []*v1beta1.Coin

func (*MsgCreateVestingAccount) GetDelayed

func (x *MsgCreateVestingAccount) GetDelayed() bool

func (*MsgCreateVestingAccount) GetEndTime

func (x *MsgCreateVestingAccount) GetEndTime() int64

func (*MsgCreateVestingAccount) GetFromAddress

func (x *MsgCreateVestingAccount) GetFromAddress() string

func (*MsgCreateVestingAccount) GetToAddress

func (x *MsgCreateVestingAccount) GetToAddress() string

func (*MsgCreateVestingAccount) ProtoMessage

func (*MsgCreateVestingAccount) ProtoMessage()

func (*MsgCreateVestingAccount) ProtoReflect

func (x *MsgCreateVestingAccount) ProtoReflect() protoreflect.Message

func (*MsgCreateVestingAccount) Reset

func (x *MsgCreateVestingAccount) Reset()

func (*MsgCreateVestingAccount) String

func (x *MsgCreateVestingAccount) String() string

type MsgCreateVestingAccountResponse

type MsgCreateVestingAccountResponse struct {
	// contains filtered or unexported fields
}

MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.

func (*MsgCreateVestingAccountResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateVestingAccountResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateVestingAccountResponse) ProtoMessage

func (*MsgCreateVestingAccountResponse) ProtoMessage()

func (*MsgCreateVestingAccountResponse) ProtoReflect

func (*MsgCreateVestingAccountResponse) Reset

func (*MsgCreateVestingAccountResponse) String

type MsgServer

type MsgServer interface {
	// CreateVestingAccount defines a method that enables creating a vesting
	// account.
	CreateVestingAccount(context.Context, *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error)
	// CreatePermanentLockedAccount defines a method that enables creating a permanent
	// locked account.
	CreatePermanentLockedAccount(context.Context, *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error)
	// CreatePeriodicVestingAccount defines a method that enables creating a
	// periodic vesting account.
	CreatePeriodicVestingAccount(context.Context, *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type Period

type Period struct {
	Length int64           `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
	Amount []*v1beta1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Period defines a length of time and amount of coins that will vest.

func (*Period) Descriptor deprecated

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

Deprecated: Use Period.ProtoReflect.Descriptor instead.

func (*Period) GetAmount

func (x *Period) GetAmount() []*v1beta1.Coin

func (*Period) GetLength

func (x *Period) GetLength() int64

func (*Period) ProtoMessage

func (*Period) ProtoMessage()

func (*Period) ProtoReflect

func (x *Period) ProtoReflect() protoreflect.Message

func (*Period) Reset

func (x *Period) Reset()

func (*Period) String

func (x *Period) String() string

type PeriodicVestingAccount

type PeriodicVestingAccount struct {
	BaseVestingAccount *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3" json:"base_vesting_account,omitempty"`
	StartTime          int64               `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	VestingPeriods     []*Period           `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods,omitempty"`
	// contains filtered or unexported fields
}

PeriodicVestingAccount implements the VestingAccount interface. It periodically vests by unlocking coins during each specified period.

func (*PeriodicVestingAccount) Descriptor deprecated

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

Deprecated: Use PeriodicVestingAccount.ProtoReflect.Descriptor instead.

func (*PeriodicVestingAccount) GetBaseVestingAccount

func (x *PeriodicVestingAccount) GetBaseVestingAccount() *BaseVestingAccount

func (*PeriodicVestingAccount) GetStartTime

func (x *PeriodicVestingAccount) GetStartTime() int64

func (*PeriodicVestingAccount) GetVestingPeriods

func (x *PeriodicVestingAccount) GetVestingPeriods() []*Period

func (*PeriodicVestingAccount) ProtoMessage

func (*PeriodicVestingAccount) ProtoMessage()

func (*PeriodicVestingAccount) ProtoReflect

func (x *PeriodicVestingAccount) ProtoReflect() protoreflect.Message

func (*PeriodicVestingAccount) Reset

func (x *PeriodicVestingAccount) Reset()

func (*PeriodicVestingAccount) String

func (x *PeriodicVestingAccount) String() string

type PermanentLockedAccount

type PermanentLockedAccount struct {
	BaseVestingAccount *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3" json:"base_vesting_account,omitempty"`
	// contains filtered or unexported fields
}

PermanentLockedAccount implements the VestingAccount interface. It does not ever release coins, locking them indefinitely. Coins in this account can still be used for delegating and for governance votes even while locked.

Since: cosmos-sdk 0.43

func (*PermanentLockedAccount) Descriptor deprecated

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

Deprecated: Use PermanentLockedAccount.ProtoReflect.Descriptor instead.

func (*PermanentLockedAccount) GetBaseVestingAccount

func (x *PermanentLockedAccount) GetBaseVestingAccount() *BaseVestingAccount

func (*PermanentLockedAccount) ProtoMessage

func (*PermanentLockedAccount) ProtoMessage()

func (*PermanentLockedAccount) ProtoReflect

func (x *PermanentLockedAccount) ProtoReflect() protoreflect.Message

func (*PermanentLockedAccount) Reset

func (x *PermanentLockedAccount) Reset()

func (*PermanentLockedAccount) String

func (x *PermanentLockedAccount) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

Jump to

Keyboard shortcuts

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