From dd9d09e84629a5f9c7e893d9c44d5ff490322244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ogle?= Date: Wed, 21 Aug 2024 12:40:36 +0100 Subject: [PATCH 1/5] Document workflow secrets (#420) * Document NPM_TOKEN * Document GITHUB_TOKEN --- .github/workflows/release.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2662b77..e012a16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,18 @@ -# https://github.com/changesets/action +#also has a specific scope https://github.com/changesets/action + +######################################################################################## +# The following secrets are required: +# +# 1. NPM_TOKEN - A "fine-grained personal access token" generated through the +# npmjs.com UI. Tokens are generated at the user level, rather than organisation +# level. Each token is also scoped to the specific package. +# +# The following minimum permissions are required: +# Read & write - access to package & scope +# +# 2. GITHUB_TOKEN - automatically provided by Github to workflow runs. +######################################################################################## + name: Release on: From 28924e8899052fc6a4fdb0df9df869d0aabf176d Mon Sep 17 00:00:00 2001 From: Derek Croote Date: Fri, 23 Aug 2024 07:48:02 -0700 Subject: [PATCH 2/5] Add packageManager field to package.json (#421) --- .changeset/eleven-spoons-divide.md | 2 ++ .github/workflows/check-providers.yml | 7 ++----- .github/workflows/continuous-build.yml | 11 +++-------- .github/workflows/release.yml | 4 +--- package.json | 1 + 5 files changed, 9 insertions(+), 16 deletions(-) create mode 100644 .changeset/eleven-spoons-divide.md diff --git a/.changeset/eleven-spoons-divide.md b/.changeset/eleven-spoons-divide.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/.changeset/eleven-spoons-divide.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/check-providers.yml b/.github/workflows/check-providers.yml index e81e2e6..dda06e1 100644 --- a/.github/workflows/check-providers.yml +++ b/.github/workflows/check-providers.yml @@ -17,15 +17,12 @@ jobs: strategy: matrix: node-version: [20] - pnpm-version: [9] steps: - name: Clone @api3/chains uses: actions/checkout@v4 - - name: Setup pnpm ${{ matrix.pnpm-version }} - uses: pnpm/action-setup@v3 - with: - version: ${{ matrix.pnpm-version }} + - name: Setup pnpm + uses: pnpm/action-setup@v4 - name: Setup Node ${{ matrix.node-version }} uses: actions/setup-node@v4 diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build.yml index 3b527b3..978d114 100644 --- a/.github/workflows/continuous-build.yml +++ b/.github/workflows/continuous-build.yml @@ -23,15 +23,12 @@ jobs: strategy: matrix: node-version: [18, 20, latest] - pnpm-version: [9] steps: - name: Clone @api3/chains uses: actions/checkout@v4 - - name: Setup pnpm ${{ matrix.pnpm-version }} - uses: pnpm/action-setup@v3 - with: - version: ${{ matrix.pnpm-version }} + - name: Setup pnpm + uses: pnpm/action-setup@v4 - name: Setup Node ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -64,9 +61,7 @@ jobs: fetch-depth: 0 - name: Setup pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 + uses: pnpm/action-setup@v4 - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e012a16..8316cc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,9 +36,7 @@ jobs: fetch-depth: 0 - name: Setup pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 + uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: diff --git a/package.json b/package.json index d19f35e..e916fae 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dist", "src" ], + "packageManager": "pnpm@9.8.0", "scripts": { "build": "pnpm clean && pnpm generate:chains && tsc -p tsconfig.build.json", "changeset": "changeset", From 0a5f620b6bc1c97c2612999d20d862235f6ca5e4 Mon Sep 17 00:00:00 2001 From: hiletmis Date: Wed, 28 Aug 2024 14:51:22 +0300 Subject: [PATCH 3/5] Add sonic-testnet for CSUR --- chains/sonic-testnet.json | 17 +++++++++++++++++ src/generated/chains.ts | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 chains/sonic-testnet.json diff --git a/chains/sonic-testnet.json b/chains/sonic-testnet.json new file mode 100644 index 0000000..b15dfbd --- /dev/null +++ b/chains/sonic-testnet.json @@ -0,0 +1,17 @@ +{ + "alias": "sonic-testnet", + "decimals": 18, + "explorer": { + "browserUrl": "https://public-sonic.fantom.network/" + }, + "id": "64165", + "name": "Sonic testnet", + "providers": [ + { + "alias": "default", + "rpcUrl": "https://rpc.sonic.fantom.network" + } + ], + "symbol": "FTM", + "testnet": true +} diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 8ae85ea..59692b5 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1509,6 +1509,16 @@ export const CHAINS: Chain[] = [ symbol: 'SEI', testnet: false, }, + { + alias: 'sonic-testnet', + decimals: 18, + explorer: { browserUrl: 'https://public-sonic.fantom.network/' }, + id: '64165', + name: 'Sonic testnet', + providers: [{ alias: 'default', rpcUrl: 'https://rpc.sonic.fantom.network' }], + symbol: 'FTM', + testnet: true, + }, { alias: 'sx-testnet', decimals: 18, From 228e2f8a31afa3ea1c6a0e225e9b1fb953ccb610 Mon Sep 17 00:00:00 2001 From: hiletmis Date: Wed, 28 Aug 2024 14:56:38 +0300 Subject: [PATCH 4/5] Add changeset --- .changeset/empty-pandas-sip.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/empty-pandas-sip.md diff --git a/.changeset/empty-pandas-sip.md b/.changeset/empty-pandas-sip.md new file mode 100644 index 0000000..3cf0f13 --- /dev/null +++ b/.changeset/empty-pandas-sip.md @@ -0,0 +1,6 @@ +--- +'@api3/chains': minor +--- + +Adds following chain: +* sonic-testnet \ No newline at end of file From 1f595167c96c903e8bd7628782a25224df5abaf0 Mon Sep 17 00:00:00 2001 From: hiletmis Date: Thu, 29 Aug 2024 13:09:55 +0300 Subject: [PATCH 5/5] Update symbol to "S" in sonic-testnet.json --- chains/sonic-testnet.json | 2 +- src/generated/chains.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chains/sonic-testnet.json b/chains/sonic-testnet.json index b15dfbd..9aad122 100644 --- a/chains/sonic-testnet.json +++ b/chains/sonic-testnet.json @@ -12,6 +12,6 @@ "rpcUrl": "https://rpc.sonic.fantom.network" } ], - "symbol": "FTM", + "symbol": "S", "testnet": true } diff --git a/src/generated/chains.ts b/src/generated/chains.ts index 59692b5..644c331 100644 --- a/src/generated/chains.ts +++ b/src/generated/chains.ts @@ -1516,7 +1516,7 @@ export const CHAINS: Chain[] = [ id: '64165', name: 'Sonic testnet', providers: [{ alias: 'default', rpcUrl: 'https://rpc.sonic.fantom.network' }], - symbol: 'FTM', + symbol: 'S', testnet: true, }, {