Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate info into a package #44

Merged
merged 30 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8724f2f
feat: init `axelar-chains-info` package
npty Sep 12, 2023
05e5a32
chore: add few json validation tests
npty Sep 12, 2023
8754164
feat: add utility function to retrieve chain array with tests
npty Sep 12, 2023
f00f9a5
chore: move const
npty Sep 12, 2023
b5fce73
chore: improve comment
npty Sep 12, 2023
1a29349
chore: add tests workflow
npty Sep 13, 2023
45d6bb3
chore: fix lint
npty Sep 13, 2023
725dcb6
chore: update the actions name
npty Sep 13, 2023
8052bb7
chore: add missing quote
npty Sep 13, 2023
c26caa9
chore: rename package from `axelar-chains-info` to `axelar-contracts-…
npty Sep 13, 2023
188aa3a
chore: migrate readJSON function
npty Sep 13, 2023
d335701
chore: prettier and rename folder
npty Sep 13, 2023
c4c71e3
chore: migrate importNetworks function
npty Sep 13, 2023
184d12f
chore: add .npmignore
npty Sep 13, 2023
86cfb87
chore: add npm publish workflow
npty Sep 13, 2023
0e2f0e5
chore: update npm publish workflow
npty Sep 13, 2023
d60ce03
chore: update publish workflow
npty Sep 13, 2023
d133570
chore: move files
npty Sep 13, 2023
5c483b1
chore: add typescript to generate .d.ts files
npty Sep 13, 2023
987bf4f
chore: update entry file
npty Sep 13, 2023
998cc2f
chore: remove tsconfig.json from tarball
npty Sep 13, 2023
578ecca
chore: add README.md
npty Sep 13, 2023
a92a5ad
chore: move local.json and info.json to root folder
npty Sep 14, 2023
14ed979
chore: update chains path in .example.hardhat.config.js
npty Sep 14, 2023
64396a3
chore: remove release trigger for publish npm package
npty Sep 14, 2023
64bed10
feat: add `verifyContract` function
npty Sep 14, 2023
4c9c83e
chore: update chains require path
npty Sep 14, 2023
f3036ef
chore: rename gh actions
npty Sep 14, 2023
3521645
improve networks import
milapsheth Sep 14, 2023
5601e0a
chore: use commonjs export
npty Sep 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/publish-chains-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Publish Axelar Chains Config to NPM'

on:
workflow_dispatch:

jobs:
publish-to-npm:
name: 'Publish to NPM'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
working-directory: ./axelar-chains-config
- run: npm run build
working-directory: ./axelar-chains-config
- run: npm publish
working-directory: ./axelar-chains-config
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/test-chains-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Axelar Chains Config Tests

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
working-directory: axelar-chains-config

- name: Test
run: npm run test
working-directory: axelar-chains-config
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ build/
cache/
artifacts/

info/local.json
info/keys.json
local.json
keys.json

temp-arguments.js
temp-arguments.js
12 changes: 12 additions & 0 deletions axelar-chains-config/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Modules
node_modules

# Tests
tests

# Optional npm cache directory
.npm
*.tgz

# Tsconfig file
tsconfig.json
9 changes: 9 additions & 0 deletions axelar-chains-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Axelar Chains Config

This repo containing JSON formatted configurations for Axelar Chains in various environments. Currently supported networks:

- [Testnet](./info/testnet.json)
- [Mainnet](./info/mainnet.json)
- [Stagenet](./info/stagenet.json)

Additional utility functions can be found [here](./src/utils/).
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
},
"skipRevertTests": true,
"Create3Deployer": {
"address": "0xf49B10ccFB7D82C3a8749fFB1aAF3e0c936Eba36",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
Expand All @@ -682,7 +681,8 @@
},
"gasOptions": {
"gasLimit": 8000000
}
},
"skipRevertTests": true
}
},
"axelar": {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,6 @@
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
},
"skipRevertTests": true,
"Create3Deployer": {
"address": "0xf49B10ccFB7D82C3a8749fFB1aAF3e0c936Eba36",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
Expand All @@ -1124,7 +1123,8 @@
},
"gasOptions": {
"gasLimit": 8000000
}
},
"skipRevertTests": true
},
"centrifuge": {
"name": "Centrifuge",
Expand Down
Loading