Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-keyid-param
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchainguyy authored Jun 12, 2024
2 parents dfb8692 + 8c61965 commit 73ea490
Show file tree
Hide file tree
Showing 62 changed files with 7,603 additions and 2,974 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ on: pull_request

jobs:
lint:
strategy:
matrix:
node-version:
- 18.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
runs-on: blacksmith-2vcpu-ubuntu-2204

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
uses: useblacksmith/setup-node@v5
with:
node-version: ${{ matrix.node-version }}
node-version: 18.x
cache: 'npm'

- name: Install Dependencies
run: npm ci
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/test-chains-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ on: pull_request

jobs:
test:
strategy:
matrix:
node-version:
- 18.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
runs-on: blacksmith-2vcpu-ubuntu-2204

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: useblacksmith/setup-node@v5
with:
node-version: 18.x
cache: 'npm'

- name: Install
run: npm ci
working-directory: axelar-chains-config
Expand Down
32 changes: 13 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ on: pull_request

jobs:
test:
strategy:
matrix:
node-version:
- 18.x
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
runs-on: blacksmith-2vcpu-ubuntu-2204

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: useblacksmith/setup-node@v5
with:
node-version: 18.x
cache: 'npm'

- name: Install
run: npm ci

Expand All @@ -46,12 +42,7 @@ jobs:
},
"AxelarServiceGovernance": {
"minimumTimeDelay": 3600,
"cosigners": [
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"
],
"threshold": 2
"multisig": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
},
"Multisig": {
"signers": [
Expand Down Expand Up @@ -82,8 +73,11 @@ jobs:
- name: Deploy Create3Deployer
run: node evm/deploy-contract.js -c Create3Deployer -m create2 -y

- name: Deploy AxelarAmplifierGateway
run: node evm/deploy-amplifier-gateway.js --deployMethod create3 -s "AxelarAmplifierGateway v5.8" --owner 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --domainSeparator 0x361b9fa2ae14de79d4b32164841b42ebc840b9d3ddb98cba1a45dc79a13214fc -y

- name: Deploy AxelarGateway
run: node evm/deploy-gateway-v6.2.x.js -m create3 -s "AxelarGateway v6.2" --governance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --mintLimiter 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -y
run: node evm/deploy-gateway-v6.2.x.js --deployMethod create3 -s "AxelarGateway v6.2" --governance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --mintLimiter 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -y

- name: Call Method on Gateway
run: node evm/gateway.js --action callContract --destinationChain test2 -y
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/update-gas-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Update Gas Info on Testnet'

on:
workflow_dispatch:
inputs:
environment:
description: Environment to update gas info on
required: true
default: testnet
type: choice
options:
- testnet
- mainnet
- stagenet

jobs:
update-gas:
name: 'Update Gas Info'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
ENV="${{ github.event.inputs.environment }}"
else
ENV="testnet"
fi
case "$ENV" in
testnet)
PRIVATE_KEY="${{ secrets.TESTNET_PRIVATE_KEY }}"
;;
mainnet)
PRIVATE_KEY="${{ secrets.MAINNET_PRIVATE_KEY }}"
;;
stagenet)
PRIVATE_KEY="${{ secrets.STAGENET_PRIVATE_KEY }}"
;;
esac
echo "PRIVATE_KEY=$PRIVATE_KEY" >> .env
echo "ENV=$ENV" >> .env
echo "CHAINS=all" >> .env
node evm/operators.js --action updateGasInfo --chains all -y
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ dist
build/
cache/
artifacts/
chains-info/

local.json
keys.json
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Install dependencies via
`npm ci`

[EVM deployment instructions](./evm/README.md)
[EVM deployment instructions](./evm/README.md)
Loading

0 comments on commit 73ea490

Please sign in to comment.