Skip to content

Commit

Permalink
Add scroll (#638)
Browse files Browse the repository at this point in the history
Adds Scroll implementation
  • Loading branch information
davidcauchi authored Aug 9, 2023
1 parent 4371acf commit 106ff2c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blockchain/known_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
RSKClientImplementation ClientImplementation = "RSK"
CeloClientImplementation ClientImplementation = "Celo"
QuorumClientImplementation ClientImplementation = "Quorum"
ScrollClientImplementation ClientImplementation = "Scroll"
BSCClientImplementation ClientImplementation = "BSC"
)

Expand All @@ -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:
Expand Down Expand Up @@ -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}
Expand Down
11 changes: 11 additions & 0 deletions blockchain/scroll.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 106ff2c

Please sign in to comment.