Skip to content

Commit

Permalink
split the enclave file into responsibilities (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene authored Nov 21, 2024
1 parent d6ce39f commit aa5892a
Show file tree
Hide file tree
Showing 6 changed files with 869 additions and 651 deletions.
4 changes: 0 additions & 4 deletions go/common/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ type EnclaveClientRPC interface {
DebugTraceTransaction(ctx context.Context, hash gethcommon.Hash, config *tracers.TraceConfig) (json.RawMessage, SystemError)

GetCode(ctx context.Context, address gethcommon.Address, blockNrOrHash rpc.BlockNumberOrHash) ([]byte, SystemError)
}

// EnclaveScan represents the methods that are used for data scanning in the enclave
type EnclaveScan interface {
// GetTotalContractCount returns the total number of contracts that have been deployed
GetTotalContractCount(context.Context) (*big.Int, SystemError)

Expand All @@ -134,7 +131,6 @@ type EnclaveScan interface {

// Enclave represents the API of the service that runs inside the TEE.
type Enclave interface {
EnclaveScan
EnclaveInit
EnclaveAdmin
EnclaveClientRPC
Expand Down
Loading

0 comments on commit aa5892a

Please sign in to comment.