Documentation
¶
Overview ¶
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBlockchainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBlockchainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainClient) error
- func RegisterBlockchainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBlockchainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServer) error
- func RegisterBlockchainServer(s grpc.ServiceRegistrar, srv BlockchainServer)
- func RegisterNetworkHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNetworkHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkClient) error
- func RegisterNetworkHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNetworkHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServer) error
- func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
- func RegisterTransactionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTransactionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionClient) error
- func RegisterTransactionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionServer) error
- func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
- func RegisterWalletHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
- func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServer) error
- func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfo) GetBalance() int64
- func (x *AccountInfo) GetData() []byte
- func (x *AccountInfo) GetHash() []byte
- func (x *AccountInfo) GetNumber() int32
- func (x *AccountInfo) GetSequence() int32
- func (*AccountInfo) ProtoMessage()
- func (x *AccountInfo) ProtoReflect() protoreflect.Message
- func (x *AccountInfo) Reset()
- func (x *AccountInfo) String() string
- type BlockHeaderInfo
- func (*BlockHeaderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeaderInfo) GetPrevBlockHash() []byte
- func (x *BlockHeaderInfo) GetProposerAddress() string
- func (x *BlockHeaderInfo) GetSortitionSeed() []byte
- func (x *BlockHeaderInfo) GetStateRoot() []byte
- func (x *BlockHeaderInfo) GetVersion() int32
- func (*BlockHeaderInfo) ProtoMessage()
- func (x *BlockHeaderInfo) ProtoReflect() protoreflect.Message
- func (x *BlockHeaderInfo) Reset()
- func (x *BlockHeaderInfo) String() string
- type BlockVerbosity
- func (BlockVerbosity) Descriptor() protoreflect.EnumDescriptor
- func (x BlockVerbosity) Enum() *BlockVerbosity
- func (BlockVerbosity) EnumDescriptor() ([]byte, []int)deprecated
- func (x BlockVerbosity) Number() protoreflect.EnumNumber
- func (x BlockVerbosity) String() string
- func (BlockVerbosity) Type() protoreflect.EnumType
- type BlockchainClient
- type BlockchainServer
- type CertificateInfo
- func (*CertificateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CertificateInfo) GetAbsentees() []int32
- func (x *CertificateInfo) GetCommitters() []int32
- func (x *CertificateInfo) GetHash() []byte
- func (x *CertificateInfo) GetRound() int32
- func (x *CertificateInfo) GetSignature() []byte
- func (*CertificateInfo) ProtoMessage()
- func (x *CertificateInfo) ProtoReflect() protoreflect.Message
- func (x *CertificateInfo) Reset()
- func (x *CertificateInfo) String() string
- type ConsensusInfo
- func (*ConsensusInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ConsensusInfo) GetActive() bool
- func (x *ConsensusInfo) GetAddress() string
- func (x *ConsensusInfo) GetHeight() uint32
- func (x *ConsensusInfo) GetRound() int32
- func (x *ConsensusInfo) GetVotes() []*VoteInfo
- func (*ConsensusInfo) ProtoMessage()
- func (x *ConsensusInfo) ProtoReflect() protoreflect.Message
- func (x *ConsensusInfo) Reset()
- func (x *ConsensusInfo) String() string
- type CreateWalletRequest
- func (*CreateWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWalletRequest) GetLanguage() string
- func (x *CreateWalletRequest) GetMnemonic() string
- func (x *CreateWalletRequest) GetName() string
- func (x *CreateWalletRequest) GetPassword() string
- func (*CreateWalletRequest) ProtoMessage()
- func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message
- func (x *CreateWalletRequest) Reset()
- func (x *CreateWalletRequest) String() string
- type CreateWalletResponse
- type GetAccountRequest
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccount() *AccountInfo
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- type GetBlockHashRequest
- func (*GetBlockHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHashRequest) GetHeight() uint32
- func (*GetBlockHashRequest) ProtoMessage()
- func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockHashRequest) Reset()
- func (x *GetBlockHashRequest) String() string
- type GetBlockHashResponse
- func (*GetBlockHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHashResponse) GetHash() []byte
- func (*GetBlockHashResponse) ProtoMessage()
- func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockHashResponse) Reset()
- func (x *GetBlockHashResponse) String() string
- type GetBlockHeightRequest
- func (*GetBlockHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeightRequest) GetHash() []byte
- func (*GetBlockHeightRequest) ProtoMessage()
- func (x *GetBlockHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeightRequest) Reset()
- func (x *GetBlockHeightRequest) String() string
- type GetBlockHeightResponse
- func (*GetBlockHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeightResponse) GetHeight() uint32
- func (*GetBlockHeightResponse) ProtoMessage()
- func (x *GetBlockHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeightResponse) Reset()
- func (x *GetBlockHeightResponse) String() string
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockRequest) GetHeight() uint32
- func (x *GetBlockRequest) GetVerbosity() BlockVerbosity
- func (*GetBlockRequest) ProtoMessage()
- func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockRequest) Reset()
- func (x *GetBlockRequest) String() string
- type GetBlockResponse
- func (*GetBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockResponse) GetBlockTime() uint32
- func (x *GetBlockResponse) GetData() []byte
- func (x *GetBlockResponse) GetHash() []byte
- func (x *GetBlockResponse) GetHeader() *BlockHeaderInfo
- func (x *GetBlockResponse) GetHeight() uint32
- func (x *GetBlockResponse) GetPrevCert() *CertificateInfo
- func (x *GetBlockResponse) GetTxs() []*TransactionInfo
- func (*GetBlockResponse) ProtoMessage()
- func (x *GetBlockResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockResponse) Reset()
- func (x *GetBlockResponse) String() string
- type GetBlockchainInfoRequest
- type GetBlockchainInfoResponse
- func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockchainInfoResponse) GetCommitteePower() int64
- func (x *GetBlockchainInfoResponse) GetCommitteeValidators() []*ValidatorInfo
- func (x *GetBlockchainInfoResponse) GetLastBlockHash() []byte
- func (x *GetBlockchainInfoResponse) GetLastBlockHeight() uint32
- func (x *GetBlockchainInfoResponse) GetTotalAccounts() int32
- func (x *GetBlockchainInfoResponse) GetTotalPower() int64
- func (x *GetBlockchainInfoResponse) GetTotalValidators() int32
- func (*GetBlockchainInfoResponse) ProtoMessage()
- func (x *GetBlockchainInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockchainInfoResponse) Reset()
- func (x *GetBlockchainInfoResponse) String() string
- type GetConsensusInfoRequest
- type GetConsensusInfoResponse
- func (*GetConsensusInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConsensusInfoResponse) GetInstances() []*ConsensusInfo
- func (*GetConsensusInfoResponse) ProtoMessage()
- func (x *GetConsensusInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetConsensusInfoResponse) Reset()
- func (x *GetConsensusInfoResponse) String() string
- type GetNetworkInfoRequest
- type GetNetworkInfoResponse
- func (*GetNetworkInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNetworkInfoResponse) GetPeers() []*PeerInfo
- func (x *GetNetworkInfoResponse) GetSelfId() []byte
- func (*GetNetworkInfoResponse) ProtoMessage()
- func (x *GetNetworkInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetNetworkInfoResponse) Reset()
- func (x *GetNetworkInfoResponse) String() string
- type GetPeerInfoRequest
- type GetPeerInfoResponse
- func (*GetPeerInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPeerInfoResponse) GetPeer() *PeerInfo
- func (*GetPeerInfoResponse) ProtoMessage()
- func (x *GetPeerInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetPeerInfoResponse) Reset()
- func (x *GetPeerInfoResponse) String() string
- type GetTransactionRequest
- func (*GetTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionRequest) GetId() []byte
- func (x *GetTransactionRequest) GetVerbosity() TransactionVerbosity
- func (*GetTransactionRequest) ProtoMessage()
- func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetTransactionRequest) Reset()
- func (x *GetTransactionRequest) String() string
- type GetTransactionResponse
- func (*GetTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionResponse) GetBlockHeight() uint32
- func (x *GetTransactionResponse) GetBlockTime() uint32
- func (x *GetTransactionResponse) GetTransaction() *TransactionInfo
- func (*GetTransactionResponse) ProtoMessage()
- func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *GetTransactionResponse) Reset()
- func (x *GetTransactionResponse) String() string
- type GetValidatorByNumberRequest
- func (*GetValidatorByNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorByNumberRequest) GetNumber() int32
- func (*GetValidatorByNumberRequest) ProtoMessage()
- func (x *GetValidatorByNumberRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorByNumberRequest) Reset()
- func (x *GetValidatorByNumberRequest) String() string
- type GetValidatorRequest
- func (*GetValidatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorRequest) GetAddress() string
- func (*GetValidatorRequest) ProtoMessage()
- func (x *GetValidatorRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorRequest) Reset()
- func (x *GetValidatorRequest) String() string
- type GetValidatorResponse
- func (*GetValidatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorResponse) GetValidator() *ValidatorInfo
- func (*GetValidatorResponse) ProtoMessage()
- func (x *GetValidatorResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorResponse) Reset()
- func (x *GetValidatorResponse) String() string
- type GetValidatorsRequest
- type GetValidatorsResponse
- func (*GetValidatorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorsResponse) GetValidators() []*ValidatorInfo
- func (*GetValidatorsResponse) ProtoMessage()
- func (x *GetValidatorsResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorsResponse) Reset()
- func (x *GetValidatorsResponse) String() string
- type LoadWalletRequest
- type LoadWalletResponse
- func (*LoadWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadWalletResponse) GetName() string
- func (*LoadWalletResponse) ProtoMessage()
- func (x *LoadWalletResponse) ProtoReflect() protoreflect.Message
- func (x *LoadWalletResponse) Reset()
- func (x *LoadWalletResponse) String() string
- type LockWalletRequest
- func (*LockWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LockWalletRequest) GetPassword() string
- func (x *LockWalletRequest) GetTimeout() int32
- func (*LockWalletRequest) ProtoMessage()
- func (x *LockWalletRequest) ProtoReflect() protoreflect.Message
- func (x *LockWalletRequest) Reset()
- func (x *LockWalletRequest) String() string
- type LockWalletResponse
- type NetworkClient
- type NetworkServer
- type PayloadBond
- func (*PayloadBond) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadBond) GetReceiver() string
- func (x *PayloadBond) GetSender() string
- func (x *PayloadBond) GetStake() int64
- func (*PayloadBond) ProtoMessage()
- func (x *PayloadBond) ProtoReflect() protoreflect.Message
- func (x *PayloadBond) Reset()
- func (x *PayloadBond) String() string
- type PayloadSend
- func (*PayloadSend) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadSend) GetAmount() int64
- func (x *PayloadSend) GetReceiver() string
- func (x *PayloadSend) GetSender() string
- func (*PayloadSend) ProtoMessage()
- func (x *PayloadSend) ProtoReflect() protoreflect.Message
- func (x *PayloadSend) Reset()
- func (x *PayloadSend) String() string
- type PayloadSortition
- func (*PayloadSortition) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadSortition) GetAddress() string
- func (x *PayloadSortition) GetProof() []byte
- func (*PayloadSortition) ProtoMessage()
- func (x *PayloadSortition) ProtoReflect() protoreflect.Message
- func (x *PayloadSortition) Reset()
- func (x *PayloadSortition) String() string
- type PayloadType
- func (PayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x PayloadType) Enum() *PayloadType
- func (PayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PayloadType) Number() protoreflect.EnumNumber
- func (x PayloadType) String() string
- func (PayloadType) Type() protoreflect.EnumType
- type PayloadUnbond
- type PayloadWithdraw
- func (*PayloadWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadWithdraw) GetAmount() int64
- func (x *PayloadWithdraw) GetFrom() string
- func (x *PayloadWithdraw) GetTo() string
- func (*PayloadWithdraw) ProtoMessage()
- func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message
- func (x *PayloadWithdraw) Reset()
- func (x *PayloadWithdraw) String() string
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PeerInfo) GetAgent() string
- func (x *PeerInfo) GetFlags() int32
- func (x *PeerInfo) GetHeight() uint32
- func (x *PeerInfo) GetInvalidMessages() int32
- func (x *PeerInfo) GetKeys() []string
- func (x *PeerInfo) GetLastSeen() int64
- func (x *PeerInfo) GetMoniker() string
- func (x *PeerInfo) GetPeerId() []byte
- func (x *PeerInfo) GetReceivedBytes() int32
- func (x *PeerInfo) GetReceivedMessages() int32
- func (x *PeerInfo) GetStatus() int32
- func (*PeerInfo) ProtoMessage()
- func (x *PeerInfo) ProtoReflect() protoreflect.Message
- func (x *PeerInfo) Reset()
- func (x *PeerInfo) String() string
- type SendRawTransactionRequest
- func (*SendRawTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendRawTransactionRequest) GetData() []byte
- func (*SendRawTransactionRequest) ProtoMessage()
- func (x *SendRawTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *SendRawTransactionRequest) Reset()
- func (x *SendRawTransactionRequest) String() string
- type SendRawTransactionResponse
- func (*SendRawTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendRawTransactionResponse) GetId() []byte
- func (*SendRawTransactionResponse) ProtoMessage()
- func (x *SendRawTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *SendRawTransactionResponse) Reset()
- func (x *SendRawTransactionResponse) String() string
- type TransactionClient
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionInfo) GetBond() *PayloadBond
- func (x *TransactionInfo) GetData() []byte
- func (x *TransactionInfo) GetFee() int64
- func (x *TransactionInfo) GetId() []byte
- func (x *TransactionInfo) GetMemo() string
- func (m *TransactionInfo) GetPayload() isTransactionInfo_Payload
- func (x *TransactionInfo) GetPayloadType() PayloadType
- func (x *TransactionInfo) GetPublicKey() string
- func (x *TransactionInfo) GetSend() *PayloadSend
- func (x *TransactionInfo) GetSequence() int32
- func (x *TransactionInfo) GetSignature() []byte
- func (x *TransactionInfo) GetSortition() *PayloadSortition
- func (x *TransactionInfo) GetStamp() []byte
- func (x *TransactionInfo) GetUnbond() *PayloadUnbond
- func (x *TransactionInfo) GetValue() int64
- func (x *TransactionInfo) GetVersion() int32
- func (x *TransactionInfo) GetWithdraw() *PayloadWithdraw
- func (*TransactionInfo) ProtoMessage()
- func (x *TransactionInfo) ProtoReflect() protoreflect.Message
- func (x *TransactionInfo) Reset()
- func (x *TransactionInfo) String() string
- type TransactionInfo_Bond
- type TransactionInfo_Send
- type TransactionInfo_Sortition
- type TransactionInfo_Unbond
- type TransactionInfo_Withdraw
- type TransactionServer
- type TransactionVerbosity
- func (TransactionVerbosity) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionVerbosity) Enum() *TransactionVerbosity
- func (TransactionVerbosity) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionVerbosity) Number() protoreflect.EnumNumber
- func (x TransactionVerbosity) String() string
- func (TransactionVerbosity) Type() protoreflect.EnumType
- type UnimplementedBlockchainServer
- func (UnimplementedBlockchainServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedBlockchainServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
- func (UnimplementedBlockchainServer) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error)
- func (UnimplementedBlockchainServer) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error)
- func (UnimplementedBlockchainServer) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error)
- func (UnimplementedBlockchainServer) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error)
- func (UnimplementedBlockchainServer) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error)
- func (UnimplementedBlockchainServer) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error)
- func (UnimplementedBlockchainServer) GetValidators(context.Context, *GetValidatorsRequest) (*GetValidatorsResponse, error)
- type UnimplementedNetworkServer
- type UnimplementedTransactionServer
- type UnimplementedWalletServer
- func (UnimplementedWalletServer) CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
- func (UnimplementedWalletServer) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error)
- func (UnimplementedWalletServer) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error)
- func (UnimplementedWalletServer) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error)
- func (UnimplementedWalletServer) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
- type UnloadWalletRequest
- func (*UnloadWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnloadWalletRequest) GetName() string
- func (*UnloadWalletRequest) ProtoMessage()
- func (x *UnloadWalletRequest) ProtoReflect() protoreflect.Message
- func (x *UnloadWalletRequest) Reset()
- func (x *UnloadWalletRequest) String() string
- type UnloadWalletResponse
- func (*UnloadWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnloadWalletResponse) GetName() string
- func (*UnloadWalletResponse) ProtoMessage()
- func (x *UnloadWalletResponse) ProtoReflect() protoreflect.Message
- func (x *UnloadWalletResponse) Reset()
- func (x *UnloadWalletResponse) String() string
- type UnlockWalletRequest
- func (*UnlockWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockWalletRequest) GetPassword() string
- func (x *UnlockWalletRequest) GetTimeout() int32
- func (*UnlockWalletRequest) ProtoMessage()
- func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockWalletRequest) Reset()
- func (x *UnlockWalletRequest) String() string
- type UnlockWalletResponse
- type UnsafeBlockchainServer
- type UnsafeNetworkServer
- type UnsafeTransactionServer
- type UnsafeWalletServer
- type ValidatorInfo
- func (*ValidatorInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorInfo) GetAddress() string
- func (x *ValidatorInfo) GetData() []byte
- func (x *ValidatorInfo) GetHash() []byte
- func (x *ValidatorInfo) GetLastBondingHeight() uint32
- func (x *ValidatorInfo) GetLastJoinedHeight() uint32
- func (x *ValidatorInfo) GetNumber() int32
- func (x *ValidatorInfo) GetPublicKey() string
- func (x *ValidatorInfo) GetSequence() int32
- func (x *ValidatorInfo) GetStake() int64
- func (x *ValidatorInfo) GetUnbondingHeight() uint32
- func (*ValidatorInfo) ProtoMessage()
- func (x *ValidatorInfo) ProtoReflect() protoreflect.Message
- func (x *ValidatorInfo) Reset()
- func (x *ValidatorInfo) String() string
- type VoteInfo
- func (*VoteInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VoteInfo) GetBlockHash() []byte
- func (x *VoteInfo) GetRound() int32
- func (x *VoteInfo) GetType() VoteType
- func (x *VoteInfo) GetVoter() string
- func (*VoteInfo) ProtoMessage()
- func (x *VoteInfo) ProtoReflect() protoreflect.Message
- func (x *VoteInfo) Reset()
- func (x *VoteInfo) String() string
- type VoteType
- type WalletClient
- type WalletServer
Constants ¶
This section is empty.
Variables ¶
var ( BlockVerbosity_name = map[int32]string{ 0: "BLOCK_DATA", 1: "BLOCK_INFO", 2: "BLOCK_TRANSACTIONS", } BlockVerbosity_value = map[string]int32{ "BLOCK_DATA": 0, "BLOCK_INFO": 1, "BLOCK_TRANSACTIONS": 2, } )
Enum value maps for BlockVerbosity.
var ( VoteType_name = map[int32]string{ 0: "VOTE_UNKNOWN", 1: "VOTE_PREPARE", 2: "VOTE_PRECOMMIT", 3: "VOTE_CHANGE_PROPOSER", } VoteType_value = map[string]int32{ "VOTE_UNKNOWN": 0, "VOTE_PREPARE": 1, "VOTE_PRECOMMIT": 2, "VOTE_CHANGE_PROPOSER": 3, } )
Enum value maps for VoteType.
var ( PayloadType_name = map[int32]string{ 0: "UNKNOWN", 1: "SEND_PAYLOAD", 2: "BOND_PAYLOAD", 3: "SORTITION_PAYLOAD", 4: "UNBOND_PAYLOAD", 5: "WITHDRAW_PAYLOAD", } PayloadType_value = map[string]int32{ "UNKNOWN": 0, "SEND_PAYLOAD": 1, "BOND_PAYLOAD": 2, "SORTITION_PAYLOAD": 3, "UNBOND_PAYLOAD": 4, "WITHDRAW_PAYLOAD": 5, } )
Enum value maps for PayloadType.
var ( TransactionVerbosity_name = map[int32]string{ 0: "TRANSACTION_DATA", 1: "TRANSACTION_INFO", } TransactionVerbosity_value = map[string]int32{ "TRANSACTION_DATA": 0, "TRANSACTION_INFO": 1, } )
Enum value maps for TransactionVerbosity.
var Blockchain_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Blockchain", HandlerType: (*BlockchainServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBlock", Handler: _Blockchain_GetBlock_Handler, }, { MethodName: "GetBlockHash", Handler: _Blockchain_GetBlockHash_Handler, }, { MethodName: "GetBlockHeight", Handler: _Blockchain_GetBlockHeight_Handler, }, { MethodName: "GetBlockchainInfo", Handler: _Blockchain_GetBlockchainInfo_Handler, }, { MethodName: "GetConsensusInfo", Handler: _Blockchain_GetConsensusInfo_Handler, }, { MethodName: "GetAccount", Handler: _Blockchain_GetAccount_Handler, }, { MethodName: "GetValidator", Handler: _Blockchain_GetValidator_Handler, }, { MethodName: "GetValidatorByNumber", Handler: _Blockchain_GetValidatorByNumber_Handler, }, { MethodName: "GetValidators", Handler: _Blockchain_GetValidators_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blockchain.proto", }
Blockchain_ServiceDesc is the grpc.ServiceDesc for Blockchain service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_blockchain_proto protoreflect.FileDescriptor
var File_network_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
var File_wallet_proto protoreflect.FileDescriptor
var Network_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Network", HandlerType: (*NetworkServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNetworkInfo", Handler: _Network_GetNetworkInfo_Handler, }, { MethodName: "GetPeerInfo", Handler: _Network_GetPeerInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network.proto", }
Network_ServiceDesc is the grpc.ServiceDesc for Network service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Transaction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Transaction", HandlerType: (*TransactionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTransaction", Handler: _Transaction_GetTransaction_Handler, }, { MethodName: "SendRawTransaction", Handler: _Transaction_SendRawTransaction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction.proto", }
Transaction_ServiceDesc is the grpc.ServiceDesc for Transaction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Wallet_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Wallet", HandlerType: (*WalletServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWallet", Handler: _Wallet_CreateWallet_Handler, }, { MethodName: "LoadWallet", Handler: _Wallet_LoadWallet_Handler, }, { MethodName: "UnloadWallet", Handler: _Wallet_UnloadWallet_Handler, }, { MethodName: "LockWallet", Handler: _Wallet_LockWallet_Handler, }, { MethodName: "UnlockWallet", Handler: _Wallet_UnlockWallet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wallet.proto", }
Wallet_ServiceDesc is the grpc.ServiceDesc for Wallet service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBlockchainHandler ¶
func RegisterBlockchainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBlockchainHandler registers the http handlers for service Blockchain to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBlockchainHandlerClient ¶
func RegisterBlockchainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainClient) error
RegisterBlockchainHandlerClient registers the http handlers for service Blockchain to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BlockchainClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BlockchainClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BlockchainClient" to call the correct interceptors.
func RegisterBlockchainHandlerFromEndpoint ¶
func RegisterBlockchainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBlockchainHandlerFromEndpoint is same as RegisterBlockchainHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBlockchainHandlerServer ¶
func RegisterBlockchainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServer) error
RegisterBlockchainHandlerServer registers the http handlers for service Blockchain to "mux". UnaryRPC :call BlockchainServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBlockchainHandlerFromEndpoint instead.
func RegisterBlockchainServer ¶
func RegisterBlockchainServer(s grpc.ServiceRegistrar, srv BlockchainServer)
func RegisterNetworkHandler ¶
func RegisterNetworkHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNetworkHandler registers the http handlers for service Network to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNetworkHandlerClient ¶
func RegisterNetworkHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkClient) error
RegisterNetworkHandlerClient registers the http handlers for service Network to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetworkClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetworkClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetworkClient" to call the correct interceptors.
func RegisterNetworkHandlerFromEndpoint ¶
func RegisterNetworkHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNetworkHandlerFromEndpoint is same as RegisterNetworkHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNetworkHandlerServer ¶
func RegisterNetworkHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServer) error
RegisterNetworkHandlerServer registers the http handlers for service Network to "mux". UnaryRPC :call NetworkServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetworkHandlerFromEndpoint instead.
func RegisterNetworkServer ¶
func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
func RegisterTransactionHandler ¶
func RegisterTransactionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTransactionHandler registers the http handlers for service Transaction to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTransactionHandlerClient ¶
func RegisterTransactionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionClient) error
RegisterTransactionHandlerClient registers the http handlers for service Transaction to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TransactionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TransactionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TransactionClient" to call the correct interceptors.
func RegisterTransactionHandlerFromEndpoint ¶
func RegisterTransactionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTransactionHandlerFromEndpoint is same as RegisterTransactionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTransactionHandlerServer ¶
func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionServer) error
RegisterTransactionHandlerServer registers the http handlers for service Transaction to "mux". UnaryRPC :call TransactionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTransactionHandlerFromEndpoint instead.
func RegisterTransactionServer ¶
func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
func RegisterWalletHandler ¶
RegisterWalletHandler registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletHandlerClient ¶
func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
RegisterWalletHandlerClient registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletClient" to call the correct interceptors.
func RegisterWalletHandlerFromEndpoint ¶
func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletHandlerFromEndpoint is same as RegisterWalletHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletHandlerServer ¶
func RegisterWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServer) error
RegisterWalletHandlerServer registers the http handlers for service Wallet to "mux". UnaryRPC :call WalletServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletHandlerFromEndpoint instead.
func RegisterWalletServer ¶
func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
Types ¶
type AccountInfo ¶
type AccountInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` Sequence int32 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` Balance int64 `protobuf:"varint,5,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
func (*AccountInfo) Descriptor
deprecated
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetBalance ¶
func (x *AccountInfo) GetBalance() int64
func (*AccountInfo) GetData ¶
func (x *AccountInfo) GetData() []byte
func (*AccountInfo) GetHash ¶
func (x *AccountInfo) GetHash() []byte
func (*AccountInfo) GetNumber ¶
func (x *AccountInfo) GetNumber() int32
func (*AccountInfo) GetSequence ¶
func (x *AccountInfo) GetSequence() int32
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (x *AccountInfo) String() string
type BlockHeaderInfo ¶
type BlockHeaderInfo struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` PrevBlockHash []byte `protobuf:"bytes,2,opt,name=prev_block_hash,json=prevBlockHash,proto3" json:"prev_block_hash,omitempty"` StateRoot []byte `protobuf:"bytes,3,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` SortitionSeed []byte `protobuf:"bytes,4,opt,name=sortition_seed,json=sortitionSeed,proto3" json:"sortition_seed,omitempty"` ProposerAddress string `protobuf:"bytes,5,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` // contains filtered or unexported fields }
func (*BlockHeaderInfo) Descriptor
deprecated
func (*BlockHeaderInfo) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeaderInfo.ProtoReflect.Descriptor instead.
func (*BlockHeaderInfo) GetPrevBlockHash ¶
func (x *BlockHeaderInfo) GetPrevBlockHash() []byte
func (*BlockHeaderInfo) GetProposerAddress ¶
func (x *BlockHeaderInfo) GetProposerAddress() string
func (*BlockHeaderInfo) GetSortitionSeed ¶
func (x *BlockHeaderInfo) GetSortitionSeed() []byte
func (*BlockHeaderInfo) GetStateRoot ¶
func (x *BlockHeaderInfo) GetStateRoot() []byte
func (*BlockHeaderInfo) GetVersion ¶
func (x *BlockHeaderInfo) GetVersion() int32
func (*BlockHeaderInfo) ProtoMessage ¶
func (*BlockHeaderInfo) ProtoMessage()
func (*BlockHeaderInfo) ProtoReflect ¶
func (x *BlockHeaderInfo) ProtoReflect() protoreflect.Message
func (*BlockHeaderInfo) Reset ¶
func (x *BlockHeaderInfo) Reset()
func (*BlockHeaderInfo) String ¶
func (x *BlockHeaderInfo) String() string
type BlockVerbosity ¶
type BlockVerbosity int32
const ( BlockVerbosity_BLOCK_DATA BlockVerbosity = 0 BlockVerbosity_BLOCK_INFO BlockVerbosity = 1 BlockVerbosity_BLOCK_TRANSACTIONS BlockVerbosity = 2 )
func (BlockVerbosity) Descriptor ¶
func (BlockVerbosity) Descriptor() protoreflect.EnumDescriptor
func (BlockVerbosity) Enum ¶
func (x BlockVerbosity) Enum() *BlockVerbosity
func (BlockVerbosity) EnumDescriptor
deprecated
func (BlockVerbosity) EnumDescriptor() ([]byte, []int)
Deprecated: Use BlockVerbosity.Descriptor instead.
func (BlockVerbosity) Number ¶
func (x BlockVerbosity) Number() protoreflect.EnumNumber
func (BlockVerbosity) String ¶
func (x BlockVerbosity) String() string
func (BlockVerbosity) Type ¶
func (BlockVerbosity) Type() protoreflect.EnumType
type BlockchainClient ¶
type BlockchainClient interface { GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) GetBlockHash(ctx context.Context, in *GetBlockHashRequest, opts ...grpc.CallOption) (*GetBlockHashResponse, error) GetBlockHeight(ctx context.Context, in *GetBlockHeightRequest, opts ...grpc.CallOption) (*GetBlockHeightResponse, error) GetBlockchainInfo(ctx context.Context, in *GetBlockchainInfoRequest, opts ...grpc.CallOption) (*GetBlockchainInfoResponse, error) GetConsensusInfo(ctx context.Context, in *GetConsensusInfoRequest, opts ...grpc.CallOption) (*GetConsensusInfoResponse, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) GetValidator(ctx context.Context, in *GetValidatorRequest, opts ...grpc.CallOption) (*GetValidatorResponse, error) GetValidatorByNumber(ctx context.Context, in *GetValidatorByNumberRequest, opts ...grpc.CallOption) (*GetValidatorResponse, error) GetValidators(ctx context.Context, in *GetValidatorsRequest, opts ...grpc.CallOption) (*GetValidatorsResponse, error) }
BlockchainClient is the client API for Blockchain 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 NewBlockchainClient ¶
func NewBlockchainClient(cc grpc.ClientConnInterface) BlockchainClient
type BlockchainServer ¶
type BlockchainServer interface { GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error) GetValidators(context.Context, *GetValidatorsRequest) (*GetValidatorsResponse, error) }
BlockchainServer is the server API for Blockchain service. All implementations should embed UnimplementedBlockchainServer for forward compatibility
type CertificateInfo ¶
type CertificateInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Committers []int32 `protobuf:"varint,3,rep,packed,name=committers,proto3" json:"committers,omitempty"` Absentees []int32 `protobuf:"varint,4,rep,packed,name=absentees,proto3" json:"absentees,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*CertificateInfo) Descriptor
deprecated
func (*CertificateInfo) Descriptor() ([]byte, []int)
Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead.
func (*CertificateInfo) GetAbsentees ¶
func (x *CertificateInfo) GetAbsentees() []int32
func (*CertificateInfo) GetCommitters ¶
func (x *CertificateInfo) GetCommitters() []int32
func (*CertificateInfo) GetHash ¶
func (x *CertificateInfo) GetHash() []byte
func (*CertificateInfo) GetRound ¶
func (x *CertificateInfo) GetRound() int32
func (*CertificateInfo) GetSignature ¶
func (x *CertificateInfo) GetSignature() []byte
func (*CertificateInfo) ProtoMessage ¶
func (*CertificateInfo) ProtoMessage()
func (*CertificateInfo) ProtoReflect ¶
func (x *CertificateInfo) ProtoReflect() protoreflect.Message
func (*CertificateInfo) Reset ¶
func (x *CertificateInfo) Reset()
func (*CertificateInfo) String ¶
func (x *CertificateInfo) String() string
type ConsensusInfo ¶ added in v0.10.0
type ConsensusInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Active bool `protobuf:"varint,2,opt,name=Active,proto3" json:"Active,omitempty"` Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` Votes []*VoteInfo `protobuf:"bytes,5,rep,name=votes,proto3" json:"votes,omitempty"` // contains filtered or unexported fields }
func (*ConsensusInfo) Descriptor
deprecated
added in
v0.10.0
func (*ConsensusInfo) Descriptor() ([]byte, []int)
Deprecated: Use ConsensusInfo.ProtoReflect.Descriptor instead.
func (*ConsensusInfo) GetActive ¶ added in v0.10.0
func (x *ConsensusInfo) GetActive() bool
func (*ConsensusInfo) GetAddress ¶ added in v0.10.0
func (x *ConsensusInfo) GetAddress() string
func (*ConsensusInfo) GetHeight ¶ added in v0.10.0
func (x *ConsensusInfo) GetHeight() uint32
func (*ConsensusInfo) GetRound ¶ added in v0.10.0
func (x *ConsensusInfo) GetRound() int32
func (*ConsensusInfo) GetVotes ¶ added in v0.10.0
func (x *ConsensusInfo) GetVotes() []*VoteInfo
func (*ConsensusInfo) ProtoMessage ¶ added in v0.10.0
func (*ConsensusInfo) ProtoMessage()
func (*ConsensusInfo) ProtoReflect ¶ added in v0.10.0
func (x *ConsensusInfo) ProtoReflect() protoreflect.Message
func (*ConsensusInfo) Reset ¶ added in v0.10.0
func (x *ConsensusInfo) Reset()
func (*ConsensusInfo) String ¶ added in v0.10.0
func (x *ConsensusInfo) String() string
type CreateWalletRequest ¶
type CreateWalletRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateWalletRequest) Descriptor
deprecated
func (*CreateWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletRequest.ProtoReflect.Descriptor instead.
func (*CreateWalletRequest) GetLanguage ¶
func (x *CreateWalletRequest) GetLanguage() string
func (*CreateWalletRequest) GetMnemonic ¶
func (x *CreateWalletRequest) GetMnemonic() string
func (*CreateWalletRequest) GetName ¶
func (x *CreateWalletRequest) GetName() string
func (*CreateWalletRequest) GetPassword ¶
func (x *CreateWalletRequest) GetPassword() string
func (*CreateWalletRequest) ProtoMessage ¶
func (*CreateWalletRequest) ProtoMessage()
func (*CreateWalletRequest) ProtoReflect ¶
func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message
func (*CreateWalletRequest) Reset ¶
func (x *CreateWalletRequest) Reset()
func (*CreateWalletRequest) String ¶
func (x *CreateWalletRequest) String() string
type CreateWalletResponse ¶
type CreateWalletResponse struct {
// contains filtered or unexported fields
}
func (*CreateWalletResponse) Descriptor
deprecated
func (*CreateWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletResponse.ProtoReflect.Descriptor instead.
func (*CreateWalletResponse) ProtoMessage ¶
func (*CreateWalletResponse) ProtoMessage()
func (*CreateWalletResponse) ProtoReflect ¶
func (x *CreateWalletResponse) ProtoReflect() protoreflect.Message
func (*CreateWalletResponse) Reset ¶
func (x *CreateWalletResponse) Reset()
func (*CreateWalletResponse) String ¶
func (x *CreateWalletResponse) String() string
type GetAccountRequest ¶
type GetAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetAddress ¶
func (x *GetAccountRequest) GetAddress() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type GetAccountResponse ¶
type GetAccountResponse struct { Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccount ¶
func (x *GetAccountResponse) GetAccount() *AccountInfo
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
type GetBlockHashRequest ¶
type GetBlockHashRequest struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHashRequest) Descriptor
deprecated
func (*GetBlockHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHashRequest.ProtoReflect.Descriptor instead.
func (*GetBlockHashRequest) GetHeight ¶
func (x *GetBlockHashRequest) GetHeight() uint32
func (*GetBlockHashRequest) ProtoMessage ¶
func (*GetBlockHashRequest) ProtoMessage()
func (*GetBlockHashRequest) ProtoReflect ¶
func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message
func (*GetBlockHashRequest) Reset ¶
func (x *GetBlockHashRequest) Reset()
func (*GetBlockHashRequest) String ¶
func (x *GetBlockHashRequest) String() string
type GetBlockHashResponse ¶
type GetBlockHashResponse struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHashResponse) Descriptor
deprecated
func (*GetBlockHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHashResponse.ProtoReflect.Descriptor instead.
func (*GetBlockHashResponse) GetHash ¶
func (x *GetBlockHashResponse) GetHash() []byte
func (*GetBlockHashResponse) ProtoMessage ¶
func (*GetBlockHashResponse) ProtoMessage()
func (*GetBlockHashResponse) ProtoReflect ¶
func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message
func (*GetBlockHashResponse) Reset ¶
func (x *GetBlockHashResponse) Reset()
func (*GetBlockHashResponse) String ¶
func (x *GetBlockHashResponse) String() string
type GetBlockHeightRequest ¶
type GetBlockHeightRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeightRequest) Descriptor
deprecated
func (*GetBlockHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeightRequest.ProtoReflect.Descriptor instead.
func (*GetBlockHeightRequest) GetHash ¶
func (x *GetBlockHeightRequest) GetHash() []byte
func (*GetBlockHeightRequest) ProtoMessage ¶
func (*GetBlockHeightRequest) ProtoMessage()
func (*GetBlockHeightRequest) ProtoReflect ¶
func (x *GetBlockHeightRequest) ProtoReflect() protoreflect.Message
func (*GetBlockHeightRequest) Reset ¶
func (x *GetBlockHeightRequest) Reset()
func (*GetBlockHeightRequest) String ¶
func (x *GetBlockHeightRequest) String() string
type GetBlockHeightResponse ¶
type GetBlockHeightResponse struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeightResponse) Descriptor
deprecated
func (*GetBlockHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeightResponse.ProtoReflect.Descriptor instead.
func (*GetBlockHeightResponse) GetHeight ¶
func (x *GetBlockHeightResponse) GetHeight() uint32
func (*GetBlockHeightResponse) ProtoMessage ¶
func (*GetBlockHeightResponse) ProtoMessage()
func (*GetBlockHeightResponse) ProtoReflect ¶
func (x *GetBlockHeightResponse) ProtoReflect() protoreflect.Message
func (*GetBlockHeightResponse) Reset ¶
func (x *GetBlockHeightResponse) Reset()
func (*GetBlockHeightResponse) String ¶
func (x *GetBlockHeightResponse) String() string
type GetBlockRequest ¶
type GetBlockRequest struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Verbosity BlockVerbosity `protobuf:"varint,2,opt,name=verbosity,proto3,enum=pactus.BlockVerbosity" json:"verbosity,omitempty"` // contains filtered or unexported fields }
func (*GetBlockRequest) Descriptor
deprecated
func (*GetBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
func (*GetBlockRequest) GetHeight ¶
func (x *GetBlockRequest) GetHeight() uint32
func (*GetBlockRequest) GetVerbosity ¶
func (x *GetBlockRequest) GetVerbosity() BlockVerbosity
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) ProtoReflect ¶
func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
func (*GetBlockRequest) Reset ¶
func (x *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (x *GetBlockRequest) String() string
type GetBlockResponse ¶
type GetBlockResponse struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` BlockTime uint32 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` Header *BlockHeaderInfo `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` PrevCert *CertificateInfo `protobuf:"bytes,6,opt,name=prev_cert,json=prevCert,proto3" json:"prev_cert,omitempty"` Txs []*TransactionInfo `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*GetBlockResponse) Descriptor
deprecated
func (*GetBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead.
func (*GetBlockResponse) GetBlockTime ¶
func (x *GetBlockResponse) GetBlockTime() uint32
func (*GetBlockResponse) GetData ¶
func (x *GetBlockResponse) GetData() []byte
func (*GetBlockResponse) GetHash ¶
func (x *GetBlockResponse) GetHash() []byte
func (*GetBlockResponse) GetHeader ¶
func (x *GetBlockResponse) GetHeader() *BlockHeaderInfo
func (*GetBlockResponse) GetHeight ¶
func (x *GetBlockResponse) GetHeight() uint32
func (*GetBlockResponse) GetPrevCert ¶
func (x *GetBlockResponse) GetPrevCert() *CertificateInfo
func (*GetBlockResponse) GetTxs ¶
func (x *GetBlockResponse) GetTxs() []*TransactionInfo
func (*GetBlockResponse) ProtoMessage ¶
func (*GetBlockResponse) ProtoMessage()
func (*GetBlockResponse) ProtoReflect ¶
func (x *GetBlockResponse) ProtoReflect() protoreflect.Message
func (*GetBlockResponse) Reset ¶
func (x *GetBlockResponse) Reset()
func (*GetBlockResponse) String ¶
func (x *GetBlockResponse) String() string
type GetBlockchainInfoRequest ¶
type GetBlockchainInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetBlockchainInfoRequest) Descriptor
deprecated
func (*GetBlockchainInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockchainInfoRequest.ProtoReflect.Descriptor instead.
func (*GetBlockchainInfoRequest) ProtoMessage ¶
func (*GetBlockchainInfoRequest) ProtoMessage()
func (*GetBlockchainInfoRequest) ProtoReflect ¶
func (x *GetBlockchainInfoRequest) ProtoReflect() protoreflect.Message
func (*GetBlockchainInfoRequest) Reset ¶
func (x *GetBlockchainInfoRequest) Reset()
func (*GetBlockchainInfoRequest) String ¶
func (x *GetBlockchainInfoRequest) String() string
type GetBlockchainInfoResponse ¶
type GetBlockchainInfoResponse struct { LastBlockHeight uint32 `protobuf:"varint,1,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` LastBlockHash []byte `protobuf:"bytes,2,opt,name=last_block_hash,json=lastBlockHash,proto3" json:"last_block_hash,omitempty"` TotalAccounts int32 `protobuf:"varint,3,opt,name=total_accounts,json=totalAccounts,proto3" json:"total_accounts,omitempty"` TotalValidators int32 `protobuf:"varint,4,opt,name=total_validators,json=totalValidators,proto3" json:"total_validators,omitempty"` TotalPower int64 `protobuf:"varint,5,opt,name=total_power,json=totalPower,proto3" json:"total_power,omitempty"` CommitteePower int64 `protobuf:"varint,6,opt,name=committee_power,json=committeePower,proto3" json:"committee_power,omitempty"` CommitteeValidators []*ValidatorInfo `protobuf:"bytes,7,rep,name=committee_validators,json=committeeValidators,proto3" json:"committee_validators,omitempty"` // contains filtered or unexported fields }
func (*GetBlockchainInfoResponse) Descriptor
deprecated
func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockchainInfoResponse.ProtoReflect.Descriptor instead.
func (*GetBlockchainInfoResponse) GetCommitteePower ¶
func (x *GetBlockchainInfoResponse) GetCommitteePower() int64
func (*GetBlockchainInfoResponse) GetCommitteeValidators ¶
func (x *GetBlockchainInfoResponse) GetCommitteeValidators() []*ValidatorInfo
func (*GetBlockchainInfoResponse) GetLastBlockHash ¶
func (x *GetBlockchainInfoResponse) GetLastBlockHash() []byte
func (*GetBlockchainInfoResponse) GetLastBlockHeight ¶
func (x *GetBlockchainInfoResponse) GetLastBlockHeight() uint32
func (*GetBlockchainInfoResponse) GetTotalAccounts ¶ added in v0.10.0
func (x *GetBlockchainInfoResponse) GetTotalAccounts() int32
func (*GetBlockchainInfoResponse) GetTotalPower ¶
func (x *GetBlockchainInfoResponse) GetTotalPower() int64
func (*GetBlockchainInfoResponse) GetTotalValidators ¶ added in v0.10.0
func (x *GetBlockchainInfoResponse) GetTotalValidators() int32
func (*GetBlockchainInfoResponse) ProtoMessage ¶
func (*GetBlockchainInfoResponse) ProtoMessage()
func (*GetBlockchainInfoResponse) ProtoReflect ¶
func (x *GetBlockchainInfoResponse) ProtoReflect() protoreflect.Message
func (*GetBlockchainInfoResponse) Reset ¶
func (x *GetBlockchainInfoResponse) Reset()
func (*GetBlockchainInfoResponse) String ¶
func (x *GetBlockchainInfoResponse) String() string
type GetConsensusInfoRequest ¶
type GetConsensusInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetConsensusInfoRequest) Descriptor
deprecated
func (*GetConsensusInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConsensusInfoRequest.ProtoReflect.Descriptor instead.
func (*GetConsensusInfoRequest) ProtoMessage ¶
func (*GetConsensusInfoRequest) ProtoMessage()
func (*GetConsensusInfoRequest) ProtoReflect ¶
func (x *GetConsensusInfoRequest) ProtoReflect() protoreflect.Message
func (*GetConsensusInfoRequest) Reset ¶
func (x *GetConsensusInfoRequest) Reset()
func (*GetConsensusInfoRequest) String ¶
func (x *GetConsensusInfoRequest) String() string
type GetConsensusInfoResponse ¶
type GetConsensusInfoResponse struct { Instances []*ConsensusInfo `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` // contains filtered or unexported fields }
func (*GetConsensusInfoResponse) Descriptor
deprecated
func (*GetConsensusInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConsensusInfoResponse.ProtoReflect.Descriptor instead.
func (*GetConsensusInfoResponse) GetInstances ¶ added in v0.10.0
func (x *GetConsensusInfoResponse) GetInstances() []*ConsensusInfo
func (*GetConsensusInfoResponse) ProtoMessage ¶
func (*GetConsensusInfoResponse) ProtoMessage()
func (*GetConsensusInfoResponse) ProtoReflect ¶
func (x *GetConsensusInfoResponse) ProtoReflect() protoreflect.Message
func (*GetConsensusInfoResponse) Reset ¶
func (x *GetConsensusInfoResponse) Reset()
func (*GetConsensusInfoResponse) String ¶
func (x *GetConsensusInfoResponse) String() string
type GetNetworkInfoRequest ¶
type GetNetworkInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetNetworkInfoRequest) Descriptor
deprecated
func (*GetNetworkInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoRequest.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoRequest) ProtoMessage ¶
func (*GetNetworkInfoRequest) ProtoMessage()
func (*GetNetworkInfoRequest) ProtoReflect ¶
func (x *GetNetworkInfoRequest) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoRequest) Reset ¶
func (x *GetNetworkInfoRequest) Reset()
func (*GetNetworkInfoRequest) String ¶
func (x *GetNetworkInfoRequest) String() string
type GetNetworkInfoResponse ¶
type GetNetworkInfoResponse struct { SelfId []byte `protobuf:"bytes,1,opt,name=self_id,json=selfId,proto3" json:"self_id,omitempty"` Peers []*PeerInfo `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` // contains filtered or unexported fields }
func (*GetNetworkInfoResponse) Descriptor
deprecated
func (*GetNetworkInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoResponse.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoResponse) GetPeers ¶
func (x *GetNetworkInfoResponse) GetPeers() []*PeerInfo
func (*GetNetworkInfoResponse) GetSelfId ¶
func (x *GetNetworkInfoResponse) GetSelfId() []byte
func (*GetNetworkInfoResponse) ProtoMessage ¶
func (*GetNetworkInfoResponse) ProtoMessage()
func (*GetNetworkInfoResponse) ProtoReflect ¶
func (x *GetNetworkInfoResponse) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoResponse) Reset ¶
func (x *GetNetworkInfoResponse) Reset()
func (*GetNetworkInfoResponse) String ¶
func (x *GetNetworkInfoResponse) String() string
type GetPeerInfoRequest ¶
type GetPeerInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetPeerInfoRequest) Descriptor
deprecated
func (*GetPeerInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPeerInfoRequest.ProtoReflect.Descriptor instead.
func (*GetPeerInfoRequest) ProtoMessage ¶
func (*GetPeerInfoRequest) ProtoMessage()
func (*GetPeerInfoRequest) ProtoReflect ¶
func (x *GetPeerInfoRequest) ProtoReflect() protoreflect.Message
func (*GetPeerInfoRequest) Reset ¶
func (x *GetPeerInfoRequest) Reset()
func (*GetPeerInfoRequest) String ¶
func (x *GetPeerInfoRequest) String() string
type GetPeerInfoResponse ¶
type GetPeerInfoResponse struct { Peer *PeerInfo `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` // contains filtered or unexported fields }
func (*GetPeerInfoResponse) Descriptor
deprecated
func (*GetPeerInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPeerInfoResponse.ProtoReflect.Descriptor instead.
func (*GetPeerInfoResponse) GetPeer ¶
func (x *GetPeerInfoResponse) GetPeer() *PeerInfo
func (*GetPeerInfoResponse) ProtoMessage ¶
func (*GetPeerInfoResponse) ProtoMessage()
func (*GetPeerInfoResponse) ProtoReflect ¶
func (x *GetPeerInfoResponse) ProtoReflect() protoreflect.Message
func (*GetPeerInfoResponse) Reset ¶
func (x *GetPeerInfoResponse) Reset()
func (*GetPeerInfoResponse) String ¶
func (x *GetPeerInfoResponse) String() string
type GetTransactionRequest ¶
type GetTransactionRequest struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Verbosity TransactionVerbosity `protobuf:"varint,2,opt,name=verbosity,proto3,enum=pactus.TransactionVerbosity" json:"verbosity,omitempty"` // contains filtered or unexported fields }
func (*GetTransactionRequest) Descriptor
deprecated
func (*GetTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetTransactionRequest) GetId ¶
func (x *GetTransactionRequest) GetId() []byte
func (*GetTransactionRequest) GetVerbosity ¶
func (x *GetTransactionRequest) GetVerbosity() TransactionVerbosity
func (*GetTransactionRequest) ProtoMessage ¶
func (*GetTransactionRequest) ProtoMessage()
func (*GetTransactionRequest) ProtoReflect ¶
func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetTransactionRequest) Reset ¶
func (x *GetTransactionRequest) Reset()
func (*GetTransactionRequest) String ¶
func (x *GetTransactionRequest) String() string
type GetTransactionResponse ¶
type GetTransactionResponse struct { BlockHeight uint32 `protobuf:"varint,12,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime uint32 `protobuf:"varint,13,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` Transaction *TransactionInfo `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*GetTransactionResponse) Descriptor
deprecated
func (*GetTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead.
func (*GetTransactionResponse) GetBlockHeight ¶
func (x *GetTransactionResponse) GetBlockHeight() uint32
func (*GetTransactionResponse) GetBlockTime ¶
func (x *GetTransactionResponse) GetBlockTime() uint32
func (*GetTransactionResponse) GetTransaction ¶
func (x *GetTransactionResponse) GetTransaction() *TransactionInfo
func (*GetTransactionResponse) ProtoMessage ¶
func (*GetTransactionResponse) ProtoMessage()
func (*GetTransactionResponse) ProtoReflect ¶
func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message
func (*GetTransactionResponse) Reset ¶
func (x *GetTransactionResponse) Reset()
func (*GetTransactionResponse) String ¶
func (x *GetTransactionResponse) String() string
type GetValidatorByNumberRequest ¶
type GetValidatorByNumberRequest struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorByNumberRequest) Descriptor
deprecated
func (*GetValidatorByNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorByNumberRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorByNumberRequest) GetNumber ¶
func (x *GetValidatorByNumberRequest) GetNumber() int32
func (*GetValidatorByNumberRequest) ProtoMessage ¶
func (*GetValidatorByNumberRequest) ProtoMessage()
func (*GetValidatorByNumberRequest) ProtoReflect ¶
func (x *GetValidatorByNumberRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorByNumberRequest) Reset ¶
func (x *GetValidatorByNumberRequest) Reset()
func (*GetValidatorByNumberRequest) String ¶
func (x *GetValidatorByNumberRequest) String() string
type GetValidatorRequest ¶
type GetValidatorRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorRequest) Descriptor
deprecated
func (*GetValidatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorRequest) GetAddress ¶
func (x *GetValidatorRequest) GetAddress() string
func (*GetValidatorRequest) ProtoMessage ¶
func (*GetValidatorRequest) ProtoMessage()
func (*GetValidatorRequest) ProtoReflect ¶
func (x *GetValidatorRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorRequest) Reset ¶
func (x *GetValidatorRequest) Reset()
func (*GetValidatorRequest) String ¶
func (x *GetValidatorRequest) String() string
type GetValidatorResponse ¶
type GetValidatorResponse struct { Validator *ValidatorInfo `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorResponse) Descriptor
deprecated
func (*GetValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorResponse) GetValidator ¶
func (x *GetValidatorResponse) GetValidator() *ValidatorInfo
func (*GetValidatorResponse) ProtoMessage ¶
func (*GetValidatorResponse) ProtoMessage()
func (*GetValidatorResponse) ProtoReflect ¶
func (x *GetValidatorResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorResponse) Reset ¶
func (x *GetValidatorResponse) Reset()
func (*GetValidatorResponse) String ¶
func (x *GetValidatorResponse) String() string
type GetValidatorsRequest ¶
type GetValidatorsRequest struct {
// contains filtered or unexported fields
}
func (*GetValidatorsRequest) Descriptor
deprecated
func (*GetValidatorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorsRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorsRequest) ProtoMessage ¶
func (*GetValidatorsRequest) ProtoMessage()
func (*GetValidatorsRequest) ProtoReflect ¶
func (x *GetValidatorsRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorsRequest) Reset ¶
func (x *GetValidatorsRequest) Reset()
func (*GetValidatorsRequest) String ¶
func (x *GetValidatorsRequest) String() string
type GetValidatorsResponse ¶
type GetValidatorsResponse struct { Validators []*ValidatorInfo `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorsResponse) Descriptor
deprecated
func (*GetValidatorsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorsResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorsResponse) GetValidators ¶
func (x *GetValidatorsResponse) GetValidators() []*ValidatorInfo
func (*GetValidatorsResponse) ProtoMessage ¶
func (*GetValidatorsResponse) ProtoMessage()
func (*GetValidatorsResponse) ProtoReflect ¶
func (x *GetValidatorsResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorsResponse) Reset ¶
func (x *GetValidatorsResponse) Reset()
func (*GetValidatorsResponse) String ¶
func (x *GetValidatorsResponse) String() string
type LoadWalletRequest ¶
type LoadWalletRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*LoadWalletRequest) Descriptor
deprecated
func (*LoadWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadWalletRequest.ProtoReflect.Descriptor instead.
func (*LoadWalletRequest) GetName ¶
func (x *LoadWalletRequest) GetName() string
func (*LoadWalletRequest) ProtoMessage ¶
func (*LoadWalletRequest) ProtoMessage()
func (*LoadWalletRequest) ProtoReflect ¶
func (x *LoadWalletRequest) ProtoReflect() protoreflect.Message
func (*LoadWalletRequest) Reset ¶
func (x *LoadWalletRequest) Reset()
func (*LoadWalletRequest) String ¶
func (x *LoadWalletRequest) String() string
type LoadWalletResponse ¶
type LoadWalletResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*LoadWalletResponse) Descriptor
deprecated
func (*LoadWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoadWalletResponse.ProtoReflect.Descriptor instead.
func (*LoadWalletResponse) GetName ¶
func (x *LoadWalletResponse) GetName() string
func (*LoadWalletResponse) ProtoMessage ¶
func (*LoadWalletResponse) ProtoMessage()
func (*LoadWalletResponse) ProtoReflect ¶
func (x *LoadWalletResponse) ProtoReflect() protoreflect.Message
func (*LoadWalletResponse) Reset ¶
func (x *LoadWalletResponse) Reset()
func (*LoadWalletResponse) String ¶
func (x *LoadWalletResponse) String() string
type LockWalletRequest ¶
type LockWalletRequest struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*LockWalletRequest) Descriptor
deprecated
func (*LockWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use LockWalletRequest.ProtoReflect.Descriptor instead.
func (*LockWalletRequest) GetPassword ¶
func (x *LockWalletRequest) GetPassword() string
func (*LockWalletRequest) GetTimeout ¶
func (x *LockWalletRequest) GetTimeout() int32
func (*LockWalletRequest) ProtoMessage ¶
func (*LockWalletRequest) ProtoMessage()
func (*LockWalletRequest) ProtoReflect ¶
func (x *LockWalletRequest) ProtoReflect() protoreflect.Message
func (*LockWalletRequest) Reset ¶
func (x *LockWalletRequest) Reset()
func (*LockWalletRequest) String ¶
func (x *LockWalletRequest) String() string
type LockWalletResponse ¶
type LockWalletResponse struct {
// contains filtered or unexported fields
}
func (*LockWalletResponse) Descriptor
deprecated
func (*LockWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockWalletResponse.ProtoReflect.Descriptor instead.
func (*LockWalletResponse) ProtoMessage ¶
func (*LockWalletResponse) ProtoMessage()
func (*LockWalletResponse) ProtoReflect ¶
func (x *LockWalletResponse) ProtoReflect() protoreflect.Message
func (*LockWalletResponse) Reset ¶
func (x *LockWalletResponse) Reset()
func (*LockWalletResponse) String ¶
func (x *LockWalletResponse) String() string
type NetworkClient ¶
type NetworkClient interface { GetNetworkInfo(ctx context.Context, in *GetNetworkInfoRequest, opts ...grpc.CallOption) (*GetNetworkInfoResponse, error) GetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*GetPeerInfoResponse, error) }
NetworkClient is the client API for Network 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 NewNetworkClient ¶
func NewNetworkClient(cc grpc.ClientConnInterface) NetworkClient
type NetworkServer ¶
type NetworkServer interface { GetNetworkInfo(context.Context, *GetNetworkInfoRequest) (*GetNetworkInfoResponse, error) GetPeerInfo(context.Context, *GetPeerInfoRequest) (*GetPeerInfoResponse, error) }
NetworkServer is the server API for Network service. All implementations should embed UnimplementedNetworkServer for forward compatibility
type PayloadBond ¶
type PayloadBond struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Stake int64 `protobuf:"varint,3,opt,name=stake,proto3" json:"stake,omitempty"` // contains filtered or unexported fields }
func (*PayloadBond) Descriptor
deprecated
func (*PayloadBond) Descriptor() ([]byte, []int)
Deprecated: Use PayloadBond.ProtoReflect.Descriptor instead.
func (*PayloadBond) GetReceiver ¶
func (x *PayloadBond) GetReceiver() string
func (*PayloadBond) GetSender ¶
func (x *PayloadBond) GetSender() string
func (*PayloadBond) GetStake ¶
func (x *PayloadBond) GetStake() int64
func (*PayloadBond) ProtoMessage ¶
func (*PayloadBond) ProtoMessage()
func (*PayloadBond) ProtoReflect ¶
func (x *PayloadBond) ProtoReflect() protoreflect.Message
func (*PayloadBond) Reset ¶
func (x *PayloadBond) Reset()
func (*PayloadBond) String ¶
func (x *PayloadBond) String() string
type PayloadSend ¶
type PayloadSend struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*PayloadSend) Descriptor
deprecated
func (*PayloadSend) Descriptor() ([]byte, []int)
Deprecated: Use PayloadSend.ProtoReflect.Descriptor instead.
func (*PayloadSend) GetAmount ¶
func (x *PayloadSend) GetAmount() int64
func (*PayloadSend) GetReceiver ¶
func (x *PayloadSend) GetReceiver() string
func (*PayloadSend) GetSender ¶
func (x *PayloadSend) GetSender() string
func (*PayloadSend) ProtoMessage ¶
func (*PayloadSend) ProtoMessage()
func (*PayloadSend) ProtoReflect ¶
func (x *PayloadSend) ProtoReflect() protoreflect.Message
func (*PayloadSend) Reset ¶
func (x *PayloadSend) Reset()
func (*PayloadSend) String ¶
func (x *PayloadSend) String() string
type PayloadSortition ¶
type PayloadSortition struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*PayloadSortition) Descriptor
deprecated
func (*PayloadSortition) Descriptor() ([]byte, []int)
Deprecated: Use PayloadSortition.ProtoReflect.Descriptor instead.
func (*PayloadSortition) GetAddress ¶
func (x *PayloadSortition) GetAddress() string
func (*PayloadSortition) GetProof ¶
func (x *PayloadSortition) GetProof() []byte
func (*PayloadSortition) ProtoMessage ¶
func (*PayloadSortition) ProtoMessage()
func (*PayloadSortition) ProtoReflect ¶
func (x *PayloadSortition) ProtoReflect() protoreflect.Message
func (*PayloadSortition) Reset ¶
func (x *PayloadSortition) Reset()
func (*PayloadSortition) String ¶
func (x *PayloadSortition) String() string
type PayloadType ¶
type PayloadType int32
const ( PayloadType_UNKNOWN PayloadType = 0 PayloadType_SEND_PAYLOAD PayloadType = 1 PayloadType_BOND_PAYLOAD PayloadType = 2 PayloadType_SORTITION_PAYLOAD PayloadType = 3 PayloadType_UNBOND_PAYLOAD PayloadType = 4 PayloadType_WITHDRAW_PAYLOAD PayloadType = 5 )
func (PayloadType) Descriptor ¶
func (PayloadType) Descriptor() protoreflect.EnumDescriptor
func (PayloadType) Enum ¶
func (x PayloadType) Enum() *PayloadType
func (PayloadType) EnumDescriptor
deprecated
func (PayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PayloadType.Descriptor instead.
func (PayloadType) Number ¶
func (x PayloadType) Number() protoreflect.EnumNumber
func (PayloadType) String ¶
func (x PayloadType) String() string
func (PayloadType) Type ¶
func (PayloadType) Type() protoreflect.EnumType
type PayloadUnbond ¶
type PayloadUnbond struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*PayloadUnbond) Descriptor
deprecated
func (*PayloadUnbond) Descriptor() ([]byte, []int)
Deprecated: Use PayloadUnbond.ProtoReflect.Descriptor instead.
func (*PayloadUnbond) GetValidator ¶
func (x *PayloadUnbond) GetValidator() string
func (*PayloadUnbond) ProtoMessage ¶
func (*PayloadUnbond) ProtoMessage()
func (*PayloadUnbond) ProtoReflect ¶
func (x *PayloadUnbond) ProtoReflect() protoreflect.Message
func (*PayloadUnbond) Reset ¶
func (x *PayloadUnbond) Reset()
func (*PayloadUnbond) String ¶
func (x *PayloadUnbond) String() string
type PayloadWithdraw ¶
type PayloadWithdraw struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*PayloadWithdraw) Descriptor
deprecated
func (*PayloadWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use PayloadWithdraw.ProtoReflect.Descriptor instead.
func (*PayloadWithdraw) GetAmount ¶
func (x *PayloadWithdraw) GetAmount() int64
func (*PayloadWithdraw) GetFrom ¶
func (x *PayloadWithdraw) GetFrom() string
func (*PayloadWithdraw) GetTo ¶
func (x *PayloadWithdraw) GetTo() string
func (*PayloadWithdraw) ProtoMessage ¶
func (*PayloadWithdraw) ProtoMessage()
func (*PayloadWithdraw) ProtoReflect ¶
func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message
func (*PayloadWithdraw) Reset ¶
func (x *PayloadWithdraw) Reset()
func (*PayloadWithdraw) String ¶
func (x *PayloadWithdraw) String() string
type PeerInfo ¶
type PeerInfo struct { Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` PeerId []byte `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` Flags int32 `protobuf:"varint,5,opt,name=flags,proto3" json:"flags,omitempty"` Height uint32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"` ReceivedMessages int32 `protobuf:"varint,7,opt,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"` InvalidMessages int32 `protobuf:"varint,8,opt,name=invalid_messages,json=invalidMessages,proto3" json:"invalid_messages,omitempty"` ReceivedBytes int32 `protobuf:"varint,9,opt,name=received_bytes,json=receivedBytes,proto3" json:"received_bytes,omitempty"` Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` LastSeen int64 `protobuf:"varint,11,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // contains filtered or unexported fields }
func (*PeerInfo) Descriptor
deprecated
func (*PeerInfo) GetInvalidMessages ¶
func (*PeerInfo) GetLastSeen ¶
func (*PeerInfo) GetMoniker ¶
func (*PeerInfo) GetReceivedBytes ¶
func (*PeerInfo) GetReceivedMessages ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) ProtoReflect ¶
func (x *PeerInfo) ProtoReflect() protoreflect.Message
type SendRawTransactionRequest ¶
type SendRawTransactionRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SendRawTransactionRequest) Descriptor
deprecated
func (*SendRawTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRawTransactionRequest.ProtoReflect.Descriptor instead.
func (*SendRawTransactionRequest) GetData ¶
func (x *SendRawTransactionRequest) GetData() []byte
func (*SendRawTransactionRequest) ProtoMessage ¶
func (*SendRawTransactionRequest) ProtoMessage()
func (*SendRawTransactionRequest) ProtoReflect ¶
func (x *SendRawTransactionRequest) ProtoReflect() protoreflect.Message
func (*SendRawTransactionRequest) Reset ¶
func (x *SendRawTransactionRequest) Reset()
func (*SendRawTransactionRequest) String ¶
func (x *SendRawTransactionRequest) String() string
type SendRawTransactionResponse ¶
type SendRawTransactionResponse struct { Id []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SendRawTransactionResponse) Descriptor
deprecated
func (*SendRawTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendRawTransactionResponse.ProtoReflect.Descriptor instead.
func (*SendRawTransactionResponse) GetId ¶
func (x *SendRawTransactionResponse) GetId() []byte
func (*SendRawTransactionResponse) ProtoMessage ¶
func (*SendRawTransactionResponse) ProtoMessage()
func (*SendRawTransactionResponse) ProtoReflect ¶
func (x *SendRawTransactionResponse) ProtoReflect() protoreflect.Message
func (*SendRawTransactionResponse) Reset ¶
func (x *SendRawTransactionResponse) Reset()
func (*SendRawTransactionResponse) String ¶
func (x *SendRawTransactionResponse) String() string
type TransactionClient ¶
type TransactionClient interface { GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendRawTransactionResponse, error) }
TransactionClient is the client API for Transaction 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 NewTransactionClient ¶
func NewTransactionClient(cc grpc.ClientConnInterface) TransactionClient
type TransactionInfo ¶
type TransactionInfo struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` Stamp []byte `protobuf:"bytes,4,opt,name=stamp,proto3" json:"stamp,omitempty"` Sequence int32 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` Value int64 `protobuf:"varint,6,opt,name=value,proto3" json:"value,omitempty"` Fee int64 `protobuf:"varint,7,opt,name=fee,proto3" json:"fee,omitempty"` PayloadType PayloadType `protobuf:"varint,8,opt,name=PayloadType,proto3,enum=pactus.PayloadType" json:"PayloadType,omitempty"` // Types that are assignable to Payload: // // *TransactionInfo_Send // *TransactionInfo_Bond // *TransactionInfo_Sortition // *TransactionInfo_Unbond // *TransactionInfo_Withdraw Payload isTransactionInfo_Payload `protobuf_oneof:"Payload"` Memo string `protobuf:"bytes,9,opt,name=memo,proto3" json:"memo,omitempty"` PublicKey string `protobuf:"bytes,10,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*TransactionInfo) Descriptor
deprecated
func (*TransactionInfo) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) GetBond ¶
func (x *TransactionInfo) GetBond() *PayloadBond
func (*TransactionInfo) GetData ¶
func (x *TransactionInfo) GetData() []byte
func (*TransactionInfo) GetFee ¶
func (x *TransactionInfo) GetFee() int64
func (*TransactionInfo) GetId ¶
func (x *TransactionInfo) GetId() []byte
func (*TransactionInfo) GetMemo ¶
func (x *TransactionInfo) GetMemo() string
func (*TransactionInfo) GetPayload ¶
func (m *TransactionInfo) GetPayload() isTransactionInfo_Payload
func (*TransactionInfo) GetPayloadType ¶
func (x *TransactionInfo) GetPayloadType() PayloadType
func (*TransactionInfo) GetPublicKey ¶
func (x *TransactionInfo) GetPublicKey() string
func (*TransactionInfo) GetSend ¶
func (x *TransactionInfo) GetSend() *PayloadSend
func (*TransactionInfo) GetSequence ¶
func (x *TransactionInfo) GetSequence() int32
func (*TransactionInfo) GetSignature ¶
func (x *TransactionInfo) GetSignature() []byte
func (*TransactionInfo) GetSortition ¶
func (x *TransactionInfo) GetSortition() *PayloadSortition
func (*TransactionInfo) GetStamp ¶
func (x *TransactionInfo) GetStamp() []byte
func (*TransactionInfo) GetUnbond ¶
func (x *TransactionInfo) GetUnbond() *PayloadUnbond
func (*TransactionInfo) GetValue ¶
func (x *TransactionInfo) GetValue() int64
func (*TransactionInfo) GetVersion ¶
func (x *TransactionInfo) GetVersion() int32
func (*TransactionInfo) GetWithdraw ¶
func (x *TransactionInfo) GetWithdraw() *PayloadWithdraw
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) ProtoReflect ¶
func (x *TransactionInfo) ProtoReflect() protoreflect.Message
func (*TransactionInfo) Reset ¶
func (x *TransactionInfo) Reset()
func (*TransactionInfo) String ¶
func (x *TransactionInfo) String() string
type TransactionInfo_Bond ¶
type TransactionInfo_Bond struct {
Bond *PayloadBond `protobuf:"bytes,31,opt,name=bond,proto3,oneof"`
}
type TransactionInfo_Send ¶
type TransactionInfo_Send struct {
Send *PayloadSend `protobuf:"bytes,30,opt,name=send,proto3,oneof"`
}
type TransactionInfo_Sortition ¶
type TransactionInfo_Sortition struct {
Sortition *PayloadSortition `protobuf:"bytes,32,opt,name=sortition,proto3,oneof"`
}
type TransactionInfo_Unbond ¶
type TransactionInfo_Unbond struct {
Unbond *PayloadUnbond `protobuf:"bytes,33,opt,name=unbond,proto3,oneof"`
}
type TransactionInfo_Withdraw ¶
type TransactionInfo_Withdraw struct {
Withdraw *PayloadWithdraw `protobuf:"bytes,34,opt,name=withdraw,proto3,oneof"`
}
type TransactionServer ¶
type TransactionServer interface { GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error) }
TransactionServer is the server API for Transaction service. All implementations should embed UnimplementedTransactionServer for forward compatibility
type TransactionVerbosity ¶
type TransactionVerbosity int32
const ( TransactionVerbosity_TRANSACTION_DATA TransactionVerbosity = 0 TransactionVerbosity_TRANSACTION_INFO TransactionVerbosity = 1 )
func (TransactionVerbosity) Descriptor ¶
func (TransactionVerbosity) Descriptor() protoreflect.EnumDescriptor
func (TransactionVerbosity) Enum ¶
func (x TransactionVerbosity) Enum() *TransactionVerbosity
func (TransactionVerbosity) EnumDescriptor
deprecated
func (TransactionVerbosity) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionVerbosity.Descriptor instead.
func (TransactionVerbosity) Number ¶
func (x TransactionVerbosity) Number() protoreflect.EnumNumber
func (TransactionVerbosity) String ¶
func (x TransactionVerbosity) String() string
func (TransactionVerbosity) Type ¶
func (TransactionVerbosity) Type() protoreflect.EnumType
type UnimplementedBlockchainServer ¶
type UnimplementedBlockchainServer struct { }
UnimplementedBlockchainServer should be embedded to have forward compatible implementations.
func (UnimplementedBlockchainServer) GetAccount ¶
func (UnimplementedBlockchainServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedBlockchainServer) GetBlock ¶
func (UnimplementedBlockchainServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
func (UnimplementedBlockchainServer) GetBlockHash ¶
func (UnimplementedBlockchainServer) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error)
func (UnimplementedBlockchainServer) GetBlockHeight ¶
func (UnimplementedBlockchainServer) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error)
func (UnimplementedBlockchainServer) GetBlockchainInfo ¶
func (UnimplementedBlockchainServer) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error)
func (UnimplementedBlockchainServer) GetConsensusInfo ¶
func (UnimplementedBlockchainServer) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error)
func (UnimplementedBlockchainServer) GetValidator ¶
func (UnimplementedBlockchainServer) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error)
func (UnimplementedBlockchainServer) GetValidatorByNumber ¶
func (UnimplementedBlockchainServer) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error)
func (UnimplementedBlockchainServer) GetValidators ¶
func (UnimplementedBlockchainServer) GetValidators(context.Context, *GetValidatorsRequest) (*GetValidatorsResponse, error)
type UnimplementedNetworkServer ¶
type UnimplementedNetworkServer struct { }
UnimplementedNetworkServer should be embedded to have forward compatible implementations.
func (UnimplementedNetworkServer) GetNetworkInfo ¶
func (UnimplementedNetworkServer) GetNetworkInfo(context.Context, *GetNetworkInfoRequest) (*GetNetworkInfoResponse, error)
func (UnimplementedNetworkServer) GetPeerInfo ¶
func (UnimplementedNetworkServer) GetPeerInfo(context.Context, *GetPeerInfoRequest) (*GetPeerInfoResponse, error)
type UnimplementedTransactionServer ¶
type UnimplementedTransactionServer struct { }
UnimplementedTransactionServer should be embedded to have forward compatible implementations.
func (UnimplementedTransactionServer) GetTransaction ¶
func (UnimplementedTransactionServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error)
func (UnimplementedTransactionServer) SendRawTransaction ¶
func (UnimplementedTransactionServer) SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendRawTransactionResponse, error)
type UnimplementedWalletServer ¶
type UnimplementedWalletServer struct { }
UnimplementedWalletServer should be embedded to have forward compatible implementations.
func (UnimplementedWalletServer) CreateWallet ¶
func (UnimplementedWalletServer) CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
func (UnimplementedWalletServer) LoadWallet ¶
func (UnimplementedWalletServer) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error)
func (UnimplementedWalletServer) LockWallet ¶
func (UnimplementedWalletServer) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error)
func (UnimplementedWalletServer) UnloadWallet ¶
func (UnimplementedWalletServer) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error)
func (UnimplementedWalletServer) UnlockWallet ¶
func (UnimplementedWalletServer) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
type UnloadWalletRequest ¶
type UnloadWalletRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UnloadWalletRequest) Descriptor
deprecated
func (*UnloadWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnloadWalletRequest.ProtoReflect.Descriptor instead.
func (*UnloadWalletRequest) GetName ¶
func (x *UnloadWalletRequest) GetName() string
func (*UnloadWalletRequest) ProtoMessage ¶
func (*UnloadWalletRequest) ProtoMessage()
func (*UnloadWalletRequest) ProtoReflect ¶
func (x *UnloadWalletRequest) ProtoReflect() protoreflect.Message
func (*UnloadWalletRequest) Reset ¶
func (x *UnloadWalletRequest) Reset()
func (*UnloadWalletRequest) String ¶
func (x *UnloadWalletRequest) String() string
type UnloadWalletResponse ¶
type UnloadWalletResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UnloadWalletResponse) Descriptor
deprecated
func (*UnloadWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnloadWalletResponse.ProtoReflect.Descriptor instead.
func (*UnloadWalletResponse) GetName ¶
func (x *UnloadWalletResponse) GetName() string
func (*UnloadWalletResponse) ProtoMessage ¶
func (*UnloadWalletResponse) ProtoMessage()
func (*UnloadWalletResponse) ProtoReflect ¶
func (x *UnloadWalletResponse) ProtoReflect() protoreflect.Message
func (*UnloadWalletResponse) Reset ¶
func (x *UnloadWalletResponse) Reset()
func (*UnloadWalletResponse) String ¶
func (x *UnloadWalletResponse) String() string
type UnlockWalletRequest ¶
type UnlockWalletRequest struct { Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*UnlockWalletRequest) Descriptor
deprecated
func (*UnlockWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockWalletRequest.ProtoReflect.Descriptor instead.
func (*UnlockWalletRequest) GetPassword ¶
func (x *UnlockWalletRequest) GetPassword() string
func (*UnlockWalletRequest) GetTimeout ¶
func (x *UnlockWalletRequest) GetTimeout() int32
func (*UnlockWalletRequest) ProtoMessage ¶
func (*UnlockWalletRequest) ProtoMessage()
func (*UnlockWalletRequest) ProtoReflect ¶
func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message
func (*UnlockWalletRequest) Reset ¶
func (x *UnlockWalletRequest) Reset()
func (*UnlockWalletRequest) String ¶
func (x *UnlockWalletRequest) String() string
type UnlockWalletResponse ¶
type UnlockWalletResponse struct {
// contains filtered or unexported fields
}
func (*UnlockWalletResponse) Descriptor
deprecated
func (*UnlockWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnlockWalletResponse.ProtoReflect.Descriptor instead.
func (*UnlockWalletResponse) ProtoMessage ¶
func (*UnlockWalletResponse) ProtoMessage()
func (*UnlockWalletResponse) ProtoReflect ¶
func (x *UnlockWalletResponse) ProtoReflect() protoreflect.Message
func (*UnlockWalletResponse) Reset ¶
func (x *UnlockWalletResponse) Reset()
func (*UnlockWalletResponse) String ¶
func (x *UnlockWalletResponse) String() string
type UnsafeBlockchainServer ¶
type UnsafeBlockchainServer interface {
// contains filtered or unexported methods
}
UnsafeBlockchainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlockchainServer will result in compilation errors.
type UnsafeNetworkServer ¶
type UnsafeNetworkServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkServer will result in compilation errors.
type UnsafeTransactionServer ¶
type UnsafeTransactionServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServer will result in compilation errors.
type UnsafeWalletServer ¶
type UnsafeWalletServer interface {
// contains filtered or unexported methods
}
UnsafeWalletServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WalletServer will result in compilation errors.
type ValidatorInfo ¶
type ValidatorInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Number int32 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` Sequence int32 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` Stake int64 `protobuf:"varint,6,opt,name=stake,proto3" json:"stake,omitempty"` LastBondingHeight uint32 `protobuf:"varint,7,opt,name=last_bonding_height,json=lastBondingHeight,proto3" json:"last_bonding_height,omitempty"` LastJoinedHeight uint32 `protobuf:"varint,8,opt,name=last_joined_height,json=lastJoinedHeight,proto3" json:"last_joined_height,omitempty"` UnbondingHeight uint32 `protobuf:"varint,9,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty"` Address string `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*ValidatorInfo) Descriptor
deprecated
func (*ValidatorInfo) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorInfo.ProtoReflect.Descriptor instead.
func (*ValidatorInfo) GetAddress ¶
func (x *ValidatorInfo) GetAddress() string
func (*ValidatorInfo) GetData ¶
func (x *ValidatorInfo) GetData() []byte
func (*ValidatorInfo) GetHash ¶
func (x *ValidatorInfo) GetHash() []byte
func (*ValidatorInfo) GetLastBondingHeight ¶
func (x *ValidatorInfo) GetLastBondingHeight() uint32
func (*ValidatorInfo) GetLastJoinedHeight ¶
func (x *ValidatorInfo) GetLastJoinedHeight() uint32
func (*ValidatorInfo) GetNumber ¶
func (x *ValidatorInfo) GetNumber() int32
func (*ValidatorInfo) GetPublicKey ¶
func (x *ValidatorInfo) GetPublicKey() string
func (*ValidatorInfo) GetSequence ¶
func (x *ValidatorInfo) GetSequence() int32
func (*ValidatorInfo) GetStake ¶
func (x *ValidatorInfo) GetStake() int64
func (*ValidatorInfo) GetUnbondingHeight ¶
func (x *ValidatorInfo) GetUnbondingHeight() uint32
func (*ValidatorInfo) ProtoMessage ¶
func (*ValidatorInfo) ProtoMessage()
func (*ValidatorInfo) ProtoReflect ¶
func (x *ValidatorInfo) ProtoReflect() protoreflect.Message
func (*ValidatorInfo) Reset ¶
func (x *ValidatorInfo) Reset()
func (*ValidatorInfo) String ¶
func (x *ValidatorInfo) String() string
type VoteInfo ¶
type VoteInfo struct { Type VoteType `protobuf:"varint,1,opt,name=type,proto3,enum=pactus.VoteType" json:"type,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` // contains filtered or unexported fields }
func (*VoteInfo) Descriptor
deprecated
func (*VoteInfo) GetBlockHash ¶
func (*VoteInfo) ProtoMessage ¶
func (*VoteInfo) ProtoMessage()
func (*VoteInfo) ProtoReflect ¶
func (x *VoteInfo) ProtoReflect() protoreflect.Message
type VoteType ¶
type VoteType int32
func (VoteType) Descriptor ¶
func (VoteType) Descriptor() protoreflect.EnumDescriptor
func (VoteType) EnumDescriptor
deprecated
func (VoteType) Number ¶
func (x VoteType) Number() protoreflect.EnumNumber
func (VoteType) Type ¶
func (VoteType) Type() protoreflect.EnumType
type WalletClient ¶
type WalletClient interface { CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error) LoadWallet(ctx context.Context, in *LoadWalletRequest, opts ...grpc.CallOption) (*LoadWalletResponse, error) UnloadWallet(ctx context.Context, in *UnloadWalletRequest, opts ...grpc.CallOption) (*UnloadWalletResponse, error) LockWallet(ctx context.Context, in *LockWalletRequest, opts ...grpc.CallOption) (*LockWalletResponse, error) UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error) }
WalletClient is the client API for Wallet 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 NewWalletClient ¶
func NewWalletClient(cc grpc.ClientConnInterface) WalletClient
type WalletServer ¶
type WalletServer interface { CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error) }
WalletServer is the server API for Wallet service. All implementations should embed UnimplementedWalletServer for forward compatibility