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, []*kzg4844.Blob, 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) EncryptedRPC(ctx context.Context, encryptedReq common.EncryptedRequest) (*responses.EnclaveResponse, 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) 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, ...) ([]byte, 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) HealthCheck(ctx context.Context) (bool, common.SystemError)
- func (c *Client) InitEnclave(ctx context.Context, secret common.EncryptedSharedEnclaveSecret) common.SystemError
- func (c *Client) MakeActive() common.SystemError
- func (c *Client) RPCEncryptionKey(ctx context.Context) ([]byte, 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, processed *common.ProcessedL1Data) (*common.BlockSubmissionResponse, 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) 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) EncryptedRPC ¶ added in v1.0.0
func (c *Client) EncryptedRPC(ctx context.Context, encryptedReq common.EncryptedRequest) (*responses.EnclaveResponse, 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) 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, blockNrOrHash gethrpc.BlockNumberOrHash) ([]byte, 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) HealthCheck ¶
func (*Client) InitEnclave ¶
func (c *Client) InitEnclave(ctx context.Context, secret common.EncryptedSharedEnclaveSecret) common.SystemError
func (*Client) MakeActive ¶ added in v1.0.0
func (c *Client) MakeActive() common.SystemError
func (*Client) RPCEncryptionKey ¶ added in v1.0.0
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, processed *common.ProcessedL1Data) (*common.BlockSubmissionResponse, 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.