enclaverpc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 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(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 added in v0.14.0

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

func (*Client) CreateRollup added in v0.14.0

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

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

Jump to

Keyboard shortcuts

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