diff --git a/blockchain/known_networks.go b/blockchain/known_networks.go index 1cff33d03..c507a232a 100644 --- a/blockchain/known_networks.go +++ b/blockchain/known_networks.go @@ -18,6 +18,7 @@ const ( RSKClientImplementation ClientImplementation = "RSK" CeloClientImplementation ClientImplementation = "Celo" QuorumClientImplementation ClientImplementation = "Quorum" + ScrollClientImplementation ClientImplementation = "Scroll" BSCClientImplementation ClientImplementation = "BSC" ) @@ -43,6 +44,8 @@ func wrapSingleClient(networkSettings EVMNetwork, client *EthereumClient) EVMCli wrappedEc = &CeloClient{client} case QuorumClientImplementation: wrappedEc = &QuorumClient{client} + case ScrollClientImplementation: + wrappedEc = &ScrollClient{client} case BSCClientImplementation: wrappedEc = &BSCClient{client} default: @@ -83,6 +86,9 @@ func wrapMultiClient(networkSettings EVMNetwork, client *EthereumMultinodeClient case QuorumClientImplementation: logMsg.Msg("Using Quorum Client") wrappedEc = &QuorumMultinodeClient{client} + case ScrollClientImplementation: + logMsg.Msg("Using Scroll Client") + wrappedEc = &ScrollMultinodeClient{client} case BSCClientImplementation: logMsg.Msg("Using BSC Client") wrappedEc = &BSCMultinodeClient{client} diff --git a/blockchain/scroll.go b/blockchain/scroll.go new file mode 100644 index 000000000..843acb23a --- /dev/null +++ b/blockchain/scroll.go @@ -0,0 +1,11 @@ +package blockchain + +// ScrollMultinodeClient represents a multi-node, EVM compatible client for the Scroll network +type ScrollMultinodeClient struct { + *EthereumMultinodeClient +} + +// ScrollClient represents a single node, EVM compatible client for the Scroll network +type ScrollClient struct { + *EthereumClient +}