restakev1beta1

package
v3.0.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

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

View Source
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"
)
View Source
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

View Source
var File_band_restake_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_band_restake_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_band_restake_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var File_band_restake_v1beta1_types_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Lock.ProtoReflect.Descriptor instead.

func (*Lock) GetKey

func (x *Lock) GetKey() string

func (*Lock) GetPower

func (x *Lock) GetPower() string

func (*Lock) GetStakerAddress

func (x *Lock) GetStakerAddress() string

func (*Lock) ProtoMessage

func (*Lock) ProtoMessage()

func (*Lock) ProtoReflect

func (x *Lock) ProtoReflect() protoreflect.Message

func (*Lock) Reset

func (x *Lock) Reset()

func (*Lock) String

func (x *Lock) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use MsgStake.ProtoReflect.Descriptor instead.

func (*MsgStake) GetCoins

func (x *MsgStake) GetCoins() []*v1beta1.Coin

func (*MsgStake) GetStakerAddress

func (x *MsgStake) GetStakerAddress() string

func (*MsgStake) ProtoMessage

func (*MsgStake) ProtoMessage()

func (*MsgStake) ProtoReflect

func (x *MsgStake) ProtoReflect() protoreflect.Message

func (*MsgStake) Reset

func (x *MsgStake) Reset()

func (*MsgStake) String

func (x *MsgStake) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAllowedDenoms

func (x *Params) GetAllowedDenoms() []string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Stake.ProtoReflect.Descriptor instead.

func (*Stake) GetCoins

func (x *Stake) GetCoins() []*v1beta1.Coin

func (*Stake) GetStakerAddress

func (x *Stake) GetStakerAddress() string

func (*Stake) ProtoMessage

func (*Stake) ProtoMessage()

func (*Stake) ProtoReflect

func (x *Stake) ProtoReflect() protoreflect.Message

func (*Stake) Reset

func (x *Stake) Reset()

func (*Stake) String

func (x *Stake) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Stake

func (UnimplementedMsgServer) Unstake

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Lock

func (UnimplementedQueryServer) Locks

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Stake

func (UnimplementedQueryServer) Vault

func (UnimplementedQueryServer) Vaults

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) Descriptor() ([]byte, []int)

Deprecated: Use Vault.ProtoReflect.Descriptor instead.

func (*Vault) GetIsActive

func (x *Vault) GetIsActive() bool

func (*Vault) GetKey

func (x *Vault) GetKey() string

func (*Vault) ProtoMessage

func (*Vault) ProtoMessage()

func (*Vault) ProtoReflect

func (x *Vault) ProtoReflect() protoreflect.Message

func (*Vault) Reset

func (x *Vault) Reset()

func (*Vault) String

func (x *Vault) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL