enclaverpc

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(enclaveRPCAddress string, enclaveRPCTimeout time.Duration, logger gethlog.Logger) common.Enclave

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 (*Client) CreateBatch

func (c *Client) CreateBatch(ctx context.Context, skipIfEmpty bool) common.SystemError

func (*Client) CreateRollup

func (c *Client) CreateRollup(ctx context.Context, fromSeqNo uint64) (*common.ExtRollup, common.SystemError)

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) EnclaveID added in v0.21.0

func (c *Client) EnclaveID(ctx context.Context) (common.EnclaveID, 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 (*Client) GetBalance

func (c *Client) GetBalance(ctx context.Context, encryptedParams common.EncryptedParamsGetBalance) (*responses.Balance, common.SystemError)

func (*Client) GetBatch

func (*Client) GetBatchBySeqNo

func (c *Client) GetBatchBySeqNo(ctx context.Context, seqNo uint64) (*common.ExtBatch, common.SystemError)

func (*Client) GetCode

func (c *Client) GetCode(ctx context.Context, address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError)

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context, encryptedParams common.EncryptedParamsGetLogs) (*responses.Logs, common.SystemError)

func (*Client) GetPersonalTransactions added in v0.26.0

func (*Client) GetRollupData added in v0.24.0

func (*Client) GetStorageSlot added in v0.26.0

func (*Client) GetTotalContractCount

func (c *Client) GetTotalContractCount(ctx context.Context) (*big.Int, common.SystemError)

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 (c *Client) HealthCheck(ctx context.Context) (bool, common.SystemError)

func (*Client) InitEnclave

func (*Client) ObsCall

func (c *Client) ObsCall(ctx context.Context, encryptedParams common.EncryptedParamsCall) (*responses.Call, common.SystemError)

func (*Client) Status

func (c *Client) Status(ctx context.Context) (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

func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())

func (*Client) SubmitBatch

func (c *Client) SubmitBatch(ctx context.Context, batch *common.ExtBatch) common.SystemError

func (*Client) SubmitL1Block

func (c *Client) SubmitL1Block(ctx context.Context, blockHeader *types.Header, receipts []*common.TxAndReceipt, isLatest bool) (*common.BlockSubmissionResponse, common.SystemError)

func (*Client) SubmitTx

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL