types

package
v0.0.0-...-853bff8 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName name that will be used throughout the module
	ModuleName = "router"

	// RouterKey top level router key
	RouterKey = ModuleName
)
View Source
const (
	// TypeMsgMintDeposit defines the type for MsgMintDeposit
	TypeMsgMintDeposit = "mint_deposit"
	// TypeMsgDelegateMintDeposit defines the type for MsgDelegateMintDeposit
	TypeMsgDelegateMintDeposit = "delegate_mint_deposit"
	// TypeMsgWithdrawBurn defines the type for MsgWithdrawBurn
	TypeMsgWithdrawBurn = "withdraw_burn"
	// TypeMsgWithdrawBurnUndelegate defines the type for MsgWithdrawBurnUndelegate
	TypeMsgWithdrawBurnUndelegate = "withdraw_burn_undelegate"
)

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")
)
View Source
var (

	// ModuleCdc represents the legacy amino codec for the module
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers proto messages under their interfaces for unmarshalling, in addition to registering the msg service for handling tx msgs

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary types and interfaces for the module.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type EarnKeeper

type EarnKeeper interface {
	Deposit(ctx sdk.Context, depositor sdk.AccAddress, amount sdk.Coin, depositStrategy earntypes.StrategyType) error
	Withdraw(ctx sdk.Context, from sdk.AccAddress, wantAmount sdk.Coin, withdrawStrategy earntypes.StrategyType) (sdk.Coin, error)
}

type LiquidKeeper

type LiquidKeeper interface {
	DerivativeFromTokens(ctx sdk.Context, valAddr sdk.ValAddress, amount sdk.Coin) (sdk.Coin, error)
	MintDerivative(ctx sdk.Context, delegatorAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) (sdk.Coin, error)
	BurnDerivative(ctx sdk.Context, delegatorAddr sdk.AccAddress, valAddr sdk.ValAddress, amount sdk.Coin) (sdk.Dec, error)
}

type MsgClient

type MsgClient interface {
	// MintDeposit converts a delegation into staking derivatives and deposits it all into an earn vault.
	MintDeposit(ctx context.Context, in *MsgMintDeposit, opts ...grpc.CallOption) (*MsgMintDepositResponse, error)
	// DelegateMintDeposit delegates tokens to a validator, then converts them into staking derivatives,
	// then deposits to an earn vault.
	DelegateMintDeposit(ctx context.Context, in *MsgDelegateMintDeposit, opts ...grpc.CallOption) (*MsgDelegateMintDepositResponse, error)
	// WithdrawBurn removes staking derivatives from an earn vault and converts them back to a staking delegation.
	WithdrawBurn(ctx context.Context, in *MsgWithdrawBurn, opts ...grpc.CallOption) (*MsgWithdrawBurnResponse, error)
	// WithdrawBurnUndelegate removes staking derivatives from an earn vault, converts them to a staking delegation,
	// then undelegates them from their validator.
	WithdrawBurnUndelegate(ctx context.Context, in *MsgWithdrawBurnUndelegate, opts ...grpc.CallOption) (*MsgWithdrawBurnUndelegateResponse, 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 MsgDelegateMintDeposit

type MsgDelegateMintDeposit struct {
	// depositor represents the owner of the tokens to delegate
	Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// validator is the address of the validator to delegate to
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// amount is the tokens to delegate
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgDelegateMintDeposit delegates tokens to a validator, then converts them into staking derivatives, then deposits to an earn vault.

func NewMsgDelegateMintDeposit

func NewMsgDelegateMintDeposit(depositor sdk.AccAddress, validator sdk.ValAddress, amount sdk.Coin) *MsgDelegateMintDeposit

NewMsgDelegateMintDeposit returns a new MsgDelegateMintDeposit.

func (*MsgDelegateMintDeposit) Descriptor

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

func (MsgDelegateMintDeposit) GetSignBytes

func (msg MsgDelegateMintDeposit) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgDelegateMintDeposit) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgDelegateMintDeposit) Marshal

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

func (*MsgDelegateMintDeposit) MarshalTo

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

func (*MsgDelegateMintDeposit) MarshalToSizedBuffer

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

func (*MsgDelegateMintDeposit) ProtoMessage

func (*MsgDelegateMintDeposit) ProtoMessage()

func (*MsgDelegateMintDeposit) Reset

func (m *MsgDelegateMintDeposit) Reset()

func (MsgDelegateMintDeposit) Route

func (msg MsgDelegateMintDeposit) Route() string

Route return the message type used for routing the message.

func (*MsgDelegateMintDeposit) Size

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

func (*MsgDelegateMintDeposit) String

func (m *MsgDelegateMintDeposit) String() string

func (MsgDelegateMintDeposit) Type

func (msg MsgDelegateMintDeposit) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgDelegateMintDeposit) Unmarshal

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

func (MsgDelegateMintDeposit) ValidateBasic

func (msg MsgDelegateMintDeposit) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgDelegateMintDeposit) XXX_DiscardUnknown

