Skip to content

Commit

Permalink
Contract addresses: Have host fetch contract address from enclave
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel committed Nov 28, 2023
1 parent 1d08a78 commit 664a6aa
Show file tree
Hide file tree
Showing 12 changed files with 711 additions and 457 deletions.
3 changes: 3 additions & 0 deletions go/common/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ type EnclaveScan interface {

// GetPublicTransactionData returns a list of public transaction data
GetPublicTransactionData(pagination *QueryPagination) (*TransactionListingResponse, SystemError)

// GetL2MessageBusAddress returns the address of the L2 message bus contract
GetL2MessageBusAddress() (gethcommon.Address, SystemError)
}

// BlockSubmissionResponse is the response sent from the enclave back to the node after ingesting a block
Expand Down
1 change: 1 addition & 0 deletions go/common/query_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ type ObscuroNetworkInfo struct {
L1StartHash common.Hash
SequencerID common.Address
MessageBusAddress common.Address
L2MessageBusAddress common.Address
ImportantContracts map[string]common.Address // map of contract name to address
}
Loading

0 comments on commit 664a6aa

Please sign in to comment.