Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcauchi committed Feb 24, 2024
1 parent aa7033a commit af331c4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blockchain/known_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
WeMixClientImplementation ClientImplementation = "WeMix"
KromaClientImplementation ClientImplementation = "Kroma"
GnosisClientImplementation ClientImplementation = "Gnosis"
MantleClientImplementation ClientImplementation = "Mantle"
)

// wrapSingleClient Wraps a single EVM client in its appropriate implementation, based on the chain ID
Expand Down Expand Up @@ -66,6 +67,8 @@ func wrapSingleClient(networkSettings EVMNetwork, client *EthereumClient) EVMCli
wrappedEc = &KromaClient{client}
case GnosisClientImplementation:
wrappedEc = &GnosisClient{client}
case MantleClientImplementation:
wrappedEc = &MantleClient{client}
default:
wrappedEc = client
}
Expand Down
26 changes: 26 additions & 0 deletions networks/known_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,30 @@ var (
DefaultGasLimit: 6000000,
}

MantleMainnet blockchain.EVMNetwork = blockchain.EVMNetwork{
Name: "Mantle Mainnet",
SupportsEIP1559: true,
ClientImplementation: blockchain.MantleClientImplementation,
ChainID: 5000,
Simulated: false,
ChainlinkTransactionLimit: 5000,
Timeout: blockchain.StrDuration{Duration: time.Minute},
MinimumConfirmations: 0,
GasEstimationBuffer: 1000,
}

MantleGoerli blockchain.EVMNetwork = blockchain.EVMNetwork{
Name: "Mantle Goerli",
SupportsEIP1559: true,
ClientImplementation: blockchain.MantleClientImplementation,
ChainID: 5001,
Simulated: false,
ChainlinkTransactionLimit: 5000,
Timeout: blockchain.StrDuration{Duration: time.Minute},
MinimumConfirmations: 0,
GasEstimationBuffer: 1000,
}

MappedNetworks = map[string]blockchain.EVMNetwork{
"SIMULATED": SimulatedEVM,
"SIMULATED_1": SimulatedEVMNonDev1,
Expand Down Expand Up @@ -812,6 +836,8 @@ var (
"NEXON_STAGE": NexonStage,
"GNOSIS_CHIADO": GnosisChiado,
"GNOSIS_MAINNET": GnosisMainnet,
"MANTLE_GOERLI": MantleGoerli,
"MANTLE_MAINNET": MantleMainnet,
}
)

Expand Down

0 comments on commit af331c4

Please sign in to comment.