Skip to content

Commit 0acad7f

Browse files
authored
Merge pull request #398 from api3dao/main
Initiate release
2 parents ec39abd + 500f3c8 commit 0acad7f

File tree

127 files changed

+6981
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+6981
-112
lines changed

.changeset/rich-bananas-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@api3/contracts': minor
3+
---
4+
5+
Migrates @api3/chains into this package

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
extends: ['plugin:@api3/eslint-plugin-commons/universal'],
2+
extends: ['plugin:@api3/eslint-plugin-commons/universal', 'plugin:@api3/eslint-plugin-commons/jest'],
33
parserOptions: {
44
project: ['./tsconfig.json'],
55
},
@@ -9,7 +9,11 @@ module.exports = {
99

1010
'functional/no-try-statements': 'off',
1111

12+
'jest/no-conditional-in-test': 'off',
13+
1214
'lodash/prefer-constant': 'off',
15+
'lodash/prefer-lodash-typecheck': 'off',
16+
'lodash/prefer-noop': 'off',
1317

1418
'unicorn/filename-case': 'off',
1519
'unicorn/no-anonymous-default-export': 'off',

.github/workflows/continuous-build.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
lint-build:
12+
lint-build-test:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Clone @api3/contracts
@@ -32,27 +32,7 @@ jobs:
3232

3333
- name: Build
3434
run: pnpm build
35-
36-
test:
37-
runs-on: ubuntu-latest
38-
steps:
39-
- name: Clone @api3/contracts
40-
uses: actions/checkout@v4
41-
42-
- name: Set up pnpm
43-
uses: pnpm/action-setup@v3
44-
with:
45-
version: 9
46-
47-
- name: Set up Node
48-
uses: actions/setup-node@v4
49-
with:
50-
node-version: '20.x'
51-
cache: 'pnpm'
52-
53-
- name: Install dependencies
54-
run: pnpm install
55-
35+
5636
- name: Verify vendor contracts
5737
run: pnpm verify-vendor-contracts
5838

.github/workflows/validate-verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Install dependencies
3030
run: pnpm install
3131

32+
- name: Build
33+
run: pnpm build
34+
3235
- name: Check local metadata
3336
run: pnpm check
3437

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
![downloads per week](https://img.shields.io/npm/dw/%40api3%2Fcontracts)
77
[![continuous-build](https://img.shields.io/github/actions/workflow/status/api3dao/contracts/continuous-build.yml?label=continuous-build)](https://github.com/api3dao/contracts/actions/workflows/continuous-build.yml)
88
[![validate-verify](https://img.shields.io/github/actions/workflow/status/api3dao/contracts/validate-verify.yml?label=validate-verify)](https://github.com/api3dao/contracts/actions/workflows/validate-verify.yml)
9-
[![license](https://img.shields.io/npm/l/%40api3%2Fchains)](https://www.npmjs.com/package/@api3/chains)
9+
[![license](https://img.shields.io/npm/l/%40api3%2Fchains)](https://www.npmjs.com/package/@api3/contracts)
1010

1111
</div>
1212

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"alias": "apechain-arbitrum-sepolia-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": false
8+
},
9+
"url": "https://curtis.explorer.caldera.xyz/api"
10+
},
11+
"browserUrl": "https://curtis.explorer.caldera.xyz/"
12+
},
13+
"id": "33111",
14+
"name": "ApeChain testnet",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://curtis.rpc.caldera.xyz/http"
19+
}
20+
],
21+
"symbol": "APE",
22+
"testnet": true
23+
}

data/chains/apechain.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"alias": "apechain",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": true
8+
},
9+
"url": "https://api.apescan.io/api"
10+
},
11+
"browserUrl": "https://apescan.io/"
12+
},
13+
"id": "33139",
14+
"name": "ApeChain",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://rpc.apechain.com/http"
19+
},
20+
{
21+
"alias": "public",
22+
"rpcUrl": "https://apechain.calderachain.xyz/http"
23+
},
24+
{
25+
"alias": "blastapi",
26+
"homepageUrl": "https://blastapi.io"
27+
},
28+
{
29+
"alias": "drpc",
30+
"homepageUrl": "https://drpc.org"
31+
}
32+
],
33+
"symbol": "APE",
34+
"testnet": false
35+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "arbitrum-sepolia-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"hardhatEtherscanAlias": "arbitrumSepolia",
8+
"required": true
9+
},
10+
"url": "https://api-sepolia.arbiscan.io/api"
11+
},
12+
"browserUrl": "https://sepolia.arbiscan.io/"
13+
},
14+
"id": "421614",
15+
"name": "Arbitrum testnet",
16+
"providers": [
17+
{
18+
"alias": "default",
19+
"rpcUrl": "https://sepolia-rollup.arbitrum.io/rpc"
20+
},
21+
{
22+
"alias": "publicnode",
23+
"rpcUrl": "https://arbitrum-sepolia-rpc.publicnode.com"
24+
}
25+
],
26+
"symbol": "ETH",
27+
"testnet": true
28+
}

