enclaverpc

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *config.HostConfig, 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 (c *Client) Attestation() (*common.AttestationReport, common.SystemError)

func (*Client) CreateBatch

func (c *Client) CreateBatch(skipIfEmpty bool) common.SystemError

func (*Client) CreateRollup

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

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 (*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 (c *Client) GetBatchBySeqNo(seqNo uint64) (*common.ExtBatch, common.SystemError)

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

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

func (*Client) Status

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

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 (*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

Jump to

Keyboard shortcuts

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