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 GetLockedRepresentationDenom(denom string) (string, error)
- func IsLockedRepresentationDenom(denom string) bool
- func LockedDenomToNative(denom string) (string, error)
- 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)
- 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() []UserInsuranceFundEntry
- 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 MsgBurnLockedRepresentation
- func (*MsgBurnLockedRepresentation) Descriptor() ([]byte, []int)
- func (m *MsgBurnLockedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgBurnLockedRepresentation) GetSender() string
- func (m *MsgBurnLockedRepresentation) GetUser() string
- func (m *MsgBurnLockedRepresentation) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnLockedRepresentation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnLockedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnLockedRepresentation) ProtoMessage()
- func (m *MsgBurnLockedRepresentation) Reset()
- func (m *MsgBurnLockedRepresentation) Size() (n int)
- func (m *MsgBurnLockedRepresentation) String() string
- func (m *MsgBurnLockedRepresentation) Unmarshal(dAtA []byte) error
- func (msg *MsgBurnLockedRepresentation) ValidateBasic() error
- func (m *MsgBurnLockedRepresentation) XXX_DiscardUnknown()
- func (m *MsgBurnLockedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnLockedRepresentation) XXX_Merge(src proto.Message)
- func (m *MsgBurnLockedRepresentation) XXX_Size() int
- func (m *MsgBurnLockedRepresentation) XXX_Unmarshal(b []byte) error
- type MsgBurnLockedRepresentationResponse
- func (*MsgBurnLockedRepresentationResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnLockedRepresentationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnLockedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnLockedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnLockedRepresentationResponse) ProtoMessage()
- func (m *MsgBurnLockedRepresentationResponse) Reset()
- func (m *MsgBurnLockedRepresentationResponse) Size() (n int)
- func (m *MsgBurnLockedRepresentationResponse) String() string
- func (m *MsgBurnLockedRepresentationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnLockedRepresentationResponse) XXX_DiscardUnknown()
- func (m *MsgBurnLockedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnLockedRepresentationResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnLockedRepresentationResponse) XXX_Size() int
- func (m *MsgBurnLockedRepresentationResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDepositInsurance
- type MsgMintLockedRepresentation
- func (*MsgMintLockedRepresentation) Descriptor() ([]byte, []int)
- func (m *MsgMintLockedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgMintLockedRepresentation) GetReceiver() string
- func (m *MsgMintLockedRepresentation) GetSender() string
- func (m *MsgMintLockedRepresentation) Marshal() (dAtA []byte, err error)
- func (m *MsgMintLockedRepresentation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintLockedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintLockedRepresentation) ProtoMessage()
- func (m *MsgMintLockedRepresentation) Reset()
- func (m *MsgMintLockedRepresentation) Size() (n int)
- func (m *MsgMintLockedRepresentation) String() string
- func (m *MsgMintLockedRepresentation) Unmarshal(dAtA []byte) error
- func (msg *MsgMintLockedRepresentation) ValidateBasic() error
- func (m *MsgMintLockedRepresentation) XXX_DiscardUnknown()
- func (m *MsgMintLockedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintLockedRepresentation) XXX_Merge(src proto.Message)
- func (m *MsgMintLockedRepresentation) XXX_Size() int
- func (m *MsgMintLockedRepresentation) XXX_Unmarshal(b []byte) error
- type MsgMintLockedRepresentationResponse
- func (*MsgMintLockedRepresentationResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintLockedRepresentationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintLockedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintLockedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintLockedRepresentationResponse) ProtoMessage()
- func (m *MsgMintLockedRepresentationResponse) Reset()
- func (m *MsgMintLockedRepresentationResponse) Size() (n int)
- func (m *MsgMintLockedRepresentationResponse) String() string
- func (m *MsgMintLockedRepresentationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintLockedRepresentationResponse) XXX_DiscardUnknown()
- func (m *MsgMintLockedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintLockedRepresentationResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintLockedRepresentationResponse) XXX_Size() int
- func (m *MsgMintLockedRepresentationResponse) 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) GetAllowedChannels() []string
- func (m *Params) GetBurners() []string
- func (m *Params) GetMinters() []string
- func (p *Params) IsAllowedChannel(channelID string) bool
- 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) BurnLockedRepresentation(ctx context.Context, req *MsgBurnLockedRepresentation) (*MsgBurnLockedRepresentationResponse, error)
- func (*UnimplementedMsgServer) MintLockedRepresentation(ctx context.Context, req *MsgMintLockedRepresentation) (*MsgMintLockedRepresentationResponse, 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) CanCoverDecCoins(insurancePercentage sdkmath.LegacyDec, coins sdk.DecCoins) (bool, sdk.Coins, error)
- func (*UserInsuranceFund) Descriptor() ([]byte, []int)
- func (m *UserInsuranceFund) GetBalance() 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) 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 UserInsuranceFundEntry
- func (*UserInsuranceFundEntry) Descriptor() ([]byte, []int)
- func (m *UserInsuranceFundEntry) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *UserInsuranceFundEntry) GetUserAddress() string
- func (m *UserInsuranceFundEntry) Marshal() (dAtA []byte, err error)
- func (m *UserInsuranceFundEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UserInsuranceFundEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserInsuranceFundEntry) ProtoMessage()
- func (m *UserInsuranceFundEntry) Reset()
- func (m *UserInsuranceFundEntry) Size() (n int)
- func (m *UserInsuranceFundEntry) String() string
- func (m *UserInsuranceFundEntry) Unmarshal(dAtA []byte) error
- func (uif *UserInsuranceFundEntry) Validate() error
- func (m *UserInsuranceFundEntry) XXX_DiscardUnknown()
- func (m *UserInsuranceFundEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInsuranceFundEntry) XXX_Merge(src proto.Message)
- func (m *UserInsuranceFundEntry) XXX_Size() int
- func (m *UserInsuranceFundEntry) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeDepositToUserInsuranceFund = "deposit_to_user_insurance_fund" EventTypeMintLockedRepresentation = "mint_locked_representation" EventTypeBurnLockedRepresentation = "burn_locked_representation" EventTypeWithdrawInsuranceFund = "withdraw_insurance_fund" AttributeKeyUser = "user" AttributeKeyReceiver = "receiver" )
const ( ModuleName = "liquidvesting" StoreKey = ModuleName )
const (
LockedRepresentationDenomPrefix = "locked"
)
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") ErrLockedRepresentationCannotBeTransferred = errors.Register(ModuleName, 6, "locked representation can't be transferred") ErrInsufficientInsuranceFundBalance = errors.Register(ModuleName, 7, "insufficient insurance fund balance") ErrInsufficientBalance = errors.Register(ModuleName, 8, "insufficient balance") ErrTransferBetweenTargetsNotAllowed = errors.Register(ModuleName, 9, "transfer between restaking targets is not allowed") )
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") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func GetBurnCoinsQueueTimeKey ¶
GetBurnCoinsQueueTimeKey creates the prefix to obtain the list of coins to burn for each delegator
func GetLockedRepresentationDenom ¶
GetLockedRepresentationDenom returns the denom used to represent the locked version of the provided denom.
func IsLockedRepresentationDenom ¶
IsLockedRepresentationDenom tells if the provided denom is a representation of a locked denom.
func LockedDenomToNative ¶
LockedDenomToNative converts the denom of a locked token representation to its native 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)
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 locked 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 []UserInsuranceFundEntry `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, usersInsuranceFunds []UserInsuranceFundEntry) *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() []UserInsuranceFundEntry
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 math.Int `json:"amount"` }
InsuranceDeposit defines an individual deposit into the insurance fund.
func (*InsuranceDeposit) IsNegative ¶
func (i *InsuranceDeposit) IsNegative() bool
IsNegative returns true if the amount is negative and false otherwise.
func (*InsuranceDeposit) IsPositive ¶
func (i *InsuranceDeposit) IsPositive() bool
IsPositive returns true if the amount is positive and false otherwise.
func (*InsuranceDeposit) IsZero ¶
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 MsgBurnLockedRepresentation ¶
type MsgBurnLockedRepresentation struct { // User that want to trigger 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"` }
MsgBurnLockedRepresentation defines the message structure for the BurnLockedRepresentation gRPC service method. It allows an authorized account to burn a user's staked locked tokens representation.
func NewMsgBurnLockedRepresentation ¶
func NewMsgBurnLockedRepresentation( sender string, user string, amount sdk.Coins, ) *MsgBurnLockedRepresentation
NewMsgBurnLockedRepresentation creates a new MsgBurnLockedRepresentation instance.
func (*MsgBurnLockedRepresentation) Descriptor ¶
func (*MsgBurnLockedRepresentation) Descriptor() ([]byte, []int)
func (*MsgBurnLockedRepresentation) GetAmount ¶
func (m *MsgBurnLockedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgBurnLockedRepresentation) GetSender ¶
func (m *MsgBurnLockedRepresentation) GetSender() string
func (*MsgBurnLockedRepresentation) GetUser ¶
func (m *MsgBurnLockedRepresentation) GetUser() string
func (*MsgBurnLockedRepresentation) Marshal ¶
func (m *MsgBurnLockedRepresentation) Marshal() (dAtA []byte, err error)
func (*MsgBurnLockedRepresentation) MarshalTo ¶
func (m *MsgBurnLockedRepresentation) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnLockedRepresentation) MarshalToSizedBuffer ¶
func (m *MsgBurnLockedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnLockedRepresentation) ProtoMessage ¶
func (*MsgBurnLockedRepresentation) ProtoMessage()
func (*MsgBurnLockedRepresentation) Reset ¶
func (m *MsgBurnLockedRepresentation) Reset()
func (*MsgBurnLockedRepresentation) Size ¶
func (m *MsgBurnLockedRepresentation) Size() (n int)
func (*MsgBurnLockedRepresentation) String ¶
func (m *MsgBurnLockedRepresentation) String() string
func (*MsgBurnLockedRepresentation) Unmarshal ¶
func (m *MsgBurnLockedRepresentation) Unmarshal(dAtA []byte) error
func (*MsgBurnLockedRepresentation) ValidateBasic ¶
func (msg *MsgBurnLockedRepresentation) ValidateBasic() error
func (*MsgBurnLockedRepresentation) XXX_DiscardUnknown ¶
func (m *MsgBurnLockedRepresentation) XXX_DiscardUnknown()
func (*MsgBurnLockedRepresentation) XXX_Marshal ¶
func (m *MsgBurnLockedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnLockedRepresentation) XXX_Merge ¶
func (m *MsgBurnLockedRepresentation) XXX_Merge(src proto.Message)
func (*MsgBurnLockedRepresentation) XXX_Size ¶
func (m *MsgBurnLockedRepresentation) XXX_Size() int
func (*MsgBurnLockedRepresentation) XXX_Unmarshal ¶
func (m *MsgBurnLockedRepresentation) XXX_Unmarshal(b []byte) error
type MsgBurnLockedRepresentationResponse ¶
type MsgBurnLockedRepresentationResponse struct { }
MsgBurnLockedRepresentationResponse is the return value of MsgBurnLockedRepresentation.
func (*MsgBurnLockedRepresentationResponse) Descriptor ¶
func (*MsgBurnLockedRepresentationResponse) Descriptor() ([]byte, []int)
func (*MsgBurnLockedRepresentationResponse) Marshal ¶
func (m *MsgBurnLockedRepresentationResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnLockedRepresentationResponse) MarshalTo ¶
func (m *MsgBurnLockedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnLockedRepresentationResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnLockedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnLockedRepresentationResponse) ProtoMessage ¶
func (*MsgBurnLockedRepresentationResponse) ProtoMessage()
func (*MsgBurnLockedRepresentationResponse) Reset ¶
func (m *MsgBurnLockedRepresentationResponse) Reset()
func (*MsgBurnLockedRepresentationResponse) Size ¶
func (m *MsgBurnLockedRepresentationResponse) Size() (n int)
func (*MsgBurnLockedRepresentationResponse) String ¶
func (m *MsgBurnLockedRepresentationResponse) String() string
func (*MsgBurnLockedRepresentationResponse) Unmarshal ¶
func (m *MsgBurnLockedRepresentationResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnLockedRepresentationResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnLockedRepresentationResponse) XXX_DiscardUnknown()
func (*MsgBurnLockedRepresentationResponse) XXX_Marshal ¶
func (m *MsgBurnLockedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnLockedRepresentationResponse) XXX_Merge ¶
func (m *MsgBurnLockedRepresentationResponse) XXX_Merge(src proto.Message)
func (*MsgBurnLockedRepresentationResponse) XXX_Size ¶
func (m *MsgBurnLockedRepresentationResponse) XXX_Size() int
func (*MsgBurnLockedRepresentationResponse) XXX_Unmarshal ¶
func (m *MsgBurnLockedRepresentationResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // MintLockedRepresentation defines the operation to mint a user's staked // locked tokens representation that can be used in the liquid vesting module. MintLockedRepresentation(ctx context.Context, in *MsgMintLockedRepresentation, opts ...grpc.CallOption) (*MsgMintLockedRepresentationResponse, error) // BurnLockedRepresentation defines the operation to burn a user's staked // locked tokens representation. BurnLockedRepresentation(ctx context.Context, in *MsgBurnLockedRepresentation, opts ...grpc.CallOption) (*MsgBurnLockedRepresentationResponse, 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 NewMsgDepositInsurance ¶
func NewMsgDepositInsurance(amounts []InsuranceDeposit) *MsgDepositInsurance
NewMsgDepositInsurance creates a new MsgDepositInsurance instance.
func (*MsgDepositInsurance) GetTotalDepositAmount ¶
func (msg *MsgDepositInsurance) GetTotalDepositAmount() math.Int
func (*MsgDepositInsurance) ValidateBasic ¶
func (msg *MsgDepositInsurance) ValidateBasic() error
type MsgMintLockedRepresentation ¶
type MsgMintLockedRepresentation struct { // User that want to trigger 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"` }
MsgMintLockedRepresentation defines the message structure for the MintLockedRepresentation gRPC service method. It allows an authorized account to mint a user's staked locked tokens representation that can be used in the liquid vesting module.
func NewMsgMintLockedRepresentation ¶
func NewMsgMintLockedRepresentation( sender string, receiver string, amount sdk.Coins, ) *MsgMintLockedRepresentation
NewMsgMintLockedRepresentation creates a new MsgMintLockedRepresentation instance.
func (*MsgMintLockedRepresentation) Descriptor ¶
func (*MsgMintLockedRepresentation) Descriptor() ([]byte, []int)
func (*MsgMintLockedRepresentation) GetAmount ¶
func (m *MsgMintLockedRepresentation) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgMintLockedRepresentation) GetReceiver ¶
func (m *MsgMintLockedRepresentation) GetReceiver() string
func (*MsgMintLockedRepresentation) GetSender ¶
func (m *MsgMintLockedRepresentation) GetSender() string
func (*MsgMintLockedRepresentation) Marshal ¶
func (m *MsgMintLockedRepresentation) Marshal() (dAtA []byte, err error)
func (*MsgMintLockedRepresentation) MarshalTo ¶
func (m *MsgMintLockedRepresentation) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintLockedRepresentation) MarshalToSizedBuffer ¶
func (m *MsgMintLockedRepresentation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintLockedRepresentation) ProtoMessage ¶
func (*MsgMintLockedRepresentation) ProtoMessage()
func (*MsgMintLockedRepresentation) Reset ¶
func (m *MsgMintLockedRepresentation) Reset()
func (*MsgMintLockedRepresentation) Size ¶
func (m *MsgMintLockedRepresentation) Size() (n int)
func (*MsgMintLockedRepresentation) String ¶
func (m *MsgMintLockedRepresentation) String() string
func (*MsgMintLockedRepresentation) Unmarshal ¶
func (m *MsgMintLockedRepresentation) Unmarshal(dAtA []byte) error
func (*MsgMintLockedRepresentation) ValidateBasic ¶
func (msg *MsgMintLockedRepresentation) ValidateBasic() error
func (*MsgMintLockedRepresentation) XXX_DiscardUnknown ¶
func (m *MsgMintLockedRepresentation) XXX_DiscardUnknown()
func (*MsgMintLockedRepresentation) XXX_Marshal ¶
func (m *MsgMintLockedRepresentation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintLockedRepresentation) XXX_Merge ¶
func (m *MsgMintLockedRepresentation) XXX_Merge(src proto.Message)
func (*MsgMintLockedRepresentation) XXX_Size ¶
func (m *MsgMintLockedRepresentation) XXX_Size() int
func (*MsgMintLockedRepresentation) XXX_Unmarshal ¶
func (m *MsgMintLockedRepresentation) XXX_Unmarshal(b []byte) error
type MsgMintLockedRepresentationResponse ¶
type MsgMintLockedRepresentationResponse struct { }
MsgMintLockedRepresentationResponse is the return value of MsgMintLockedRepresentation.
func (*MsgMintLockedRepresentationResponse) Descriptor ¶
func (*MsgMintLockedRepresentationResponse) Descriptor() ([]byte, []int)
func (*MsgMintLockedRepresentationResponse) Marshal ¶
func (m *MsgMintLockedRepresentationResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintLockedRepresentationResponse) MarshalTo ¶
func (m *MsgMintLockedRepresentationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintLockedRepresentationResponse) MarshalToSizedBuffer ¶
func (m *MsgMintLockedRepresentationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintLockedRepresentationResponse) ProtoMessage ¶
func (*MsgMintLockedRepresentationResponse) ProtoMessage()
func (*MsgMintLockedRepresentationResponse) Reset ¶
func (m *MsgMintLockedRepresentationResponse) Reset()
func (*MsgMintLockedRepresentationResponse) Size ¶
func (m *MsgMintLockedRepresentationResponse) Size() (n int)
func (*MsgMintLockedRepresentationResponse) String ¶
func (m *MsgMintLockedRepresentationResponse) String() string
func (*MsgMintLockedRepresentationResponse) Unmarshal ¶
func (m *MsgMintLockedRepresentationResponse) Unmarshal(dAtA []byte) error
func (*MsgMintLockedRepresentationResponse) XXX_DiscardUnknown ¶
func (m *MsgMintLockedRepresentationResponse) XXX_DiscardUnknown()
func (*MsgMintLockedRepresentationResponse) XXX_Marshal ¶
func (m *MsgMintLockedRepresentationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintLockedRepresentationResponse) XXX_Merge ¶
func (m *MsgMintLockedRepresentationResponse) XXX_Merge(src proto.Message)
func (*MsgMintLockedRepresentationResponse) XXX_Size ¶
func (m *MsgMintLockedRepresentationResponse) XXX_Size() int
func (*MsgMintLockedRepresentationResponse) XXX_Unmarshal ¶
func (m *MsgMintLockedRepresentationResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // MintLockedRepresentation defines the operation to mint a user's staked // locked tokens representation that can be used in the liquid vesting module. MintLockedRepresentation(context.Context, *MsgMintLockedRepresentation) (*MsgMintLockedRepresentationResponse, error) // BurnLockedRepresentation defines the operation to burn a user's staked // locked tokens representation. BurnLockedRepresentation(context.Context, *MsgBurnLockedRepresentation) (*MsgBurnLockedRepresentationResponse, 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 { }
MsgWithdrawInsuranceFundResponse is the return value of MsgWithdrawInsuranceFund.
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 locked tokens. // For example, if this value is 2%, a user must send 2 tokens to // the insurance fund to restake 100 locked 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 // MsgBurnLockedRepresentation. 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 // MsgMintLockedRepresentation. Minters []string `protobuf:"bytes,3,rep,name=minters,proto3" json:"minters,omitempty"` // List of channels from which is allowed to receive deposits to the insurance // fund. AllowedChannels []string `protobuf:"bytes,5,rep,name=allowed_channels,json=allowedChannels,proto3" json:"allowed_channels,omitempty"` }
Params defines the parameters for the module.
func NewParams ¶
func NewParams( insurancePercentage math.LegacyDec, burners []string, minters []string, allowedChannels []string, ) Params
NewParams creates a new Params instance.
func (*Params) Descriptor ¶
func (*Params) GetAllowedChannels ¶
func (*Params) GetBurners ¶
func (*Params) GetMinters ¶
func (*Params) IsAllowedChannel ¶
IsAllowedChannel checks if is allowed to receive deposits to the insurance fund from the provided channel.
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 context.Context, poolID uint32, userAddress string) (restakingtypes.Delegation, bool, error) IterateUserServiceDelegations(ctx context.Context, userAddress string, cb func(restakingtypes.Delegation) (bool, error)) error IterateUserOperatorDelegations(ctx context.Context, userAddress string, cb func(restakingtypes.Delegation) (bool, error)) error UnbondRestakedAssets(ctx context.Context, user sdk.AccAddress, amount sdk.Coins) (time.Time, error) GetAllUnbondingDelegations(ctx context.Context) ([]restakingtypes.UnbondingDelegation, error) GetAllUserRestakedCoins(ctx context.Context, userAddress string) (sdk.DecCoins, error) GetAllUserUnbondingDelegations(ctx context.Context, userAddress string) []restakingtypes.UnbondingDelegation }
type ServicesKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BurnLockedRepresentation ¶
func (*UnimplementedMsgServer) BurnLockedRepresentation(ctx context.Context, req *MsgBurnLockedRepresentation) (*MsgBurnLockedRepresentationResponse, error)
func (*UnimplementedMsgServer) MintLockedRepresentation ¶
func (*UnimplementedMsgServer) MintLockedRepresentation(ctx context.Context, req *MsgMintLockedRepresentation) (*MsgMintLockedRepresentationResponse, 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"` }
UserInsuranceFund defines a user's insurance fund.
func NewEmptyInsuranceFund ¶
func NewEmptyInsuranceFund() UserInsuranceFund
func NewInsuranceFund ¶
func NewInsuranceFund(balance sdk.Coins) UserInsuranceFund
func (*UserInsuranceFund) Add ¶
func (u *UserInsuranceFund) Add(amount sdk.Coins)
func (*UserInsuranceFund) CanCoverDecCoins ¶
func (*UserInsuranceFund) Descriptor ¶
func (*UserInsuranceFund) Descriptor() ([]byte, []int)
func (*UserInsuranceFund) GetBalance ¶
func (m *UserInsuranceFund) GetBalance() 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) 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 (*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 UserInsuranceFundEntry ¶
type UserInsuranceFundEntry struct { // Address of who owns the insurance fund. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` // Amount of coins deposited into 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"` }
UserInsuranceFundEntry represents an entry containing the data of a user insurance fund.
func NewUserInsuranceFundEntry ¶
func NewUserInsuranceFundEntry(userAddress string, balance sdk.Coins) UserInsuranceFundEntry
NewUserInsuranceFundEntry creates a new UserInsuranceFundState.
func (*UserInsuranceFundEntry) Descriptor ¶
func (*UserInsuranceFundEntry) Descriptor() ([]byte, []int)
func (*UserInsuranceFundEntry) GetBalance ¶
func (m *UserInsuranceFundEntry) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*UserInsuranceFundEntry) GetUserAddress ¶
func (m *UserInsuranceFundEntry) GetUserAddress() string
func (*UserInsuranceFundEntry) Marshal ¶
func (m *UserInsuranceFundEntry) Marshal() (dAtA []byte, err error)
func (*UserInsuranceFundEntry) MarshalTo ¶
func (m *UserInsuranceFundEntry) MarshalTo(dAtA []byte) (int, error)
func (*UserInsuranceFundEntry) MarshalToSizedBuffer ¶
func (m *UserInsuranceFundEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserInsuranceFundEntry) ProtoMessage ¶
func (*UserInsuranceFundEntry) ProtoMessage()
func (*UserInsuranceFundEntry) Reset ¶
func (m *UserInsuranceFundEntry) Reset()
func (*UserInsuranceFundEntry) Size ¶
func (m *UserInsuranceFundEntry) Size() (n int)
func (*UserInsuranceFundEntry) String ¶
func (m *UserInsuranceFundEntry) String() string
func (*UserInsuranceFundEntry) Unmarshal ¶
func (m *UserInsuranceFundEntry) Unmarshal(dAtA []byte) error
func (*UserInsuranceFundEntry) Validate ¶
func (uif *UserInsuranceFundEntry) Validate() error
func (*UserInsuranceFundEntry) XXX_DiscardUnknown ¶
func (m *UserInsuranceFundEntry) XXX_DiscardUnknown()
func (*UserInsuranceFundEntry) XXX_Marshal ¶
func (m *UserInsuranceFundEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserInsuranceFundEntry) XXX_Merge ¶
func (m *UserInsuranceFundEntry) XXX_Merge(src proto.Message)
func (*UserInsuranceFundEntry) XXX_Size ¶
func (m *UserInsuranceFundEntry) XXX_Size() int
func (*UserInsuranceFundEntry) XXX_Unmarshal ¶
func (m *UserInsuranceFundEntry) XXX_Unmarshal(b []byte) error