Skip to content

Commit

Permalink
chore: final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Aug 19, 2024
1 parent 37fe3f0 commit 8803f92
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
# HTTPs providers
NODE_URI_ETHEREUM=
NODE_URI_OPTIMISM=
NODE_URI_POLYGON=
NODE_URI_SEPOLIA=
NODE_URI_OPTIMISTICSEPOLIA=
NODE_URI_AMOI=

# Account's private keys
ETHEREUM_1_PRIVATE_KEY=
TEST_1_PRIVATE_KEY=

# Etherscan (optional, only for verifying smart contracts)
ETHEREUM_ETHERSCAN_API_KEY=
OPTIMISM_ETHERSCAN_API_KEY=
OPTIMISTICETHEREUM_ETHERSCAN_API_KEY=
SEPOLIA_ETHERSCAN_API_KEY=
OPTIMISTICSEPOLIA_ETHERSCAN_API_KEY=
AMOI_ETHERSCAN_API_KEY=
POLYGON_ETHERSCAN_API_KEY=

# Mocha (10 minutes)
MOCHA_TIMEOUT=600000
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ artifacts
typechained
deployments/hardhat
deployments/localhost
deployments/sepoliaDummy
deployments/sepolia
deployments/optimisticSepolia

# Config files
.env
Expand Down
2 changes: 1 addition & 1 deletion deploy/3-bridge-actions/312_dummy_bridge_observation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ const deployFunction: DeployFunction = async function (hre: HardhatRuntimeEnviro
}
};

deployFunction.dependencies = ['dummy-test-setup'];
deployFunction.dependencies = ['dummy-test-setup', 'manual-fetch-observation'];
deployFunction.tags = ['dummy-bridge-observation'];
export default deployFunction;
9 changes: 8 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ const networks: NetworksUserConfig =
chainId: 11155111,
companionNetworks: {
receiver: 'optimisticSepolia',
sender: 'sepolia', // for dummy-setup
},
},
sepoliaDummy: {
url: env.getNodeUrl('sepolia'),
accounts: env.getAccounts('test'),
chainId: 11155111,
companionNetworks: {
receiver: 'sepoliaDummy',
},
},
optimisticSepolia: {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
"coverage": "hardhat coverage",
"deploy": "npx hardhat deploy",
"deploy:bridge": "yarn deploy --network sepolia --tags bridge-observation",
"deploy:bridge-dummy": "yarn deploy --network sepolia --tags dummy-bridge-observation",
"deploy:dummy": "yarn deploy --network sepoliaDummy --tags data-receiver,dummy-bridge-observation",
"deploy:fetch": "yarn deploy --network sepolia --tags fetch-observation",
"deploy:force-fetch": "yarn deploy --network sepolia --tags force-fetch-observation",
"deploy:force-fetch": "yarn deploy --network sepolia --tags manual-fetch-observation",
"deploy:setup": "yarn deploy --network sepolia --tags setup-connext-default",
"deploy:setup-dummy": "yarn deploy --network sepolia --tags data-receiver",
"deploy:work": "yarn deploy --network sepolia --tags work-job",
"fork:node": "cross-env FORK=true hardhat node",
"fork:script": "cross-env FORK=true hardhat run",
Expand Down
2 changes: 1 addition & 1 deletion utils/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ export const getReceiverChainId = async (hre: HardhatRuntimeEnvironment): Promis
const receiverChainId = await hre.companionNetworks['receiver'].getChainId();

if (senderChainId != receiverChainId) return receiverChainId;
// returns 11155111 for same chain test
// avoids `BridgeFacet__mustHaveRemote_destinationNotSupported` in local testing (chain id 11155111)
return '11155420';
};

0 comments on commit 8803f92

Please sign in to comment.