data/chains/arbitrum.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"alias": "arbitrum",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"hardhatEtherscanAlias": "arbitrumOne",
8+
"required": true
9+
},
10+
"url": "https://api.arbiscan.io/api"
11+
},
12+
"browserUrl": "https://arbiscan.io/"
13+
},
14+
"id": "42161",
15+
"name": "Arbitrum One",
16+
"providers": [
17+
{
18+
"alias": "default",
19+
"rpcUrl": "https://arb1.arbitrum.io/rpc"
20+
},
21+
{
22+
"alias": "blastapi",
23+
"homepageUrl": "https://blastapi.io"
24+
},
25+
{
26+
"alias": "drpc",
27+
"homepageUrl": "https://drpc.org"
28+
},
29+
{
30+
"alias": "quicknode",
31+
"homepageUrl": "https://quicknode.com"
32+
},
33+
{
34+
"alias": "reblok",
35+
"homepageUrl": "https://reblok.io"
36+
}
37+
],
38+
"symbol": "ETH",
39+
"testnet": false
40+
}

data/chains/atleta-testnet.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"alias": "atleta-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": false
8+
},
9+
"url": "https://blockscout.testnet-v2.atleta.network/api"
10+
},
11+
"browserUrl": "https://blockscout.testnet-v2.atleta.network/"
12+
},
13+
"id": "2340",
14+
"name": "Atleta testnet",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://rpc.testnet-v2.atleta.network"
19+
}
20+
],
21+
"symbol": "ATLA",
22+
"testnet": true
23+
}

data/chains/avalanche-testnet.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "avalanche-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"hardhatEtherscanAlias": "avalancheFujiTestnet",
8+
"required": true
9+
},
10+
"url": "https://api.routescan.io/v2/network/testnet/evm/43113/etherscan/api"
11+
},
12+
"browserUrl": "https://testnet.snowtrace.io/"
13+
},
14+
"id": "43113",
15+
"name": "Avalanche testnet",
16+
"providers": [
17+
{
18+
"alias": "default",
19+
"rpcUrl": "https://api.avax-test.network/ext/bc/C/rpc"
20+
},
21+
{
22+
"alias": "publicnode",
23+
"rpcUrl": "https://avalanche-fuji-c-chain-rpc.publicnode.com"
24+
}
25+
],
26+
"symbol": "AVAX",
27+
"testnet": true
28+
}

data/chains/avalanche.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"alias": "avalanche",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"hardhatEtherscanAlias": "avalanche",
8+
"required": true
9+
},
10+
"url": "https://api.routescan.io/v2/network/mainnet/evm/43114/etherscan/api"
11+
},
12+
"browserUrl": "https://snowtrace.io/"
13+
},
14+
"id": "43114",
15+
"name": "Avalanche",
16+
"providers": [
17+
{
18+
"alias": "default",
19+
"rpcUrl": "https://api.avax.network/ext/bc/C/rpc"
20+
},
21+
{
22+
"alias": "blastapi",
23+
"homepageUrl": "https://blastapi.io"
24+
},
25+
{
26+
"alias": "drpc",
27+
"homepageUrl": "https://drpc.org"
28+
},
29+
{
30+
"alias": "quicknode",
31+
"homepageUrl": "https://quicknode.com"
32+
},
33+
{
34+
"alias": "reblok",
35+
"homepageUrl": "https://reblok.io"
36+
}
37+
],
38+
"symbol": "AVAX",
39+
"testnet": false
40+
}

data/chains/base-sepolia-testnet.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"alias": "base-sepolia-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": true
8+
},
9+
"url": "https://api-sepolia.basescan.org/api"
10+
},
11+
"browserUrl": "https://sepolia.basescan.org/"
12+
},
13+
"id": "84532",
14+
"name": "Base testnet",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://sepolia.base.org"
19+
},
20+
{
21+
"alias": "publicnode",
22+
"rpcUrl": "https://base-sepolia-rpc.publicnode.com"
23+
}
24+
],
25+
"symbol": "ETH",
26+
"testnet": true
27+
}

data/chains/base.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"alias": "base",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": true
8+
},
9+
"url": "https://api.basescan.org/api"
10+
},
11+
"browserUrl": "https://basescan.org/"
12+
},
13+
"id": "8453",
14+
"name": "Base",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://mainnet.base.org"
19+
},
20+
{
21+
"alias": "blastapi",
22+
"homepageUrl": "https://blastapi.io"
23+
},
24+
{
25+
"alias": "drpc",
26+
"homepageUrl": "https://drpc.org"
27+
},
28+
{
29+
"alias": "quicknode",
30+
"homepageUrl": "https://quicknode.com"
31+
},
32+
{
33+
"alias": "reblok",
34+
"homepageUrl": "https://reblok.io"
35+
}
36+
],
37+
"symbol": "ETH",
38+
"testnet": false
39+
}

data/chains/berachain-testnet.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"alias": "berachain-testnet",
3+
"decimals": 18,
4+
"explorer": {
5+
"api": {
6+
"key": {
7+
"required": false
8+
},
9+
"url": "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api"
10+
},
11+
"browserUrl": "https://bartio.beratrail.io/"
12+
},
13+
"id": "80084",
14+
"name": "Berachain testnet",
15+
"providers": [
16+
{
17+
"alias": "default",
18+
"rpcUrl": "https://bartio.rpc.berachain.com"
19+
}
20+
],
21+
"symbol": "BERA",
22+
"testnet": true
23+
}

0 commit comments

Comments
 (0)