types

package
v0.0.0-...-039593e Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeVeDelegate = "ve_delegate"
)
View Source
const (
	TypeMsgVeDelegate = "ve_delegate"
)

Variables

View Source
var (
	VeValidatorsKey          = []byte{0xA1}
	VeDelegationKey          = []byte{0xA2}
	VeUnbondingDelegationKey = []byte{0xA3}
	VeRedelegationKey        = []byte{0xA4}
	VeTokensKey              = []byte{0xA5}
)
View Source
var (
	ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStaking = 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")
)

Functions

func DefaultGenesis

func DefaultGenesis() *stakingtypes.GenesisState

DefaultGenesis gets the raw genesis raw message for testing

func GetVeDelegationKey

func GetVeDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

func GetVeDelegationsKey

func GetVeDelegationsKey(delAddr sdk.AccAddress) []byte

func GetVeREDKey

func GetVeREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte

func GetVeREDsKey

func GetVeREDsKey(delAddr sdk.AccAddress) []byte

func GetVeTokensKey

func GetVeTokensKey(veID uint64) []byte

func GetVeUBDKey

func GetVeUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

func GetVeUBDsKey

func GetVeUBDsKey(delAddr sdk.AccAddress) []byte

func GetVeValidatorKey

func GetVeValidatorKey(operatorAddr sdk.ValAddress) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

Types

type MsgClient

