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() 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) 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 ¶ added in v0.14.0
func (c *Client) CreateBatch() common.SystemError
func (*Client) CreateRollup ¶ added in v0.14.0
func (*Client) DebugEventLogRelevancy ¶ added in v0.13.0
func (c *Client) DebugEventLogRelevancy(hash gethcommon.Hash) (json.RawMessage, common.SystemError)
func (*Client) DebugTraceTransaction ¶ added in v0.12.0
func (c *Client) DebugTraceTransaction(hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)
func (*Client) EstimateGas ¶ added in v0.4.0
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 ¶ added in v0.14.0
func (c *Client) GetBatch(hash common.L2BatchHash) (*common.ExtBatch, common.SystemError)
func (*Client) GetBatchBySeqNo ¶ added in v0.14.0
func (*Client) GetCode ¶
func (c *Client) GetCode(address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)
func (*Client) GetCustomQuery ¶ added in v0.14.0
func (c *Client) GetCustomQuery(encryptedParams common.EncryptedParamsGetStorageAt) (*responses.Receipts, common.SystemError)
func (*Client) GetLogs ¶ added in v0.5.0
func (c *Client) GetLogs(encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)
func (*Client) GetPublicTransactionData ¶ added in v0.14.0
func (c *Client) GetPublicTransactionData(pagination *common.QueryPagination) (*common.TransactionListingResponse, common.SystemError)
func (*Client) GetTotalContractCount ¶ added in v0.14.0
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 ¶ added in v0.4.0
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 ¶ added in v0.7.0
func (c *Client) HealthCheck() (bool, common.SystemError)
func (*Client) InitEnclave ¶
func (c *Client) InitEnclave(secret common.EncryptedSharedEnclaveSecret) common.SystemError
func (*Client) ObsCall ¶ added in v0.12.0
func (c *Client) ObsCall(encryptedParams common.EncryptedParamsCall) (*responses.Call, common.SystemError)
func (*Client) Status ¶ added in v0.4.0
func (c *Client) Status() (common.Status, common.SystemError)
func (*Client) Stop ¶
func (c *Client) Stop() common.SystemError
func (*Client) StopClient ¶
func (c *Client) StopClient() common.SystemError
func (*Client) StreamL2Updates ¶ added in v0.14.0
func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())
func (*Client) SubmitBatch ¶ added in v0.8.0
func (c *Client) SubmitBatch(batch *common.ExtBatch) common.SystemError
func (*Client) SubmitL1Block ¶ added in v0.7.0
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 ¶ added in v0.3.0
func (c *Client) Subscribe(id gethrpc.ID, encryptedParams common.EncryptedParamsLogSubscription) common.SystemError
func (*Client) Unsubscribe ¶ added in v0.3.0
func (c *Client) Unsubscribe(id gethrpc.ID) common.SystemError
Click to show internal directories.
Click to hide internal directories.