Skip to content

Commit

Permalink
➕ Add EVM on Flow Test and Main Networks Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 21, 2024
1 parent 3ebe49f commit 41ad340
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 24 deletions.
2 changes: 1 addition & 1 deletion contracts/lib/forge-std
Submodule forge-std updated 3 files
+1 −1 package.json
+16 −10 src/Vm.sol
+1 −1 test/Vm.t.sol
31 changes: 31 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,18 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
flowTestnet: {
chainId: 545,
url: vars.get("FLOW_TESTNET_URL", "https://testnet.evm.nodes.onflow.org"),
accounts,
ledgerAccounts,
},
flowMain: {
chainId: 747,
url: vars.get("FLOW_MAINNET_URL", "https://mainnet.evm.nodes.onflow.org"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -1230,6 +1242,9 @@ const config: HardhatUserConfig = {
// For Sonic testnet & mainnet
sonic: vars.get("SONIC_API_KEY", ""),
sonicTestnet: vars.get("SONIC_API_KEY", ""),
// For EVM on Flow testnet & mainnet
flow: vars.get("FLOW_API_KEY", ""),
flowTestnet: vars.get("FLOW_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -2030,6 +2045,22 @@ const config: HardhatUserConfig = {
browserURL: "https://testnet.sonicscan.org",
},
},
{
network: "flow",
chainId: 747,
urls: {
apiURL: "https://evm.flowscan.io/api",
browserURL: "https://evm.flowscan.io",
},
},
{
network: "flowTestnet",
chainId: 545,
urls: {
apiURL: "https://evm-testnet.flowscan.io/api",
browserURL: "https://evm-testnet.flowscan.io",
},
},
],
},
// tenderly: {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@
"deploy:storytestnet": "npx hardhat run --network storyTestnet scripts/deploy.ts",
"deploy:sonictestnet": "npx hardhat run --network sonicTestnet scripts/deploy.ts",
"deploy:sonicmain": "npx hardhat run --network sonicMain scripts/deploy.ts",
"deploy:flowtestnet": "npx hardhat run --network flowTestnet scripts/deploy.ts",
"deploy:flowmain": "npx hardhat run --network flowMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
Expand Down Expand Up @@ -214,7 +216,7 @@
"typechain": "^8.3.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1",
"xdeployer": "^3.1.8",
"xdeployer": "^3.1.9",
"zksync-ethers": "^6.15.3"
}
}
45 changes: 23 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41ad340

Please sign in to comment.