type MsgClient interface {
	// VeDelegate defines a method for performing a delegation of ve-locked coins
	// from a delegator to a validator.
	VeDelegate(ctx context.Context, in *MsgVeDelegate, opts ...grpc.CallOption) (*MsgVeDelegateResponse, 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 MsgServer

type MsgServer interface {
	// VeDelegate defines a method for performing a delegation of ve-locked coins
	// from a delegator to a validator.
	VeDelegate(context.Context, *MsgVeDelegate) (*MsgVeDelegateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgVeDelegate

type MsgVeDelegate struct {
	DelegatorAddress string     `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address"`
	ValidatorAddress string     `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address"`
	VeId             string     `protobuf:"bytes,3,opt,name=ve_id,json=veId,proto3" json:"ve_id"`
	Amount           types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

func (*MsgVeDelegate) Descriptor

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

func (MsgVeDelegate) GetSignBytes

func (m MsgVeDelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgVeDelegate) GetSigners

func (m MsgVeDelegate) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgVeDelegate) Marshal

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

func (*MsgVeDelegate) MarshalTo

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

func (*MsgVeDelegate) MarshalToSizedBuffer

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

func (*MsgVeDelegate) ProtoMessage

func (*MsgVeDelegate) ProtoMessage()

func (*MsgVeDelegate) Reset

func (m *MsgVeDelegate) Reset()

func (MsgVeDelegate) Route

func (m MsgVeDelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgVeDelegate) Size

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

func (*MsgVeDelegate) String

func (m *MsgVeDelegate) String() string

func (MsgVeDelegate) Type

func (m MsgVeDelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgVeDelegate) Unmarshal

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

func (MsgVeDelegate) ValidateBasic

func (m MsgVeDelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgVeDelegate) XXX_DiscardUnknown

func (m *MsgVeDelegate) XXX_DiscardUnknown()

func (*MsgVeDelegate) XXX_Marshal

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

func (*MsgVeDelegate) XXX_Merge

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

func (*MsgVeDelegate) XXX_Size

func (m *MsgVeDelegate) XXX_Size() int

func (*MsgVeDelegate) XXX_Unmarshal

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

type MsgVeDelegateResponse

type MsgVeDelegateResponse struct {
}

func (*MsgVeDelegateResponse) Descriptor

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

func (*MsgVeDelegateResponse) Marshal

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

func (*MsgVeDelegateResponse) MarshalTo

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

func (*MsgVeDelegateResponse) MarshalToSizedBuffer

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

func (*MsgVeDelegateResponse) ProtoMessage

func (*MsgVeDelegateResponse) ProtoMessage()

func (*MsgVeDelegateResponse) Reset

func (m *MsgVeDelegateResponse) Reset()

func (*MsgVeDelegateResponse) Size

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

func (*MsgVeDelegateResponse) String

func (m *MsgVeDelegateResponse) String() string

func (*MsgVeDelegateResponse) Unmarshal

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

func (*MsgVeDelegateResponse) XXX_DiscardUnknown

func (m *MsgVeDelegateResponse) XXX_DiscardUnknown()

func (*MsgVeDelegateResponse) XXX_Marshal

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

func (*MsgVeDelegateResponse) XXX_Merge

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

func (*MsgVeDelegateResponse) XXX_Size

func (m *MsgVeDelegateResponse) XXX_Size() int

func (*MsgVeDelegateResponse) XXX_Unmarshal

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

type NftKeeper

type NftKeeper interface {
	GetOwner(ctx sdk.Context, classID string, nftID string) sdk.AccAddress
}

NftKeeper defines the expected interface needed to query NFT tokens.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) VeDelegate

type VeDelegation

type VeDelegation struct {
	DelegatorAddress string     `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string     `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	VeShares         []VeShares `protobuf:"bytes,3,rep,name=ve_shares,json=veShares,proto3" json:"ve_shares"`
}

func (*VeDelegation) Descriptor

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

func (*VeDelegation) GetSharesByVeID

func (m *VeDelegation) GetSharesByVeID(veID uint64) (VeShares, bool)

func (*VeDelegation) Marshal

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

func (*VeDelegation) MarshalTo

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

func (*VeDelegation) MarshalToSizedBuffer

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

func (*VeDelegation) ProtoMessage

func (*VeDelegation) ProtoMessage()

func (*VeDelegation) RemoveSharesByIndex

func (m *VeDelegation) RemoveSharesByIndex(i int)

func (*VeDelegation) Reset

func (m *VeDelegation) Reset()

func (*VeDelegation) SetSharesByVeID

func (m *VeDelegation) SetSharesByVeID(veShares VeShares) (new bool)

func (*VeDelegation) Shares

func (m *VeDelegation) Shares() sdk.Dec

func (*VeDelegation) Size

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

func (*VeDelegation) String

func (m *VeDelegation) String() string

func (*VeDelegation) Tokens

func (m *VeDelegation) Tokens() sdk.Int

func (*VeDelegation) Unmarshal

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

func (*VeDelegation) XXX_DiscardUnknown

func (m *VeDelegation) XXX_DiscardUnknown()

func (*VeDelegation) XXX_Marshal

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

func (*VeDelegation) XXX_Merge

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

func (*VeDelegation) XXX_Size

func (m *VeDelegation) XXX_Size() int

func (*VeDelegation) XXX_Unmarshal

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

type VeKeeper

type VeKeeper interface {
	LockDenom(ctx sdk.Context) string
	GetLockedAmountByUser(ctx sdk.Context, veID uint64) vetypes.LockedBalance
	SlashLockedAmountByUser(ctx sdk.Context, veID uint64, amount sdk.Int)
	SetGetDelegatedAmountByUser(getDelegatedAmount func(ctx sdk.Context, veID uint64) sdk.Int)
}

type VeRedelegation

type VeRedelegation struct {
	DelegatorAddress    string                `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string                `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string                `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	Entries             []VeRedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"`
}

func NewVeRedelegation

func NewVeRedelegation(delAddr sdk.AccAddress, valSrcAddr sdk.ValAddress, valDstAddr sdk.ValAddress) VeRedelegation

func (*VeRedelegation) AddEntry

func (red *VeRedelegation) AddEntry(veTokens VeTokensSlice, totalAmt sdk.Int, totalShares sdk.Dec)

func (*VeRedelegation) Descriptor

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

func (*VeRedelegation) Marshal

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

func (*VeRedelegation) MarshalTo

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

func (*VeRedelegation) MarshalToSizedBuffer

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

func (*VeRedelegation) ProtoMessage

func (*VeRedelegation) ProtoMessage()

func (*VeRedelegation) RemoveEntry

func (red *VeRedelegation) RemoveEntry(i int)

func (*VeRedelegation) Reset

func (m *VeRedelegation) Reset()

func (*VeRedelegation) Size

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

func (*VeRedelegation) String

func (m *VeRedelegation) String() string

func (*VeRedelegation) Unmarshal

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

func (*VeRedelegation) XXX_DiscardUnknown

func (m *VeRedelegation) XXX_DiscardUnknown()

func (*VeRedelegation) XXX_Marshal

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

func (*VeRedelegation) XXX_Merge

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

func (*VeRedelegation) XXX_Size

func (m *VeRedelegation) XXX_Size() int

func (*VeRedelegation) XXX_Unmarshal

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

type VeRedelegationEntry

type VeRedelegationEntry struct {
	VeShares []VeRedelegationEntryShares `protobuf:"bytes,1,rep,name=ve_shares,json=veShares,proto3" json:"ve_shares"`
}

func (*VeRedelegationEntry) Descriptor

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

func (*VeRedelegationEntry) InitialBalance

func (entry *VeRedelegationEntry) InitialBalance() sdk.Int

func (*VeRedelegationEntry) Marshal

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

func (*VeRedelegationEntry) MarshalTo

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

func (*VeRedelegationEntry) MarshalToSizedBuffer

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

func (*VeRedelegationEntry) ProtoMessage

func (*VeRedelegationEntry) ProtoMessage()

func (*VeRedelegationEntry) Reset

func (m *VeRedelegationEntry) Reset()

func (*VeRedelegationEntry) Size

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

func (*VeRedelegationEntry) String

func (m *VeRedelegationEntry) String() string

func (*VeRedelegationEntry) Unmarshal

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

func (*VeRedelegationEntry) XXX_DiscardUnknown

func (m *VeRedelegationEntry) XXX_DiscardUnknown()

func (*VeRedelegationEntry) XXX_Marshal

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

func (*VeRedelegationEntry) XXX_Merge

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

func (*VeRedelegationEntry) XXX_Size

func (m *VeRedelegationEntry) XXX_Size() int

func (*VeRedelegationEntry) XXX_Unmarshal

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

type VeRedelegationEntryShares

type VeRedelegationEntryShares struct {
	VeId           uint64                                 `protobuf:"varint,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	SharesDst      github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
}

func (*VeRedelegationEntryShares) Descriptor

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

func (*VeRedelegationEntryShares) Marshal

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

func (*VeRedelegationEntryShares) MarshalTo

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

func (*VeRedelegationEntryShares) MarshalToSizedBuffer

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

func (*VeRedelegationEntryShares) ProtoMessage

func (*VeRedelegationEntryShares) ProtoMessage()

func (*VeRedelegationEntryShares) Reset

func (m *VeRedelegationEntryShares) Reset()

func (*VeRedelegationEntryShares) Size

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

func (*VeRedelegationEntryShares) String

func (m *VeRedelegationEntryShares) String() string

func (*VeRedelegationEntryShares) Unmarshal

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

func (*VeRedelegationEntryShares) XXX_DiscardUnknown

func (m *VeRedelegationEntryShares) XXX_DiscardUnknown()

func (*VeRedelegationEntryShares) XXX_Marshal

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

func (*VeRedelegationEntryShares) XXX_Merge

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

func (*VeRedelegationEntryShares) XXX_Size

func (m *VeRedelegationEntryShares) XXX_Size() int

func (*VeRedelegationEntryShares) XXX_Unmarshal

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

type VeShares

type VeShares struct {
	VeId               uint64                                 `protobuf:"varint,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	TokensMayUnsettled github_com_cosmos_cosmos_sdk_types.Int `` /* 157-byte string literal not displayed */
	Shares             github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"`
}

func (*VeShares) AddTokensAndShares

func (m *VeShares) AddTokensAndShares(tokens sdk.Int, shares sdk.Dec)

func (*VeShares) Descriptor

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

func (*VeShares) Marshal

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

func (*VeShares) MarshalTo

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

func (*VeShares) MarshalToSizedBuffer

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

func (*VeShares) ProtoMessage

func (*VeShares) ProtoMessage()

func (*VeShares) Reset

func (m *VeShares) Reset()

func (*VeShares) Size

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

func (*VeShares) String

func (m *VeShares) String() string

func (*VeShares) Tokens

func (m *VeShares) Tokens() sdk.Int

func (*VeShares) Unmarshal

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

func (*VeShares) XXX_DiscardUnknown

func (m *VeShares) XXX_DiscardUnknown()

func (*VeShares) XXX_Marshal

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

func (*VeShares) XXX_Merge

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

func (*VeShares) XXX_Size

func (m *VeShares) XXX_Size() int

func (*VeShares) XXX_Unmarshal

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

type VeTokens

type VeTokens struct {
	VeId   uint64                                 `protobuf:"varint,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"`
}

func (*VeTokens) Descriptor

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

func (*VeTokens) Marshal

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

func (*VeTokens) MarshalTo

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

func (*VeTokens) MarshalToSizedBuffer

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

func (*VeTokens) ProtoMessage

func (*VeTokens) ProtoMessage()

func (*VeTokens) Reset

func (m *VeTokens) Reset()

func (*VeTokens) Size

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

func (*VeTokens) String

func (m *VeTokens) String() string

func (*VeTokens) Unmarshal

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

func (*VeTokens) XXX_DiscardUnknown

func (m *VeTokens) XXX_DiscardUnknown()

func (*VeTokens) XXX_Marshal

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

func (*VeTokens) XXX_Merge

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

func (*VeTokens) XXX_Size

func (m *VeTokens) XXX_Size() int

func (*VeTokens) XXX_Unmarshal

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

type VeTokensSlice

type VeTokensSlice []VeTokens

func (VeTokensSlice) AddToMap

func (s VeTokensSlice) AddToMap(veAmounts map[uint64]sdk.Int) map[uint64]sdk.Int

func (VeTokensSlice) Tokens

func (s VeTokensSlice) Tokens() sdk.Int

type VeUnbondingDelegation

type VeUnbondingDelegation struct {
	DelegatorAddress string                       `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string                       `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Entries          []VeUnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries"`
}

func NewVeUnbondingDelegation

func NewVeUnbondingDelegation(
	delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress,
) VeUnbondingDelegation

func (*VeUnbondingDelegation) AddEntry

func (ubd *VeUnbondingDelegation) AddEntry(veTokens VeTokensSlice)

func (*VeUnbondingDelegation) Descriptor

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

func (*VeUnbondingDelegation) Marshal

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

func (*VeUnbondingDelegation) MarshalTo

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

func (*VeUnbondingDelegation) MarshalToSizedBuffer

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

func (*VeUnbondingDelegation) ProtoMessage

func (*VeUnbondingDelegation) ProtoMessage()

func (*VeUnbondingDelegation) RemoveEntry

func (ubd *VeUnbondingDelegation) RemoveEntry(i int)

func (*VeUnbondingDelegation) Reset

func (m *VeUnbondingDelegation) Reset()

func (*VeUnbondingDelegation) Size

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

func (*VeUnbondingDelegation) String

func (m *VeUnbondingDelegation) String() string

func (*VeUnbondingDelegation) Unmarshal

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

func (*VeUnbondingDelegation) XXX_DiscardUnknown

func (m *VeUnbondingDelegation) XXX_DiscardUnknown()

func (*VeUnbondingDelegation) XXX_Marshal

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

func (*VeUnbondingDelegation) XXX_Merge

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

func (*VeUnbondingDelegation) XXX_Size

func (m *VeUnbondingDelegation) XXX_Size() int

func (*VeUnbondingDelegation) XXX_Unmarshal

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

type VeUnbondingDelegationEntry

type VeUnbondingDelegationEntry struct {
	VeBalances []VeUnbondingDelegationEntryBalances `protobuf:"bytes,1,rep,name=ve_balances,json=veBalances,proto3" json:"ve_balances"`
}

func (*VeUnbondingDelegationEntry) Balance

func (entry *VeUnbondingDelegationEntry) Balance() sdk.Int

func (*VeUnbondingDelegationEntry) Descriptor

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

func (*VeUnbondingDelegationEntry) Marshal

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

func (*VeUnbondingDelegationEntry) MarshalTo

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

func (*VeUnbondingDelegationEntry) MarshalToSizedBuffer

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

func (*VeUnbondingDelegationEntry) ProtoMessage

func (*VeUnbondingDelegationEntry) ProtoMessage()

func (*VeUnbondingDelegationEntry) Reset

func (m *VeUnbondingDelegationEntry) Reset()

func (*VeUnbondingDelegationEntry) Size

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

func (*VeUnbondingDelegationEntry) Slash

func (entry *VeUnbondingDelegationEntry) Slash(totalSlashAmt, totalBalance sdk.Int, veBurnedAmounts map[uint64]sdk.Int) (sdk.Int, map[uint64]sdk.Int)

CONTRACT: 0 < totalSlashAmt <= totalBalance

func (*VeUnbondingDelegationEntry) String

func (m *VeUnbondingDelegationEntry) String() string

func (*VeUnbondingDelegationEntry) Unmarshal

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

func (*VeUnbondingDelegationEntry) XXX_DiscardUnknown

func (m *VeUnbondingDelegationEntry) XXX_DiscardUnknown()

func (*VeUnbondingDelegationEntry) XXX_Marshal

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

func (*VeUnbondingDelegationEntry) XXX_Merge

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

func (*VeUnbondingDelegationEntry) XXX_Size

func (m *VeUnbondingDelegationEntry) XXX_Size() int

func (*VeUnbondingDelegationEntry) XXX_Unmarshal

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

type VeUnbondingDelegationEntryBalances

type VeUnbondingDelegationEntryBalances struct {
	VeId           uint64                                 `protobuf:"varint,1,opt,name=ve_id,json=veId,proto3" json:"ve_id,omitempty"`
	InitialBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	Balance        github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"`
}

func (*VeUnbondingDelegationEntryBalances) Descriptor

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

func (*VeUnbondingDelegationEntryBalances) Marshal

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

func (*VeUnbondingDelegationEntryBalances) MarshalTo

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

func (*VeUnbondingDelegationEntryBalances) MarshalToSizedBuffer

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

func (*VeUnbondingDelegationEntryBalances) ProtoMessage

func (*VeUnbondingDelegationEntryBalances) ProtoMessage()

func (*VeUnbondingDelegationEntryBalances) Reset

func (*VeUnbondingDelegationEntryBalances) Size

func (*VeUnbondingDelegationEntryBalances) String

func (*VeUnbondingDelegationEntryBalances) Unmarshal

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

func (*VeUnbondingDelegationEntryBalances) XXX_DiscardUnknown

func (m *VeUnbondingDelegationEntryBalances) XXX_DiscardUnknown()

func (*VeUnbondingDelegationEntryBalances) XXX_Marshal

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

func (*VeUnbondingDelegationEntryBalances) XXX_Merge

func (*VeUnbondingDelegationEntryBalances) XXX_Size

func (*VeUnbondingDelegationEntryBalances) XXX_Unmarshal

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

type VeValidator

type VeValidator struct {
	OperatorAddress   string                                 `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	VeDelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */
}

func (*VeValidator) Descriptor

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

func (*VeValidator) Marshal

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

func (*VeValidator) MarshalTo

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

func (*VeValidator) MarshalToSizedBuffer

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

func (*VeValidator) ProtoMessage

func (*VeValidator) ProtoMessage()

func (*VeValidator) Reset

func (m *VeValidator) Reset()

func (*VeValidator) Size

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

func (*VeValidator) String

func (m *VeValidator) String() string

func (*VeValidator) Unmarshal

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

func (*VeValidator) XXX_DiscardUnknown

func (m *VeValidator) XXX_DiscardUnknown()

func (*VeValidator) XXX_Marshal

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

func (*VeValidator) XXX_Merge

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

func (*VeValidator) XXX_Size

func (m *VeValidator) XXX_Size() int

func (*VeValidator) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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