Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type BurnCoins
- func (*BurnCoins) Descriptor() ([]byte, []int)deprecated
- func (x *BurnCoins) GetAmount() []*v1beta1.Coin
- func (x *BurnCoins) GetCompletionTime() *timestamppb.Timestamp
- func (x *BurnCoins) GetDelegatorAddress() string
- func (*BurnCoins) ProtoMessage()
- func (x *BurnCoins) ProtoReflect() protoreflect.Message
- func (x *BurnCoins) Reset()
- func (x *BurnCoins) String() string
- type BurnCoinsList
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetBurnCoins() []*BurnCoins
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetUserInsuranceFunds() []*UserInsuranceFundState
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgBurnVestedRepresentation
- func (*MsgBurnVestedRepresentation) Descriptor() ([]byte, []int)deprecated
- func (x *MsgBurnVestedRepresentation) GetAmount() []*v1beta1.Coin
- func (x *MsgBurnVestedRepresentation) GetSender() string
- func (x *MsgBurnVestedRepresentation) GetUser() string
- func (*MsgBurnVestedRepresentation) ProtoMessage()
- func (x *MsgBurnVestedRepresentation) ProtoReflect() protoreflect.Message
- func (x *MsgBurnVestedRepresentation) Reset()
- func (x *MsgBurnVestedRepresentation) String() string
- type MsgBurnVestedRepresentationResponse
- func (*MsgBurnVestedRepresentationResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgBurnVestedRepresentationResponse) ProtoMessage()
- func (x *MsgBurnVestedRepresentationResponse) ProtoReflect() protoreflect.Message
- func (x *MsgBurnVestedRepresentationResponse) Reset()
- func (x *MsgBurnVestedRepresentationResponse) String() string
- type MsgClient
- type MsgMintVestedRepresentation
- func (*MsgMintVestedRepresentation) Descriptor() ([]byte, []int)deprecated
- func (x *MsgMintVestedRepresentation) GetAmount() []*v1beta1.Coin
- func (x *MsgMintVestedRepresentation) GetReceiver() string
- func (x *MsgMintVestedRepresentation) GetSender() string
- func (*MsgMintVestedRepresentation) ProtoMessage()
- func (x *MsgMintVestedRepresentation) ProtoReflect() protoreflect.Message
- func (x *MsgMintVestedRepresentation) Reset()
- func (x *MsgMintVestedRepresentation) String() string
- type MsgMintVestedRepresentationResponse
- func (*MsgMintVestedRepresentationResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgMintVestedRepresentationResponse) ProtoMessage()
- func (x *MsgMintVestedRepresentationResponse) ProtoReflect() protoreflect.Message
- func (x *MsgMintVestedRepresentationResponse) Reset()
- func (x *MsgMintVestedRepresentationResponse) String() string
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type MsgWithdrawInsuranceFund
- func (*MsgWithdrawInsuranceFund) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawInsuranceFund) GetAmount() []*v1beta1.Coin
- func (x *MsgWithdrawInsuranceFund) GetSender() string
- func (*MsgWithdrawInsuranceFund) ProtoMessage()
- func (x *MsgWithdrawInsuranceFund) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawInsuranceFund) Reset()
- func (x *MsgWithdrawInsuranceFund) String() string
- type MsgWithdrawInsuranceFundResponse
- func (*MsgWithdrawInsuranceFundResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgWithdrawInsuranceFundResponse) ProtoMessage()
- func (x *MsgWithdrawInsuranceFundResponse) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawInsuranceFundResponse) Reset()
- func (x *MsgWithdrawInsuranceFundResponse) String() string
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetBurners() []string
- func (x *Params) GetInsurancePercentage() string
- func (x *Params) GetMinters() []string
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryClient
- type QueryInsuranceFundRequest
- type QueryInsuranceFundResponse
- func (*QueryInsuranceFundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryInsuranceFundResponse) GetAmount() []*v1beta1.Coin
- func (*QueryInsuranceFundResponse) ProtoMessage()
- func (x *QueryInsuranceFundResponse) ProtoReflect() protoreflect.Message
- func (x *QueryInsuranceFundResponse) Reset()
- func (x *QueryInsuranceFundResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QueryUserInsuranceFundRequest
- func (*QueryUserInsuranceFundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserInsuranceFundRequest) GetUserAddress() string
- func (*QueryUserInsuranceFundRequest) ProtoMessage()
- func (x *QueryUserInsuranceFundRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUserInsuranceFundRequest) Reset()
- func (x *QueryUserInsuranceFundRequest) String() string
- type QueryUserInsuranceFundResponse
- func (*QueryUserInsuranceFundResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserInsuranceFundResponse) GetBalance() []*v1beta1.Coin
- func (x *QueryUserInsuranceFundResponse) GetUsed() []*v1beta1.Coin
- func (*QueryUserInsuranceFundResponse) ProtoMessage()
- func (x *QueryUserInsuranceFundResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUserInsuranceFundResponse) Reset()
- func (x *QueryUserInsuranceFundResponse) String() string
- type QueryUserInsuranceFundsRequest
- func (*QueryUserInsuranceFundsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserInsuranceFundsRequest) GetPagination() *v1beta11.PageRequest
- func (*QueryUserInsuranceFundsRequest) ProtoMessage()
- func (x *QueryUserInsuranceFundsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUserInsuranceFundsRequest) Reset()
- func (x *QueryUserInsuranceFundsRequest) String() string
- type QueryUserInsuranceFundsResponse
- func (*QueryUserInsuranceFundsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserInsuranceFundsResponse) GetInsuranceFunds() []*UserInsuranceFundData
- func (x *QueryUserInsuranceFundsResponse) GetPagination() *v1beta11.PageResponse
- func (*QueryUserInsuranceFundsResponse) ProtoMessage()
- func (x *QueryUserInsuranceFundsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUserInsuranceFundsResponse) Reset()
- func (x *QueryUserInsuranceFundsResponse) String() string
- type QueryUserRestakableAssetsRequest
- func (*QueryUserRestakableAssetsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserRestakableAssetsRequest) GetUserAddress() string
- func (*QueryUserRestakableAssetsRequest) ProtoMessage()
- func (x *QueryUserRestakableAssetsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUserRestakableAssetsRequest) Reset()
- func (x *QueryUserRestakableAssetsRequest) String() string
- type QueryUserRestakableAssetsResponse
- func (*QueryUserRestakableAssetsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserRestakableAssetsResponse) GetAmount() []*v1beta1.Coin
- func (*QueryUserRestakableAssetsResponse) ProtoMessage()
- func (x *QueryUserRestakableAssetsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUserRestakableAssetsResponse) Reset()
- func (x *QueryUserRestakableAssetsResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) BurnVestedRepresentation(context.Context, *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error)
- func (UnimplementedMsgServer) MintVestedRepresentation(context.Context, *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (UnimplementedMsgServer) WithdrawInsuranceFund(context.Context, *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) InsuranceFund(context.Context, *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) UserInsuranceFund(context.Context, *QueryUserInsuranceFundRequest) (*QueryUserInsuranceFundResponse, error)
- func (UnimplementedQueryServer) UserInsuranceFunds(context.Context, *QueryUserInsuranceFundsRequest) (*QueryUserInsuranceFundsResponse, error)
- func (UnimplementedQueryServer) UserRestakableAssets(context.Context, *QueryUserRestakableAssetsRequest) (*QueryUserRestakableAssetsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type UserInsuranceFund
- func (*UserInsuranceFund) Descriptor() ([]byte, []int)deprecated
- func (x *UserInsuranceFund) GetBalance() []*v1beta1.Coin
- func (x *UserInsuranceFund) GetUsed() []*v1beta1.Coin
- func (*UserInsuranceFund) ProtoMessage()
- func (x *UserInsuranceFund) ProtoReflect() protoreflect.Message
- func (x *UserInsuranceFund) Reset()
- func (x *UserInsuranceFund) String() string
- type UserInsuranceFundData
- func (*UserInsuranceFundData) Descriptor() ([]byte, []int)deprecated
- func (x *UserInsuranceFundData) GetBalance() []*v1beta1.Coin
- func (x *UserInsuranceFundData) GetUsed() []*v1beta1.Coin
- func (x *UserInsuranceFundData) GetUserAddress() string
- func (*UserInsuranceFundData) ProtoMessage()
- func (x *UserInsuranceFundData) ProtoReflect() protoreflect.Message
- func (x *UserInsuranceFundData) Reset()
- func (x *UserInsuranceFundData) String() string
- type UserInsuranceFundState
- func (*UserInsuranceFundState) Descriptor() ([]byte, []int)deprecated
- func (x *UserInsuranceFundState) GetInsuranceFund() *UserInsuranceFund
- func (x *UserInsuranceFundState) GetUserAddress() string
- func (*UserInsuranceFundState) ProtoMessage()
- func (x *UserInsuranceFundState) ProtoReflect() protoreflect.Message
- func (x *UserInsuranceFundState) Reset()
- func (x *UserInsuranceFundState) String() string
Constants ¶
const ( Msg_MintVestedRepresentation_FullMethodName = "/milkyway.liquidvesting.v1.Msg/MintVestedRepresentation" Msg_BurnVestedRepresentation_FullMethodName = "/milkyway.liquidvesting.v1.Msg/BurnVestedRepresentation" Msg_WithdrawInsuranceFund_FullMethodName = "/milkyway.liquidvesting.v1.Msg/WithdrawInsuranceFund" Msg_UpdateParams_FullMethodName = "/milkyway.liquidvesting.v1.Msg/UpdateParams" )
const ( Query_UserInsuranceFund_FullMethodName = "/milkyway.liquidvesting.v1.Query/UserInsuranceFund" Query_UserInsuranceFunds_FullMethodName = "/milkyway.liquidvesting.v1.Query/UserInsuranceFunds" Query_UserRestakableAssets_FullMethodName = "/milkyway.liquidvesting.v1.Query/UserRestakableAssets" Query_InsuranceFund_FullMethodName = "/milkyway.liquidvesting.v1.Query/InsuranceFund" Query_Params_FullMethodName = "/milkyway.liquidvesting.v1.Query/Params" )
Variables ¶
var File_milkyway_liquidvesting_v1_genesis_proto protoreflect.FileDescriptor
var File_milkyway_liquidvesting_v1_messages_proto protoreflect.FileDescriptor
var File_milkyway_liquidvesting_v1_models_proto protoreflect.FileDescriptor
var File_milkyway_liquidvesting_v1_params_proto protoreflect.FileDescriptor
var File_milkyway_liquidvesting_v1_query_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "milkyway.liquidvesting.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MintVestedRepresentation", Handler: _Msg_MintVestedRepresentation_Handler, }, { MethodName: "BurnVestedRepresentation", Handler: _Msg_BurnVestedRepresentation_Handler, }, { MethodName: "WithdrawInsuranceFund", Handler: _Msg_WithdrawInsuranceFund_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/liquidvesting/v1/messages.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "milkyway.liquidvesting.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserInsuranceFund", Handler: _Query_UserInsuranceFund_Handler, }, { MethodName: "UserInsuranceFunds", Handler: _Query_UserInsuranceFunds_Handler, }, { MethodName: "UserRestakableAssets", Handler: _Query_UserRestakableAssets_Handler, }, { MethodName: "InsuranceFund", Handler: _Query_InsuranceFund_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "milkyway/liquidvesting/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
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 *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"` // Amount of coins to be burned from the delegator address. Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
BurnCoins is a struct that contains the information about the coins to burn once the unbonding period of the vested representation tokens ends.
func (*BurnCoins) Descriptor
deprecated
func (*BurnCoins) GetCompletionTime ¶
func (x *BurnCoins) GetCompletionTime() *timestamppb.Timestamp
func (*BurnCoins) GetDelegatorAddress ¶
func (*BurnCoins) ProtoMessage ¶
func (*BurnCoins) ProtoMessage()
func (*BurnCoins) ProtoReflect ¶
func (x *BurnCoins) ProtoReflect() protoreflect.Message
type BurnCoinsList ¶
type BurnCoinsList struct { Data []*BurnCoins `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
BurnCoinsList represents a list of BurnCoins.
func (*BurnCoinsList) Descriptor
deprecated
func (*BurnCoinsList) Descriptor() ([]byte, []int)
Deprecated: Use BurnCoinsList.ProtoReflect.Descriptor instead.
func (*BurnCoinsList) GetData ¶
func (x *BurnCoinsList) GetData() []*BurnCoins
func (*BurnCoinsList) ProtoMessage ¶
func (*BurnCoinsList) ProtoMessage()
func (*BurnCoinsList) ProtoReflect ¶
func (x *BurnCoinsList) ProtoReflect() protoreflect.Message
func (*BurnCoinsList) Reset ¶
func (x *BurnCoinsList) Reset()
func (*BurnCoinsList) String ¶
func (x *BurnCoinsList) String() string
type GenesisState ¶
type GenesisState struct { // Params defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // 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,omitempty"` // UserInsuranceFunds represents the users' insurance fund. UserInsuranceFunds []*UserInsuranceFundState `protobuf:"bytes,3,rep,name=user_insurance_funds,json=userInsuranceFunds,proto3" json:"user_insurance_funds,omitempty"` // contains filtered or unexported fields }
GenesisState defines the liquidvesting module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetBurnCoins ¶
func (x *GenesisState) GetBurnCoins() []*BurnCoins
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetUserInsuranceFunds ¶
func (x *GenesisState) GetUserInsuranceFunds() []*UserInsuranceFundState
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgBurnVestedRepresentation ¶
type MsgBurnVestedRepresentation struct { // User that want to triger the tokens burn. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // User from which we want to burn the tokens. User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // The amount of tokens that will be burned from the user's balance. Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgBurnVestedRepresentation defines the message structure for the BurnVestedRepresentation gRPC service method. It allows an authorized account to burn a user's staked vested tokens representation.
func (*MsgBurnVestedRepresentation) Descriptor
deprecated
func (*MsgBurnVestedRepresentation) Descriptor() ([]byte, []int)
Deprecated: Use MsgBurnVestedRepresentation.ProtoReflect.Descriptor instead.
func (*MsgBurnVestedRepresentation) GetAmount ¶
func (x *MsgBurnVestedRepresentation) GetAmount() []*v1beta1.Coin
func (*MsgBurnVestedRepresentation) GetSender ¶
func (x *MsgBurnVestedRepresentation) GetSender() string
func (*MsgBurnVestedRepresentation) GetUser ¶
func (x *MsgBurnVestedRepresentation) GetUser() string
func (*MsgBurnVestedRepresentation) ProtoMessage ¶
func (*MsgBurnVestedRepresentation) ProtoMessage()
func (*MsgBurnVestedRepresentation) ProtoReflect ¶
func (x *MsgBurnVestedRepresentation) ProtoReflect() protoreflect.Message
func (*MsgBurnVestedRepresentation) Reset ¶
func (x *MsgBurnVestedRepresentation) Reset()
func (*MsgBurnVestedRepresentation) String ¶
func (x *MsgBurnVestedRepresentation) String() string
type MsgBurnVestedRepresentationResponse ¶
type MsgBurnVestedRepresentationResponse struct {
// contains filtered or unexported fields
}
MsgBurnVestedRepresentationResponse is the return value of MsgBurnVestedRepresentation.
func (*MsgBurnVestedRepresentationResponse) Descriptor
deprecated
func (*MsgBurnVestedRepresentationResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgBurnVestedRepresentationResponse.ProtoReflect.Descriptor instead.
func (*MsgBurnVestedRepresentationResponse) ProtoMessage ¶
func (*MsgBurnVestedRepresentationResponse) ProtoMessage()
func (*MsgBurnVestedRepresentationResponse) ProtoReflect ¶
func (x *MsgBurnVestedRepresentationResponse) ProtoReflect() protoreflect.Message
func (*MsgBurnVestedRepresentationResponse) Reset ¶
func (x *MsgBurnVestedRepresentationResponse) Reset()
func (*MsgBurnVestedRepresentationResponse) String ¶
func (x *MsgBurnVestedRepresentationResponse) String() string
type MsgClient ¶
type MsgClient interface { // MintVestedRepresentation defines the operation to mint a user's staked // vested tokens representation that can be used in the liquid vesting module. MintVestedRepresentation(ctx context.Context, in *MsgMintVestedRepresentation, opts ...grpc.CallOption) (*MsgMintVestedRepresentationResponse, error) // BurnVestedRepresentation defines the operation to burn a user's staked // vested tokens representation. BurnVestedRepresentation(ctx context.Context, in *MsgBurnVestedRepresentation, opts ...grpc.CallOption) (*MsgBurnVestedRepresentationResponse, error) // WithdrawInsuranceFund defines the operation to withdraw an amount // of tokens from the user's insurance fund. // This can be used from the user to withdraw their funds after // some of their staking representations have been burned or if the // balance in the insurance fund is more than the required to cover all // their staking representations. WithdrawInsuranceFund(ctx context.Context, in *MsgWithdrawInsuranceFund, opts ...grpc.CallOption) (*MsgWithdrawInsuranceFundResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Msg defines the services module's gRPC message service.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgMintVestedRepresentation ¶
type MsgMintVestedRepresentation struct { // User that want to triger the tokens mint. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // User that will receive the minted tokens. Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // The amount of tokens that will be minted Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgMintVestedRepresentation defines the message structure for the MintVestedRepresentation gRPC service method. It allows an authorized account to mint a user's staked vested tokens representation that can be used in the liquid vesting module.
func (*MsgMintVestedRepresentation) Descriptor
deprecated
func (*MsgMintVestedRepresentation) Descriptor() ([]byte, []int)
Deprecated: Use MsgMintVestedRepresentation.ProtoReflect.Descriptor instead.
func (*MsgMintVestedRepresentation) GetAmount ¶
func (x *MsgMintVestedRepresentation) GetAmount() []*v1beta1.Coin
func (*MsgMintVestedRepresentation) GetReceiver ¶
func (x *MsgMintVestedRepresentation) GetReceiver() string
func (*MsgMintVestedRepresentation) GetSender ¶
func (x *MsgMintVestedRepresentation) GetSender() string
func (*MsgMintVestedRepresentation) ProtoMessage ¶
func (*MsgMintVestedRepresentation) ProtoMessage()
func (*MsgMintVestedRepresentation) ProtoReflect ¶
func (x *MsgMintVestedRepresentation) ProtoReflect() protoreflect.Message
func (*MsgMintVestedRepresentation) Reset ¶
func (x *MsgMintVestedRepresentation) Reset()
func (*MsgMintVestedRepresentation) String ¶
func (x *MsgMintVestedRepresentation) String() string
type MsgMintVestedRepresentationResponse ¶
type MsgMintVestedRepresentationResponse struct {
// contains filtered or unexported fields
}
MsgMintVestedRepresentationResponse is the return value of MsgMintVestedRepresentation.
func (*MsgMintVestedRepresentationResponse) Descriptor
deprecated
func (*MsgMintVestedRepresentationResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgMintVestedRepresentationResponse.ProtoReflect.Descriptor instead.
func (*MsgMintVestedRepresentationResponse) ProtoMessage ¶
func (*MsgMintVestedRepresentationResponse) ProtoMessage()
func (*MsgMintVestedRepresentationResponse) ProtoReflect ¶
func (x *MsgMintVestedRepresentationResponse) ProtoReflect() protoreflect.Message
func (*MsgMintVestedRepresentationResponse) Reset ¶
func (x *MsgMintVestedRepresentationResponse) Reset()
func (*MsgMintVestedRepresentationResponse) String ¶
func (x *MsgMintVestedRepresentationResponse) String() string
type MsgServer ¶
type MsgServer interface { // MintVestedRepresentation defines the operation to mint a user's staked // vested tokens representation that can be used in the liquid vesting module. MintVestedRepresentation(context.Context, *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error) // BurnVestedRepresentation defines the operation to burn a user's staked // vested tokens representation. BurnVestedRepresentation(context.Context, *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error) // WithdrawInsuranceFund defines the operation to withdraw an amount // of tokens from the user's insurance fund. // This can be used from the user to withdraw their funds after // some of their staking representations have been burned or if the // balance in the insurance fund is more than the required to cover all // their staking representations. WithdrawInsuranceFund(context.Context, *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error) // UpdateParams defines a (governance) operation for updating the module // parameters. // The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.
Msg defines the services module's gRPC message 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"` // Params define the parameters to update. // // NOTE: All parameters must be supplied. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse is the return value of MsgUpdateParams.
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
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 []*v1beta1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
MsgWithdrawInsuranceFund defines the message structure for the WithdrawInsuranceFund gRPC service method.
func (*MsgWithdrawInsuranceFund) Descriptor
deprecated
func (*MsgWithdrawInsuranceFund) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawInsuranceFund.ProtoReflect.Descriptor instead.
func (*MsgWithdrawInsuranceFund) GetAmount ¶
func (x *MsgWithdrawInsuranceFund) GetAmount() []*v1beta1.Coin
func (*MsgWithdrawInsuranceFund) GetSender ¶
func (x *MsgWithdrawInsuranceFund) GetSender() string
func (*MsgWithdrawInsuranceFund) ProtoMessage ¶
func (*MsgWithdrawInsuranceFund) ProtoMessage()
func (*MsgWithdrawInsuranceFund) ProtoReflect ¶
func (x *MsgWithdrawInsuranceFund) ProtoReflect() protoreflect.Message
func (*MsgWithdrawInsuranceFund) Reset ¶
func (x *MsgWithdrawInsuranceFund) Reset()
func (*MsgWithdrawInsuranceFund) String ¶
func (x *MsgWithdrawInsuranceFund) String() string
type MsgWithdrawInsuranceFundResponse ¶
type MsgWithdrawInsuranceFundResponse struct {
// contains filtered or unexported fields
}
func (*MsgWithdrawInsuranceFundResponse) Descriptor
deprecated
func (*MsgWithdrawInsuranceFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawInsuranceFundResponse.ProtoReflect.Descriptor instead.
func (*MsgWithdrawInsuranceFundResponse) ProtoMessage ¶
func (*MsgWithdrawInsuranceFundResponse) ProtoMessage()
func (*MsgWithdrawInsuranceFundResponse) ProtoReflect ¶
func (x *MsgWithdrawInsuranceFundResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawInsuranceFundResponse) Reset ¶
func (x *MsgWithdrawInsuranceFundResponse) Reset()
func (*MsgWithdrawInsuranceFundResponse) String ¶
func (x *MsgWithdrawInsuranceFundResponse) String() string
type Params ¶
type Params struct { // This value represents the percentage that needs to be sent to the // insurance fund in order to restake a certain amount of vested tokens. // For example, if this value is 2%, a user must send 2 tokens to // the insurance fund to restake 100 vested tokens InsurancePercentage string `protobuf:"bytes,1,opt,name=insurance_percentage,json=insurancePercentage,proto3" json:"insurance_percentage,omitempty"` // This value represents the list of users who are authorized to execute the // MsgBurnVestedRepresentation. Burners []string `protobuf:"bytes,2,rep,name=burners,proto3" json:"burners,omitempty"` // This value represents the list of users who are authorized to execute the // MsgMintVestedRepresentation. Minters []string `protobuf:"bytes,3,rep,name=minters,proto3" json:"minters,omitempty"` // contains filtered or unexported fields }
Params defines the parameters for the module.
func (*Params) Descriptor
deprecated
func (*Params) GetBurners ¶
func (*Params) GetInsurancePercentage ¶
func (*Params) GetMinters ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Query defines the gRPC querier service.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryInsuranceFundRequest ¶
type QueryInsuranceFundRequest struct {
// contains filtered or unexported fields
}
QueryInsuranceFundRequest is the request type for the Query/InsuranceFund RPC method.
func (*QueryInsuranceFundRequest) Descriptor
deprecated
func (*QueryInsuranceFundRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryInsuranceFundRequest.ProtoReflect.Descriptor instead.
func (*QueryInsuranceFundRequest) ProtoMessage ¶
func (*QueryInsuranceFundRequest) ProtoMessage()
func (*QueryInsuranceFundRequest) ProtoReflect ¶
func (x *QueryInsuranceFundRequest) ProtoReflect() protoreflect.Message
func (*QueryInsuranceFundRequest) Reset ¶
func (x *QueryInsuranceFundRequest) Reset()
func (*QueryInsuranceFundRequest) String ¶
func (x *QueryInsuranceFundRequest) String() string
type QueryInsuranceFundResponse ¶
type QueryInsuranceFundResponse struct { // amount is the amount of tokens that are in the insurance fund. Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
QueryInsuranceFundResponse is the response type for the Query/InsuranceFund RPC method.
func (*QueryInsuranceFundResponse) Descriptor
deprecated
func (*QueryInsuranceFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryInsuranceFundResponse.ProtoReflect.Descriptor instead.
func (*QueryInsuranceFundResponse) GetAmount ¶
func (x *QueryInsuranceFundResponse) GetAmount() []*v1beta1.Coin
func (*QueryInsuranceFundResponse) ProtoMessage ¶
func (*QueryInsuranceFundResponse) ProtoMessage()
func (*QueryInsuranceFundResponse) ProtoReflect ¶
func (x *QueryInsuranceFundResponse) ProtoReflect() protoreflect.Message
func (*QueryInsuranceFundResponse) Reset ¶
func (x *QueryInsuranceFundResponse) Reset()
func (*QueryInsuranceFundResponse) String ¶
func (x *QueryInsuranceFundResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
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) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility.
Query defines the gRPC querier 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"` // contains filtered or unexported fields }
QueryUserInsuranceFundRequest is the request type for the Query/UserInsuranceFund RPC method.
func (*QueryUserInsuranceFundRequest) Descriptor
deprecated
func (*QueryUserInsuranceFundRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserInsuranceFundRequest.ProtoReflect.Descriptor instead.
func (*QueryUserInsuranceFundRequest) GetUserAddress ¶
func (x *QueryUserInsuranceFundRequest) GetUserAddress() string
func (*QueryUserInsuranceFundRequest) ProtoMessage ¶
func (*QueryUserInsuranceFundRequest) ProtoMessage()
func (*QueryUserInsuranceFundRequest) ProtoReflect ¶
func (x *QueryUserInsuranceFundRequest) ProtoReflect() protoreflect.Message
func (*QueryUserInsuranceFundRequest) Reset ¶
func (x *QueryUserInsuranceFundRequest) Reset()
func (*QueryUserInsuranceFundRequest) String ¶
func (x *QueryUserInsuranceFundRequest) String() string
type QueryUserInsuranceFundResponse ¶
type QueryUserInsuranceFundResponse struct { // balance is the amount of tokens that is in the user's insurance fund. Balance []*v1beta1.Coin `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"` // used is the amount of tokens is being used to cover the user's // restaked assets. Used []*v1beta1.Coin `protobuf:"bytes,2,rep,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
QueryUserInsuranceFundResponse is the response type for the Query/UserInsuranceFund RPC method.
func (*QueryUserInsuranceFundResponse) Descriptor
deprecated
func (*QueryUserInsuranceFundResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserInsuranceFundResponse.ProtoReflect.Descriptor instead.
func (*QueryUserInsuranceFundResponse) GetBalance ¶
func (x *QueryUserInsuranceFundResponse) GetBalance() []*v1beta1.Coin
func (*QueryUserInsuranceFundResponse) GetUsed ¶
func (x *QueryUserInsuranceFundResponse) GetUsed() []*v1beta1.Coin
func (*QueryUserInsuranceFundResponse) ProtoMessage ¶
func (*QueryUserInsuranceFundResponse) ProtoMessage()
func (*QueryUserInsuranceFundResponse) ProtoReflect ¶
func (x *QueryUserInsuranceFundResponse) ProtoReflect() protoreflect.Message
func (*QueryUserInsuranceFundResponse) Reset ¶
func (x *QueryUserInsuranceFundResponse) Reset()
func (*QueryUserInsuranceFundResponse) String ¶
func (x *QueryUserInsuranceFundResponse) String() string
type QueryUserInsuranceFundsRequest ¶
type QueryUserInsuranceFundsRequest struct { Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryUserInsuranceFundsRequest is the request type for the Query/UserInsuranceFunds RPC method.
func (*QueryUserInsuranceFundsRequest) Descriptor
deprecated
func (*QueryUserInsuranceFundsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserInsuranceFundsRequest.ProtoReflect.Descriptor instead.
func (*QueryUserInsuranceFundsRequest) GetPagination ¶
func (x *QueryUserInsuranceFundsRequest) GetPagination() *v1beta11.PageRequest
func (*QueryUserInsuranceFundsRequest) ProtoMessage ¶
func (*QueryUserInsuranceFundsRequest) ProtoMessage()
func (*QueryUserInsuranceFundsRequest) ProtoReflect ¶
func (x *QueryUserInsuranceFundsRequest) ProtoReflect() protoreflect.Message
func (*QueryUserInsuranceFundsRequest) Reset ¶
func (x *QueryUserInsuranceFundsRequest) Reset()
func (*QueryUserInsuranceFundsRequest) String ¶
func (x *QueryUserInsuranceFundsRequest) String() string
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,omitempty"` // Pagination defines the pagination response Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryUserInsuranceFundsResponse is the response type for the Query/UserInsuranceFunds RPC method.
func (*QueryUserInsuranceFundsResponse) Descriptor
deprecated
func (*QueryUserInsuranceFundsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserInsuranceFundsResponse.ProtoReflect.Descriptor instead.
func (*QueryUserInsuranceFundsResponse) GetInsuranceFunds ¶
func (x *QueryUserInsuranceFundsResponse) GetInsuranceFunds() []*UserInsuranceFundData
func (*QueryUserInsuranceFundsResponse) GetPagination ¶
func (x *QueryUserInsuranceFundsResponse) GetPagination() *v1beta11.PageResponse
func (*QueryUserInsuranceFundsResponse) ProtoMessage ¶
func (*QueryUserInsuranceFundsResponse) ProtoMessage()
func (*QueryUserInsuranceFundsResponse) ProtoReflect ¶
func (x *QueryUserInsuranceFundsResponse) ProtoReflect() protoreflect.Message
func (*QueryUserInsuranceFundsResponse) Reset ¶
func (x *QueryUserInsuranceFundsResponse) Reset()
func (*QueryUserInsuranceFundsResponse) String ¶
func (x *QueryUserInsuranceFundsResponse) String() string
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"` // contains filtered or unexported fields }
QueryUserRestakableAssetsRequest is the request type for the Query/UserRestakableAssets RPC method.
func (*QueryUserRestakableAssetsRequest) Descriptor
deprecated
func (*QueryUserRestakableAssetsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserRestakableAssetsRequest.ProtoReflect.Descriptor instead.
func (*QueryUserRestakableAssetsRequest) GetUserAddress ¶
func (x *QueryUserRestakableAssetsRequest) GetUserAddress() string
func (*QueryUserRestakableAssetsRequest) ProtoMessage ¶
func (*QueryUserRestakableAssetsRequest) ProtoMessage()
func (*QueryUserRestakableAssetsRequest) ProtoReflect ¶
func (x *QueryUserRestakableAssetsRequest) ProtoReflect() protoreflect.Message
func (*QueryUserRestakableAssetsRequest) Reset ¶
func (x *QueryUserRestakableAssetsRequest) Reset()
func (*QueryUserRestakableAssetsRequest) String ¶
func (x *QueryUserRestakableAssetsRequest) String() string
type QueryUserRestakableAssetsResponse ¶
type QueryUserRestakableAssetsResponse struct { // amount is the amount of tokens that the user can restake. Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
QueryUserRestakableAssetsResponse is the response type for the Query/UserRestakableAssets RPC method.
func (*QueryUserRestakableAssetsResponse) Descriptor
deprecated
func (*QueryUserRestakableAssetsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryUserRestakableAssetsResponse.ProtoReflect.Descriptor instead.
func (*QueryUserRestakableAssetsResponse) GetAmount ¶
func (x *QueryUserRestakableAssetsResponse) GetAmount() []*v1beta1.Coin
func (*QueryUserRestakableAssetsResponse) ProtoMessage ¶
func (*QueryUserRestakableAssetsResponse) ProtoMessage()
func (*QueryUserRestakableAssetsResponse) ProtoReflect ¶
func (x *QueryUserRestakableAssetsResponse) ProtoReflect() protoreflect.Message
func (*QueryUserRestakableAssetsResponse) Reset ¶
func (x *QueryUserRestakableAssetsResponse) Reset()
func (*QueryUserRestakableAssetsResponse) String ¶
func (x *QueryUserRestakableAssetsResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedMsgServer) BurnVestedRepresentation ¶
func (UnimplementedMsgServer) BurnVestedRepresentation(context.Context, *MsgBurnVestedRepresentation) (*MsgBurnVestedRepresentationResponse, error)
func (UnimplementedMsgServer) MintVestedRepresentation ¶
func (UnimplementedMsgServer) MintVestedRepresentation(context.Context, *MsgMintVestedRepresentation) (*MsgMintVestedRepresentationResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (UnimplementedMsgServer) WithdrawInsuranceFund ¶
func (UnimplementedMsgServer) WithdrawInsuranceFund(context.Context, *MsgWithdrawInsuranceFund) (*MsgWithdrawInsuranceFundResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedQueryServer) InsuranceFund ¶
func (UnimplementedQueryServer) InsuranceFund(context.Context, *QueryInsuranceFundRequest) (*QueryInsuranceFundResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) UserInsuranceFund ¶
func (UnimplementedQueryServer) UserInsuranceFund(context.Context, *QueryUserInsuranceFundRequest) (*QueryUserInsuranceFundResponse, error)
func (UnimplementedQueryServer) UserInsuranceFunds ¶
func (UnimplementedQueryServer) UserInsuranceFunds(context.Context, *QueryUserInsuranceFundsRequest) (*QueryUserInsuranceFundsResponse, error)
func (UnimplementedQueryServer) UserRestakableAssets ¶
func (UnimplementedQueryServer) UserRestakableAssets(context.Context, *QueryUserRestakableAssetsRequest) (*QueryUserRestakableAssetsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type UserInsuranceFund ¶
type UserInsuranceFund struct { // Amount of coins deposited into the user's insurance fund. Balance []*v1beta1.Coin `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"` // Amount the amount in the user's insurance that is being used to secure the // restaked toknes. For example an user has 10 TIA in their insurance fund, // the insurance percentage is 1% so they can restake 1000 TIA. // The user restakes only 100 TIA, in this case the balance is 10 TIA and used // is 1 TIA. Used []*v1beta1.Coin `protobuf:"bytes,2,rep,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
UserInsuranceFund defines a user's insurance fund.
func (*UserInsuranceFund) Descriptor
deprecated
func (*UserInsuranceFund) Descriptor() ([]byte, []int)
Deprecated: Use UserInsuranceFund.ProtoReflect.Descriptor instead.
func (*UserInsuranceFund) GetBalance ¶
func (x *UserInsuranceFund) GetBalance() []*v1beta1.Coin
func (*UserInsuranceFund) GetUsed ¶
func (x *UserInsuranceFund) GetUsed() []*v1beta1.Coin
func (*UserInsuranceFund) ProtoMessage ¶
func (*UserInsuranceFund) ProtoMessage()
func (*UserInsuranceFund) ProtoReflect ¶
func (x *UserInsuranceFund) ProtoReflect() protoreflect.Message
func (*UserInsuranceFund) Reset ¶
func (x *UserInsuranceFund) Reset()
func (*UserInsuranceFund) String ¶
func (x *UserInsuranceFund) String() string
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 []*v1beta1.Coin `protobuf:"bytes,2,rep,name=balance,proto3" json:"balance,omitempty"` // used is the amount of tokens that is to cover the user's // restaked assets. Used []*v1beta1.Coin `protobuf:"bytes,3,rep,name=used,proto3" json:"used,omitempty"` // contains filtered or unexported fields }
UserInsuranceFundData is the structure that contains the information about a user's insurance fund.
func (*UserInsuranceFundData) Descriptor
deprecated
func (*UserInsuranceFundData) Descriptor() ([]byte, []int)
Deprecated: Use UserInsuranceFundData.ProtoReflect.Descriptor instead.
func (*UserInsuranceFundData) GetBalance ¶
func (x *UserInsuranceFundData) GetBalance() []*v1beta1.Coin
func (*UserInsuranceFundData) GetUsed ¶
func (x *UserInsuranceFundData) GetUsed() []*v1beta1.Coin
func (*UserInsuranceFundData) GetUserAddress ¶
func (x *UserInsuranceFundData) GetUserAddress() string
func (*UserInsuranceFundData) ProtoMessage ¶
func (*UserInsuranceFundData) ProtoMessage()
func (*UserInsuranceFundData) ProtoReflect ¶
func (x *UserInsuranceFundData) ProtoReflect() protoreflect.Message
func (*UserInsuranceFundData) Reset ¶
func (x *UserInsuranceFundData) Reset()
func (*UserInsuranceFundData) String ¶
func (x *UserInsuranceFundData) String() string
type UserInsuranceFundState ¶
type UserInsuranceFundState struct { // Address of who owns the insurance fund. UserAddress string `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"` // InsuranceFund represents the user's insurance fund. InsuranceFund *UserInsuranceFund `protobuf:"bytes,2,opt,name=insurance_fund,json=insuranceFund,proto3" json:"insurance_fund,omitempty"` // contains filtered or unexported fields }
UserInsuranceFundState represents a user's insurance fund.
func (*UserInsuranceFundState) Descriptor
deprecated
func (*UserInsuranceFundState) Descriptor() ([]byte, []int)
Deprecated: Use UserInsuranceFundState.ProtoReflect.Descriptor instead.
func (*UserInsuranceFundState) GetInsuranceFund ¶
func (x *UserInsuranceFundState) GetInsuranceFund() *UserInsuranceFund
func (*UserInsuranceFundState) GetUserAddress ¶
func (x *UserInsuranceFundState) GetUserAddress() string
func (*UserInsuranceFundState) ProtoMessage ¶
func (*UserInsuranceFundState) ProtoMessage()
func (*UserInsuranceFundState) ProtoReflect ¶
func (x *UserInsuranceFundState) ProtoReflect() protoreflect.Message
func (*UserInsuranceFundState) Reset ¶
func (x *UserInsuranceFundState) Reset()
func (*UserInsuranceFundState) String ¶
func (x *UserInsuranceFundState) String() string