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

sync staging to main #239

Merged
merged 13 commits into from
Apr 8, 2024
148 changes: 148 additions & 0 deletions .github/workflows/tests-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: Tests Release
on:
pull_request:
branches:
- main

jobs:
test-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Use Node 18.x
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
run: npm test

"e2e-test-noble-usdc-injective-inj":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-1
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-injective-inj-cosmoshub-atom":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-2
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-cosmoshub-atom-noble-usdc":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-3
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
118 changes: 0 additions & 118 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,121 +25,3 @@ jobs:
env:
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
run: npm test

"e2e-test-noble-usdc-injective-inj":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-1
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-injective-inj-cosmoshub-atom":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-2
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
"e2e-test-cosmoshub-atom-noble-usdc":
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.38.0-jammy
steps:
- name: Waiting for 200 from the Vercel Preview
uses: patrickedqvist/[email protected]
id: waitFor200
with:
token: ${{ secrets.GITHUB_TOKEN }}
check_interval: 15
max_timeout: 1200
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- run: git config --system --add safe.directory /__w/ibc-dot-fun/ibc-dot-fun
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
env:
WORD_PHRASE_KEY: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_USER: ${{ secrets.WORD_PHRASE_KEY }}
POLKACHU_PASSWORD: ${{ secrets.POLKACHU_PASSWORD }}
NEXT_PUBLIC_EDGE_CONFIG: ${{ secrets.NEXT_PUBLIC_EDGE_CONFIG }}
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.waitFor200.outputs.url }}
run: xvfb-run --auto-servernum --server-args='-screen 0, 1920x1080x24' npm run test:e2e-3
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 110 files
2 changes: 1 addition & 1 deletion initia-registry
Submodule initia-registry updated 57 files
+5 −5 .github/workflows/npm_publish_initia_registry.yml
+26 −0 .github/workflows/npm_publish_types.yml
+2 −0 .gitignore
+0 −5 .vscode/settings.json
+9 −0 _packages/initia-registry/.gitignore
+544 −0 _packages/initia-registry/package-lock.json
+45 −0 _packages/initia-registry/package.json
+585 −0 _packages/initia-registry/scripts/build.js
+11 −0 _packages/initia-registry/src/all.ts
+7 −0 _packages/initia-registry/src/assets.ts
+7 −0 _packages/initia-registry/src/chains.ts
+11 −0 _packages/initia-registry/src/devnet/all.ts
+13 −0 _packages/initia-registry/src/devnet/assets.ts
+9 −0 _packages/initia-registry/src/devnet/chains.ts
+7 −0 _packages/initia-registry/src/devnet/ibc.ts
+3 −0 _packages/initia-registry/src/devnet/index.ts
+150 −0 _packages/initia-registry/src/devnet/initia/assets.ts
+140 −0 _packages/initia-registry/src/devnet/initia/chain.ts
+66 −0 _packages/initia-registry/src/devnet/initia/ibc.ts
+66 −0 _packages/initia-registry/src/devnet/initia/ibc_chain1.ts
+9 −0 _packages/initia-registry/src/devnet/initia/index.ts
+66 −0 _packages/initia-registry/src/devnet/minimove/assets.ts
+115 −0 _packages/initia-registry/src/devnet/minimove/chain.ts
+35 −0 _packages/initia-registry/src/devnet/minimove/ibc.ts
+7 −0 _packages/initia-registry/src/devnet/minimove/index.ts
+66 −0 _packages/initia-registry/src/devnet/miniwasm/assets.ts
+116 −0 _packages/initia-registry/src/devnet/miniwasm/chain.ts
+35 −0 _packages/initia-registry/src/devnet/miniwasm/ibc.ts
+7 −0 _packages/initia-registry/src/devnet/miniwasm/index.ts
+7 −0 _packages/initia-registry/src/ibc.ts
+8 −0 _packages/initia-registry/src/index.ts
+19 −0 _packages/initia-registry/tsconfig.json
+3 −0 _packages/initia-registry/types/assets.d.ts
+3 −0 _packages/initia-registry/types/chains.d.ts
+3 −0 _packages/initia-registry/types/ibc.d.ts
+10 −0 _packages/initia-registry/types/index.d.ts
+0 −0 _packages/types/.gitignore
+0 −0 _packages/types/.npmignore
+140 −58 _packages/types/package-lock.json
+1 −1 _packages/types/package.json
+3 −3 _packages/types/src/generate.ts
+0 −0 _packages/types/src/types/AssetList.ts
+0 −0 _packages/types/src/types/Chain.ts
+1 −1 _packages/types/src/types/IBCInfo.ts
+1 −1 _packages/types/src/types/index.ts
+0 −0 _packages/types/src/zods/AssetList.ts
+0 −0 _packages/types/src/zods/Chain.ts
+1 −1 _packages/types/src/zods/IBCInfo.ts
+1 −1 _packages/types/src/zods/index.ts
+0 −0 _packages/types/tsconfig.json
+29 −30 devnets/_IBC/mahalo-minimove.json
+1 −1 devnets/_IBC/mahalo-miniwasm.json
+2 −2 devnets/mahalo/chain.json
+2 −2 devnets/minimove/assetlist.json
+4 −6 devnets/minimove/chain.json
+2 −2 devnets/miniwasm/assetlist.json
+2 −2 devnets/miniwasm/chain.json
49 changes: 29 additions & 20 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@fontsource/jost": "^5.0.16",
"@graz-sh/types": "^0.0.14",
"@heroicons/react": "^2.1.1",
"@initia/initia-registry-types": "^0.0.12",
"@injectivelabs/sdk-ts": "^1.14.5",
"@injectivelabs/utils": "^1.14.5",
"@keplr-wallet/types": "^0.12.66",
Expand All @@ -64,7 +65,7 @@
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tooltip": "^1.0.7",
"@sentry/nextjs": "^7.99.0",
"@skip-router/core": "2.0.3",
"@skip-router/core": "2.0.5",
"@solana/spl-token": "^0.4.1",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-wallets": "^0.19.31",
Expand Down
Loading
Loading