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.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetLocks() []*Lock
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetStakes() []*Stake
- func (x *GenesisState) GetVaults() []*Vault
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type Lock
- type LockResponse
- func (*LockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LockResponse) GetKey() string
- func (x *LockResponse) GetPower() string
- func (*LockResponse) ProtoMessage()
- func (x *LockResponse) ProtoReflect() protoreflect.Message
- func (x *LockResponse) Reset()
- func (x *LockResponse) String() string
- type MsgClient
- type MsgServer
- type MsgStake
- type MsgStakeResponse
- type MsgUnstake
- func (*MsgUnstake) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUnstake) GetCoins() []*v1beta1.Coin
- func (x *MsgUnstake) GetStakerAddress() string
- func (*MsgUnstake) ProtoMessage()
- func (x *MsgUnstake) ProtoReflect() protoreflect.Message
- func (x *MsgUnstake) Reset()
- func (x *MsgUnstake) String() string
- type MsgUnstakeResponse
- 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 Params
- type QueryClient
- type QueryLockRequest
- func (*QueryLockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLockRequest) GetKey() string
- func (x *QueryLockRequest) GetStakerAddress() string
- func (*QueryLockRequest) ProtoMessage()
- func (x *QueryLockRequest) ProtoReflect() protoreflect.Message
- func (x *QueryLockRequest) Reset()
- func (x *QueryLockRequest) String() string
- type QueryLockResponse
- func (*QueryLockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLockResponse) GetLock() *LockResponse
- func (*QueryLockResponse) ProtoMessage()
- func (x *QueryLockResponse) ProtoReflect() protoreflect.Message
- func (x *QueryLockResponse) Reset()
- func (x *QueryLockResponse) String() string
- type QueryLocksRequest
- func (*QueryLocksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLocksRequest) GetPagination() *v1beta1.PageRequest
- func (x *QueryLocksRequest) GetStakerAddress() string
- func (*QueryLocksRequest) ProtoMessage()
- func (x *QueryLocksRequest) ProtoReflect() protoreflect.Message
- func (x *QueryLocksRequest) Reset()
- func (x *QueryLocksRequest) String() string
- type QueryLocksResponse
- func (*QueryLocksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryLocksResponse) GetLocks() []*LockResponse
- func (x *QueryLocksResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryLocksResponse) ProtoMessage()
- func (x *QueryLocksResponse) ProtoReflect() protoreflect.Message
- func (x *QueryLocksResponse) Reset()
- func (x *QueryLocksResponse) 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 QueryStakeRequest
- func (*QueryStakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStakeRequest) GetStakerAddress() string
- func (*QueryStakeRequest) ProtoMessage()
- func (x *QueryStakeRequest) ProtoReflect() protoreflect.Message
- func (x *QueryStakeRequest) Reset()
- func (x *QueryStakeRequest) String() string
- type QueryStakeResponse
- func (*QueryStakeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStakeResponse) GetStake() *Stake
- func (*QueryStakeResponse) ProtoMessage()
- func (x *QueryStakeResponse) ProtoReflect() protoreflect.Message
- func (x *QueryStakeResponse) Reset()
- func (x *QueryStakeResponse) String() string
- type QueryVaultRequest
- type QueryVaultResponse
- func (*QueryVaultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVaultResponse) GetVault() *Vault
- func (*QueryVaultResponse) ProtoMessage()
- func (x *QueryVaultResponse) ProtoReflect() protoreflect.Message
- func (x *QueryVaultResponse) Reset()
- func (x *QueryVaultResponse) String() string
- type QueryVaultsRequest
- func (*QueryVaultsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVaultsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryVaultsRequest) ProtoMessage()
- func (x *QueryVaultsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryVaultsRequest) Reset()
- func (x *QueryVaultsRequest) String() string
- type QueryVaultsResponse
- func (*QueryVaultsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVaultsResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryVaultsResponse) GetVaults() []*Vault
- func (*QueryVaultsResponse) ProtoMessage()
- func (x *QueryVaultsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryVaultsResponse) Reset()
- func (x *QueryVaultsResponse) String() string
- type Stake
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Lock(context.Context, *QueryLockRequest) (*QueryLockResponse, error)
- func (UnimplementedQueryServer) Locks(context.Context, *QueryLocksRequest) (*QueryLocksResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Stake(context.Context, *QueryStakeRequest) (*QueryStakeResponse, error)
- func (UnimplementedQueryServer) Vault(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error)
- func (UnimplementedQueryServer) Vaults(context.Context, *QueryVaultsRequest) (*QueryVaultsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type Vault
Constants ¶
const ( Query_Vaults_FullMethodName = "/band.restake.v1beta1.Query/Vaults" Query_Vault_FullMethodName = "/band.restake.v1beta1.Query/Vault" Query_Locks_FullMethodName = "/band.restake.v1beta1.Query/Locks" Query_Lock_FullMethodName = "/band.restake.v1beta1.Query/Lock" Query_Stake_FullMethodName = "/band.restake.v1beta1.Query/Stake" Query_Params_FullMethodName = "/band.restake.v1beta1.Query/Params" )
const ( Msg_Stake_FullMethodName = "/band.restake.v1beta1.Msg/Stake" Msg_Unstake_FullMethodName = "/band.restake.v1beta1.Msg/Unstake" Msg_UpdateParams_FullMethodName = "/band.restake.v1beta1.Msg/UpdateParams" )
Variables ¶
var File_band_restake_v1beta1_genesis_proto protoreflect.FileDescriptor
var File_band_restake_v1beta1_query_proto protoreflect.FileDescriptor
var File_band_restake_v1beta1_tx_proto protoreflect.FileDescriptor
var File_band_restake_v1beta1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "band.restake.v1beta1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Stake", Handler: _Msg_Stake_Handler, }, { MethodName: "Unstake", Handler: _Msg_Unstake_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "band/restake/v1beta1/tx.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: "band.restake.v1beta1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Vaults", Handler: _Query_Vaults_Handler, }, { MethodName: "Vault", Handler: _Query_Vault_Handler, }, { MethodName: "Locks", Handler: _Query_Locks_Handler, }, { MethodName: "Lock", Handler: _Query_Lock_Handler, }, { MethodName: "Stake", Handler: _Query_Stake_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "band/restake/v1beta1/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 GenesisState ¶
type GenesisState struct { // params is all parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // vaults is a list of vaults in the module. Vaults []*Vault `protobuf:"bytes,2,rep,name=vaults,proto3" json:"vaults,omitempty"` // locks is a list of locks in the module. Locks []*Lock `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` // stakes is a list of stakes in the module. Stakes []*Stake `protobuf:"bytes,4,rep,name=stakes,proto3" json:"stakes,omitempty"` // contains filtered or unexported fields }
GenesisState represents the initial state of the blockchain.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetLocks ¶
func (x *GenesisState) GetLocks() []*Lock
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetStakes ¶
func (x *GenesisState) GetStakes() []*Stake
func (*GenesisState) GetVaults ¶
func (x *GenesisState) GetVaults() []*Vault
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 Lock ¶
type Lock struct { // staker_address is the owner's address of the staker. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // key is the key of the vault that this lock is locked to. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // power is the number of locked power. Power string `protobuf:"bytes,3,opt,name=power,proto3" json:"power,omitempty"` // contains filtered or unexported fields }
Lock is used to store lock information of each user on each vault.
func (*Lock) Descriptor
deprecated
func (*Lock) GetStakerAddress ¶
func (*Lock) ProtoMessage ¶
func (*Lock) ProtoMessage()
func (*Lock) ProtoReflect ¶
func (x *Lock) ProtoReflect() protoreflect.Message
type LockResponse ¶
type LockResponse struct { // key is the key of the vault that this lock belongs to. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // power is the number of locked power. Power string `protobuf:"bytes,2,opt,name=power,proto3" json:"power,omitempty"` // contains filtered or unexported fields }
LockResponse is used as response of the query to show the power that is locked by the vault for the user.
func (*LockResponse) Descriptor
deprecated
func (*LockResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.
func (*LockResponse) GetKey ¶
func (x *LockResponse) GetKey() string
func (*LockResponse) GetPower ¶
func (x *LockResponse) GetPower() string
func (*LockResponse) ProtoMessage ¶
func (*LockResponse) ProtoMessage()
func (*LockResponse) ProtoReflect ¶
func (x *LockResponse) ProtoReflect() protoreflect.Message
func (*LockResponse) Reset ¶
func (x *LockResponse) Reset()
func (*LockResponse) String ¶
func (x *LockResponse) String() string
type MsgClient ¶
type MsgClient interface { // Stake defines a method for staking coins into the module. Stake(ctx context.Context, in *MsgStake, opts ...grpc.CallOption) (*MsgStakeResponse, error) // Unstake defines a method for unstaking coins out of the module. Unstake(ctx context.Context, in *MsgUnstake, opts ...grpc.CallOption) (*MsgUnstakeResponse, error) // UpdateParams defines a method for updating parameters. 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.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // Stake defines a method for staking coins into the module. Stake(context.Context, *MsgStake) (*MsgStakeResponse, error) // Unstake defines a method for unstaking coins out of the module. Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error) // UpdateParams defines a method for updating parameters. 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
type MsgStake ¶
type MsgStake struct { // staker_address is the address that will stake the coins. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // coins is the coins that will be staked. Coins []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
MsgStake is the request message type for staking coins.
func (*MsgStake) Descriptor
deprecated
func (*MsgStake) GetStakerAddress ¶
func (*MsgStake) ProtoMessage ¶
func (*MsgStake) ProtoMessage()
func (*MsgStake) ProtoReflect ¶
func (x *MsgStake) ProtoReflect() protoreflect.Message
type MsgStakeResponse ¶
type MsgStakeResponse struct {
// contains filtered or unexported fields
}
MsgStakeResponse is the response message type for staking coins.
func (*MsgStakeResponse) Descriptor
deprecated
func (*MsgStakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgStakeResponse.ProtoReflect.Descriptor instead.
func (*MsgStakeResponse) ProtoMessage ¶
func (*MsgStakeResponse) ProtoMessage()
func (*MsgStakeResponse) ProtoReflect ¶
func (x *MsgStakeResponse) ProtoReflect() protoreflect.Message
func (*MsgStakeResponse) Reset ¶
func (x *MsgStakeResponse) Reset()
func (*MsgStakeResponse) String ¶
func (x *MsgStakeResponse) String() string
type MsgUnstake ¶
type MsgUnstake struct { // staker_address is the address that will unstake the coins. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // coins is the coins that will be unstaked. Coins []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
MsgUnstake is the request message type for unstaking coins.
func (*MsgUnstake) Descriptor
deprecated
func (*MsgUnstake) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnstake.ProtoReflect.Descriptor instead.
func (*MsgUnstake) GetCoins ¶
func (x *MsgUnstake) GetCoins() []*v1beta1.Coin
func (*MsgUnstake) GetStakerAddress ¶
func (x *MsgUnstake) GetStakerAddress() string
func (*MsgUnstake) ProtoMessage ¶
func (*MsgUnstake) ProtoMessage()
func (*MsgUnstake) ProtoReflect ¶
func (x *MsgUnstake) ProtoReflect() protoreflect.Message
func (*MsgUnstake) Reset ¶
func (x *MsgUnstake) Reset()
func (*MsgUnstake) String ¶
func (x *MsgUnstake) String() string
type MsgUnstakeResponse ¶
type MsgUnstakeResponse struct {
// contains filtered or unexported fields
}
MsgUnstakeResponse is the response message type for unstaking coins.
func (*MsgUnstakeResponse) Descriptor
deprecated
func (*MsgUnstakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUnstakeResponse.ProtoReflect.Descriptor instead.
func (*MsgUnstakeResponse) ProtoMessage ¶
func (*MsgUnstakeResponse) ProtoMessage()
func (*MsgUnstakeResponse) ProtoReflect ¶
func (x *MsgUnstakeResponse) ProtoReflect() protoreflect.Message
func (*MsgUnstakeResponse) Reset ¶
func (x *MsgUnstakeResponse) Reset()
func (*MsgUnstakeResponse) String ¶
func (x *MsgUnstakeResponse) String() string
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params is parameters to update. Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
MsgUpdateParams is the transaction message to update 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 response type for the Msg/UpdateParams RPC method.
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 Params ¶
type Params struct { // allowed_denoms is a list of denoms that the module allows to stake to get power. AllowedDenoms []string `protobuf:"bytes,1,rep,name=allowed_denoms,json=allowedDenoms,proto3" json:"allowed_denoms,omitempty"` // contains filtered or unexported fields }
Params is the data structure that keeps the parameters.
func (*Params) Descriptor
deprecated
func (*Params) GetAllowedDenoms ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryClient ¶
type QueryClient interface { // Vaults returns a list of vault. Vaults(ctx context.Context, in *QueryVaultsRequest, opts ...grpc.CallOption) (*QueryVaultsResponse, error) // Vault returns a vault information. Vault(ctx context.Context, in *QueryVaultRequest, opts ...grpc.CallOption) (*QueryVaultResponse, error) // Locks returns all lock information for a specified address. Locks(ctx context.Context, in *QueryLocksRequest, opts ...grpc.CallOption) (*QueryLocksResponse, error) // Lock returns a lock information for a specified address and a vault. Lock(ctx context.Context, in *QueryLockRequest, opts ...grpc.CallOption) (*QueryLockResponse, error) // Stake returns stake information for a specific address. Stake(ctx context.Context, in *QueryStakeRequest, opts ...grpc.CallOption) (*QueryStakeResponse, error) // Params returns all 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.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryLockRequest ¶
type QueryLockRequest struct { // staker_address is the target address to query lock. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // key is the key of target vault to query lock. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
QueryLockRequest represents the request type for the Query/Lock RPC method.
func (*QueryLockRequest) Descriptor
deprecated
func (*QueryLockRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryLockRequest.ProtoReflect.Descriptor instead.
func (*QueryLockRequest) GetKey ¶
func (x *QueryLockRequest) GetKey() string
func (*QueryLockRequest) GetStakerAddress ¶
func (x *QueryLockRequest) GetStakerAddress() string
func (*QueryLockRequest) ProtoMessage ¶
func (*QueryLockRequest) ProtoMessage()
func (*QueryLockRequest) ProtoReflect ¶
func (x *QueryLockRequest) ProtoReflect() protoreflect.Message
func (*QueryLockRequest) Reset ¶
func (x *QueryLockRequest) Reset()
func (*QueryLockRequest) String ¶
func (x *QueryLockRequest) String() string
type QueryLockResponse ¶
type QueryLockResponse struct { // lock is the lock of the staker and the vault. Lock *LockResponse `protobuf:"bytes,1,opt,name=lock,proto3" json:"lock,omitempty"` // contains filtered or unexported fields }
QueryLockResponse represents the response type for the Query/Lock RPC method.
func (*QueryLockResponse) Descriptor
deprecated
func (*QueryLockResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryLockResponse.ProtoReflect.Descriptor instead.
func (*QueryLockResponse) GetLock ¶
func (x *QueryLockResponse) GetLock() *LockResponse
func (*QueryLockResponse) ProtoMessage ¶
func (*QueryLockResponse) ProtoMessage()
func (*QueryLockResponse) ProtoReflect ¶
func (x *QueryLockResponse) ProtoReflect() protoreflect.Message
func (*QueryLockResponse) Reset ¶
func (x *QueryLockResponse) Reset()
func (*QueryLockResponse) String ¶
func (x *QueryLockResponse) String() string
type QueryLocksRequest ¶
type QueryLocksRequest struct { // staker_address is the target address to query locks. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // pagination defines optional pagination parameters. Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryLocksRequest represents the request type for the Query/Locks RPC method.
func (*QueryLocksRequest) Descriptor
deprecated
func (*QueryLocksRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryLocksRequest.ProtoReflect.Descriptor instead.
func (*QueryLocksRequest) GetPagination ¶
func (x *QueryLocksRequest) GetPagination() *v1beta1.PageRequest
func (*QueryLocksRequest) GetStakerAddress ¶
func (x *QueryLocksRequest) GetStakerAddress() string
func (*QueryLocksRequest) ProtoMessage ¶
func (*QueryLocksRequest) ProtoMessage()
func (*QueryLocksRequest) ProtoReflect ¶
func (x *QueryLocksRequest) ProtoReflect() protoreflect.Message
func (*QueryLocksRequest) Reset ¶
func (x *QueryLocksRequest) Reset()
func (*QueryLocksRequest) String ¶
func (x *QueryLocksRequest) String() string
type QueryLocksResponse ¶
type QueryLocksResponse struct { // locks is a list of locks of the staker. Locks []*LockResponse `protobuf:"bytes,1,rep,name=locks,proto3" json:"locks,omitempty"` // pagination defines pagination parameters in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryLocksResponse represents the response type for the Query/Locks RPC method.
func (*QueryLocksResponse) Descriptor
deprecated
func (*QueryLocksResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryLocksResponse.ProtoReflect.Descriptor instead.
func (*QueryLocksResponse) GetLocks ¶
func (x *QueryLocksResponse) GetLocks() []*LockResponse
func (*QueryLocksResponse) GetPagination ¶
func (x *QueryLocksResponse) GetPagination() *v1beta1.PageResponse
func (*QueryLocksResponse) ProtoMessage ¶
func (*QueryLocksResponse) ProtoMessage()
func (*QueryLocksResponse) ProtoReflect ¶
func (x *QueryLocksResponse) ProtoReflect() protoreflect.Message
func (*QueryLocksResponse) Reset ¶
func (x *QueryLocksResponse) Reset()
func (*QueryLocksResponse) String ¶
func (x *QueryLocksResponse) 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 are the parameters of the module. 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 { // Vaults returns a list of vault. Vaults(context.Context, *QueryVaultsRequest) (*QueryVaultsResponse, error) // Vault returns a vault information. Vault(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error) // Locks returns all lock information for a specified address. Locks(context.Context, *QueryLocksRequest) (*QueryLocksResponse, error) // Lock returns a lock information for a specified address and a vault. Lock(context.Context, *QueryLockRequest) (*QueryLockResponse, error) // Stake returns stake information for a specific address. Stake(context.Context, *QueryStakeRequest) (*QueryStakeResponse, error) // Params returns all 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
type QueryStakeRequest ¶
type QueryStakeRequest struct { // staker_address is the target address used to query the stake. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // contains filtered or unexported fields }
QueryStakeRequest represents the request type for the Query/Stake RPC method.
func (*QueryStakeRequest) Descriptor
deprecated
func (*QueryStakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryStakeRequest.ProtoReflect.Descriptor instead.
func (*QueryStakeRequest) GetStakerAddress ¶
func (x *QueryStakeRequest) GetStakerAddress() string
func (*QueryStakeRequest) ProtoMessage ¶
func (*QueryStakeRequest) ProtoMessage()
func (*QueryStakeRequest) ProtoReflect ¶
func (x *QueryStakeRequest) ProtoReflect() protoreflect.Message
func (*QueryStakeRequest) Reset ¶
func (x *QueryStakeRequest) Reset()
func (*QueryStakeRequest) String ¶
func (x *QueryStakeRequest) String() string
type QueryStakeResponse ¶
type QueryStakeResponse struct { // stake is a stake information of the staker. Stake *Stake `protobuf:"bytes,1,opt,name=stake,proto3" json:"stake,omitempty"` // contains filtered or unexported fields }
QueryStakeResponse represents the response type for the Query/Stake RPC method.
func (*QueryStakeResponse) Descriptor
deprecated
func (*QueryStakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryStakeResponse.ProtoReflect.Descriptor instead.
func (*QueryStakeResponse) GetStake ¶
func (x *QueryStakeResponse) GetStake() *Stake
func (*QueryStakeResponse) ProtoMessage ¶
func (*QueryStakeResponse) ProtoMessage()
func (*QueryStakeResponse) ProtoReflect ¶
func (x *QueryStakeResponse) ProtoReflect() protoreflect.Message
func (*QueryStakeResponse) Reset ¶
func (x *QueryStakeResponse) Reset()
func (*QueryStakeResponse) String ¶
func (x *QueryStakeResponse) String() string
type QueryVaultRequest ¶
type QueryVaultRequest struct { // key is the key of the vault that want to query. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
QueryVaultRequest represents the request type for the Query/Vault RPC method.
func (*QueryVaultRequest) Descriptor
deprecated
func (*QueryVaultRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryVaultRequest.ProtoReflect.Descriptor instead.
func (*QueryVaultRequest) GetKey ¶
func (x *QueryVaultRequest) GetKey() string
func (*QueryVaultRequest) ProtoMessage ¶
func (*QueryVaultRequest) ProtoMessage()
func (*QueryVaultRequest) ProtoReflect ¶
func (x *QueryVaultRequest) ProtoReflect() protoreflect.Message
func (*QueryVaultRequest) Reset ¶
func (x *QueryVaultRequest) Reset()
func (*QueryVaultRequest) String ¶
func (x *QueryVaultRequest) String() string
type QueryVaultResponse ¶
type QueryVaultResponse struct { // vault is a vault information. Vault *Vault `protobuf:"bytes,1,opt,name=vault,proto3" json:"vault,omitempty"` // contains filtered or unexported fields }
QueryVaultResponse represents the response type for the Query/Vault RPC method.
func (*QueryVaultResponse) Descriptor
deprecated
func (*QueryVaultResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryVaultResponse.ProtoReflect.Descriptor instead.
func (*QueryVaultResponse) GetVault ¶
func (x *QueryVaultResponse) GetVault() *Vault
func (*QueryVaultResponse) ProtoMessage ¶
func (*QueryVaultResponse) ProtoMessage()
func (*QueryVaultResponse) ProtoReflect ¶
func (x *QueryVaultResponse) ProtoReflect() protoreflect.Message
func (*QueryVaultResponse) Reset ¶
func (x *QueryVaultResponse) Reset()
func (*QueryVaultResponse) String ¶
func (x *QueryVaultResponse) String() string
type QueryVaultsRequest ¶
type QueryVaultsRequest struct { // pagination defines optional pagination parameters. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryVaultsRequest represents the request type for the Query/Vaults RPC method.
func (*QueryVaultsRequest) Descriptor
deprecated
func (*QueryVaultsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryVaultsRequest.ProtoReflect.Descriptor instead.
func (*QueryVaultsRequest) GetPagination ¶
func (x *QueryVaultsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryVaultsRequest) ProtoMessage ¶
func (*QueryVaultsRequest) ProtoMessage()
func (*QueryVaultsRequest) ProtoReflect ¶
func (x *QueryVaultsRequest) ProtoReflect() protoreflect.Message
func (*QueryVaultsRequest) Reset ¶
func (x *QueryVaultsRequest) Reset()
func (*QueryVaultsRequest) String ¶
func (x *QueryVaultsRequest) String() string
type QueryVaultsResponse ¶
type QueryVaultsResponse struct { // vaults is a list of vaults. Vaults []*Vault `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults,omitempty"` // pagination defines pagination parameters in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryVaultsResponse represents the response type for the Query/Vaults RPC method.
func (*QueryVaultsResponse) Descriptor
deprecated
func (*QueryVaultsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryVaultsResponse.ProtoReflect.Descriptor instead.
func (*QueryVaultsResponse) GetPagination ¶
func (x *QueryVaultsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryVaultsResponse) GetVaults ¶
func (x *QueryVaultsResponse) GetVaults() []*Vault
func (*QueryVaultsResponse) ProtoMessage ¶
func (*QueryVaultsResponse) ProtoMessage()
func (*QueryVaultsResponse) ProtoReflect ¶
func (x *QueryVaultsResponse) ProtoReflect() protoreflect.Message
func (*QueryVaultsResponse) Reset ¶
func (x *QueryVaultsResponse) Reset()
func (*QueryVaultsResponse) String ¶
func (x *QueryVaultsResponse) String() string
type Stake ¶
type Stake struct { // staker_address is the address that this stake belongs to. StakerAddress string `protobuf:"bytes,1,opt,name=staker_address,json=stakerAddress,proto3" json:"staker_address,omitempty"` // coins are the coins that the address has staked. Coins []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"` // contains filtered or unexported fields }
Stake is used to store staked coins of an address.
func (*Stake) Descriptor
deprecated
func (*Stake) GetStakerAddress ¶
func (*Stake) ProtoMessage ¶
func (*Stake) ProtoMessage()
func (*Stake) ProtoReflect ¶
func (x *Stake) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Stake ¶
func (UnimplementedMsgServer) Stake(context.Context, *MsgStake) (*MsgStakeResponse, error)
func (UnimplementedMsgServer) Unstake ¶
func (UnimplementedMsgServer) Unstake(context.Context, *MsgUnstake) (*MsgUnstakeResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Lock ¶
func (UnimplementedQueryServer) Lock(context.Context, *QueryLockRequest) (*QueryLockResponse, error)
func (UnimplementedQueryServer) Locks ¶
func (UnimplementedQueryServer) Locks(context.Context, *QueryLocksRequest) (*QueryLocksResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Stake ¶
func (UnimplementedQueryServer) Stake(context.Context, *QueryStakeRequest) (*QueryStakeResponse, error)
func (UnimplementedQueryServer) Vault ¶
func (UnimplementedQueryServer) Vault(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error)
func (UnimplementedQueryServer) Vaults ¶
func (UnimplementedQueryServer) Vaults(context.Context, *QueryVaultsRequest) (*QueryVaultsResponse, 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 Vault ¶
type Vault struct { // key is the key of the vault. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // is_active is the status of the vault IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // contains filtered or unexported fields }
Vault is used for tracking the status of the vaults.
func (*Vault) Descriptor
deprecated
func (*Vault) GetIsActive ¶
func (*Vault) ProtoMessage ¶
func (*Vault) ProtoMessage()
func (*Vault) ProtoReflect ¶
func (x *Vault) ProtoReflect() protoreflect.Message