Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetBurnCoinsQueueTimeKey(timestamp time.Time) []byte
- func GetVestedRepresentationDenom(denom string) (string, error)
- func IsVestedRepresentationDenom(denom string) bool
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func VestedDenomToNative(denom string) (string, error)
- type AccountKeeper
- type BankKeeper
- type BurnCoins
- func (*BurnCoins) Descriptor() ([]byte, []int)
- func (m *BurnCoins) Marshal() (dAtA []byte, err error)
- func (m *BurnCoins) MarshalTo(dAtA []byte) (int, error)
- func (m *BurnCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BurnCoins) ProtoMessage()
- func (m *BurnCoins) Reset()
- func (m *BurnCoins) Size() (n int)
- func (m *BurnCoins) String() string
- func (m *BurnCoins) Unmarshal(dAtA []byte) error
- func (bc BurnCoins) Validate() error
- func (m *BurnCoins) XXX_DiscardUnknown()
- func (m *BurnCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurnCoins) XXX_Merge(src proto.Message)
- func (m *BurnCoins) XXX_Size() int
- func (m *BurnCoins) XXX_Unmarshal(b []byte) error
- type BurnCoinsList
- func (*BurnCoinsList) Descriptor() ([]byte, []int)
- func (m *BurnCoinsList) GetData() []BurnCoins
- func (m *BurnCoinsList) Marshal() (dAtA []byte, err error)
- func (m *BurnCoinsList) MarshalTo(dAtA []byte) (int, error)
- func (m *BurnCoinsList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BurnCoinsList) ProtoMessage()
- func (m *BurnCoinsList) Reset()
- func (m *BurnCoinsList) Size() (n int)
- func (m *BurnCoinsList) String() string
- func (m *BurnCoinsList) Unmarshal(dAtA []byte) error
- func (m *BurnCoinsList) XXX_DiscardUnknown()
- func (m *BurnCoinsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurnCoinsList) XXX_Merge(src proto.Message)
- func (m *BurnCoinsList) XXX_Size() int
- func (m *BurnCoinsList) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBurnCoins() []BurnCoins
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetUserInsuranceFunds() []UserInsuranceFundState
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (g *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type InsuranceDeposit
- type MsgBurnVestedRepresentation
- func (*MsgBurnVestedRepresentation) Descriptor() ([]byte, []int)
- func (m *MsgBurnVestedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgBurnVestedRepresentation) GetSender() string
- func (m *MsgBurnVestedRepresentation) GetUser() string
- func (m *MsgBurnVestedRepresentation) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnVestedRepresentation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnVestedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnVestedRepresentation) ProtoMessage()
- func (m *MsgBurnVestedRepresentation) Reset()
- func (m *MsgBurnVestedRepresentation) Size() (n int)
- func (m *MsgBurnVestedRepresentation) String() string
- func (m *MsgBurnVestedRepresentation) Unmarshal(dAtA []byte) error
- func (msg *MsgBurnVestedRepresentation) ValidateBasic() error
- func (m *MsgBurnVestedRepresentation) XXX_DiscardUnknown()
- func (m *MsgBurnVestedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnVestedRepresentation) XXX_Merge(src proto.Message)
- func (m *MsgBurnVestedRepresentation) XXX_Size() int
- func (m *MsgBurnVestedRepresentation) XXX_Unmarshal(b []byte) error
- type MsgBurnVestedRepresentationResponse
- func (*MsgBurnVestedRepresentationResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnVestedRepresentationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnVestedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnVestedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnVestedRepresentationResponse) ProtoMessage()
- func (m *MsgBurnVestedRepresentationResponse) Reset()
- func (m *MsgBurnVestedRepresentationResponse) Size() (n int)
- func (m *MsgBurnVestedRepresentationResponse) String() string
- func (m *MsgBurnVestedRepresentationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnVestedRepresentationResponse) XXX_DiscardUnknown()
- func (m *MsgBurnVestedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnVestedRepresentationResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnVestedRepresentationResponse) XXX_Size() int
- func (m *MsgBurnVestedRepresentationResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDepositInsurance
- type MsgMintVestedRepresentation
- func (*MsgMintVestedRepresentation) Descriptor() ([]byte, []int)
- func (m *MsgMintVestedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgMintVestedRepresentation) GetReceiver() string
- func (m *MsgMintVestedRepresentation) GetSender() string
- func (m *MsgMintVestedRepresentation) Marshal() (dAtA []byte, err error)
- func (m *MsgMintVestedRepresentation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintVestedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintVestedRepresentation) ProtoMessage()
- func (m *MsgMintVestedRepresentation) Reset()
- func (m *MsgMintVestedRepresentation) Size() (n int)
- func (m *MsgMintVestedRepresentation) String() string
- func (m *MsgMintVestedRepresentation) Unmarshal(dAtA []byte) error
- func (msg *MsgMintVestedRepresentation) ValidateBasic() error
- func (m *MsgMintVestedRepresentation) XXX_DiscardUnknown()
- func (m *MsgMintVestedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintVestedRepresentation) XXX_Merge(src proto.Message)
- func (m *MsgMintVestedRepresentation) XXX_Size() int
- func (m *MsgMintVestedRepresentation) XXX_Unmarshal(b []byte) error
- type MsgMintVestedRepresentationResponse
- func (*MsgMintVestedRepresentationResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintVestedRepresentationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintVestedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintVestedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintVestedRepresentationResponse) ProtoMessage()
- func (m *MsgMintVestedRepresentationResponse) Reset()
- func (m *MsgMintVestedRepresentationResponse) Size() (n int)
- func (m *MsgMintVestedRepresentationResponse) String() string
- func (m *MsgMintVestedRepresentationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintVestedRepresentationResponse) XXX_DiscardUnknown()
- func (m *MsgMintVestedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintVestedRepresentationResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintVestedRepresentationResponse) XXX_Size() int
- func (m *MsgMintVestedRepresentationResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawInsuranceFund
- func (*MsgWithdrawInsuranceFund) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawInsuranceFund) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgWithdrawInsuranceFund) GetSender() string
- func (m *MsgWithdrawInsuranceFund) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawInsuranceFund) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawInsuranceFund) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawInsuranceFund) ProtoMessage()
- func (m *MsgWithdrawInsuranceFund) Reset()
- func (m *MsgWithdrawInsuranceFund) Size() (n int)
- func (m *MsgWithdrawInsuranceFund) String() string
- func (m *MsgWithdrawInsuranceFund) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawInsuranceFund) ValidateBasic() error
- func (m *MsgWithdrawInsuranceFund) XXX_DiscardUnknown()
- func (m *MsgWithdrawInsuranceFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawInsuranceFund) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawInsuranceFund) XXX_Size() int
- func (m *MsgWithdrawInsuranceFund) XXX_Unmarshal(b []byte) error
- type MsgWithdrawInsuranceFundResponse
- func (*MsgWithdrawInsuranceFundResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawInsuranceFundResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawInsuranceFundResponse) ProtoMessage()
- func (m *MsgWithdrawInsuranceFundResponse) Reset()
- func (m *MsgWithdrawInsuranceFundResponse) Size() (n int)
- func (m *MsgWithdrawInsuranceFundResponse) String() string
- func (m *MsgWithdrawInsuranceFundResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawInsuranceFundResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawInsuranceFundResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawInsuranceFundResponse) XXX_Size() int
- func (m *MsgWithdrawInsuranceFundResponse) XXX_Unmarshal(b []byte) error
- type OperatorsKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBurners() []string
- func (m *Params) GetMinters() []string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PoolsKeeper
- type QueryClient
- type QueryInsuranceFundRequest
- func (*QueryInsuranceFundRequest) Descriptor() ([]byte, []int)
- func (m *QueryInsuranceFundRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInsuranceFundRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInsuranceFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInsuranceFundRequest) ProtoMessage()
- func (m *QueryInsuranceFundRequest) Reset()
- func (m *QueryInsuranceFundRequest) Size() (n int)
- func (m *QueryInsuranceFundRequest) String() string
- func (m *QueryInsuranceFundRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInsuranceFundRequest) XXX_DiscardUnknown()
- func (m *QueryInsuranceFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInsuranceFundRequest) XXX_Merge(src proto.Message)
- func (m *QueryInsuranceFundRequest) XXX_Size() int
- func (m *QueryInsuranceFundRequest) XXX_Unmarshal(b []byte) error
- type QueryInsuranceFundResponse
- func (*QueryInsuranceFundResponse) Descriptor() ([]byte, []int)
- func (m *QueryInsuranceFundResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryInsuranceFundResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInsuranceFundResponse) ProtoMessage()
- func (m *QueryInsuranceFundResponse) Reset()
- func (m *QueryInsuranceFundResponse) Size() (n int)
- func (m *QueryInsuranceFundResponse) String() string
- func (m *QueryInsuranceFundResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInsuranceFundResponse) XXX_DiscardUnknown()
- func (m *QueryInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInsuranceFundResponse) XXX_Merge(src proto.Message)
- func (m *QueryInsuranceFundResponse) XXX_Size() int
- func (m *QueryInsuranceFundResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryUserInsuranceFundRequest
- func (*QueryUserInsuranceFundRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserInsuranceFundRequest) GetUserAddress() string
- func (m *QueryUserInsuranceFundRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserInsuranceFundRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserInsuranceFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserInsuranceFundRequest) ProtoMessage()
- func (m *QueryUserInsuranceFundRequest) Reset()
- func (m *QueryUserInsuranceFundRequest) Size() (n int)
- func (m *QueryUserInsuranceFundRequest) String() string
- func (m *QueryUserInsuranceFundRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserInsuranceFundRequest) XXX_DiscardUnknown()
- func (m *QueryUserInsuranceFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserInsuranceFundRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserInsuranceFundRequest) XXX_Size() int
- func (m *QueryUserInsuranceFundRequest) XXX_Unmarshal(b []byte) error
- type QueryUserInsuranceFundResponse
- func (*QueryUserInsuranceFundResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserInsuranceFundResponse) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryUserInsuranceFundResponse) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryUserInsuranceFundResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserInsuranceFundResponse) ProtoMessage()
- func (m *QueryUserInsuranceFundResponse) Reset()
- func (m *QueryUserInsuranceFundResponse) Size() (n int)
- func (m *QueryUserInsuranceFundResponse) String() string
- func (m *QueryUserInsuranceFundResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserInsuranceFundResponse) XXX_DiscardUnknown()
- func (m *QueryUserInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserInsuranceFundResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserInsuranceFundResponse) XXX_Size() int
- func (m *QueryUserInsuranceFundResponse) XXX_Unmarshal(b []byte) error
- type QueryUserInsuranceFundsRequest
- func (*QueryUserInsuranceFundsRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserInsuranceFundsRequest) GetPagination() *query.PageRequest
- func (m *QueryUserInsuranceFundsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserInsuranceFundsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserInsuranceFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserInsuranceFundsRequest) ProtoMessage()
- func (m *QueryUserInsuranceFundsRequest) Reset()
- func (m *QueryUserInsuranceFundsRequest) Size() (n int)
- func (m *QueryUserInsuranceFundsRequest) String() string
- func (m *QueryUserInsuranceFundsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserInsuranceFundsRequest) XXX_DiscardUnknown()
- func (m *QueryUserInsuranceFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserInsuranceFundsRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserInsuranceFundsRequest) XXX_Size() int
- func (m *QueryUserInsuranceFundsRequest) XXX_Unmarshal(b []byte) error
- type QueryUserInsuranceFundsResponse
- func (*QueryUserInsuranceFundsResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserInsuranceFundsResponse) GetInsuranceFunds() []UserInsuranceFundData
- func (m *QueryUserInsuranceFundsResponse) GetPagination() *query.PageResponse
- func (m *QueryUserInsuranceFundsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserInsuranceFundsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserInsuranceFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserInsuranceFundsResponse) ProtoMessage()
- func (m *QueryUserInsuranceFundsResponse) Reset()
- func (m *QueryUserInsuranceFundsResponse) Size() (n int)
- func (m *QueryUserInsuranceFundsResponse) String() string
- func (m *QueryUserInsuranceFundsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserInsuranceFundsResponse) XXX_DiscardUnknown()
- func (m *QueryUserInsuranceFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserInsuranceFundsResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserInsuranceFundsResponse) XXX_Size() int
- func (m *QueryUserInsuranceFundsResponse) XXX_Unmarshal(b []byte) error
- type QueryUserRestakableAssetsRequest
- func (*QueryUserRestakableAssetsRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserRestakableAssetsRequest) GetUserAddress() string
- func (m *QueryUserRestakableAssetsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserRestakableAssetsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserRestakableAssetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserRestakableAssetsRequest) ProtoMessage()
- func (m *QueryUserRestakableAssetsRequest) Reset()
- func (m *QueryUserRestakableAssetsRequest) Size() (n int)
- func (m *QueryUserRestakableAssetsRequest) String() string
- func (m *QueryUserRestakableAssetsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserRestakableAssetsRequest) XXX_DiscardUnknown()
- func (m *QueryUserRestakableAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserRestakableAssetsRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserRestakableAssetsRequest) XXX_Size() int
- func (m *QueryUserRestakableAssetsRequest) XXX_Unmarshal(b []byte) error
- type QueryUserRestakableAssetsResponse
- func (*QueryUserRestakableAssetsResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserRestakableAssetsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryUserRestakableAssetsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserRestakableAssetsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserRestakableAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserRestakableAssetsResponse) ProtoMessage()
- func (m *QueryUserRestakableAssetsResponse) Reset()
- func (m *QueryUserRestakableAssetsResponse) Size() (n int)
- func (m *QueryUserRestakableAssetsResponse) String() string
- func (m *QueryUserRestakableAssetsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserRestakableAssetsResponse) XXX_DiscardUnknown()
- func (m *QueryUserRestakableAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserRestakableAssetsResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserRestakableAssetsResponse) XXX_Size() int
- func (m *QueryUserRestakableAssetsResponse) XXX_Unmarshal(b []byte) error
- type RestakingKeeper
- type ServicesKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BurnVestedRepresentation(ctx context.Context, req *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error)
- func (*UnimplementedMsgServer) MintVestedRepresentation(ctx context.Context, req *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) WithdrawInsuranceFund(ctx context.Context, req *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) InsuranceFund(ctx context.Context, req *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) UserInsuranceFund(ctx context.Context, req *QueryUserInsuranceFundRequest) (*QueryUserInsuranceFundResponse, error)
- func (*UnimplementedQueryServer) UserInsuranceFunds(ctx context.Context, req *QueryUserInsuranceFundsRequest) (*QueryUserInsuranceFundsResponse, error)
- func (*UnimplementedQueryServer) UserRestakableAssets(ctx context.Context, req *QueryUserRestakableAssetsRequest) (*QueryUserRestakableAssetsResponse, error)
- type UserInsuranceFund
- func (u *UserInsuranceFund) Add(amount sdk.Coins)
- func (u *UserInsuranceFund) AddUsed(amount ...sdk.Coin)
- func (u *UserInsuranceFund) DecreaseUsed(amount ...sdk.Coin)
- func (*UserInsuranceFund) Descriptor() ([]byte, []int)
- func (m *UserInsuranceFund) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *UserInsuranceFund) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *UserInsuranceFund) Marshal() (dAtA []byte, err error)
- func (m *UserInsuranceFund) MarshalTo(dAtA []byte) (int, error)
- func (m *UserInsuranceFund) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserInsuranceFund) ProtoMessage()
- func (m *UserInsuranceFund) Reset()
- func (m *UserInsuranceFund) Size() (n int)
- func (m *UserInsuranceFund) String() string
- func (m *UserInsuranceFund) Unmarshal(dAtA []byte) error
- func (u *UserInsuranceFund) Unused() sdk.Coins
- func (u *UserInsuranceFund) Validate() error
- func (m *UserInsuranceFund) XXX_DiscardUnknown()
- func (m *UserInsuranceFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInsuranceFund) XXX_Merge(src proto.Message)
- func (m *UserInsuranceFund) XXX_Size() int
- func (m *UserInsuranceFund) XXX_Unmarshal(b []byte) error
- type UserInsuranceFundData
- func (*UserInsuranceFundData) Descriptor() ([]byte, []int)
- func (m *UserInsuranceFundData) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *UserInsuranceFundData) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *UserInsuranceFundData) GetUserAddress() string
- func (m *UserInsuranceFundData) Marshal() (dAtA []byte, err error)
- func (m *UserInsuranceFundData) MarshalTo(dAtA []byte) (int, error)
- func (m *UserInsuranceFundData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserInsuranceFundData) ProtoMessage()
- func (m *UserInsuranceFundData) Reset()
- func (m *UserInsuranceFundData) Size() (n int)
- func (m *UserInsuranceFundData) String() string
- func (m *UserInsuranceFundData) Unmarshal(dAtA []byte) error
- func (m *UserInsuranceFundData) XXX_DiscardUnknown()
- func (m *UserInsuranceFundData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInsuranceFundData) XXX_Merge(src proto.Message)
- func (m *UserInsuranceFundData) XXX_Size() int
- func (m *UserInsuranceFundData) XXX_Unmarshal(b []byte) error
- type UserInsuranceFundState
- func (*UserInsuranceFundState) Descriptor() ([]byte, []int)
- func (m *UserInsuranceFundState) GetInsuranceFund() UserInsuranceFund
- func (m *UserInsuranceFundState) GetUserAddress() string
- func (m *UserInsuranceFundState) Marshal() (dAtA []byte, err error)
- func (m *UserInsuranceFundState) MarshalTo(dAtA []byte) (int, error)
- func (m *UserInsuranceFundState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserInsuranceFundState) ProtoMessage()
- func (m *UserInsuranceFundState) Reset()
- func (m *UserInsuranceFundState) Size() (n int)
- func (m *UserInsuranceFundState) String() string
- func (m *UserInsuranceFundState) Unmarshal(dAtA []byte) error
- func (uif UserInsuranceFundState) Validate() error
- func (m *UserInsuranceFundState) XXX_DiscardUnknown()
- func (m *UserInsuranceFundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInsuranceFundState) XXX_Merge(src proto.Message)
- func (m *UserInsuranceFundState) XXX_Size() int
- func (m *UserInsuranceFundState) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeDepositToUserInsuranceFund = "deposit_to_user_insurance_fund" EventTypeMintVestedRepresentation = "mint_vested_representation" EventTypeBurnVestedRepresentation = "burn_vested_representation" EventTypeWithdrawInsuranceFund = "withdraw_insurance_fund" AttributeKeyUser = "user" AttributeKeyReceiver = "receiver" )
const ( ModuleName = "liquidvesting" StoreKey = ModuleName )
const (
VestedRepresentationDenomPrefix = "vested"
)
Variables ¶
var ( ErrInvalidInsurancePercentage = errors.Register(ModuleName, 1, "invalid insurance percentage value") ErrNotMinter = errors.Register(ModuleName, 2, "sender don't have permission to mint tokens") ErrNotBurner = errors.Register(ModuleName, 3, "sender don't have permission to burn tokens") ErrInvalidAmount = errors.Register(ModuleName, 4, "invalid amount") ErrInvalidDenom = errors.Register(ModuleName, 5, "invalid denom") ErrVestedRepresentationCannoteBeTransferred = errors.Register(ModuleName, 6, "vested representation can't be transferred") ErrInsufficientInsuranceFundBalance = errors.Register(ModuleName, 7, "insufficient insurance fund balance") ErrInsufficientBalance = errors.Register(ModuleName, 8, "insufficient balance") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsKey = collections.NewPrefix(0x01) InsuranceFundKey = collections.NewPrefix(0x10) BurnCoinsQueueKey = collections.NewPrefix(0x20) )
var ( ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func GetBurnCoinsQueueTimeKey ¶
GetBurnCoinsQueueTimeKey creates the prefix to obtain the list of coins to burn for each delegator
func GetVestedRepresentationDenom ¶
GetVestedRepresentationDenom returns the denom used to represent the vested version of the provided denom.
func IsVestedRepresentationDenom ¶
IsVestedRepresentationDenom tells if the provided denom is a representation of a vested denom.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func VestedDenomToNative ¶
VestedDenomToNative converts the denom of a vested token representation to its native denom.
Types ¶
type AccountKeeper ¶
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error SendCoinsFromModuleToAccount( ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error SendCoinsFromAccountToModule( ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx context.Context, metadata banktypes.Metadata) }
type BurnCoins ¶
type BurnCoins struct { // Address of who has delegated the coins. DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` // CompletionTime is the unix time for unbonding completion. CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"` // Amount of coins to be burned from the delegator address. Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
BurnCoins is a struct that contains the information about the coins to burn once the unbonding period of the vested representation tokens ends.
func NewBurnCoins ¶
func (*BurnCoins) Descriptor ¶
func (*BurnCoins) MarshalToSizedBuffer ¶
func (*BurnCoins) ProtoMessage ¶
func (*BurnCoins) ProtoMessage()
func (*BurnCoins) XXX_DiscardUnknown ¶
func (m *BurnCoins) XXX_DiscardUnknown()
func (*BurnCoins) XXX_Marshal ¶
func (*BurnCoins) XXX_Unmarshal ¶
type BurnCoinsList ¶
type BurnCoinsList struct {
Data []BurnCoins `protobuf:"bytes,1,rep,name=data,proto3" json:"data"`
}
BurnCoinsList represents a list of BurnCoins.
func (*BurnCoinsList) Descriptor ¶
func (*BurnCoinsList) Descriptor() ([]byte, []int)
func (*BurnCoinsList) GetData ¶
func (m *BurnCoinsList) GetData() []BurnCoins
func (*BurnCoinsList) Marshal ¶
func (m *BurnCoinsList) Marshal() (dAtA []byte, err error)
func (*BurnCoinsList) MarshalToSizedBuffer ¶
func (m *BurnCoinsList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BurnCoinsList) ProtoMessage ¶
func (*BurnCoinsList) ProtoMessage()
func (*BurnCoinsList) Reset ¶
func (m *BurnCoinsList) Reset()
func (*BurnCoinsList) Size ¶
func (m *BurnCoinsList) Size() (n int)
func (*BurnCoinsList) String ¶
func (m *BurnCoinsList) String() string
func (*BurnCoinsList) Unmarshal ¶
func (m *BurnCoinsList) Unmarshal(dAtA []byte) error
func (*BurnCoinsList) XXX_DiscardUnknown ¶
func (m *BurnCoinsList) XXX_DiscardUnknown()
func (*BurnCoinsList) XXX_Marshal ¶
func (m *BurnCoinsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BurnCoinsList) XXX_Merge ¶
func (m *BurnCoinsList) XXX_Merge(src proto.Message)
func (*BurnCoinsList) XXX_Size ¶
func (m *BurnCoinsList) XXX_Size() int
func (*BurnCoinsList) XXX_Unmarshal ¶
func (m *BurnCoinsList) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // Params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // BurnCoins represents the list of coins that should be burned from the // users' balances BurnCoins []BurnCoins `protobuf:"bytes,2,rep,name=burn_coins,json=burnCoins,proto3" json:"burn_coins"` // UserInsuranceFunds represents the users' insurance fund. UserInsuranceFunds []UserInsuranceFundState `protobuf:"bytes,3,rep,name=user_insurance_funds,json=userInsuranceFunds,proto3" json:"user_insurance_funds"` }
GenesisState defines the liquidvesting module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default GenesisState.
func NewGenesisState ¶
func NewGenesisState( params Params, burnCoins []BurnCoins, userInsuUserInsuranceFundItems []UserInsuranceFundState, ) *GenesisState
NewGenesisState creates a new GenesisState instance.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBurnCoins ¶
func (m *GenesisState) GetBurnCoins() []BurnCoins
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetUserInsuranceFunds ¶
func (m *GenesisState) GetUserInsuranceFunds() []UserInsuranceFundState
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (g *GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type InsuranceDeposit ¶
type InsuranceDeposit struct { // Address of the user that deposited the tokens. Depositor string `json:"depositor"` // Amount of tokens deposited by the user in the insurance fund. Amount sdk.Coin `json:"amount"` }
InsuranceDeposit defines an individual deposit into the insurance fund.
func (*InsuranceDeposit) IsNegative ¶ added in v1.2.3
func (i *InsuranceDeposit) IsNegative() bool
IsNegative returns true if the amount is negative and false otherwise.
func (*InsuranceDeposit) IsPositive ¶ added in v1.2.3
func (i *InsuranceDeposit) IsPositive() bool
IsPositive returns true if the amount is positive and false otherwise.
func (*InsuranceDeposit) IsZero ¶ added in v1.2.3
func (i *InsuranceDeposit) IsZero() bool
IsZero returns true if the amount is zero and false otherwise.
func (*InsuranceDeposit) ValidateBasic ¶
func (i *InsuranceDeposit) ValidateBasic() error
type MsgBurnVestedRepresentation ¶
type MsgBurnVestedRepresentation struct { // User that want to triger the tokens burn. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // User from which we want to burn the tokens. User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The amount of tokens that will be burned from the user's balance. Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgBurnVestedRepresentation defines the message structure for the BurnVestedRepresentation gRPC service method. It allows an authorized account to burn a user's staked vested tokens representation.
func NewMsgBurnVestedRepresentation ¶
func NewMsgBurnVestedRepresentation( sender string, user string, amount sdk.Coins, ) *MsgBurnVestedRepresentation
NewMsgBurnVestedRepresentation creates a new MsgBurnVestedRepresentation instance.
func (*MsgBurnVestedRepresentation) Descriptor ¶
func (*MsgBurnVestedRepresentation) Descriptor() ([]byte, []int)
func (*MsgBurnVestedRepresentation) GetAmount ¶
func (m *MsgBurnVestedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgBurnVestedRepresentation) GetSender ¶
func (m *MsgBurnVestedRepresentation) GetSender() string
func (*MsgBurnVestedRepresentation) GetUser ¶
func (m *MsgBurnVestedRepresentation) GetUser() string
func (*MsgBurnVestedRepresentation) Marshal ¶
func (m *MsgBurnVestedRepresentation) Marshal() (dAtA []byte, err error)
func (*MsgBurnVestedRepresentation) MarshalTo ¶
func (m *MsgBurnVestedRepresentation) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnVestedRepresentation) MarshalToSizedBuffer ¶
func (m *MsgBurnVestedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnVestedRepresentation) ProtoMessage ¶
func (*MsgBurnVestedRepresentation) ProtoMessage()
func (*MsgBurnVestedRepresentation) Reset ¶
func (m *MsgBurnVestedRepresentation) Reset()
func (*MsgBurnVestedRepresentation) Size ¶
func (m *MsgBurnVestedRepresentation) Size() (n int)
func (*MsgBurnVestedRepresentation) String ¶
func (m *MsgBurnVestedRepresentation) String() string
func (*MsgBurnVestedRepresentation) Unmarshal ¶
func (m *MsgBurnVestedRepresentation) Unmarshal(dAtA []byte) error
func (*MsgBurnVestedRepresentation) ValidateBasic ¶
func (msg *MsgBurnVestedRepresentation) ValidateBasic() error
func (*MsgBurnVestedRepresentation) XXX_DiscardUnknown ¶
func (m *MsgBurnVestedRepresentation) XXX_DiscardUnknown()
func (*MsgBurnVestedRepresentation) XXX_Marshal ¶
func (m *MsgBurnVestedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnVestedRepresentation) XXX_Merge ¶
func (m *MsgBurnVestedRepresentation) XXX_Merge(src proto.Message)
func (*MsgBurnVestedRepresentation) XXX_Size ¶
func (m *MsgBurnVestedRepresentation) XXX_Size() int
func (*MsgBurnVestedRepresentation) XXX_Unmarshal ¶
func (m *MsgBurnVestedRepresentation) XXX_Unmarshal(b []byte) error
type MsgBurnVestedRepresentationResponse ¶
type MsgBurnVestedRepresentationResponse struct { }
MsgBurnVestedRepresentationResponse is the return value of MsgBurnVestedRepresentation.
func (*MsgBurnVestedRepresentationResponse) Descriptor ¶
func (*MsgBurnVestedRepresentationResponse) Descriptor() ([]byte, []int)
func (*MsgBurnVestedRepresentationResponse) Marshal ¶
func (m *MsgBurnVestedRepresentationResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnVestedRepresentationResponse) MarshalTo ¶
func (m *MsgBurnVestedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnVestedRepresentationResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnVestedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnVestedRepresentationResponse) ProtoMessage ¶
func (*MsgBurnVestedRepresentationResponse) ProtoMessage()
func (*MsgBurnVestedRepresentationResponse) Reset ¶
func (m *MsgBurnVestedRepresentationResponse) Reset()
func (*MsgBurnVestedRepresentationResponse) Size ¶
func (m *MsgBurnVestedRepresentationResponse) Size() (n int)
func (*MsgBurnVestedRepresentationResponse) String ¶
func (m *MsgBurnVestedRepresentationResponse) String() string
func (*MsgBurnVestedRepresentationResponse) Unmarshal ¶
func (m *MsgBurnVestedRepresentationResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnVestedRepresentationResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnVestedRepresentationResponse) XXX_DiscardUnknown()
func (*MsgBurnVestedRepresentationResponse) XXX_Marshal ¶
func (m *MsgBurnVestedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnVestedRepresentationResponse) XXX_Merge ¶
func (m *MsgBurnVestedRepresentationResponse) XXX_Merge(src proto.Message)
func (*MsgBurnVestedRepresentationResponse) XXX_Size ¶
func (m *MsgBurnVestedRepresentationResponse) XXX_Size() int
func (*MsgBurnVestedRepresentationResponse) XXX_Unmarshal ¶
func (m *MsgBurnVestedRepresentationResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // MintVestedRepresentation defines the operation to mint a user's staked // vested tokens representation that can be used in the liquid vesting module. MintVestedRepresentation(ctx context.Context, in *MsgMintVestedRepresentation, opts ...grpc.CallOption) (*MsgMintVestedRepresentationResponse, error) // BurnVestedRepresentation defines the operation to burn a user's staked // vested tokens representation. BurnVestedRepresentation(ctx context.Context, in *MsgBurnVestedRepresentation, opts ...grpc.CallOption) (*MsgBurnVestedRepresentationResponse, error) // WithdrawInsuranceFund defines the operation to withdraw an amount // of tokens from the user's insurance fund. // This can be used from the user to withdraw their funds after // some of their staking representations have been burned or if the // balance in the insurance fund is more than the required to cover all // their staking representations. WithdrawInsuranceFund(ctx context.Context, in *MsgWithdrawInsuranceFund, opts ...grpc.CallOption) (*MsgWithdrawInsuranceFundResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgDepositInsurance ¶
type MsgDepositInsurance struct {
Amounts []InsuranceDeposit `json:"amounts"`
}
MsgDepositInsurance defines a struct for depositing tokens into the insurance fund.
func (*MsgDepositInsurance) GetTotalDepositAmount ¶
func (msg *MsgDepositInsurance) GetTotalDepositAmount() (*sdk.Coin, error)
func (*MsgDepositInsurance) ValidateBasic ¶
func (msg *MsgDepositInsurance) ValidateBasic() error
type MsgMintVestedRepresentation ¶
type MsgMintVestedRepresentation struct { // User that want to triger the tokens mint. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // User that will receive the minted tokens. Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // The amount of tokens that will be minted Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgMintVestedRepresentation defines the message structure for the MintVestedRepresentation gRPC service method. It allows an authorized account to mint a user's staked vested tokens representation that can be used in the liquid vesting module.
func NewMsgMintVestedRepresentation ¶
func NewMsgMintVestedRepresentation( sender string, receiver string, amount sdk.Coins, ) *MsgMintVestedRepresentation
NewMsgMintVestedRepresentation creates a new MsgMintVestedRepresentation instance.
func (*MsgMintVestedRepresentation) Descriptor ¶
func (*MsgMintVestedRepresentation) Descriptor() ([]byte, []int)
func (*MsgMintVestedRepresentation) GetAmount ¶
func (m *MsgMintVestedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgMintVestedRepresentation) GetReceiver ¶
func (m *MsgMintVestedRepresentation) GetReceiver() string
func (*MsgMintVestedRepresentation) GetSender ¶
func (m *MsgMintVestedRepresentation) GetSender() string
func (*MsgMintVestedRepresentation) Marshal ¶
func (m *MsgMintVestedRepresentation) Marshal() (dAtA []byte, err error)
func (*MsgMintVestedRepresentation) MarshalTo ¶
func (m *MsgMintVestedRepresentation) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintVestedRepresentation) MarshalToSizedBuffer ¶
func (m *MsgMintVestedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintVestedRepresentation) ProtoMessage ¶
func (*MsgMintVestedRepresentation) ProtoMessage()
func (*MsgMintVestedRepresentation) Reset ¶
func (m *MsgMintVestedRepresentation) Reset()
func (*MsgMintVestedRepresentation) Size ¶
func (m *MsgMintVestedRepresentation) Size() (n int)
func (*MsgMintVestedRepresentation) String ¶
func (m *MsgMintVestedRepresentation) String() string
func (*MsgMintVestedRepresentation) Unmarshal ¶
func (m *MsgMintVestedRepresentation) Unmarshal(dAtA []byte) error
func (*MsgMintVestedRepresentation) ValidateBasic ¶
func (msg *MsgMintVestedRepresentation) ValidateBasic() error
func (*MsgMintVestedRepresentation) XXX_DiscardUnknown ¶
func (m *MsgMintVestedRepresentation) XXX_DiscardUnknown()
func (*MsgMintVestedRepresentation) XXX_Marshal ¶
func (m *MsgMintVestedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintVestedRepresentation) XXX_Merge ¶
func (m *MsgMintVestedRepresentation) XXX_Merge(src proto.Message)
func (*MsgMintVestedRepresentation) XXX_Size ¶
func (m *MsgMintVestedRepresentation) XXX_Size() int
func (*MsgMintVestedRepresentation) XXX_Unmarshal ¶
func (m *MsgMintVestedRepresentation) XXX_Unmarshal(b []byte) error
type MsgMintVestedRepresentationResponse ¶
type MsgMintVestedRepresentationResponse struct { }
MsgMintVestedRepresentationResponse is the return value of MsgMintVestedRepresentation.
func (*MsgMintVestedRepresentationResponse) Descriptor ¶
func (*MsgMintVestedRepresentationResponse) Descriptor() ([]byte, []int)
func (*MsgMintVestedRepresentationResponse) Marshal ¶
func (m *MsgMintVestedRepresentationResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintVestedRepresentationResponse) MarshalTo ¶
func (m *MsgMintVestedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintVestedRepresentationResponse) MarshalToSizedBuffer ¶
func (m *MsgMintVestedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintVestedRepresentationResponse) ProtoMessage ¶
func (*MsgMintVestedRepresentationResponse) ProtoMessage()
func (*MsgMintVestedRepresentationResponse) Reset ¶
func (m *MsgMintVestedRepresentationResponse) Reset()
func (*MsgMintVestedRepresentationResponse) Size ¶
func (m *MsgMintVestedRepresentationResponse) Size() (n int)
func (*MsgMintVestedRepresentationResponse) String ¶
func (m *MsgMintVestedRepresentationResponse) String() string
func (*MsgMintVestedRepresentationResponse) Unmarshal ¶
func (m *MsgMintVestedRepresentationResponse) Unmarshal(dAtA []byte) error
func (*MsgMintVestedRepresentationResponse) XXX_DiscardUnknown ¶
func (m *MsgMintVestedRepresentationResponse) XXX_DiscardUnknown()
func (*MsgMintVestedRepresentationResponse) XXX_Marshal ¶
func (m *MsgMintVestedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintVestedRepresentationResponse) XXX_Merge ¶
func (m *MsgMintVestedRepresentationResponse) XXX_Merge(src proto.Message)
func (*MsgMintVestedRepresentationResponse) XXX_Size ¶
func (m *MsgMintVestedRepresentationResponse) XXX_Size() int
func (*MsgMintVestedRepresentationResponse) XXX_Unmarshal ¶
func (m *MsgMintVestedRepresentationResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // MintVestedRepresentation defines the operation to mint a user's staked // vested tokens representation that can be used in the liquid vesting module. MintVestedRepresentation(context.Context, *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error) // BurnVestedRepresentation defines the operation to burn a user's staked // vested tokens representation. BurnVestedRepresentation(context.Context, *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error) // WithdrawInsuranceFund defines the operation to withdraw an amount // of tokens from the user's insurance fund. // This can be used from the user to withdraw their funds after // some of their staking representations have been burned or if the // balance in the insurance fund is more than the required to cover all // their staking representations. WithdrawInsuranceFund(context.Context, *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // Authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"` // Params define the parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.
func NewMsgUpdateParams ¶
func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams
NewMsgUpdateParams creates a new MsgUpdateParams instance
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (msg *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse is the return value of MsgUpdateParams.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawInsuranceFund ¶
type MsgWithdrawInsuranceFund struct { // User that want to withdraw the tokens. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // The amount of tokens that will be withdrawn from the user's insurance fund. Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgWithdrawInsuranceFund defines the message structure for the WithdrawInsuranceFund gRPC service method.
func NewMsgWithdrawInsuranceFund ¶
func NewMsgWithdrawInsuranceFund( sender string, amount sdk.Coins, ) *MsgWithdrawInsuranceFund
NewMsgWithdrawInsuranceFund creates a new MsgWithdrawInsuranceFund instance.
func (*MsgWithdrawInsuranceFund) Descriptor ¶
func (*MsgWithdrawInsuranceFund) Descriptor() ([]byte, []int)
func (*MsgWithdrawInsuranceFund) GetAmount ¶
func (m *MsgWithdrawInsuranceFund) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgWithdrawInsuranceFund) GetSender ¶
func (m *MsgWithdrawInsuranceFund) GetSender() string
func (*MsgWithdrawInsuranceFund) Marshal ¶
func (m *MsgWithdrawInsuranceFund) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawInsuranceFund) MarshalTo ¶
func (m *MsgWithdrawInsuranceFund) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawInsuranceFund) MarshalToSizedBuffer ¶
func (m *MsgWithdrawInsuranceFund) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawInsuranceFund) ProtoMessage ¶
func (*MsgWithdrawInsuranceFund) ProtoMessage()
func (*MsgWithdrawInsuranceFund) Reset ¶
func (m *MsgWithdrawInsuranceFund) Reset()
func (*MsgWithdrawInsuranceFund) Size ¶
func (m *MsgWithdrawInsuranceFund) Size() (n int)
func (*MsgWithdrawInsuranceFund) String ¶
func (m *MsgWithdrawInsuranceFund) String() string
func (*MsgWithdrawInsuranceFund) Unmarshal ¶
func (m *MsgWithdrawInsuranceFund) Unmarshal(dAtA []byte) error
func (*MsgWithdrawInsuranceFund) ValidateBasic ¶
func (msg *MsgWithdrawInsuranceFund) ValidateBasic() error
func (*MsgWithdrawInsuranceFund) XXX_DiscardUnknown ¶
func (m *MsgWithdrawInsuranceFund) XXX_DiscardUnknown()
func (*MsgWithdrawInsuranceFund) XXX_Marshal ¶
func (m *MsgWithdrawInsuranceFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawInsuranceFund) XXX_Merge ¶
func (m *MsgWithdrawInsuranceFund) XXX_Merge(src proto.Message)
func (*MsgWithdrawInsuranceFund) XXX_Size ¶
func (m *MsgWithdrawInsuranceFund) XXX_Size() int
func (*MsgWithdrawInsuranceFund) XXX_Unmarshal ¶
func (m *MsgWithdrawInsuranceFund) XXX_Unmarshal(b []byte) error
type MsgWithdrawInsuranceFundResponse ¶
type MsgWithdrawInsuranceFundResponse struct { }
func (*MsgWithdrawInsuranceFundResponse) Descriptor ¶
func (*MsgWithdrawInsuranceFundResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawInsuranceFundResponse) Marshal ¶
func (m *MsgWithdrawInsuranceFundResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawInsuranceFundResponse) MarshalTo ¶
func (m *MsgWithdrawInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawInsuranceFundResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawInsuranceFundResponse) ProtoMessage ¶
func (*MsgWithdrawInsuranceFundResponse) ProtoMessage()
func (*MsgWithdrawInsuranceFundResponse) Reset ¶
func (m *MsgWithdrawInsuranceFundResponse) Reset()
func (*MsgWithdrawInsuranceFundResponse) Size ¶
func (m *MsgWithdrawInsuranceFundResponse) Size() (n int)
func (*MsgWithdrawInsuranceFundResponse) String ¶
func (m *MsgWithdrawInsuranceFundResponse) String() string
func (*MsgWithdrawInsuranceFundResponse) Unmarshal ¶
func (m *MsgWithdrawInsuranceFundResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawInsuranceFundResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawInsuranceFundResponse) XXX_DiscardUnknown()
func (*MsgWithdrawInsuranceFundResponse) XXX_Marshal ¶
func (m *MsgWithdrawInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawInsuranceFundResponse) XXX_Merge ¶
func (m *MsgWithdrawInsuranceFundResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawInsuranceFundResponse) XXX_Size ¶
func (m *MsgWithdrawInsuranceFundResponse) XXX_Size() int
func (*MsgWithdrawInsuranceFundResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawInsuranceFundResponse) XXX_Unmarshal(b []byte) error
type OperatorsKeeper ¶
type Params ¶
type Params struct { // This value represents the percentage that needs to be sent to the // insurance fund in order to restake a certain amount of vested tokens. // For example, if this value is 2%, a user must send 2 tokens to // the insurance fund to restake 100 vested tokens InsurancePercentage cosmossdk_io_math.LegacyDec `` /* 147-byte string literal not displayed */ // This value represents the list of users who are authorized to execute the // MsgBurnVestedRepresentation. Burners []string `protobuf:"bytes,2,rep,name=burners,proto3" json:"burners,omitempty"` // This value represents the list of users who are authorized to execute the // MsgMintVestedRepresentation. Minters []string `protobuf:"bytes,3,rep,name=minters,proto3" json:"minters,omitempty"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetBurners ¶
func (*Params) GetMinters ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PoolsKeeper ¶
type QueryClient ¶
type QueryClient interface { // UserInsuranceFund defines a gRPC query method that returns the user's // insurance fund balance given their address. UserInsuranceFund(ctx context.Context, in *QueryUserInsuranceFundRequest, opts ...grpc.CallOption) (*QueryUserInsuranceFundResponse, error) // UserInsuranceFunds defines a gRPC query method that returns all user's // insurance fund balance. UserInsuranceFunds(ctx context.Context, in *QueryUserInsuranceFundsRequest, opts ...grpc.CallOption) (*QueryUserInsuranceFundsResponse, error) // UserRestakableAssets defines a gRPC query method that returns // the amount of assets that can be restaked from the one minted by this // module. UserRestakableAssets(ctx context.Context, in *QueryUserRestakableAssetsRequest, opts ...grpc.CallOption) (*QueryUserRestakableAssetsResponse, error) // InsuranceFund defines a gRPC query method that returns the amount of tokens // that are in the insurance fund. InsuranceFund(ctx context.Context, in *QueryInsuranceFundRequest, opts ...grpc.CallOption) (*QueryInsuranceFundResponse, error) // Params defines a gRPC query method that returns the parameters of the // module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryInsuranceFundRequest ¶
type QueryInsuranceFundRequest struct { }
QueryInsuranceFundRequest is the request type for the Query/InsuranceFund RPC method.
func NewQueryInsuranceFundRequest ¶
func NewQueryInsuranceFundRequest() *QueryInsuranceFundRequest
NewQueryInsuranceFundRequest creates a new QueryInsuranceFundRequest object.
func (*QueryInsuranceFundRequest) Descriptor ¶
func (*QueryInsuranceFundRequest) Descriptor() ([]byte, []int)
func (*QueryInsuranceFundRequest) Marshal ¶
func (m *QueryInsuranceFundRequest) Marshal() (dAtA []byte, err error)
func (*QueryInsuranceFundRequest) MarshalTo ¶
func (m *QueryInsuranceFundRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInsuranceFundRequest) MarshalToSizedBuffer ¶
func (m *QueryInsuranceFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInsuranceFundRequest) ProtoMessage ¶
func (*QueryInsuranceFundRequest) ProtoMessage()
func (*QueryInsuranceFundRequest) Reset ¶
func (m *QueryInsuranceFundRequest) Reset()
func (*QueryInsuranceFundRequest) Size ¶
func (m *QueryInsuranceFundRequest) Size() (n int)
func (*QueryInsuranceFundRequest) String ¶
func (m *QueryInsuranceFundRequest) String() string
func (*QueryInsuranceFundRequest) Unmarshal ¶
func (m *QueryInsuranceFundRequest) Unmarshal(dAtA []byte) error
func (*QueryInsuranceFundRequest) XXX_DiscardUnknown ¶
func (m *QueryInsuranceFundRequest) XXX_DiscardUnknown()
func (*QueryInsuranceFundRequest) XXX_Marshal ¶
func (m *QueryInsuranceFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInsuranceFundRequest) XXX_Merge ¶
func (m *QueryInsuranceFundRequest) XXX_Merge(src proto.Message)
func (*QueryInsuranceFundRequest) XXX_Size ¶
func (m *QueryInsuranceFundRequest) XXX_Size() int
func (*QueryInsuranceFundRequest) XXX_Unmarshal ¶
func (m *QueryInsuranceFundRequest) XXX_Unmarshal(b []byte) error
type QueryInsuranceFundResponse ¶
type QueryInsuranceFundResponse struct { // amount is the amount of tokens that are in the insurance fund. Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
QueryInsuranceFundResponse is the response type for the Query/InsuranceFund RPC method.
func (*QueryInsuranceFundResponse) Descriptor ¶
func (*QueryInsuranceFundResponse) Descriptor() ([]byte, []int)
func (*QueryInsuranceFundResponse) GetAmount ¶
func (m *QueryInsuranceFundResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryInsuranceFundResponse) Marshal ¶
func (m *QueryInsuranceFundResponse) Marshal() (dAtA []byte, err error)
func (*QueryInsuranceFundResponse) MarshalTo ¶
func (m *QueryInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInsuranceFundResponse) MarshalToSizedBuffer ¶
func (m *QueryInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInsuranceFundResponse) ProtoMessage ¶
func (*QueryInsuranceFundResponse) ProtoMessage()
func (*QueryInsuranceFundResponse) Reset ¶
func (m *QueryInsuranceFundResponse) Reset()
func (*QueryInsuranceFundResponse) Size ¶
func (m *QueryInsuranceFundResponse) Size() (n int)
func (*QueryInsuranceFundResponse) String ¶
func (m *QueryInsuranceFundResponse) String() string
func (*QueryInsuranceFundResponse) Unmarshal ¶
func (m *QueryInsuranceFundResponse) Unmarshal(dAtA []byte) error
func (*QueryInsuranceFundResponse) XXX_DiscardUnknown ¶
func (m *QueryInsuranceFundResponse) XXX_DiscardUnknown()
func (*QueryInsuranceFundResponse) XXX_Marshal ¶
func (m *QueryInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInsuranceFundResponse) XXX_Merge ¶
func (m *QueryInsuranceFundResponse) XXX_Merge(src proto.Message)
func (*QueryInsuranceFundResponse) XXX_Size ¶
func (m *QueryInsuranceFundResponse) XXX_Size() int
func (*QueryInsuranceFundResponse) XXX_Unmarshal ¶
func (m *QueryInsuranceFundResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func NewQueryParamsRequest ¶
func NewQueryParamsRequest() *QueryParamsRequest
NewQueryParamsRequest creates a new QueryParamsRequest object.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // UserInsuranceFund defines a gRPC query method that returns the user's // insurance fund balance given their address. UserInsuranceFund(context.Context, *QueryUserInsuranceFundRequest) (*QueryUserInsuranceFundResponse, error) // UserInsuranceFunds defines a gRPC query method that returns all user's // insurance fund balance. UserInsuranceFunds(context.Context, *QueryUserInsuranceFundsRequest) (*QueryUserInsuranceFundsResponse, error) // UserRestakableAssets defines a gRPC query method that returns // the amount of assets that can be restaked from the one minted by this // module. UserRestakableAssets(context.Context, *QueryUserRestakableAssetsRequest) (*QueryUserRestakableAssetsResponse, error) // InsuranceFund defines a gRPC query method that returns the amount of tokens // that are in the insurance fund. InsuranceFund(context.Context, *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error) // Params defines a gRPC query method that returns the parameters of the // module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QueryUserInsuranceFundRequest ¶
type QueryUserInsuranceFundRequest struct { // user_address is the address of the user to query. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` }
QueryUserInsuranceFundRequest is the request type for the Query/UserInsuranceFund RPC method.
func NewQueryUserInsuranceFundRequest ¶
func NewQueryUserInsuranceFundRequest(user string) *QueryUserInsuranceFundRequest
NewQueryUserInsuranceFundRequest creates a new QueryUserInsuranceFundRequest object.
func (*QueryUserInsuranceFundRequest) Descriptor ¶
func (*QueryUserInsuranceFundRequest) Descriptor() ([]byte, []int)
func (*QueryUserInsuranceFundRequest) GetUserAddress ¶
func (m *QueryUserInsuranceFundRequest) GetUserAddress() string
func (*QueryUserInsuranceFundRequest) Marshal ¶
func (m *QueryUserInsuranceFundRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserInsuranceFundRequest) MarshalTo ¶
func (m *QueryUserInsuranceFundRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundRequest) MarshalToSizedBuffer ¶
func (m *QueryUserInsuranceFundRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundRequest) ProtoMessage ¶
func (*QueryUserInsuranceFundRequest) ProtoMessage()
func (*QueryUserInsuranceFundRequest) Reset ¶
func (m *QueryUserInsuranceFundRequest) Reset()
func (*QueryUserInsuranceFundRequest) Size ¶
func (m *QueryUserInsuranceFundRequest) Size() (n int)
func (*QueryUserInsuranceFundRequest) String ¶
func (m *QueryUserInsuranceFundRequest) String() string
func (*QueryUserInsuranceFundRequest) Unmarshal ¶
func (m *QueryUserInsuranceFundRequest) Unmarshal(dAtA []byte) error
func (*QueryUserInsuranceFundRequest) XXX_DiscardUnknown ¶
func (m *QueryUserInsuranceFundRequest) XXX_DiscardUnknown()
func (*QueryUserInsuranceFundRequest) XXX_Marshal ¶
func (m *QueryUserInsuranceFundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserInsuranceFundRequest) XXX_Merge ¶
func (m *QueryUserInsuranceFundRequest) XXX_Merge(src proto.Message)
func (*QueryUserInsuranceFundRequest) XXX_Size ¶
func (m *QueryUserInsuranceFundRequest) XXX_Size() int
func (*QueryUserInsuranceFundRequest) XXX_Unmarshal ¶
func (m *QueryUserInsuranceFundRequest) XXX_Unmarshal(b []byte) error
type QueryUserInsuranceFundResponse ¶
type QueryUserInsuranceFundResponse struct { // balance is the amount of tokens that is in the user's insurance fund. Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"` // used is the amount of tokens is being used to cover the user's // restaked assets. Used github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=used,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"used"` }
QueryUserInsuranceFundResponse is the response type for the Query/UserInsuranceFund RPC method.
func (*QueryUserInsuranceFundResponse) Descriptor ¶
func (*QueryUserInsuranceFundResponse) Descriptor() ([]byte, []int)
func (*QueryUserInsuranceFundResponse) GetBalance ¶
func (m *QueryUserInsuranceFundResponse) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryUserInsuranceFundResponse) GetUsed ¶
func (m *QueryUserInsuranceFundResponse) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryUserInsuranceFundResponse) Marshal ¶
func (m *QueryUserInsuranceFundResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserInsuranceFundResponse) MarshalTo ¶
func (m *QueryUserInsuranceFundResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundResponse) MarshalToSizedBuffer ¶
func (m *QueryUserInsuranceFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundResponse) ProtoMessage ¶
func (*QueryUserInsuranceFundResponse) ProtoMessage()
func (*QueryUserInsuranceFundResponse) Reset ¶
func (m *QueryUserInsuranceFundResponse) Reset()
func (*QueryUserInsuranceFundResponse) Size ¶
func (m *QueryUserInsuranceFundResponse) Size() (n int)
func (*QueryUserInsuranceFundResponse) String ¶
func (m *QueryUserInsuranceFundResponse) String() string
func (*QueryUserInsuranceFundResponse) Unmarshal ¶
func (m *QueryUserInsuranceFundResponse) Unmarshal(dAtA []byte) error
func (*QueryUserInsuranceFundResponse) XXX_DiscardUnknown ¶
func (m *QueryUserInsuranceFundResponse) XXX_DiscardUnknown()
func (*QueryUserInsuranceFundResponse) XXX_Marshal ¶
func (m *QueryUserInsuranceFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserInsuranceFundResponse) XXX_Merge ¶
func (m *QueryUserInsuranceFundResponse) XXX_Merge(src proto.Message)
func (*QueryUserInsuranceFundResponse) XXX_Size ¶
func (m *QueryUserInsuranceFundResponse) XXX_Size() int
func (*QueryUserInsuranceFundResponse) XXX_Unmarshal ¶
func (m *QueryUserInsuranceFundResponse) XXX_Unmarshal(b []byte) error
type QueryUserInsuranceFundsRequest ¶
type QueryUserInsuranceFundsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryUserInsuranceFundsRequest is the request type for the Query/UserInsuranceFunds RPC method.
func NewQueryUserInsuranceFundsRequest ¶
func NewQueryUserInsuranceFundsRequest(pagination *query.PageRequest) *QueryUserInsuranceFundsRequest
NewQueryUserInsuranceFundsRequest creates a new QueryUsersInsuranceFundRequest object.
func (*QueryUserInsuranceFundsRequest) Descriptor ¶
func (*QueryUserInsuranceFundsRequest) Descriptor() ([]byte, []int)
func (*QueryUserInsuranceFundsRequest) GetPagination ¶
func (m *QueryUserInsuranceFundsRequest) GetPagination() *query.PageRequest
func (*QueryUserInsuranceFundsRequest) Marshal ¶
func (m *QueryUserInsuranceFundsRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserInsuranceFundsRequest) MarshalTo ¶
func (m *QueryUserInsuranceFundsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundsRequest) MarshalToSizedBuffer ¶
func (m *QueryUserInsuranceFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundsRequest) ProtoMessage ¶
func (*QueryUserInsuranceFundsRequest) ProtoMessage()
func (*QueryUserInsuranceFundsRequest) Reset ¶
func (m *QueryUserInsuranceFundsRequest) Reset()
func (*QueryUserInsuranceFundsRequest) Size ¶
func (m *QueryUserInsuranceFundsRequest) Size() (n int)
func (*QueryUserInsuranceFundsRequest) String ¶
func (m *QueryUserInsuranceFundsRequest) String() string
func (*QueryUserInsuranceFundsRequest) Unmarshal ¶
func (m *QueryUserInsuranceFundsRequest) Unmarshal(dAtA []byte) error
func (*QueryUserInsuranceFundsRequest) XXX_DiscardUnknown ¶
func (m *QueryUserInsuranceFundsRequest) XXX_DiscardUnknown()
func (*QueryUserInsuranceFundsRequest) XXX_Marshal ¶
func (m *QueryUserInsuranceFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserInsuranceFundsRequest) XXX_Merge ¶
func (m *QueryUserInsuranceFundsRequest) XXX_Merge(src proto.Message)
func (*QueryUserInsuranceFundsRequest) XXX_Size ¶
func (m *QueryUserInsuranceFundsRequest) XXX_Size() int
func (*QueryUserInsuranceFundsRequest) XXX_Unmarshal ¶
func (m *QueryUserInsuranceFundsRequest) XXX_Unmarshal(b []byte) error
type QueryUserInsuranceFundsResponse ¶
type QueryUserInsuranceFundsResponse struct { // insurance_funds is the list of users insurance funds. InsuranceFunds []UserInsuranceFundData `protobuf:"bytes,1,rep,name=insurance_funds,json=insuranceFunds,proto3" json:"insurance_funds"` // Pagination defines the pagination response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUserInsuranceFundsResponse is the response type for the Query/UserInsuranceFunds RPC method.
func (*QueryUserInsuranceFundsResponse) Descriptor ¶
func (*QueryUserInsuranceFundsResponse) Descriptor() ([]byte, []int)
func (*QueryUserInsuranceFundsResponse) GetInsuranceFunds ¶
func (m *QueryUserInsuranceFundsResponse) GetInsuranceFunds() []UserInsuranceFundData
func (*QueryUserInsuranceFundsResponse) GetPagination ¶
func (m *QueryUserInsuranceFundsResponse) GetPagination() *query.PageResponse
func (*QueryUserInsuranceFundsResponse) Marshal ¶
func (m *QueryUserInsuranceFundsResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserInsuranceFundsResponse) MarshalTo ¶
func (m *QueryUserInsuranceFundsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundsResponse) MarshalToSizedBuffer ¶
func (m *QueryUserInsuranceFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserInsuranceFundsResponse) ProtoMessage ¶
func (*QueryUserInsuranceFundsResponse) ProtoMessage()
func (*QueryUserInsuranceFundsResponse) Reset ¶
func (m *QueryUserInsuranceFundsResponse) Reset()
func (*QueryUserInsuranceFundsResponse) Size ¶
func (m *QueryUserInsuranceFundsResponse) Size() (n int)
func (*QueryUserInsuranceFundsResponse) String ¶
func (m *QueryUserInsuranceFundsResponse) String() string
func (*QueryUserInsuranceFundsResponse) Unmarshal ¶
func (m *QueryUserInsuranceFundsResponse) Unmarshal(dAtA []byte) error
func (*QueryUserInsuranceFundsResponse) XXX_DiscardUnknown ¶
func (m *QueryUserInsuranceFundsResponse) XXX_DiscardUnknown()
func (*QueryUserInsuranceFundsResponse) XXX_Marshal ¶
func (m *QueryUserInsuranceFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserInsuranceFundsResponse) XXX_Merge ¶
func (m *QueryUserInsuranceFundsResponse) XXX_Merge(src proto.Message)
func (*QueryUserInsuranceFundsResponse) XXX_Size ¶
func (m *QueryUserInsuranceFundsResponse) XXX_Size() int
func (*QueryUserInsuranceFundsResponse) XXX_Unmarshal ¶
func (m *QueryUserInsuranceFundsResponse) XXX_Unmarshal(b []byte) error
type QueryUserRestakableAssetsRequest ¶
type QueryUserRestakableAssetsRequest struct { // user_address is the address of the user to query. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` }
QueryUserRestakableAssetsRequest is the request type for the Query/UserRestakableAssets RPC method.
func NewQueryUserRestakableAssetsRequest ¶
func NewQueryUserRestakableAssetsRequest(user string) *QueryUserRestakableAssetsRequest
NewQueryUserRestakableAssetsRequest creates a new QueryUserRestakableAssetsRequest object.
func (*QueryUserRestakableAssetsRequest) Descriptor ¶
func (*QueryUserRestakableAssetsRequest) Descriptor() ([]byte, []int)
func (*QueryUserRestakableAssetsRequest) GetUserAddress ¶
func (m *QueryUserRestakableAssetsRequest) GetUserAddress() string
func (*QueryUserRestakableAssetsRequest) Marshal ¶
func (m *QueryUserRestakableAssetsRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserRestakableAssetsRequest) MarshalTo ¶
func (m *QueryUserRestakableAssetsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserRestakableAssetsRequest) MarshalToSizedBuffer ¶
func (m *QueryUserRestakableAssetsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserRestakableAssetsRequest) ProtoMessage ¶
func (*QueryUserRestakableAssetsRequest) ProtoMessage()
func (*QueryUserRestakableAssetsRequest) Reset ¶
func (m *QueryUserRestakableAssetsRequest) Reset()
func (*QueryUserRestakableAssetsRequest) Size ¶
func (m *QueryUserRestakableAssetsRequest) Size() (n int)
func (*QueryUserRestakableAssetsRequest) String ¶
func (m *QueryUserRestakableAssetsRequest) String() string
func (*QueryUserRestakableAssetsRequest) Unmarshal ¶
func (m *QueryUserRestakableAssetsRequest) Unmarshal(dAtA []byte) error
func (*QueryUserRestakableAssetsRequest) XXX_DiscardUnknown ¶
func (m *QueryUserRestakableAssetsRequest) XXX_DiscardUnknown()
func (*QueryUserRestakableAssetsRequest) XXX_Marshal ¶
func (m *QueryUserRestakableAssetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserRestakableAssetsRequest) XXX_Merge ¶
func (m *QueryUserRestakableAssetsRequest) XXX_Merge(src proto.Message)
func (*QueryUserRestakableAssetsRequest) XXX_Size ¶
func (m *QueryUserRestakableAssetsRequest) XXX_Size() int
func (*QueryUserRestakableAssetsRequest) XXX_Unmarshal ¶
func (m *QueryUserRestakableAssetsRequest) XXX_Unmarshal(b []byte) error
type QueryUserRestakableAssetsResponse ¶
type QueryUserRestakableAssetsResponse struct { // amount is the amount of tokens that the user can restake. Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
QueryUserRestakableAssetsResponse is the response type for the Query/UserRestakableAssets RPC method.
func (*QueryUserRestakableAssetsResponse) Descriptor ¶
func (*QueryUserRestakableAssetsResponse) Descriptor() ([]byte, []int)
func (*QueryUserRestakableAssetsResponse) GetAmount ¶
func (m *QueryUserRestakableAssetsResponse) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryUserRestakableAssetsResponse) Marshal ¶
func (m *QueryUserRestakableAssetsResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserRestakableAssetsResponse) MarshalTo ¶
func (m *QueryUserRestakableAssetsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserRestakableAssetsResponse) MarshalToSizedBuffer ¶
func (m *QueryUserRestakableAssetsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserRestakableAssetsResponse) ProtoMessage ¶
func (*QueryUserRestakableAssetsResponse) ProtoMessage()
func (*QueryUserRestakableAssetsResponse) Reset ¶
func (m *QueryUserRestakableAssetsResponse) Reset()
func (*QueryUserRestakableAssetsResponse) Size ¶
func (m *QueryUserRestakableAssetsResponse) Size() (n int)
func (*QueryUserRestakableAssetsResponse) String ¶
func (m *QueryUserRestakableAssetsResponse) String() string
func (*QueryUserRestakableAssetsResponse) Unmarshal ¶
func (m *QueryUserRestakableAssetsResponse) Unmarshal(dAtA []byte) error
func (*QueryUserRestakableAssetsResponse) XXX_DiscardUnknown ¶
func (m *QueryUserRestakableAssetsResponse) XXX_DiscardUnknown()
func (*QueryUserRestakableAssetsResponse) XXX_Marshal ¶
func (m *QueryUserRestakableAssetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserRestakableAssetsResponse) XXX_Merge ¶
func (m *QueryUserRestakableAssetsResponse) XXX_Merge(src proto.Message)
func (*QueryUserRestakableAssetsResponse) XXX_Size ¶
func (m *QueryUserRestakableAssetsResponse) XXX_Size() int
func (*QueryUserRestakableAssetsResponse) XXX_Unmarshal ¶
func (m *QueryUserRestakableAssetsResponse) XXX_Unmarshal(b []byte) error
type RestakingKeeper ¶
type RestakingKeeper interface { GetPoolDelegation(ctx sdk.Context, poolID uint32, userAddress string) (restakingtypes.Delegation, bool) IterateUserServiceDelegations(ctx sdk.Context, userAddress string, cb func(restakingtypes.Delegation) (bool, error)) error IterateUserOperatorDelegations(ctx sdk.Context, userAddress string, cb func(restakingtypes.Delegation) (bool, error)) error UnbondRestakedAssets(ctx sdk.Context, user sdk.AccAddress, amount sdk.Coins) (time.Time, error) GetAllUnbondingDelegations(ctx sdk.Context) []restakingtypes.UnbondingDelegation GetAllUserRestakedCoins(ctx sdk.Context, userAddress string) (sdk.DecCoins, error) GetAllUserUnbondingDelegations(ctx sdk.Context, userAddress string) []restakingtypes.UnbondingDelegation }
type ServicesKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BurnVestedRepresentation ¶
func (*UnimplementedMsgServer) BurnVestedRepresentation(ctx context.Context, req *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error)
func (*UnimplementedMsgServer) MintVestedRepresentation ¶
func (*UnimplementedMsgServer) MintVestedRepresentation(ctx context.Context, req *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) WithdrawInsuranceFund ¶
func (*UnimplementedMsgServer) WithdrawInsuranceFund(ctx context.Context, req *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) InsuranceFund ¶
func (*UnimplementedQueryServer) InsuranceFund(ctx context.Context, req *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) UserInsuranceFund ¶
func (*UnimplementedQueryServer) UserInsuranceFund(ctx context.Context, req *QueryUserInsuranceFundRequest) (*QueryUserInsuranceFundResponse, error)
func (*UnimplementedQueryServer) UserInsuranceFunds ¶
func (*UnimplementedQueryServer) UserInsuranceFunds(ctx context.Context, req *QueryUserInsuranceFundsRequest) (*QueryUserInsuranceFundsResponse, error)
func (*UnimplementedQueryServer) UserRestakableAssets ¶
func (*UnimplementedQueryServer) UserRestakableAssets(ctx context.Context, req *QueryUserRestakableAssetsRequest) (*QueryUserRestakableAssetsResponse, error)
type UserInsuranceFund ¶
type UserInsuranceFund struct { // Amount of coins deposited into the user's insurance fund. Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"` // Amount in the user's insurance that is being used to secure the // restaked toknes. For example an user has 10 TIA in their insurance fund, // the insurance percentage is 1% so they can restake 1000 TIA. // The user restakes only 100 TIA, in this case the balance is 10 TIA and used // is 1 TIA. Used github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=used,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"used"` }
UserInsuranceFund defines a user's insurance fund.
func NewEmptyInsuranceFund ¶
func NewEmptyInsuranceFund() UserInsuranceFund
func NewInsuranceFund ¶
func NewInsuranceFund(balance sdk.Coins, used sdk.Coins) UserInsuranceFund
func (*UserInsuranceFund) Add ¶
func (u *UserInsuranceFund) Add(amount sdk.Coins)
func (*UserInsuranceFund) AddUsed ¶
func (u *UserInsuranceFund) AddUsed(amount ...sdk.Coin)
func (*UserInsuranceFund) DecreaseUsed ¶
func (u *UserInsuranceFund) DecreaseUsed(amount ...sdk.Coin)
func (*UserInsuranceFund) Descriptor ¶
func (*UserInsuranceFund) Descriptor() ([]byte, []int)
func (*UserInsuranceFund) GetBalance ¶
func (m *UserInsuranceFund) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*UserInsuranceFund) GetUsed ¶
func (m *UserInsuranceFund) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
func (*UserInsuranceFund) Marshal ¶
func (m *UserInsuranceFund) Marshal() (dAtA []byte, err error)
func (*UserInsuranceFund) MarshalTo ¶
func (m *UserInsuranceFund) MarshalTo(dAtA []byte) (int, error)
func (*UserInsuranceFund) MarshalToSizedBuffer ¶
func (m *UserInsuranceFund) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserInsuranceFund) ProtoMessage ¶
func (*UserInsuranceFund) ProtoMessage()
func (*UserInsuranceFund) Reset ¶
func (m *UserInsuranceFund) Reset()
func (*UserInsuranceFund) Size ¶
func (m *UserInsuranceFund) Size() (n int)
func (*UserInsuranceFund) String ¶
func (m *UserInsuranceFund) String() string
func (*UserInsuranceFund) Unmarshal ¶
func (m *UserInsuranceFund) Unmarshal(dAtA []byte) error
func (*UserInsuranceFund) Unused ¶
func (u *UserInsuranceFund) Unused() sdk.Coins
Unused returns the amount of coins that are not being used to cover restaking positions
func (*UserInsuranceFund) Validate ¶
func (u *UserInsuranceFund) Validate() error
func (*UserInsuranceFund) XXX_DiscardUnknown ¶
func (m *UserInsuranceFund) XXX_DiscardUnknown()
func (*UserInsuranceFund) XXX_Marshal ¶
func (m *UserInsuranceFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInsuranceFund) XXX_Merge ¶
func (m *UserInsuranceFund) XXX_Merge(src proto.Message)
func (*UserInsuranceFund) XXX_Size ¶
func (m *UserInsuranceFund) XXX_Size() int
func (*UserInsuranceFund) XXX_Unmarshal ¶
func (m *UserInsuranceFund) XXX_Unmarshal(b []byte) error
type UserInsuranceFundData ¶
type UserInsuranceFundData struct { // user_address is the address of who owns the insurance fund. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` // balance is the amount of tokens that is in the user's insurance fund. Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"` // used is the amount of tokens that is to cover the user's // restaked assets. Used github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=used,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"used"` }
UserInsuranceFundData is the structure that contains the information about a user's insurance fund.
func NewUserInsuranceFundData ¶
func NewUserInsuranceFundData(userAddress string, insuranceFund UserInsuranceFund) UserInsuranceFundData
func (*UserInsuranceFundData) Descriptor ¶
func (*UserInsuranceFundData) Descriptor() ([]byte, []int)
func (*UserInsuranceFundData) GetBalance ¶
func (m *UserInsuranceFundData) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*UserInsuranceFundData) GetUsed ¶
func (m *UserInsuranceFundData) GetUsed() github_com_cosmos_cosmos_sdk_types.Coins
func (*UserInsuranceFundData) GetUserAddress ¶
func (m *UserInsuranceFundData) GetUserAddress() string
func (*UserInsuranceFundData) Marshal ¶
func (m *UserInsuranceFundData) Marshal() (dAtA []byte, err error)
func (*UserInsuranceFundData) MarshalTo ¶
func (m *UserInsuranceFundData) MarshalTo(dAtA []byte) (int, error)
func (*UserInsuranceFundData) MarshalToSizedBuffer ¶
func (m *UserInsuranceFundData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserInsuranceFundData) ProtoMessage ¶
func (*UserInsuranceFundData) ProtoMessage()
func (*UserInsuranceFundData) Reset ¶
func (m *UserInsuranceFundData) Reset()
func (*UserInsuranceFundData) Size ¶
func (m *UserInsuranceFundData) Size() (n int)
func (*UserInsuranceFundData) String ¶
func (m *UserInsuranceFundData) String() string
func (*UserInsuranceFundData) Unmarshal ¶
func (m *UserInsuranceFundData) Unmarshal(dAtA []byte) error
func (*UserInsuranceFundData) XXX_DiscardUnknown ¶
func (m *UserInsuranceFundData) XXX_DiscardUnknown()
func (*UserInsuranceFundData) XXX_Marshal ¶
func (m *UserInsuranceFundData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInsuranceFundData) XXX_Merge ¶
func (m *UserInsuranceFundData) XXX_Merge(src proto.Message)
func (*UserInsuranceFundData) XXX_Size ¶
func (m *UserInsuranceFundData) XXX_Size() int
func (*UserInsuranceFundData) XXX_Unmarshal ¶
func (m *UserInsuranceFundData) XXX_Unmarshal(b []byte) error
type UserInsuranceFundState ¶
type UserInsuranceFundState struct { // Address of who owns the insurance fund. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` // InsuranceFund represents the user's insurance fund. InsuranceFund UserInsuranceFund `protobuf:"bytes,2,opt,name=insurance_fund,json=insuranceFund,proto3" json:"insurance_fund"` }
UserInsuranceFundState represents a user's insurance fund.
func NewUserInsuranceFundState ¶
func NewUserInsuranceFundState( userAddress string, insuranceFund UserInsuranceFund, ) UserInsuranceFundState
NewUserInsuranceFundState creates a new UserInsuranceFundState.
func (*UserInsuranceFundState) Descriptor ¶
func (*UserInsuranceFundState) Descriptor() ([]byte, []int)
func (*UserInsuranceFundState) GetInsuranceFund ¶
func (m *UserInsuranceFundState) GetInsuranceFund() UserInsuranceFund
func (*UserInsuranceFundState) GetUserAddress ¶
func (m *UserInsuranceFundState) GetUserAddress() string
func (*UserInsuranceFundState) Marshal ¶
func (m *UserInsuranceFundState) Marshal() (dAtA []byte, err error)
func (*UserInsuranceFundState) MarshalTo ¶
func (m *UserInsuranceFundState) MarshalTo(dAtA []byte) (int, error)
func (*UserInsuranceFundState) MarshalToSizedBuffer ¶
func (m *UserInsuranceFundState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserInsuranceFundState) ProtoMessage ¶
func (*UserInsuranceFundState) ProtoMessage()
func (*UserInsuranceFundState) Reset ¶
func (m *UserInsuranceFundState) Reset()
func (*UserInsuranceFundState) Size ¶
func (m *UserInsuranceFundState) Size() (n int)
func (*UserInsuranceFundState) String ¶
func (m *UserInsuranceFundState) String() string
func (*UserInsuranceFundState) Unmarshal ¶
func (m *UserInsuranceFundState) Unmarshal(dAtA []byte) error
func (UserInsuranceFundState) Validate ¶
func (uif UserInsuranceFundState) Validate() error
func (*UserInsuranceFundState) XXX_DiscardUnknown ¶
func (m *UserInsuranceFundState) XXX_DiscardUnknown()
func (*UserInsuranceFundState) XXX_Marshal ¶
func (m *UserInsuranceFundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInsuranceFundState) XXX_Merge ¶
func (m *UserInsuranceFundState) XXX_Merge(src proto.Message)
func (*UserInsuranceFundState) XXX_Size ¶
func (m *UserInsuranceFundState) XXX_Size() int
func (*UserInsuranceFundState) XXX_Unmarshal ¶
func (m *UserInsuranceFundState) XXX_Unmarshal(b []byte) error