CI changes to accommodate Anvil

This commit is contained in:
Arya Lanjewar 2025-03-05 16:42:28 +05:30
parent d3b4d34e37
commit f767ec7f84
No known key found for this signature in database
GPG key ID: 07E794A0ED462D5F
2 changed files with 14 additions and 7 deletions

View file

@ -10,7 +10,8 @@ borDockerBuildContext: '../../bor'
heimdallDockerBuildContext: 'https://github.com/maticnetwork/heimdall.git#develop'
genesisContractsBranch: master
contractsBranch: mardizzone/node-16
contractsRepo: https://github.com/0xPolygon/pos-contracts.git
contractsBranch: anvil-pos
blockTime:
- '2'
@ -32,5 +33,6 @@ numOfErigonValidators: 0
numOfErigonSentries: 0
numOfErigonArchiveNodes: 0
ethURL: http://ganache:9545
ethURL: http://anvil:9545
ethHostUser: ubuntu
mnemonic: 'clock radar mass judge dismiss just intact mind resemble fringe diary casino'

View file

@ -228,6 +228,9 @@ jobs:
matic-cli/devnet/code/genesis-contracts/package-lock.json
matic-cli/devnet/code/genesis-contracts/matic-contracts/package-lock.json
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Bootstrap devnet
run: |
cd matic-cli
@ -245,12 +248,14 @@ jobs:
- name: Run smoke tests
run: |
echo "Funding ganache accounts..."
timeout 10m bash bor/integration-tests/fund_ganache_accounts.sh
echo "Deposit 100 matic for each account to bor network"
cd matic-cli/devnet/code/contracts
npm run truffle exec scripts/deposit.js -- --network development $(jq -r .root.tokens.MaticToken contractAddresses.json) 100000000000000000000
cd -
cd matic-cli/devnet/devnet
SCRIPT_ADDRESS=$(jq -r '.[0].address' signer-dump.json)
SCRIPT_PRIVATE_KEY=$(jq -r '.[0].priv_key' signer-dump.json)
cd ../code/pos-contracts
CONTRACT_ADDRESS=$(jq -r .root.tokens.MaticToken contractAddresses.json)
forge script scripts/matic-cli-scripts/Deposit.s.sol:MaticDeposit --rpc-url http://localhost:9545 --private-key $SCRIPT_PRIVATE_KEY --broadcast --sig "run(address,address,uint256)" $SCRIPT_ADDRESS $CONTRACT_ADDRESS 100000000000000000000
cd ../../../..
timeout 60m bash bor/integration-tests/smoke_test.sh
- name: Run RPC Tests