func (m *MsgDelegateMintDeposit) XXX_DiscardUnknown()

func (*MsgDelegateMintDeposit) XXX_Marshal

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

func (*MsgDelegateMintDeposit) XXX_Merge

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

func (*MsgDelegateMintDeposit) XXX_Size

func (m *MsgDelegateMintDeposit) XXX_Size() int

func (*MsgDelegateMintDeposit) XXX_Unmarshal

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

type MsgDelegateMintDepositResponse

type MsgDelegateMintDepositResponse struct {
}

MsgDelegateMintDepositResponse defines the Msg/MsgDelegateMintDeposit response type.

func (*MsgDelegateMintDepositResponse) Descriptor

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

func (*MsgDelegateMintDepositResponse) Marshal

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

func (*MsgDelegateMintDepositResponse) MarshalTo

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

func (*MsgDelegateMintDepositResponse) MarshalToSizedBuffer

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

func (*MsgDelegateMintDepositResponse) ProtoMessage

func (*MsgDelegateMintDepositResponse) ProtoMessage()

func (*MsgDelegateMintDepositResponse) Reset

func (m *MsgDelegateMintDepositResponse) Reset()

func (*MsgDelegateMintDepositResponse) Size

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

func (*MsgDelegateMintDepositResponse) String

func (*MsgDelegateMintDepositResponse) Unmarshal

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

func (*MsgDelegateMintDepositResponse) XXX_DiscardUnknown

func (m *MsgDelegateMintDepositResponse) XXX_DiscardUnknown()

func (*MsgDelegateMintDepositResponse) XXX_Marshal

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

func (*MsgDelegateMintDepositResponse) XXX_Merge

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

func (*MsgDelegateMintDepositResponse) XXX_Size

func (m *MsgDelegateMintDepositResponse) XXX_Size() int

func (*MsgDelegateMintDepositResponse) XXX_Unmarshal

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

type MsgMintDeposit

