Documentation ¶
Index ¶
- func NewClient(config *config.HostConfig, logger gethlog.Logger) common.Enclave
- type Client
- func (c *Client) Attestation() (*common.AttestationReport, common.SystemError)
- func (c *Client) CreateBatch(skipIfEmpty bool) common.SystemError
- func (c *Client) CreateRollup(fromSeqNo uint64) (*common.ExtRollup, common.SystemError)
- func (c *Client) DebugEventLogRelevancy(hash gethcommon.Hash) (json.RawMessage, common.SystemError)
- func (c *Client) DebugTraceTransaction(hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)
- func (c *Client) EnclaveID() (common.EnclaveID, common.SystemError)
- func (c *Client) EnclavePublicConfig() (*common.EnclavePublicConfig, common.SystemError)
- func (c *Client) EstimateGas(encryptedParams common.EncryptedParamsEstimateGas) (*responses.Gas, common.SystemError)
- func (c *Client) GenerateSecret() (common.EncryptedSharedEnclaveSecret, common.SystemError)
- func (c *Client) GetBalance(encryptedParams common.EncryptedParamsGetBalance) (*responses.Balance, common.SystemError)
- func (c *Client) GetBatch(hash common.L2BatchHash) (*common.ExtBatch, common.SystemError)
- func (c *Client) GetBatchBySeqNo(seqNo uint64) (*common.ExtBatch, common.SystemError)
- func (c *Client) GetCode(address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)
- func (c *Client) GetCustomQuery(encryptedParams common.EncryptedParamsGetStorageAt) (*responses.Receipts, common.SystemError)
- func (c *Client) GetLogs(encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)
- func (c *Client) GetPublicTransactionData(pagination *common.QueryPagination) (*common.TransactionListingResponse, common.SystemError)
- func (c *Client) GetTotalContractCount() (*big.Int, common.SystemError)
- func (c *Client) GetTransaction(encryptedParams common.EncryptedParamsGetTxByHash) (*responses.TxByHash, common.SystemError)
- func (c *Client) GetTransactionCount(encryptedParams common.EncryptedParamsGetTxCount) (*responses.TxCount, common.SystemError)
- func (c *Client) GetTransactionReceipt(encryptedParams common.EncryptedParamsGetTxReceipt) (*responses.TxReceipt, common.SystemError)
- func (c *Client) HealthCheck() (bool, common.SystemError)
- func (c *Client) InitEnclave(secret common.EncryptedSharedEnclaveSecret) common.SystemError
- func (c *Client) ObsCall(encryptedParams common.EncryptedParamsCall) (*responses.Call, common.SystemError)
- func (c *Client) Status() (common.Status, common.SystemError)
- func (c *Client) Stop() common.SystemError
- func (c *Client) StopClient() common.SystemError
- func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())
- func (c *Client) SubmitBatch(batch *common.ExtBatch) common.SystemError
- func (c *Client) SubmitL1Block(block types.Block, receipts types.Receipts, isLatest bool) (*common.BlockSubmissionResponse, common.SystemError)
- func (c *Client) SubmitTx(tx common.EncryptedTx) (*responses.RawTx, common.SystemError)
- func (c *Client) Subscribe(id gethrpc.ID, encryptedParams common.EncryptedParamsLogSubscription) common.SystemError
- func (c *Client) Unsubscribe(id gethrpc.ID) common.SystemError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements enclave.Enclave and should be used by the host when communicating with the enclave via RPC.
func (*Client) Attestation ¶
func (c *Client) Attestation() (*common.AttestationReport, common.SystemError)
func (*Client) CreateBatch ¶
func (c *Client) CreateBatch(skipIfEmpty bool) common.SystemError
func (*Client) CreateRollup ¶
func (*Client) DebugEventLogRelevancy ¶
func (c *Client) DebugEventLogRelevancy(hash gethcommon.Hash) (json.RawMessage, common.SystemError)
func (*Client) DebugTraceTransaction ¶
func (c *Client) DebugTraceTransaction(hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)
func (*Client) EnclaveID ¶ added in v0.21.0
func (c *Client) EnclaveID() (common.EnclaveID, common.SystemError)
func (*Client) EnclavePublicConfig ¶
func (c *Client) EnclavePublicConfig() (*common.EnclavePublicConfig, common.SystemError)
func (*Client) EstimateGas ¶
func (c *Client) EstimateGas(encryptedParams common.EncryptedParamsEstimateGas) (*responses.Gas, common.SystemError)
func (*Client) GenerateSecret ¶
func (c *Client) GenerateSecret() (common.EncryptedSharedEnclaveSecret, common.SystemError)
func (*Client) GetBalance ¶
func (c *Client) GetBalance(encryptedParams common.EncryptedParamsGetBalance) (*responses.Balance, common.SystemError)
func (*Client) GetBatch ¶
func (c *Client) GetBatch(hash common.L2BatchHash) (*common.ExtBatch, common.SystemError)
func (*Client) GetBatchBySeqNo ¶
func (*Client) GetCode ¶
func (c *Client) GetCode(address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)
func (*Client) GetCustomQuery ¶
func (c *Client) GetCustomQuery(encryptedParams common.EncryptedParamsGetStorageAt) (*responses.Receipts, common.SystemError)
func (*Client) GetLogs ¶
func (c *Client) GetLogs(encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)
func (*Client) GetPublicTransactionData ¶
func (c *Client) GetPublicTransactionData(pagination *common.QueryPagination) (*common.TransactionListingResponse, common.SystemError)
func (*Client) GetTotalContractCount ¶
func (c *Client) GetTotalContractCount() (*big.Int, common.SystemError)
func (*Client) GetTransaction ¶
func (c *Client) GetTransaction(encryptedParams common.EncryptedParamsGetTxByHash) (*responses.TxByHash, common.SystemError)
func (*Client) GetTransactionCount ¶
func (c *Client) GetTransactionCount(encryptedParams common.EncryptedParamsGetTxCount) (*responses.TxCount, common.SystemError)
func (*Client) GetTransactionReceipt ¶
func (c *Client) GetTransactionReceipt(encryptedParams common.EncryptedParamsGetTxReceipt) (*responses.TxReceipt, common.SystemError)
func (*Client) HealthCheck ¶
func (c *Client) HealthCheck() (bool, common.SystemError)
func (*Client) InitEnclave ¶
func (c *Client) InitEnclave(secret common.EncryptedSharedEnclaveSecret) common.SystemError
func (*Client) ObsCall ¶
func (c *Client) ObsCall(encryptedParams common.EncryptedParamsCall) (*responses.Call, common.SystemError)
func (*Client) Stop ¶
func (c *Client) Stop() common.SystemError
func (*Client) StopClient ¶
func (c *Client) StopClient() common.SystemError
func (*Client) StreamL2Updates ¶
func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())
func (*Client) SubmitBatch ¶
func (c *Client) SubmitBatch(batch *common.ExtBatch) common.SystemError
func (*Client) SubmitL1Block ¶
func (c *Client) SubmitL1Block(block types.Block, receipts types.Receipts, isLatest bool) (*common.BlockSubmissionResponse, common.SystemError)
func (*Client) SubmitTx ¶
func (c *Client) SubmitTx(tx common.EncryptedTx) (*responses.RawTx, common.SystemError)
func (*Client) Subscribe ¶
func (c *Client) Subscribe(id gethrpc.ID, encryptedParams common.EncryptedParamsLogSubscription) common.SystemError
func (*Client) Unsubscribe ¶
func (c *Client) Unsubscribe(id gethrpc.ID) common.SystemError
Click to show internal directories.
Click to hide internal directories.