Skip to content

Commit

Permalink
refactor codegen using registries packages
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Feb 19, 2025
1 parent 5d1a54d commit 936de5f
Show file tree
Hide file tree
Showing 23 changed files with 287 additions and 548 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ node_modules
out
playwright-report
playwright/.cache/
src/chains/
test-results/
tests/downloads/

!.env.example

certificates
certificates
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion chain-registry
Submodule chain-registry deleted from e5dddf
1 change: 0 additions & 1 deletion initia-registry
Submodule initia-registry deleted from c600c1
163 changes: 103 additions & 60 deletions package-lock.json

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

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"private": true,
"scripts": {
"build": "next build",
"chains:update": "git submodule init && git submodule update --remote",
"chains:generate": "tsx ./src/scripts/codegen.ts",
"chains:generate": "node ./src/scripts/generate-chains.cjs",
"dev": "next dev",
"dev:https": "next dev --experimental-https",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
Expand All @@ -17,12 +16,14 @@
"test:e2e-1": "playwright test 1nobleUSDCToInjectiveINJ.spec.ts --project=chromium",
"test:e2e-2": "playwright test 2injectiveINJToCosmoshubATOM.spec.ts --project=chromium",
"test:e2e-3": "playwright test 3cosmoshubAtomToNobleUSDC.spec.ts --project=chromium",
"visdeps": "bash ./src/scripts/visdeps.sh"
"visdeps": "bash ./src/scripts/visdeps.sh",
"update-registries": "npm update @initia/initia-registry chain-registry && npm run chains:generate"

},
"dependencies": {
"@fontsource/jost": "^5.0.16",
"@graz-sh/types": "^0.0.14",
"@heroicons/react": "^2.1.1",
"@initia/initia-registry": "^0.2.3",
"@keplr-wallet/cosmos": "0.12.189",
"@keplr-wallet/types": "^0.12.66",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-accordion": "^1.1.2",
Expand All @@ -44,13 +45,11 @@
"@vercel/edge-config": "^0.4.1",
"autoprefixer": "^10.4.17",
"axios": "^1.6.7",
"chain-registry": "latest",
"chain-registry": "^1.69.129",
"clsx": "^2.1.0",
"cosmjs-types": "0.8.x",
"date-fns": "^3.3.1",
"dotenv": "^16.4.5",
"download": "^8.0.0",
"match-sorter": "^6.3.3",
"next": "^14.1.0",
"next-seo": "^6.4.0",
"nuqs": "^1.17.4",
Expand All @@ -66,8 +65,7 @@
"undici": "^6.6.1",
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"zod": "^3.22.4",
"zustand": "^4.5.0"
"zod": "^3.22.4"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
Expand Down
3 changes: 0 additions & 3 deletions src/ast/_constants.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/ast/_types.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/ast/get-chains-paths.ts

This file was deleted.

Loading

0 comments on commit 936de5f

Please sign in to comment.