type MsgMintDeposit struct {
	// depositor represents the owner of the delegation to convert
	Depositor string `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	// validator is the validator for the depositor's delegation
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// amount is the delegation balance to convert
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgMintDeposit converts a delegation into staking derivatives and deposits it all into an earn vault.

func NewMsgMintDeposit

func NewMsgMintDeposit(depositor sdk.AccAddress, validator sdk.ValAddress, amount sdk.Coin) *MsgMintDeposit

NewMsgMintDeposit returns a new MsgMintDeposit.

func (*MsgMintDeposit) Descriptor

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

func (MsgMintDeposit) GetSignBytes

func (msg MsgMintDeposit) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgMintDeposit) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgMintDeposit) Marshal

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

func (*MsgMintDeposit) MarshalTo

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

func (*MsgMintDeposit) MarshalToSizedBuffer

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

func (*MsgMintDeposit) ProtoMessage

func (*MsgMintDeposit) ProtoMessage()

func (*MsgMintDeposit) Reset

func (m *MsgMintDeposit) Reset()

func (MsgMintDeposit) Route

func (msg MsgMintDeposit) Route() string

Route return the message type used for routing the message.

func (*MsgMintDeposit) Size

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

func (*MsgMintDeposit) String

func (m *MsgMintDeposit) String() string

func (MsgMintDeposit) Type

func (msg MsgMintDeposit) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgMintDeposit) Unmarshal

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

func (MsgMintDeposit) ValidateBasic

func (msg MsgMintDeposit) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgMintDeposit) XXX_DiscardUnknown

func (m *MsgMintDeposit) XXX_DiscardUnknown()

func (*MsgMintDeposit) XXX_Marshal

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

func (*MsgMintDeposit) XXX_Merge

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

func (*MsgMintDeposit) XXX_Size

func (m *MsgMintDeposit) XXX_Size() int

func (*MsgMintDeposit) XXX_Unmarshal

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

type MsgMintDepositResponse

type MsgMintDepositResponse struct {
}

MsgMintDepositResponse defines the Msg/MsgMintDeposit response type.

func (*MsgMintDepositResponse) Descriptor

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

func (*MsgMintDepositResponse) Marshal

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

func (*MsgMintDepositResponse) MarshalTo

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

func (*MsgMintDepositResponse) MarshalToSizedBuffer

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

func (*MsgMintDepositResponse) ProtoMessage

func (*MsgMintDepositResponse) ProtoMessage()

func (*MsgMintDepositResponse) Reset

func (m *MsgMintDepositResponse) Reset()

func (*MsgMintDepositResponse) Size

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

func (*MsgMintDepositResponse) String

func (m *MsgMintDepositResponse) String() string

func (*MsgMintDepositResponse) Unmarshal

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

func (*MsgMintDepositResponse) XXX_DiscardUnknown

func (m *MsgMintDepositResponse) XXX_DiscardUnknown()

func (*MsgMintDepositResponse) XXX_Marshal

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

func (*MsgMintDepositResponse) XXX_Merge

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

func (*MsgMintDepositResponse) XXX_Size

func (m *MsgMintDepositResponse) XXX_Size() int

func (*MsgMintDepositResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// MintDeposit converts a delegation into staking derivatives and deposits it all into an earn vault.
	MintDeposit(context.Context, *MsgMintDeposit) (*MsgMintDepositResponse, error)
	// DelegateMintDeposit delegates tokens to a validator, then converts them into staking derivatives,
	// then deposits to an earn vault.
	DelegateMintDeposit(context.Context, *MsgDelegateMintDeposit) (*MsgDelegateMintDepositResponse, error)
	// WithdrawBurn removes staking derivatives from an earn vault and converts them back to a staking delegation.
	WithdrawBurn(context.Context, *MsgWithdrawBurn) (*MsgWithdrawBurnResponse, error)
	// WithdrawBurnUndelegate removes staking derivatives from an earn vault, converts them to a staking delegation,
	// then undelegates them from their validator.
	WithdrawBurnUndelegate(context.Context, *MsgWithdrawBurnUndelegate) (*MsgWithdrawBurnUndelegateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdrawBurn

type MsgWithdrawBurn struct {
	// from is the owner of the earn vault to withdraw from
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// validator is the address to select the derivative denom to withdraw
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// amount is the staked token equivalent to withdraw
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgWithdrawBurn removes staking derivatives from an earn vault and converts them back to a staking delegation.

func NewMsgWithdrawBurn

func NewMsgWithdrawBurn(from sdk.AccAddress, validator sdk.ValAddress, amount sdk.Coin) *MsgWithdrawBurn

NewMsgWithdrawBurn returns a new MsgWithdrawBurn.

func (*MsgWithdrawBurn) Descriptor

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

func (MsgWithdrawBurn) GetSignBytes

func (msg MsgWithdrawBurn) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgWithdrawBurn) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgWithdrawBurn) Marshal

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

func (*MsgWithdrawBurn) MarshalTo

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

func (*MsgWithdrawBurn) MarshalToSizedBuffer

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

func (*MsgWithdrawBurn) ProtoMessage

func (*MsgWithdrawBurn) ProtoMessage()

func (*MsgWithdrawBurn) Reset

func (m *MsgWithdrawBurn) Reset()

func (MsgWithdrawBurn) Route

func (msg MsgWithdrawBurn) Route() string

Route return the message type used for routing the message.

func (*MsgWithdrawBurn) Size

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

func (*MsgWithdrawBurn) String

func (m *MsgWithdrawBurn) String() string

func (MsgWithdrawBurn) Type

func (msg MsgWithdrawBurn) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgWithdrawBurn) Unmarshal

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

func (MsgWithdrawBurn) ValidateBasic

func (msg MsgWithdrawBurn) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgWithdrawBurn) XXX_DiscardUnknown

func (m *MsgWithdrawBurn) XXX_DiscardUnknown()

func (*MsgWithdrawBurn) XXX_Marshal

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

func (*MsgWithdrawBurn) XXX_Merge

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

func (*MsgWithdrawBurn) XXX_Size

func (m *MsgWithdrawBurn) XXX_Size() int

func (*MsgWithdrawBurn) XXX_Unmarshal

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

type MsgWithdrawBurnResponse

type MsgWithdrawBurnResponse struct {
}

MsgWithdrawBurnResponse defines the Msg/MsgWithdrawBurn response type.

func (*MsgWithdrawBurnResponse) Descriptor

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

func (*MsgWithdrawBurnResponse) Marshal

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

func (*MsgWithdrawBurnResponse) MarshalTo

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

func (*MsgWithdrawBurnResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawBurnResponse) ProtoMessage

func (*MsgWithdrawBurnResponse) ProtoMessage()

func (*MsgWithdrawBurnResponse) Reset

func (m *MsgWithdrawBurnResponse) Reset()

func (*MsgWithdrawBurnResponse) Size

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

func (*MsgWithdrawBurnResponse) String

func (m *MsgWithdrawBurnResponse) String() string

func (*MsgWithdrawBurnResponse) Unmarshal

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

func (*MsgWithdrawBurnResponse) XXX_DiscardUnknown

func (m *MsgWithdrawBurnResponse) XXX_DiscardUnknown()

func (*MsgWithdrawBurnResponse) XXX_Marshal

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

func (*MsgWithdrawBurnResponse) XXX_Merge

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

func (*MsgWithdrawBurnResponse) XXX_Size

func (m *MsgWithdrawBurnResponse) XXX_Size() int

func (*MsgWithdrawBurnResponse) XXX_Unmarshal

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

type MsgWithdrawBurnUndelegate

type MsgWithdrawBurnUndelegate struct {
	// from is the owner of the earn vault to withdraw from
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// validator is the address to select the derivative denom to withdraw
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// amount is the staked token equivalent to withdraw
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgWithdrawBurnUndelegate removes staking derivatives from an earn vault, converts them to a staking delegation, then undelegates them from their validator.

func NewMsgWithdrawBurnUndelegate

func NewMsgWithdrawBurnUndelegate(from sdk.AccAddress, validator sdk.ValAddress, amount sdk.Coin) *MsgWithdrawBurnUndelegate

NewMsgWithdrawBurnUndelegate returns a new MsgWithdrawBurnUndelegate.

func (*MsgWithdrawBurnUndelegate) Descriptor

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

func (MsgWithdrawBurnUndelegate) GetSignBytes

func (msg MsgWithdrawBurnUndelegate) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgWithdrawBurnUndelegate) GetSigners

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

GetSigners returns the addresses of signers that must sign.

func (*MsgWithdrawBurnUndelegate) Marshal

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

func (*MsgWithdrawBurnUndelegate) MarshalTo

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

func (*MsgWithdrawBurnUndelegate) MarshalToSizedBuffer

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

func (*MsgWithdrawBurnUndelegate) ProtoMessage

func (*MsgWithdrawBurnUndelegate) ProtoMessage()

func (*MsgWithdrawBurnUndelegate) Reset

func (m *MsgWithdrawBurnUndelegate) Reset()

func (MsgWithdrawBurnUndelegate) Route

func (msg MsgWithdrawBurnUndelegate) Route() string

Route return the message type used for routing the message.

func (*MsgWithdrawBurnUndelegate) Size

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

func (*MsgWithdrawBurnUndelegate) String

func (m *MsgWithdrawBurnUndelegate) String() string

func (MsgWithdrawBurnUndelegate) Type

func (msg MsgWithdrawBurnUndelegate) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgWithdrawBurnUndelegate) Unmarshal

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

func (MsgWithdrawBurnUndelegate) ValidateBasic

func (msg MsgWithdrawBurnUndelegate) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgWithdrawBurnUndelegate) XXX_DiscardUnknown

func (m *MsgWithdrawBurnUndelegate) XXX_DiscardUnknown()

func (*MsgWithdrawBurnUndelegate) XXX_Marshal

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

func (*MsgWithdrawBurnUndelegate) XXX_Merge

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

func (*MsgWithdrawBurnUndelegate) XXX_Size

func (m *MsgWithdrawBurnUndelegate) XXX_Size() int

func (*MsgWithdrawBurnUndelegate) XXX_Unmarshal

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

type MsgWithdrawBurnUndelegateResponse

type MsgWithdrawBurnUndelegateResponse struct {
}

MsgWithdrawBurnUndelegateResponse defines the Msg/MsgWithdrawBurnUndelegate response type.

func (*MsgWithdrawBurnUndelegateResponse) Descriptor

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

func (*MsgWithdrawBurnUndelegateResponse) Marshal

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

func (*MsgWithdrawBurnUndelegateResponse) MarshalTo

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

func (*MsgWithdrawBurnUndelegateResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawBurnUndelegateResponse) ProtoMessage

func (*MsgWithdrawBurnUndelegateResponse) ProtoMessage()

func (*MsgWithdrawBurnUndelegateResponse) Reset

func (*MsgWithdrawBurnUndelegateResponse) Size

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

func (*MsgWithdrawBurnUndelegateResponse) String

func (*MsgWithdrawBurnUndelegateResponse) Unmarshal

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

func (*MsgWithdrawBurnUndelegateResponse) XXX_DiscardUnknown

func (m *MsgWithdrawBurnUndelegateResponse) XXX_DiscardUnknown()

func (*MsgWithdrawBurnUndelegateResponse) XXX_Marshal

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

func (*MsgWithdrawBurnUndelegateResponse) XXX_Merge

func (*MsgWithdrawBurnUndelegateResponse) XXX_Size

func (m *MsgWithdrawBurnUndelegateResponse) XXX_Size() int

func (*MsgWithdrawBurnUndelegateResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) (res string)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)

	Delegate(
		ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdkmath.Int, tokenSrc stakingtypes.BondStatus,
		validator stakingtypes.Validator, subtractAccount bool,
	) (newShares sdk.Dec, err error)
	Undelegate(
		ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec,
	) (time.Time, error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) DelegateMintDeposit

func (*UnimplementedMsgServer) MintDeposit

func (*UnimplementedMsgServer) WithdrawBurn

func (*UnimplementedMsgServer) WithdrawBurnUndelegate

Jump to

Keyboard shortcuts

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