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

Initiate release #423

Merged
merged 7 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .changeset/eleven-spoons-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 6 additions & 0 deletions .changeset/empty-pandas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@api3/chains': minor
---

Adds following chain:
* sonic-testnet
7 changes: 2 additions & 5 deletions .github/workflows/check-providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/continuous-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -22,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:
Expand Down
17 changes: 17 additions & 0 deletions chains/sonic-testnet.json
Original file line number Diff line number Diff line change
@@ -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": "S",
"testnet": true
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions src/generated/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'S',
testnet: true,
},
{
alias: 'sx-testnet',
decimals: 18,
Expand Down