-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dean Amiel
committed
Oct 26, 2023
1 parent
3f42aeb
commit 11c941f
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Contract Deployments Integration Test | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
arch: [amd64] | ||
steps: | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Spin up Hardhat Network | ||
run: npx hardhat node & | ||
|
||
- name: Prepare local.json | ||
run: | | ||
echo '{ | ||
"chains": { | ||
"ethereum": { | ||
"name": "Hardhat", | ||
"id": "hardhat", | ||
"chainId": 31337, | ||
"rpc": "http://127.0.0.1:8545", | ||
"tokenSymbol": "ETH", | ||
"contracts": {} | ||
} | ||
} | ||
}' > axelar-chains-config/info/local.json | ||
- name: Display local.json | ||
run: cat axelar-chains-config/info/local.json | ||
|
||
- name: Deploy constAddressDeployer | ||
run: node evm/deploy-contract.js -e local -a ./node_modules/@axelar-network/axelar-gmp-sdk-solidity/artifacts/contracts/deploy/ -c ConstAddressDeployer -n hardhat -m create -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
|
||
- name: Deploy Create3Deployer | ||
run: node evm/deploy-contract.js -e local -a ./node_modules/@axelar-network/axelar-gmp-sdk-solidity/artifacts/contracts/deploy/ -c Create3Deployer -n hardhat -m create2 -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 | ||
|
||
- name: Deploy AxelarGateway | ||
run: node evm/deploy-gateway-v6.2.x.js -e local -n ethereum -m create3 -s "AxelarGateway v6.2" -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 -g 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -m 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 | ||
|
||
- name: Call Method on Gateway | ||
run: node evm/gateway.js -e local -n ethereum --action callContract -p 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --destinationChain fantom |