Skip to content

Commit

Permalink
feat: support testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Dec 2, 2024
1 parent 125b260 commit 9b2a175
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 30 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy-testnet-dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy (testnet-dev)
on:
pull_request:
branches: [staging]
branches: [main]
types: [closed]
push:
branches: [testnet-dev]
branches: [main]
repository_dispatch:
types: [deploy-testnet-dev]
workflow_dispatch:
Expand All @@ -23,17 +23,17 @@ jobs:
name: configure
run: git config pull.ff true

- id: pull-staging
name: Pull latest 'staging'
run: git pull origin staging
- id: pull-main
name: Pull latest 'main'
run: git pull --ff-only origin main

- id: diff-check
name: Check if 'testnet' is behind 'staging'
run: git diff --exit-code origin/staging
name: Check if 'testnet-dev' is behind 'main'
run: git diff --exit-code origin/main

- id: fast-forward
name: Fast forward 'staging' → 'testnet-dev'
run: git merge --ff-only origin/staging
name: Fast forward 'main' → 'testnet-dev'
run: git merge --ff-only origin/main

- id: push-testnet-dev
name: Push latest 'testnet-dev'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Deploy (testnet)
on:
pull_request:
branches: [staging]
branches: [main]
types: [closed]
push:
branches: [testnet]
branches: [main]
repository_dispatch:
types: [deploy-testnet]
workflow_dispatch:
Expand All @@ -23,17 +23,17 @@ jobs:
name: configure
run: git config pull.ff true

- id: pull-staging
name: Pull latest 'staging'
run: git pull origin staging
- id: pull-main
name: Pull latest 'main'
run: git pull --ff-only origin main

- id: diff-check
name: Check if 'testnet' is behind 'staging'
run: git diff --exit-code origin/staging
name: Check if 'testnet' is behind 'main'
run: git diff --exit-code origin/main

- id: fast-forward
name: Fast forward 'staging' → 'testnet'
run: git merge --ff-only origin/staging
name: Fast forward 'main' → 'testnet'
run: git merge --ff-only origin/main

- id: push-testnet
name: Push latest 'testnet'
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"widgetv1": "npm:@skip-go/widget@^2.5.2",
"widgetv2": "npm:@skip-go/[email protected].18",
"widgetv2": "npm:@skip-go/[email protected].19",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/config/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ exports.WHITELABEL_CHAIN_IDS = {
"crescent-1": true,
"cronosmainnet_25-1": true,
"crypto-org-mainnet": true,
dhealth: true,
"dimension_37-1": true,
"dydx-mainnet-1": true,
"dymension_1100-1": true,
Expand All @@ -128,7 +129,7 @@ exports.WHITELABEL_CHAIN_IDS = {
"nois-1": true,
"nomic-stakenet-3": true,
"omniflixhub-1": true,
"osmosis-1": 1,
"osmosis-1": true,
"pacific-1": true,
"passage-2": true,
"penumbra-1": true,
Expand Down Expand Up @@ -160,7 +161,6 @@ exports.WHITELABEL_CHAIN_IDS = {
"vota-ash": true,
"xstaxy-1": true,
celestia: true,
dhealth: true,
gitopia: true,
nyx: true,
wormchain: true,
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function Home() {
routeConfig={{
goFast,
}}
onlyTestnet={process.env.NEXT_PUBLIC_IS_TESTNET}
/>
</div>
</div>
Expand Down

0 comments on commit 9b2a175

Please sign in to comment.