Documentation ¶
Index ¶
- func NewClient(enclaveRPCAddress string, enclaveRPCTimeout time.Duration, ...) common.Enclave
- type Client
- func (c *Client) Attestation(ctx context.Context) (*common.AttestationReport, common.SystemError)
- func (c *Client) CreateBatch(ctx context.Context, skipIfEmpty bool) common.SystemError
- func (c *Client) CreateRollup(ctx context.Context, fromSeqNo uint64) (*common.ExtRollup, common.SystemError)
- func (c *Client) DebugEventLogRelevancy(ctx context.Context, hash gethcommon.Hash) (json.RawMessage, common.SystemError)
- func (c *Client) DebugTraceTransaction(ctx context.Context, hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)
- func (c *Client) EnclaveID(ctx context.Context) (common.EnclaveID, common.SystemError)
- func (c *Client) EnclavePublicConfig(ctx context.Context) (*common.EnclavePublicConfig, common.SystemError)
- func (c *Client) EstimateGas(ctx context.Context, encryptedParams common.EncryptedParamsEstimateGas) (*responses.Gas, common.SystemError)
- func (c *Client) ExportCrossChainData(ctx context.Context, from uint64, to uint64) (*common.ExtCrossChainBundle, common.SystemError)
- func (c *Client) GenerateSecret(ctx context.Context) (common.EncryptedSharedEnclaveSecret, common.SystemError)
- func (c *Client) GetBalance(ctx context.Context, encryptedParams common.EncryptedParamsGetBalance) (*responses.Balance, common.SystemError)
- func (c *Client) GetBatch(ctx context.Context, hash common.L2BatchHash) (*common.ExtBatch, common.SystemError)
- func (c *Client) GetBatchBySeqNo(ctx context.Context, seqNo uint64) (*common.ExtBatch, common.SystemError)
- func (c *Client) GetCode(ctx context.Context, address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)
- func (c *Client) GetCustomQuery(ctx context.Context, encryptedParams common.EncryptedParamsGetStorageAt) (*responses.PrivateQueryResponse, common.SystemError)
- func (c *Client) GetLogs(ctx context.Context, encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)
- func (c *Client) GetRollupData(ctx context.Context, hash common.L2RollupHash) (*common.PublicRollupMetadata, common.SystemError)
- func (c *Client) GetTotalContractCount(ctx context.Context) (*big.Int, common.SystemError)
- func (c *Client) GetTransaction(ctx context.Context, encryptedParams common.EncryptedParamsGetTxByHash) (*responses.TxByHash, common.SystemError)
- func (c *Client) GetTransactionCount(ctx context.Context, encryptedParams common.EncryptedParamsGetTxCount) (*responses.TxCount, common.SystemError)
- func (c *Client) GetTransactionReceipt(ctx context.Context, encryptedParams common.EncryptedParamsGetTxReceipt) (*responses.TxReceipt, common.SystemError)
- func (c *Client) HealthCheck(ctx context.Context) (bool, common.SystemError)
- func (c *Client) InitEnclave(ctx context.Context, secret common.EncryptedSharedEnclaveSecret) common.SystemError
- func (c *Client) ObsCall(ctx context.Context, encryptedParams common.EncryptedParamsCall) (*responses.Call, common.SystemError)
- func (c *Client) Status(ctx context.Context) (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(ctx context.Context, batch *common.ExtBatch) common.SystemError
- func (c *Client) SubmitL1Block(ctx context.Context, block *common.L1Block, receipts common.L1Receipts, ...) (*common.BlockSubmissionResponse, common.SystemError)
- func (c *Client) SubmitTx(ctx context.Context, tx common.EncryptedTx) (*responses.RawTx, common.SystemError)
- func (c *Client) Subscribe(ctx context.Context, id gethrpc.ID, ...) 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(ctx context.Context) (*common.AttestationReport, common.SystemError)
func (*Client) CreateBatch ¶
func (*Client) CreateRollup ¶
func (*Client) DebugEventLogRelevancy ¶
func (c *Client) DebugEventLogRelevancy(ctx context.Context, hash gethcommon.Hash) (json.RawMessage, common.SystemError)
func (*Client) DebugTraceTransaction ¶
func (c *Client) DebugTraceTransaction(ctx context.Context, hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, common.SystemError)
func (*Client) EnclavePublicConfig ¶
func (c *Client) EnclavePublicConfig(ctx context.Context) (*common.EnclavePublicConfig, common.SystemError)
func (*Client) EstimateGas ¶
func (c *Client) EstimateGas(ctx context.Context, encryptedParams common.EncryptedParamsEstimateGas) (*responses.Gas, common.SystemError)
func (*Client) ExportCrossChainData ¶ added in v0.24.1
func (c *Client) ExportCrossChainData(ctx context.Context, from uint64, to uint64) (*common.ExtCrossChainBundle, common.SystemError)
func (*Client) GenerateSecret ¶
func (c *Client) GenerateSecret(ctx context.Context) (common.EncryptedSharedEnclaveSecret, common.SystemError)
func (*Client) GetBalance ¶
func (c *Client) GetBalance(ctx context.Context, encryptedParams common.EncryptedParamsGetBalance) (*responses.Balance, common.SystemError)
func (*Client) GetBatch ¶
func (c *Client) GetBatch(ctx context.Context, hash common.L2BatchHash) (*common.ExtBatch, common.SystemError)
func (*Client) GetBatchBySeqNo ¶
func (*Client) GetCode ¶
func (c *Client) GetCode(ctx context.Context, address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)
func (*Client) GetCustomQuery ¶
func (c *Client) GetCustomQuery(ctx context.Context, encryptedParams common.EncryptedParamsGetStorageAt) (*responses.PrivateQueryResponse, common.SystemError)
func (*Client) GetLogs ¶
func (c *Client) GetLogs(ctx context.Context, encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)
func (*Client) GetRollupData ¶ added in v0.24.0
func (c *Client) GetRollupData(ctx context.Context, hash common.L2RollupHash) (*common.PublicRollupMetadata, common.SystemError)
func (*Client) GetTotalContractCount ¶
func (*Client) GetTransaction ¶
func (c *Client) GetTransaction(ctx context.Context, encryptedParams common.EncryptedParamsGetTxByHash) (*responses.TxByHash, common.SystemError)
func (*Client) GetTransactionCount ¶
func (c *Client) GetTransactionCount(ctx context.Context, encryptedParams common.EncryptedParamsGetTxCount) (*responses.TxCount, common.SystemError)
func (*Client) GetTransactionReceipt ¶
func (c *Client) GetTransactionReceipt(ctx context.Context, encryptedParams common.EncryptedParamsGetTxReceipt) (*responses.TxReceipt, common.SystemError)
func (*Client) HealthCheck ¶
func (*Client) InitEnclave ¶
func (c *Client) InitEnclave(ctx context.Context, secret common.EncryptedSharedEnclaveSecret) common.SystemError
func (*Client) ObsCall ¶
func (c *Client) ObsCall(ctx context.Context, 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 (*Client) SubmitL1Block ¶
func (c *Client) SubmitL1Block(ctx context.Context, block *common.L1Block, receipts common.L1Receipts, isLatest bool) (*common.BlockSubmissionResponse, common.SystemError)
func (*Client) SubmitTx ¶
func (c *Client) SubmitTx(ctx context.Context, tx common.EncryptedTx) (*responses.RawTx, common.SystemError)
func (*Client) Subscribe ¶
func (c *Client) Subscribe(ctx context.Context, 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.