Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func DefaultGenesis() *stakingtypes.GenesisState
- func GetVeDelegationKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetVeDelegationsKey(delAddr sdk.AccAddress) []byte
- func GetVeREDKey(delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress) []byte
- func GetVeREDsKey(delAddr sdk.AccAddress) []byte
- func GetVeTokensKey(veID uint64) []byte
- func GetVeUBDKey(delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte
- func GetVeUBDsKey(delAddr sdk.AccAddress) []byte
- func GetVeValidatorKey(operatorAddr sdk.ValAddress) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type MsgClient
- type MsgServer
- type MsgVeDelegate
- func (*MsgVeDelegate) Descriptor() ([]byte, []int)
- func (m MsgVeDelegate) GetSignBytes() []byte
- func (m MsgVeDelegate) GetSigners() []sdk.AccAddress
- func (m *MsgVeDelegate) Marshal() (dAtA []byte, err error)
- func (m *MsgVeDelegate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVeDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVeDelegate) ProtoMessage()
- func (m *MsgVeDelegate) Reset()
- func (m MsgVeDelegate) Route() string
- func (m *MsgVeDelegate) Size() (n int)
- func (m *MsgVeDelegate) String() string
- func (m MsgVeDelegate) Type() string
- func (m *MsgVeDelegate) Unmarshal(dAtA []byte) error
- func (m MsgVeDelegate) ValidateBasic() error
- func (m *MsgVeDelegate) XXX_DiscardUnknown()
- func (m *MsgVeDelegate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVeDelegate) XXX_Merge(src proto.Message)
- func (m *MsgVeDelegate) XXX_Size() int
- func (m *MsgVeDelegate) XXX_Unmarshal(b []byte) error
- type MsgVeDelegateResponse
- func (*MsgVeDelegateResponse) Descriptor() ([]byte, []int)
- func (m *MsgVeDelegateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVeDelegateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVeDelegateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVeDelegateResponse) ProtoMessage()
- func (m *MsgVeDelegateResponse) Reset()
- func (m *MsgVeDelegateResponse) Size() (n int)
- func (m *MsgVeDelegateResponse) String() string
- func (m *MsgVeDelegateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVeDelegateResponse) XXX_DiscardUnknown()
- func (m *MsgVeDelegateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVeDelegateResponse) XXX_Merge(src proto.Message)
- func (m *MsgVeDelegateResponse) XXX_Size() int
- func (m *MsgVeDelegateResponse) XXX_Unmarshal(b []byte) error
- type NftKeeper
- type UnimplementedMsgServer
- type VeDelegation
- func (*VeDelegation) Descriptor() ([]byte, []int)
- func (m *VeDelegation) GetSharesByVeID(veID uint64) (VeShares, bool)
- func (m *VeDelegation) Marshal() (dAtA []byte, err error)
- func (m *VeDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *VeDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeDelegation) ProtoMessage()
- func (m *VeDelegation) RemoveSharesByIndex(i int)
- func (m *VeDelegation) Reset()
- func (m *VeDelegation) SetSharesByVeID(veShares VeShares) (new bool)
- func (m *VeDelegation) Shares() sdk.Dec
- func (m *VeDelegation) Size() (n int)
- func (m *VeDelegation) String() string
- func (m *VeDelegation) Tokens() sdk.Int
- func (m *VeDelegation) Unmarshal(dAtA []byte) error
- func (m *VeDelegation) XXX_DiscardUnknown()
- func (m *VeDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeDelegation) XXX_Merge(src proto.Message)
- func (m *VeDelegation) XXX_Size() int
- func (m *VeDelegation) XXX_Unmarshal(b []byte) error
- type VeKeeper
- type VeRedelegation
- func (red *VeRedelegation) AddEntry(veTokens VeTokensSlice, totalAmt sdk.Int, totalShares sdk.Dec)
- func (*VeRedelegation) Descriptor() ([]byte, []int)
- func (m *VeRedelegation) Marshal() (dAtA []byte, err error)
- func (m *VeRedelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *VeRedelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeRedelegation) ProtoMessage()
- func (red *VeRedelegation) RemoveEntry(i int)
- func (m *VeRedelegation) Reset()
- func (m *VeRedelegation) Size() (n int)
- func (m *VeRedelegation) String() string
- func (m *VeRedelegation) Unmarshal(dAtA []byte) error
- func (m *VeRedelegation) XXX_DiscardUnknown()
- func (m *VeRedelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeRedelegation) XXX_Merge(src proto.Message)
- func (m *VeRedelegation) XXX_Size() int
- func (m *VeRedelegation) XXX_Unmarshal(b []byte) error
- type VeRedelegationEntry
- func (*VeRedelegationEntry) Descriptor() ([]byte, []int)
- func (entry *VeRedelegationEntry) InitialBalance() sdk.Int
- func (m *VeRedelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *VeRedelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *VeRedelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeRedelegationEntry) ProtoMessage()
- func (m *VeRedelegationEntry) Reset()
- func (m *VeRedelegationEntry) Size() (n int)
- func (m *VeRedelegationEntry) String() string
- func (m *VeRedelegationEntry) Unmarshal(dAtA []byte) error
- func (m *VeRedelegationEntry) XXX_DiscardUnknown()
- func (m *VeRedelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeRedelegationEntry) XXX_Merge(src proto.Message)
- func (m *VeRedelegationEntry) XXX_Size() int
- func (m *VeRedelegationEntry) XXX_Unmarshal(b []byte) error
- type VeRedelegationEntryShares
- func (*VeRedelegationEntryShares) Descriptor() ([]byte, []int)
- func (m *VeRedelegationEntryShares) Marshal() (dAtA []byte, err error)
- func (m *VeRedelegationEntryShares) MarshalTo(dAtA []byte) (int, error)
- func (m *VeRedelegationEntryShares) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeRedelegationEntryShares) ProtoMessage()
- func (m *VeRedelegationEntryShares) Reset()
- func (m *VeRedelegationEntryShares) Size() (n int)
- func (m *VeRedelegationEntryShares) String() string
- func (m *VeRedelegationEntryShares) Unmarshal(dAtA []byte) error
- func (m *VeRedelegationEntryShares) XXX_DiscardUnknown()
- func (m *VeRedelegationEntryShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeRedelegationEntryShares) XXX_Merge(src proto.Message)
- func (m *VeRedelegationEntryShares) XXX_Size() int
- func (m *VeRedelegationEntryShares) XXX_Unmarshal(b []byte) error
- type VeShares
- func (m *VeShares) AddTokensAndShares(tokens sdk.Int, shares sdk.Dec)
- func (*VeShares) Descriptor() ([]byte, []int)
- func (m *VeShares) Marshal() (dAtA []byte, err error)
- func (m *VeShares) MarshalTo(dAtA []byte) (int, error)
- func (m *VeShares) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeShares) ProtoMessage()
- func (m *VeShares) Reset()
- func (m *VeShares) Size() (n int)
- func (m *VeShares) String() string
- func (m *VeShares) Tokens() sdk.Int
- func (m *VeShares) Unmarshal(dAtA []byte) error
- func (m *VeShares) XXX_DiscardUnknown()
- func (m *VeShares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeShares) XXX_Merge(src proto.Message)
- func (m *VeShares) XXX_Size() int
- func (m *VeShares) XXX_Unmarshal(b []byte) error
- type VeTokens
- func (*VeTokens) Descriptor() ([]byte, []int)
- func (m *VeTokens) Marshal() (dAtA []byte, err error)
- func (m *VeTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *VeTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeTokens) ProtoMessage()
- func (m *VeTokens) Reset()
- func (m *VeTokens) Size() (n int)
- func (m *VeTokens) String() string
- func (m *VeTokens) Unmarshal(dAtA []byte) error
- func (m *VeTokens) XXX_DiscardUnknown()
- func (m *VeTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeTokens) XXX_Merge(src proto.Message)
- func (m *VeTokens) XXX_Size() int
- func (m *VeTokens) XXX_Unmarshal(b []byte) error
- type VeTokensSlice
- type VeUnbondingDelegation
- func (ubd *VeUnbondingDelegation) AddEntry(veTokens VeTokensSlice)
- func (*VeUnbondingDelegation) Descriptor() ([]byte, []int)
- func (m *VeUnbondingDelegation) Marshal() (dAtA []byte, err error)
- func (m *VeUnbondingDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *VeUnbondingDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeUnbondingDelegation) ProtoMessage()
- func (ubd *VeUnbondingDelegation) RemoveEntry(i int)
- func (m *VeUnbondingDelegation) Reset()
- func (m *VeUnbondingDelegation) Size() (n int)
- func (m *VeUnbondingDelegation) String() string
- func (m *VeUnbondingDelegation) Unmarshal(dAtA []byte) error
- func (m *VeUnbondingDelegation) XXX_DiscardUnknown()
- func (m *VeUnbondingDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeUnbondingDelegation) XXX_Merge(src proto.Message)
- func (m *VeUnbondingDelegation) XXX_Size() int
- func (m *VeUnbondingDelegation) XXX_Unmarshal(b []byte) error
- type VeUnbondingDelegationEntry
- func (entry *VeUnbondingDelegationEntry) Balance() sdk.Int
- func (*VeUnbondingDelegationEntry) Descriptor() ([]byte, []int)
- func (m *VeUnbondingDelegationEntry) Marshal() (dAtA []byte, err error)
- func (m *VeUnbondingDelegationEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *VeUnbondingDelegationEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeUnbondingDelegationEntry) ProtoMessage()
- func (m *VeUnbondingDelegationEntry) Reset()
- func (m *VeUnbondingDelegationEntry) Size() (n int)
- func (entry *VeUnbondingDelegationEntry) Slash(totalSlashAmt, totalBalance sdk.Int, veBurnedAmounts map[uint64]sdk.Int) (sdk.Int, map[uint64]sdk.Int)
- func (m *VeUnbondingDelegationEntry) String() string
- func (m *VeUnbondingDelegationEntry) Unmarshal(dAtA []byte) error
- func (m *VeUnbondingDelegationEntry) XXX_DiscardUnknown()
- func (m *VeUnbondingDelegationEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeUnbondingDelegationEntry) XXX_Merge(src proto.Message)
- func (m *VeUnbondingDelegationEntry) XXX_Size() int
- func (m *VeUnbondingDelegationEntry) XXX_Unmarshal(b []byte) error
- type VeUnbondingDelegationEntryBalances
- func (*VeUnbondingDelegationEntryBalances) Descriptor() ([]byte, []int)
- func (m *VeUnbondingDelegationEntryBalances) Marshal() (dAtA []byte, err error)
- func (m *VeUnbondingDelegationEntryBalances) MarshalTo(dAtA []byte) (int, error)
- func (m *VeUnbondingDelegationEntryBalances) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeUnbondingDelegationEntryBalances) ProtoMessage()
- func (m *VeUnbondingDelegationEntryBalances) Reset()
- func (m *VeUnbondingDelegationEntryBalances) Size() (n int)
- func (m *VeUnbondingDelegationEntryBalances) String() string
- func (m *VeUnbondingDelegationEntryBalances) Unmarshal(dAtA []byte) error
- func (m *VeUnbondingDelegationEntryBalances) XXX_DiscardUnknown()
- func (m *VeUnbondingDelegationEntryBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeUnbondingDelegationEntryBalances) XXX_Merge(src proto.Message)
- func (m *VeUnbondingDelegationEntryBalances) XXX_Size() int
- func (m *VeUnbondingDelegationEntryBalances) XXX_Unmarshal(b []byte) error
- type VeValidator
- func (*VeValidator) Descriptor() ([]byte, []int)
- func (m *VeValidator) Marshal() (dAtA []byte, err error)
- func (m *VeValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *VeValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VeValidator) ProtoMessage()
- func (m *VeValidator) Reset()
- func (m *VeValidator) Size() (n int)
- func (m *VeValidator) String() string
- func (m *VeValidator) Unmarshal(dAtA []byte) error
- func (m *VeValidator) XXX_DiscardUnknown()
- func (m *VeValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VeValidator) XXX_Merge(src proto.Message)
- func (m *VeValidator) XXX_Size() int
- func (m *VeValidator) XXX_Unmarshal(b []byte) error
Constants ¶
const (
EventTypeVeDelegate = "ve_delegate"
)
const (
TypeMsgVeDelegate = "ve_delegate"
)
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( VeValidatorsKey = []byte{0xA1} VeDelegationKey = []byte{0xA2} VeUnbondingDelegationKey = []byte{0xA3} VeRedelegationKey = []byte{0xA4} VeTokensKey = []byte{0xA5} )
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 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 ¶
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶
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 ¶
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 ¶
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) 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 UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) VeDelegate ¶
func (*UnimplementedMsgServer) VeDelegate(ctx context.Context, req *MsgVeDelegate) (*MsgVeDelegateResponse, error)
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"` }
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) 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 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) 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 {
}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 {}
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 {}
func (*VeShares) AddTokensAndShares ¶
func (*VeShares) Descriptor ¶
func (*VeShares) MarshalToSizedBuffer ¶
func (*VeShares) ProtoMessage ¶
func (*VeShares) ProtoMessage()
func (*VeShares) XXX_DiscardUnknown ¶
func (m *VeShares) XXX_DiscardUnknown()
func (*VeShares) XXX_Marshal ¶
func (*VeShares) XXX_Unmarshal ¶
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) MarshalToSizedBuffer ¶
func (*VeTokens) ProtoMessage ¶
func (*VeTokens) ProtoMessage()
func (*VeTokens) XXX_DiscardUnknown ¶
func (m *VeTokens) XXX_DiscardUnknown()
func (*VeTokens) XXX_Marshal ¶
func (*VeTokens) XXX_Unmarshal ¶
type VeTokensSlice ¶
type VeTokensSlice []VeTokens
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 (m *VeUnbondingDelegationEntryBalances) Reset()
func (*VeUnbondingDelegationEntryBalances) Size ¶
func (m *VeUnbondingDelegationEntryBalances) Size() (n int)
func (*VeUnbondingDelegationEntryBalances) String ¶
func (m *VeUnbondingDelegationEntryBalances) String() 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 (m *VeUnbondingDelegationEntryBalances) XXX_Merge(src proto.Message)
func (*VeUnbondingDelegationEntryBalances) XXX_Size ¶
func (m *VeUnbondingDelegationEntryBalances) XXX_Size() int
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"` }
func (*VeValidator) Descriptor ¶
func (*VeValidator) Descriptor() ([]byte, []int)
func (*VeValidator) Marshal ¶
func (m *VeValidator) Marshal() (dAtA []byte, err 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