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 AccountProof
- func (*AccountProof) Descriptor() ([]byte, []int)deprecated
- func (x *AccountProof) GetAccountProof() []byte
- func (x *AccountProof) GetAddress() string
- func (x *AccountProof) GetIndex() uint64
- func (*AccountProof) ProtoMessage()
- func (x *AccountProof) ProtoReflect() protoreflect.Message
- func (x *AccountProof) Reset()
- func (x *AccountProof) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDividendAccounts() []*types.DividendAccount
- func (x *GenesisState) GetTopupSequences() []string
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgServer
- type MsgTopupTx
- func (*MsgTopupTx) Descriptor() ([]byte, []int)deprecated
- func (x *MsgTopupTx) GetBlockNumber() uint64
- func (x *MsgTopupTx) GetFee() string
- func (x *MsgTopupTx) GetLogIndex() uint64
- func (x *MsgTopupTx) GetProposer() string
- func (x *MsgTopupTx) GetTxHash() []byte
- func (x *MsgTopupTx) GetUser() string
- func (*MsgTopupTx) ProtoMessage()
- func (x *MsgTopupTx) ProtoReflect() protoreflect.Message
- func (x *MsgTopupTx) Reset()
- func (x *MsgTopupTx) String() string
- type MsgTopupTxResponse
- type MsgWithdrawFeeTx
- func (*MsgWithdrawFeeTx) Descriptor() ([]byte, []int)deprecated
- func (x *MsgWithdrawFeeTx) GetAmount() string
- func (x *MsgWithdrawFeeTx) GetProposer() string
- func (*MsgWithdrawFeeTx) ProtoMessage()
- func (x *MsgWithdrawFeeTx) ProtoReflect() protoreflect.Message
- func (x *MsgWithdrawFeeTx) Reset()
- func (x *MsgWithdrawFeeTx) String() string
- type MsgWithdrawFeeTxResponse
- type QueryAccountProofRequest
- func (*QueryAccountProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAccountProofRequest) GetAddress() string
- func (*QueryAccountProofRequest) ProtoMessage()
- func (x *QueryAccountProofRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAccountProofRequest) Reset()
- func (x *QueryAccountProofRequest) String() string
- type QueryAccountProofResponse
- func (*QueryAccountProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAccountProofResponse) GetProof() *AccountProof
- func (*QueryAccountProofResponse) ProtoMessage()
- func (x *QueryAccountProofResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAccountProofResponse) Reset()
- func (x *QueryAccountProofResponse) String() string
- type QueryClient
- type QueryDividendAccountRequest
- func (*QueryDividendAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDividendAccountRequest) GetAddress() string
- func (*QueryDividendAccountRequest) ProtoMessage()
- func (x *QueryDividendAccountRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDividendAccountRequest) Reset()
- func (x *QueryDividendAccountRequest) String() string
- type QueryDividendAccountResponse
- func (*QueryDividendAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDividendAccountResponse) GetDividendAccount() *types.DividendAccount
- func (*QueryDividendAccountResponse) ProtoMessage()
- func (x *QueryDividendAccountResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDividendAccountResponse) Reset()
- func (x *QueryDividendAccountResponse) String() string
- type QueryDividendAccountRootHashRequest
- func (*QueryDividendAccountRootHashRequest) Descriptor() ([]byte, []int)deprecated
- func (*QueryDividendAccountRootHashRequest) ProtoMessage()
- func (x *QueryDividendAccountRootHashRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDividendAccountRootHashRequest) Reset()
- func (x *QueryDividendAccountRootHashRequest) String() string
- type QueryDividendAccountRootHashResponse
- func (*QueryDividendAccountRootHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDividendAccountRootHashResponse) GetAccountRootHash() []byte
- func (*QueryDividendAccountRootHashResponse) ProtoMessage()
- func (x *QueryDividendAccountRootHashResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDividendAccountRootHashResponse) Reset()
- func (x *QueryDividendAccountRootHashResponse) String() string
- type QueryIsTopupTxOldResponse
- func (*QueryIsTopupTxOldResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIsTopupTxOldResponse) GetIsOld() bool
- func (*QueryIsTopupTxOldResponse) ProtoMessage()
- func (x *QueryIsTopupTxOldResponse) ProtoReflect() protoreflect.Message
- func (x *QueryIsTopupTxOldResponse) Reset()
- func (x *QueryIsTopupTxOldResponse) String() string
- type QueryServer
- type QueryTopupSequenceRequest
- func (*QueryTopupSequenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTopupSequenceRequest) GetLogIndex() uint64
- func (x *QueryTopupSequenceRequest) GetTxHash() string
- func (*QueryTopupSequenceRequest) ProtoMessage()
- func (x *QueryTopupSequenceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTopupSequenceRequest) Reset()
- func (x *QueryTopupSequenceRequest) String() string
- type QueryTopupSequenceResponse
- func (*QueryTopupSequenceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTopupSequenceResponse) GetSequence() string
- func (*QueryTopupSequenceResponse) ProtoMessage()
- func (x *QueryTopupSequenceResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTopupSequenceResponse) Reset()
- func (x *QueryTopupSequenceResponse) String() string
- type QueryVerifyAccountProofRequest
- func (*QueryVerifyAccountProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVerifyAccountProofRequest) GetAddress() string
- func (x *QueryVerifyAccountProofRequest) GetProof() string
- func (*QueryVerifyAccountProofRequest) ProtoMessage()
- func (x *QueryVerifyAccountProofRequest) ProtoReflect() protoreflect.Message
- func (x *QueryVerifyAccountProofRequest) Reset()
- func (x *QueryVerifyAccountProofRequest) String() string
- type QueryVerifyAccountProofResponse
- func (*QueryVerifyAccountProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryVerifyAccountProofResponse) GetIsVerified() bool
- func (*QueryVerifyAccountProofResponse) ProtoMessage()
- func (x *QueryVerifyAccountProofResponse) ProtoReflect() protoreflect.Message
- func (x *QueryVerifyAccountProofResponse) Reset()
- func (x *QueryVerifyAccountProofResponse) String() string
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) GetAccountProofByAddress(context.Context, *QueryAccountProofRequest) (*QueryAccountProofResponse, error)
- func (UnimplementedQueryServer) GetDividendAccountByAddress(context.Context, *QueryDividendAccountRequest) (*QueryDividendAccountResponse, error)
- func (UnimplementedQueryServer) GetDividendAccountRootHash(context.Context, *QueryDividendAccountRootHashRequest) (*QueryDividendAccountRootHashResponse, error)
- func (UnimplementedQueryServer) GetTopupTxSequence(context.Context, *QueryTopupSequenceRequest) (*QueryTopupSequenceResponse, error)
- func (UnimplementedQueryServer) IsTopupTxOld(context.Context, *QueryTopupSequenceRequest) (*QueryIsTopupTxOldResponse, error)
- func (UnimplementedQueryServer) VerifyAccountProofByAddress(context.Context, *QueryVerifyAccountProofRequest) (*QueryVerifyAccountProofResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_IsTopupTxOld_FullMethodName = "/heimdallv2.topup.Query/IsTopupTxOld" Query_GetTopupTxSequence_FullMethodName = "/heimdallv2.topup.Query/GetTopupTxSequence" Query_GetDividendAccountByAddress_FullMethodName = "/heimdallv2.topup.Query/GetDividendAccountByAddress" Query_GetDividendAccountRootHash_FullMethodName = "/heimdallv2.topup.Query/GetDividendAccountRootHash" Query_VerifyAccountProofByAddress_FullMethodName = "/heimdallv2.topup.Query/VerifyAccountProofByAddress" Query_GetAccountProofByAddress_FullMethodName = "/heimdallv2.topup.Query/GetAccountProofByAddress" )
const ( Msg_HandleTopupTx_FullMethodName = "/heimdallv2.topup.Msg/HandleTopupTx" Msg_WithdrawFeeTx_FullMethodName = "/heimdallv2.topup.Msg/WithdrawFeeTx" )
Variables ¶
var File_heimdallv2_topup_genesis_proto protoreflect.FileDescriptor
var File_heimdallv2_topup_query_proto protoreflect.FileDescriptor
var File_heimdallv2_topup_topup_proto protoreflect.FileDescriptor
var File_heimdallv2_topup_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "heimdallv2.topup.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HandleTopupTx", Handler: _Msg_HandleTopupTx_Handler, }, { MethodName: "WithdrawFeeTx", Handler: _Msg_WithdrawFeeTx_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "heimdallv2/topup/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: "heimdallv2.topup.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsTopupTxOld", Handler: _Query_IsTopupTxOld_Handler, }, { MethodName: "GetTopupTxSequence", Handler: _Query_GetTopupTxSequence_Handler, }, { MethodName: "GetDividendAccountByAddress", Handler: _Query_GetDividendAccountByAddress_Handler, }, { MethodName: "GetDividendAccountRootHash", Handler: _Query_GetDividendAccountRootHash_Handler, }, { MethodName: "VerifyAccountProofByAddress", Handler: _Query_VerifyAccountProofByAddress_Handler, }, { MethodName: "GetAccountProofByAddress", Handler: _Query_GetAccountProofByAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "heimdallv2/topup/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 AccountProof ¶
type AccountProof struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AccountProof []byte `protobuf:"bytes,2,opt,name=account_proof,json=accountProof,proto3" json:"account_proof,omitempty"` Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*AccountProof) Descriptor
deprecated
func (*AccountProof) Descriptor() ([]byte, []int)
Deprecated: Use AccountProof.ProtoReflect.Descriptor instead.
func (*AccountProof) GetAccountProof ¶
func (x *AccountProof) GetAccountProof() []byte
func (*AccountProof) GetAddress ¶
func (x *AccountProof) GetAddress() string
func (*AccountProof) GetIndex ¶
func (x *AccountProof) GetIndex() uint64
func (*AccountProof) ProtoMessage ¶
func (*AccountProof) ProtoMessage()
func (*AccountProof) ProtoReflect ¶
func (x *AccountProof) ProtoReflect() protoreflect.Message
func (*AccountProof) Reset ¶
func (x *AccountProof) Reset()
func (*AccountProof) String ¶
func (x *AccountProof) String() string
type GenesisState ¶
type GenesisState struct { TopupSequences []string `protobuf:"bytes,1,rep,name=topup_sequences,json=topupSequences,proto3" json:"topup_sequences,omitempty"` DividendAccounts []*types.DividendAccount `protobuf:"bytes,2,rep,name=dividend_accounts,json=dividendAccounts,proto3" json:"dividend_accounts,omitempty"` // contains filtered or unexported fields }
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDividendAccounts ¶
func (x *GenesisState) GetDividendAccounts() []*types.DividendAccount
func (*GenesisState) GetTopupSequences ¶
func (x *GenesisState) GetTopupSequences() []string
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 MsgClient ¶
type MsgClient interface { // HandleTopupTx defines a RPC method for handling a topup tx for a validator HandleTopupTx(ctx context.Context, in *MsgTopupTx, opts ...grpc.CallOption) (*MsgTopupTxResponse, error) // WithdrawFeeTx defines a RPC method for withdrawing the fees for a validator WithdrawFeeTx(ctx context.Context, in *MsgWithdrawFeeTx, opts ...grpc.CallOption) (*MsgWithdrawFeeTxResponse, 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 { // HandleTopupTx defines a RPC method for handling a topup tx for a validator HandleTopupTx(context.Context, *MsgTopupTx) (*MsgTopupTxResponse, error) // WithdrawFeeTx defines a RPC method for withdrawing the fees for a validator WithdrawFeeTx(context.Context, *MsgWithdrawFeeTx) (*MsgWithdrawFeeTxResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgTopupTx ¶
type MsgTopupTx struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` BlockNumber uint64 `protobuf:"varint,6,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // contains filtered or unexported fields }
func (*MsgTopupTx) Descriptor
deprecated
func (*MsgTopupTx) Descriptor() ([]byte, []int)
Deprecated: Use MsgTopupTx.ProtoReflect.Descriptor instead.
func (*MsgTopupTx) GetBlockNumber ¶
func (x *MsgTopupTx) GetBlockNumber() uint64
func (*MsgTopupTx) GetFee ¶
func (x *MsgTopupTx) GetFee() string
func (*MsgTopupTx) GetLogIndex ¶
func (x *MsgTopupTx) GetLogIndex() uint64
func (*MsgTopupTx) GetProposer ¶
func (x *MsgTopupTx) GetProposer() string
func (*MsgTopupTx) GetTxHash ¶
func (x *MsgTopupTx) GetTxHash() []byte
func (*MsgTopupTx) GetUser ¶
func (x *MsgTopupTx) GetUser() string
func (*MsgTopupTx) ProtoMessage ¶
func (*MsgTopupTx) ProtoMessage()
func (*MsgTopupTx) ProtoReflect ¶
func (x *MsgTopupTx) ProtoReflect() protoreflect.Message
func (*MsgTopupTx) Reset ¶
func (x *MsgTopupTx) Reset()
func (*MsgTopupTx) String ¶
func (x *MsgTopupTx) String() string
type MsgTopupTxResponse ¶
type MsgTopupTxResponse struct {
// contains filtered or unexported fields
}
func (*MsgTopupTxResponse) Descriptor
deprecated
func (*MsgTopupTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgTopupTxResponse.ProtoReflect.Descriptor instead.
func (*MsgTopupTxResponse) ProtoMessage ¶
func (*MsgTopupTxResponse) ProtoMessage()
func (*MsgTopupTxResponse) ProtoReflect ¶
func (x *MsgTopupTxResponse) ProtoReflect() protoreflect.Message
func (*MsgTopupTxResponse) Reset ¶
func (x *MsgTopupTxResponse) Reset()
func (*MsgTopupTxResponse) String ¶
func (x *MsgTopupTxResponse) String() string
type MsgWithdrawFeeTx ¶
type MsgWithdrawFeeTx struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*MsgWithdrawFeeTx) Descriptor
deprecated
func (*MsgWithdrawFeeTx) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawFeeTx.ProtoReflect.Descriptor instead.
func (*MsgWithdrawFeeTx) GetAmount ¶
func (x *MsgWithdrawFeeTx) GetAmount() string
func (*MsgWithdrawFeeTx) GetProposer ¶
func (x *MsgWithdrawFeeTx) GetProposer() string
func (*MsgWithdrawFeeTx) ProtoMessage ¶
func (*MsgWithdrawFeeTx) ProtoMessage()
func (*MsgWithdrawFeeTx) ProtoReflect ¶
func (x *MsgWithdrawFeeTx) ProtoReflect() protoreflect.Message
func (*MsgWithdrawFeeTx) Reset ¶
func (x *MsgWithdrawFeeTx) Reset()
func (*MsgWithdrawFeeTx) String ¶
func (x *MsgWithdrawFeeTx) String() string
type MsgWithdrawFeeTxResponse ¶
type MsgWithdrawFeeTxResponse struct {
// contains filtered or unexported fields
}
func (*MsgWithdrawFeeTxResponse) Descriptor
deprecated
func (*MsgWithdrawFeeTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgWithdrawFeeTxResponse.ProtoReflect.Descriptor instead.
func (*MsgWithdrawFeeTxResponse) ProtoMessage ¶
func (*MsgWithdrawFeeTxResponse) ProtoMessage()
func (*MsgWithdrawFeeTxResponse) ProtoReflect ¶
func (x *MsgWithdrawFeeTxResponse) ProtoReflect() protoreflect.Message
func (*MsgWithdrawFeeTxResponse) Reset ¶
func (x *MsgWithdrawFeeTxResponse) Reset()
func (*MsgWithdrawFeeTxResponse) String ¶
func (x *MsgWithdrawFeeTxResponse) String() string
type QueryAccountProofRequest ¶
type QueryAccountProofRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*QueryAccountProofRequest) Descriptor
deprecated
func (*QueryAccountProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryAccountProofRequest.ProtoReflect.Descriptor instead.
func (*QueryAccountProofRequest) GetAddress ¶
func (x *QueryAccountProofRequest) GetAddress() string
func (*QueryAccountProofRequest) ProtoMessage ¶
func (*QueryAccountProofRequest) ProtoMessage()
func (*QueryAccountProofRequest) ProtoReflect ¶
func (x *QueryAccountProofRequest) ProtoReflect() protoreflect.Message
func (*QueryAccountProofRequest) Reset ¶
func (x *QueryAccountProofRequest) Reset()
func (*QueryAccountProofRequest) String ¶
func (x *QueryAccountProofRequest) String() string
type QueryAccountProofResponse ¶
type QueryAccountProofResponse struct { Proof *AccountProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*QueryAccountProofResponse) Descriptor
deprecated
func (*QueryAccountProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryAccountProofResponse.ProtoReflect.Descriptor instead.
func (*QueryAccountProofResponse) GetProof ¶
func (x *QueryAccountProofResponse) GetProof() *AccountProof
func (*QueryAccountProofResponse) ProtoMessage ¶
func (*QueryAccountProofResponse) ProtoMessage()
func (*QueryAccountProofResponse) ProtoReflect ¶
func (x *QueryAccountProofResponse) ProtoReflect() protoreflect.Message
func (*QueryAccountProofResponse) Reset ¶
func (x *QueryAccountProofResponse) Reset()
func (*QueryAccountProofResponse) String ¶
func (x *QueryAccountProofResponse) String() string
type QueryClient ¶
type QueryClient interface { // IsTopupTxOld queries for a specific topup tx to check its status (old // means already submitted) IsTopupTxOld(ctx context.Context, in *QueryTopupSequenceRequest, opts ...grpc.CallOption) (*QueryIsTopupTxOldResponse, error) // GetTopupTxSequence queries for a specific topup tx and returns its sequence GetTopupTxSequence(ctx context.Context, in *QueryTopupSequenceRequest, opts ...grpc.CallOption) (*QueryTopupSequenceResponse, error) // GetDividendAccountByAddress queries for a specific DividendAccount by its // address GetDividendAccountByAddress(ctx context.Context, in *QueryDividendAccountRequest, opts ...grpc.CallOption) (*QueryDividendAccountResponse, error) // GetDividendAccountRootHash calculates and returns the dividend account root // hash GetDividendAccountRootHash(ctx context.Context, in *QueryDividendAccountRootHashRequest, opts ...grpc.CallOption) (*QueryDividendAccountRootHashResponse, error) // VerifyAccountProof queries for the proof of an account given its address VerifyAccountProofByAddress(ctx context.Context, in *QueryVerifyAccountProofRequest, opts ...grpc.CallOption) (*QueryVerifyAccountProofResponse, error) // GetAccountProof queries for the account proof of a given address GetAccountProofByAddress(ctx context.Context, in *QueryAccountProofRequest, opts ...grpc.CallOption) (*QueryAccountProofResponse, 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 QueryDividendAccountRequest ¶
type QueryDividendAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*QueryDividendAccountRequest) Descriptor
deprecated
func (*QueryDividendAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDividendAccountRequest.ProtoReflect.Descriptor instead.
func (*QueryDividendAccountRequest) GetAddress ¶
func (x *QueryDividendAccountRequest) GetAddress() string
func (*QueryDividendAccountRequest) ProtoMessage ¶
func (*QueryDividendAccountRequest) ProtoMessage()
func (*QueryDividendAccountRequest) ProtoReflect ¶
func (x *QueryDividendAccountRequest) ProtoReflect() protoreflect.Message
func (*QueryDividendAccountRequest) Reset ¶
func (x *QueryDividendAccountRequest) Reset()
func (*QueryDividendAccountRequest) String ¶
func (x *QueryDividendAccountRequest) String() string
type QueryDividendAccountResponse ¶
type QueryDividendAccountResponse struct { DividendAccount *types.DividendAccount `protobuf:"bytes,1,opt,name=dividend_account,json=dividendAccount,proto3" json:"dividend_account,omitempty"` // contains filtered or unexported fields }
func (*QueryDividendAccountResponse) Descriptor
deprecated
func (*QueryDividendAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDividendAccountResponse.ProtoReflect.Descriptor instead.
func (*QueryDividendAccountResponse) GetDividendAccount ¶
func (x *QueryDividendAccountResponse) GetDividendAccount() *types.DividendAccount
func (*QueryDividendAccountResponse) ProtoMessage ¶
func (*QueryDividendAccountResponse) ProtoMessage()
func (*QueryDividendAccountResponse) ProtoReflect ¶
func (x *QueryDividendAccountResponse) ProtoReflect() protoreflect.Message
func (*QueryDividendAccountResponse) Reset ¶
func (x *QueryDividendAccountResponse) Reset()
func (*QueryDividendAccountResponse) String ¶
func (x *QueryDividendAccountResponse) String() string
type QueryDividendAccountRootHashRequest ¶
type QueryDividendAccountRootHashRequest struct {
// contains filtered or unexported fields
}
func (*QueryDividendAccountRootHashRequest) Descriptor
deprecated
func (*QueryDividendAccountRootHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDividendAccountRootHashRequest.ProtoReflect.Descriptor instead.
func (*QueryDividendAccountRootHashRequest) ProtoMessage ¶
func (*QueryDividendAccountRootHashRequest) ProtoMessage()
func (*QueryDividendAccountRootHashRequest) ProtoReflect ¶
func (x *QueryDividendAccountRootHashRequest) ProtoReflect() protoreflect.Message
func (*QueryDividendAccountRootHashRequest) Reset ¶
func (x *QueryDividendAccountRootHashRequest) Reset()
func (*QueryDividendAccountRootHashRequest) String ¶
func (x *QueryDividendAccountRootHashRequest) String() string
type QueryDividendAccountRootHashResponse ¶
type QueryDividendAccountRootHashResponse struct { AccountRootHash []byte `protobuf:"bytes,1,opt,name=account_root_hash,json=accountRootHash,proto3" json:"account_root_hash,omitempty"` // contains filtered or unexported fields }
func (*QueryDividendAccountRootHashResponse) Descriptor
deprecated
func (*QueryDividendAccountRootHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDividendAccountRootHashResponse.ProtoReflect.Descriptor instead.
func (*QueryDividendAccountRootHashResponse) GetAccountRootHash ¶
func (x *QueryDividendAccountRootHashResponse) GetAccountRootHash() []byte
func (*QueryDividendAccountRootHashResponse) ProtoMessage ¶
func (*QueryDividendAccountRootHashResponse) ProtoMessage()
func (*QueryDividendAccountRootHashResponse) ProtoReflect ¶
func (x *QueryDividendAccountRootHashResponse) ProtoReflect() protoreflect.Message
func (*QueryDividendAccountRootHashResponse) Reset ¶
func (x *QueryDividendAccountRootHashResponse) Reset()
func (*QueryDividendAccountRootHashResponse) String ¶
func (x *QueryDividendAccountRootHashResponse) String() string
type QueryIsTopupTxOldResponse ¶
type QueryIsTopupTxOldResponse struct { IsOld bool `protobuf:"varint,1,opt,name=is_old,json=isOld,proto3" json:"is_old,omitempty"` // contains filtered or unexported fields }
func (*QueryIsTopupTxOldResponse) Descriptor
deprecated
func (*QueryIsTopupTxOldResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryIsTopupTxOldResponse.ProtoReflect.Descriptor instead.
func (*QueryIsTopupTxOldResponse) GetIsOld ¶
func (x *QueryIsTopupTxOldResponse) GetIsOld() bool
func (*QueryIsTopupTxOldResponse) ProtoMessage ¶
func (*QueryIsTopupTxOldResponse) ProtoMessage()
func (*QueryIsTopupTxOldResponse) ProtoReflect ¶
func (x *QueryIsTopupTxOldResponse) ProtoReflect() protoreflect.Message
func (*QueryIsTopupTxOldResponse) Reset ¶
func (x *QueryIsTopupTxOldResponse) Reset()
func (*QueryIsTopupTxOldResponse) String ¶
func (x *QueryIsTopupTxOldResponse) String() string
type QueryServer ¶
type QueryServer interface { // IsTopupTxOld queries for a specific topup tx to check its status (old // means already submitted) IsTopupTxOld(context.Context, *QueryTopupSequenceRequest) (*QueryIsTopupTxOldResponse, error) // GetTopupTxSequence queries for a specific topup tx and returns its sequence GetTopupTxSequence(context.Context, *QueryTopupSequenceRequest) (*QueryTopupSequenceResponse, error) // GetDividendAccountByAddress queries for a specific DividendAccount by its // address GetDividendAccountByAddress(context.Context, *QueryDividendAccountRequest) (*QueryDividendAccountResponse, error) // GetDividendAccountRootHash calculates and returns the dividend account root // hash GetDividendAccountRootHash(context.Context, *QueryDividendAccountRootHashRequest) (*QueryDividendAccountRootHashResponse, error) // VerifyAccountProof queries for the proof of an account given its address VerifyAccountProofByAddress(context.Context, *QueryVerifyAccountProofRequest) (*QueryVerifyAccountProofResponse, error) // GetAccountProof queries for the account proof of a given address GetAccountProofByAddress(context.Context, *QueryAccountProofRequest) (*QueryAccountProofResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QueryTopupSequenceRequest ¶
type QueryTopupSequenceRequest struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // contains filtered or unexported fields }
func (*QueryTopupSequenceRequest) Descriptor
deprecated
func (*QueryTopupSequenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTopupSequenceRequest.ProtoReflect.Descriptor instead.
func (*QueryTopupSequenceRequest) GetLogIndex ¶
func (x *QueryTopupSequenceRequest) GetLogIndex() uint64
func (*QueryTopupSequenceRequest) GetTxHash ¶
func (x *QueryTopupSequenceRequest) GetTxHash() string
func (*QueryTopupSequenceRequest) ProtoMessage ¶
func (*QueryTopupSequenceRequest) ProtoMessage()
func (*QueryTopupSequenceRequest) ProtoReflect ¶
func (x *QueryTopupSequenceRequest) ProtoReflect() protoreflect.Message
func (*QueryTopupSequenceRequest) Reset ¶
func (x *QueryTopupSequenceRequest) Reset()
func (*QueryTopupSequenceRequest) String ¶
func (x *QueryTopupSequenceRequest) String() string
type QueryTopupSequenceResponse ¶
type QueryTopupSequenceResponse struct { Sequence string `protobuf:"bytes,1,opt,name=sequence,proto3" json:"sequence,omitempty"` // contains filtered or unexported fields }
func (*QueryTopupSequenceResponse) Descriptor
deprecated
func (*QueryTopupSequenceResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTopupSequenceResponse.ProtoReflect.Descriptor instead.
func (*QueryTopupSequenceResponse) GetSequence ¶
func (x *QueryTopupSequenceResponse) GetSequence() string
func (*QueryTopupSequenceResponse) ProtoMessage ¶
func (*QueryTopupSequenceResponse) ProtoMessage()
func (*QueryTopupSequenceResponse) ProtoReflect ¶
func (x *QueryTopupSequenceResponse) ProtoReflect() protoreflect.Message
func (*QueryTopupSequenceResponse) Reset ¶
func (x *QueryTopupSequenceResponse) Reset()
func (*QueryTopupSequenceResponse) String ¶
func (x *QueryTopupSequenceResponse) String() string
type QueryVerifyAccountProofRequest ¶
type QueryVerifyAccountProofRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Proof string `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*QueryVerifyAccountProofRequest) Descriptor
deprecated
func (*QueryVerifyAccountProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryVerifyAccountProofRequest.ProtoReflect.Descriptor instead.
func (*QueryVerifyAccountProofRequest) GetAddress ¶
func (x *QueryVerifyAccountProofRequest) GetAddress() string
func (*QueryVerifyAccountProofRequest) GetProof ¶
func (x *QueryVerifyAccountProofRequest) GetProof() string
func (*QueryVerifyAccountProofRequest) ProtoMessage ¶
func (*QueryVerifyAccountProofRequest) ProtoMessage()
func (*QueryVerifyAccountProofRequest) ProtoReflect ¶
func (x *QueryVerifyAccountProofRequest) ProtoReflect() protoreflect.Message
func (*QueryVerifyAccountProofRequest) Reset ¶
func (x *QueryVerifyAccountProofRequest) Reset()
func (*QueryVerifyAccountProofRequest) String ¶
func (x *QueryVerifyAccountProofRequest) String() string
type QueryVerifyAccountProofResponse ¶
type QueryVerifyAccountProofResponse struct { IsVerified bool `protobuf:"varint,1,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"` // contains filtered or unexported fields }
func (*QueryVerifyAccountProofResponse) Descriptor
deprecated
func (*QueryVerifyAccountProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryVerifyAccountProofResponse.ProtoReflect.Descriptor instead.
func (*QueryVerifyAccountProofResponse) GetIsVerified ¶
func (x *QueryVerifyAccountProofResponse) GetIsVerified() bool
func (*QueryVerifyAccountProofResponse) ProtoMessage ¶
func (*QueryVerifyAccountProofResponse) ProtoMessage()
func (*QueryVerifyAccountProofResponse) ProtoReflect ¶
func (x *QueryVerifyAccountProofResponse) ProtoReflect() protoreflect.Message
func (*QueryVerifyAccountProofResponse) Reset ¶
func (x *QueryVerifyAccountProofResponse) Reset()
func (*QueryVerifyAccountProofResponse) String ¶
func (x *QueryVerifyAccountProofResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) HandleTopupTx ¶
func (UnimplementedMsgServer) HandleTopupTx(context.Context, *MsgTopupTx) (*MsgTopupTxResponse, error)
func (UnimplementedMsgServer) WithdrawFeeTx ¶
func (UnimplementedMsgServer) WithdrawFeeTx(context.Context, *MsgWithdrawFeeTx) (*MsgWithdrawFeeTxResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) GetAccountProofByAddress ¶
func (UnimplementedQueryServer) GetAccountProofByAddress(context.Context, *QueryAccountProofRequest) (*QueryAccountProofResponse, error)
func (UnimplementedQueryServer) GetDividendAccountByAddress ¶
func (UnimplementedQueryServer) GetDividendAccountByAddress(context.Context, *QueryDividendAccountRequest) (*QueryDividendAccountResponse, error)
func (UnimplementedQueryServer) GetDividendAccountRootHash ¶
func (UnimplementedQueryServer) GetDividendAccountRootHash(context.Context, *QueryDividendAccountRootHashRequest) (*QueryDividendAccountRootHashResponse, error)
func (UnimplementedQueryServer) GetTopupTxSequence ¶
func (UnimplementedQueryServer) GetTopupTxSequence(context.Context, *QueryTopupSequenceRequest) (*QueryTopupSequenceResponse, error)
func (UnimplementedQueryServer) IsTopupTxOld ¶
func (UnimplementedQueryServer) IsTopupTxOld(context.Context, *QueryTopupSequenceRequest) (*QueryIsTopupTxOldResponse, error)
func (UnimplementedQueryServer) VerifyAccountProofByAddress ¶
func (UnimplementedQueryServer) VerifyAccountProofByAddress(context.Context, *QueryVerifyAccountProofRequest) (*QueryVerifyAccountProofResponse, 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.