diff --git a/.github/workflows/npm_publish_initia_registry.yml b/.github/workflows/npm_publish_initia_registry.yml index c4ad687..84902f7 100644 --- a/.github/workflows/npm_publish_initia_registry.yml +++ b/.github/workflows/npm_publish_initia_registry.yml @@ -4,10 +4,10 @@ on: push: branches: ["main"] paths: - - _package/package.json + - _packages/initia_registry/package.json jobs: - build: + publish_types: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -17,10 +17,10 @@ jobs: node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: npm ci - working-directory: ./_package + working-directory: ./_packages/initia_registry - run: npm run build - working-directory: ./_package + working-directory: ./_packages/initia_registry - run: npm publish - working-directory: ./_package + working-directory: ./_packages/initia_registry env: NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} diff --git a/.github/workflows/npm_publish_types.yml b/.github/workflows/npm_publish_types.yml new file mode 100644 index 0000000..0400d9c --- /dev/null +++ b/.github/workflows/npm_publish_types.yml @@ -0,0 +1,26 @@ +name: NPM publish initia-registry-types + +on: + push: + branches: ["main"] + paths: + - _packages/types/package.json + +jobs: + publish_types: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: npm ci + working-directory: ./_packages/types + - run: npm run build + working-directory: ./_packages/types + - run: npm publish + working-directory: ./_packages/types + env: + NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} diff --git a/.gitignore b/.gitignore index e43b0f9..29bb3fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .DS_Store + +.vscode \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 6f910ed..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "cSpell.words": [ - "devnets" - ] -} \ No newline at end of file diff --git a/_packages/initia-registry/.gitignore b/_packages/initia-registry/.gitignore new file mode 100644 index 0000000..2bc1ad0 --- /dev/null +++ b/_packages/initia-registry/.gitignore @@ -0,0 +1,9 @@ +dist +node_modules + +# MacOS +.DS_Store + +# dist +main +esm \ No newline at end of file diff --git a/_packages/initia-registry/package-lock.json b/_packages/initia-registry/package-lock.json new file mode 100644 index 0000000..ade797e --- /dev/null +++ b/_packages/initia-registry/package-lock.json @@ -0,0 +1,544 @@ +{ + "name": "@initia/initia-registry", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@initia/initia-registry", + "version": "0.0.1", + "license": "MIT", + "dependencies": { + "@initia/initia-registry-types": "^0.0.12" + }, + "devDependencies": { + "glob": "^10.3.12", + "mkdirp": "^3.0.1", + "rimraf": "^5.0.5" + } + }, + "node_modules/@initia/initia-registry-types": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/@initia/initia-registry-types/-/initia-registry-types-0.0.12.tgz", + "integrity": "sha512-7ay1q0vgAkMamAkNRIO6CTjwGfUg/Z3MSh6PehynSn11eJ3X+UMJVNs9mewWqjijz1ofMQkiUpt/7gVtzSPtLw==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob": { + "version": "10.3.12", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz", + "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.6", + "minimatch": "^9.0.1", + "minipass": "^7.0.4", + "path-scurry": "^1.10.2" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/lru-cache": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.0.tgz", + "integrity": "sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "dev": true, + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz", + "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", + "dev": true, + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/zod": { + "version": "3.22.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", + "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/_packages/initia-registry/package.json b/_packages/initia-registry/package.json new file mode 100644 index 0000000..acffaf1 --- /dev/null +++ b/_packages/initia-registry/package.json @@ -0,0 +1,45 @@ +{ + "name": "@initia/initia-registry", + "version": "0.1.1", + "description": "Initia chain registry", + "main": "main/index.js", + "module": "esm/index.js", + "typings": "types/index.d.ts", + "directories": { + "lib": "src", + "test": "__tests__" + }, + "files": [ + "types", + "esm", + "main" + ], + "scripts": { + "build:cjs": "tsc -p tsconfig.json --outDir main --module commonjs --declaration false || true", + "build:mjs": "tsc -p tsconfig.json --outDir esm --module es2022 --declaration false || true", + "clean:main": "rimraf main", + "clean:esm": "rimraf esm", + "clean": "npm run clean:main && npm run clean:esm", + "build": "npm run clean && npm run build:mjs && npm run build:cjs", + "build:pkg": "node ./scripts/build.js", + "format:fix": "prettier --write \"./src/**/*.ts\"" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/initia-labs/initia-registry.git" + }, + "author": "InitiaLabs", + "license": "MIT", + "bugs": { + "url": "https://github.com/initia-labs/initia-registry/issues" + }, + "homepage": "https://github.com/initia-labs/initia-registry#readme", + "devDependencies": { + "glob": "^10.3.12", + "mkdirp": "^3.0.1", + "rimraf": "^5.0.5" + }, + "dependencies": { + "@initia/initia-registry-types": "^0.0.12" + } +} diff --git a/_packages/initia-registry/scripts/build.js b/_packages/initia-registry/scripts/build.js new file mode 100644 index 0000000..be63d2c --- /dev/null +++ b/_packages/initia-registry/scripts/build.js @@ -0,0 +1,585 @@ +const fs = require("fs"); +const { mkdirpSync } = require("mkdirp"); +const glob = require("glob").sync; +const path = require("path"); + +const NON_COSMOS_NETWORK_TYPE = "noncosmos"; + +const getValidVarName = (varName) => { + if (!/^[a-zA-Z_$]/.test(varName)) { + return `_${varName}`; + } + + return varName; +}; + +const write = (filePath, json, TypeName, isArray = false) => { + const strfy = JSON.stringify(json, null, 2); + const exportType = isArray ? TypeName + "[]" : TypeName; + fs.writeFileSync( + filePath, + `import { ${TypeName} } from '@initia/initia-registry-types'; +const info: ${exportType} = ${strfy}; +export default info;` + ); +}; + +const writeChainIndex = (filePath, chainObj) => { + fs.writeFileSync( + filePath, + `${ + chainObj.assets + ? `import _assets from './assets'; +` + : "" + }${ + chainObj.chain + ? `import _chain from './chain'; +` + : "" + }${ + chainObj.ibc + ? `import _ibc from './ibc'; +` + : "" + }${ + chainObj.ibc_chain1 + ? `import _ibc_chain1 from './ibc_chain1'; +` + : "" + } +${ + chainObj.assets + ? `export const assets = _assets; +` + : "" +}${ + chainObj.chain + ? `export const chain = _chain; +` + : "" + }${ + chainObj.ibc + ? `export const ibc = _ibc; +` + : "" + }${ + chainObj.ibc_chain1 + ? `export const ibc_chain1 = _ibc_chain1; +` + : "" + }` + ); +}; + +const writeNetworkAssets = (filePath, networkObj) => { + const validChain = []; + const importStat = Object.keys(networkObj) + .map((chain_name) => { + if (!networkObj[chain_name].assets) { + return null; + } + + validChain.push(chain_name); + return `import * as _${chain_name} from './${chain_name}'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validChain.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { AssetList } from '@initia/initia-registry-types'; + +${importStat} + +const assets: AssetList[] = [${validChain + .map((chain_name) => { + return `_${chain_name}.assets`; + }) + .join(",")}]; + +export default assets; +` + ); + + return true; +}; + +const writeNetworkChains = (filePath, networkObj) => { + const validChain = []; + + const importStat = Object.keys(networkObj) + .map((chain_name) => { + if (!networkObj[chain_name].chain) { + return null; + } + + validChain.push(chain_name); + return `import * as _${chain_name} from './${chain_name}'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validChain.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { Chain } from '@initia/initia-registry-types'; + +${importStat} + +const chains: Chain[] = [${validChain + .map((chain_name) => { + return `_${chain_name}.chain`; + }) + .join(",")}]; + +export default chains; +` + ); + + return true; +}; + +const writeNetworkIbc = (filePath, networkObj) => { + const validChain = []; + + const importStat = Object.keys(networkObj) + .map((chain_name) => { + if (!networkObj[chain_name].ibc_chain1) { + return null; + } + + validChain.push(chain_name); + return `import * as _${chain_name} from './${chain_name}'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validChain.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { IBCInfo } from '@initia/initia-registry-types'; + +${importStat} + +const ibc: IBCInfo[] = [${validChain + .map((chain_name) => { + return `..._${chain_name}.ibc_chain1`; + }) + .join(",")}]; + +export default ibc; +` + ); + + return true; +}; + +const writeNetworkIndex = (filePath, networkObj) => { + fs.writeFileSync( + filePath, + `${Object.keys(networkObj) + .map((chain_name) => { + return `export * as ${getValidVarName( + chain_name + )} from './${chain_name}'`; + }) + .filter(Boolean) + .join(";\n")}` + ); +}; + +const writeNetworkAll = (filePath, isAssets, isChains, isIbc) => { + fs.writeFileSync( + filePath, + `${ + isAssets + ? `import assets from './assets'; +` + : "" + }${ + isChains + ? `import chains from './chains'; +` + : "" + }${ + isIbc + ? `import ibc from './ibc'; +` + : "" + } + + export default { + ${isAssets ? "assets," : ""} + ${isChains ? "chains," : ""} + ${isIbc ? "ibc," : ""} + }; + + export { + ${isAssets ? "assets," : ""} + ${isChains ? "chains," : ""} + ${isIbc ? "ibc," : ""} + }; +` + ); +}; + +const writeRootAssets = (filePath, obj) => { + const validNetwork = []; + const importStat = Object.keys(obj) + .map((network_type) => { + if (!obj[network_type].all_files.isAssets) { + return null; + } + + validNetwork.push(network_type); + return `import * as _${network_type} from './${network_type}/all'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validNetwork.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { AssetList } from '@initia/initia-registry-types'; + +${importStat} + +const assets: AssetList[] = [${validNetwork + .map((network_type) => { + return `..._${network_type}.assets`; + }) + .join(",")}]; + +export default assets; +` + ); + + return true; +}; + +const writeRootChains = (filePath, obj) => { + const validNetwork = []; + + const importStat = Object.keys(obj) + .map((network_type) => { + if (!obj[network_type].all_files.isChains) { + return null; + } + + validNetwork.push(network_type); + return `import * as _${network_type} from './${network_type}/all'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validNetwork.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { Chain } from '@initia/initia-registry-types'; + +${importStat} + +const chains: Chain[] = [${validNetwork + .map((network_type) => { + return `..._${network_type}.chains`; + }) + .join(",")}]; + +export default chains; +` + ); + + return true; +}; + +const writeRootIbc = (filePath, obj) => { + const validNetwork = []; + + const importStat = Object.keys(obj) + .map((network_type) => { + if (!obj[network_type].all_files.isIbc) { + return null; + } + + validNetwork.push(network_type); + return `import * as _${network_type} from './${network_type}/all'`; + }) + .filter(Boolean) + .join(";\n"); + + if (!validNetwork.length) { + return false; + } + + fs.writeFileSync( + filePath, + `import { IBCInfo } from '@initia/initia-registry-types'; + +${importStat} + +const ibc: IBCInfo[] = [${validNetwork + .map((network_type) => { + return `..._${network_type}.ibc`; + }) + .join(",")}]; + +export default ibc; +` + ); + + return true; +}; + +const writeRootAll = (filePath) => { + fs.writeFileSync( + filePath, + `import assets from './assets'; +import chains from './chains'; +import ibc from './ibc'; + +export default { + assets, + chains, + ibc +}; + +export { assets, chains, ibc };` + ); +}; + +const writeRootIndex = (filePath, obj) => { + let imports = Object.keys(obj) + .map((network_type) => { + return `export * from './${network_type}'`; + }) + .filter(Boolean) + .join(";\n"); + + imports = `${imports}; import all from './all'; + + export default all; + + const { assets, chains, ibc }= all; + + export { assets, chains, ibc }; + `; + + fs.writeFileSync(filePath, `${imports}`); +}; + +const initChainBlock = (obj, network_type, chain_name) => { + if (!obj[network_type]) { + obj[network_type] = {}; + } + + if (!obj[network_type][chain_name]) { + obj[network_type][chain_name] = {}; + } +}; + +const initIBC = (obj, ibcFieldName) => { + if (!obj[ibcFieldName]) { + obj[ibcFieldName] = []; + } +}; + +const NON_INFO_DIRS = ["_packages", "_scripts", "_template", ".github"]; + +const chainPaths = glob(`${__dirname}/../../../*/*/chain.json`).filter((a) => { + const spliter = "initia-registry"; + const index = a.indexOf(spliter); + const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)]; + let dir = splitedDirs.pop(); + dir = path.basename(path.dirname(dir)); + return !NON_INFO_DIRS.includes(dir); +}); + +const paths = glob(`${__dirname}/../../../*/*/*.json`).filter((a) => { + const spliter = "initia-registry"; + const index = a.indexOf(spliter); + const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)]; + console.log(splitedDirs); + const filePath = splitedDirs.pop(); + const dir = path.basename(path.dirname(filePath)); + return ( + !NON_INFO_DIRS.includes(dir) && path.basename(filePath) !== "chain.json" + ); +}); + +const chainNetworkMap = {}; + +const result = {}; + +chainPaths.forEach((file) => { + const data = JSON.parse(fs.readFileSync(file, "utf-8")); + if (!data.$schema) { + console.warn("problematic data:"); + console.log(data); + return; + } + + if (data.$schema.endsWith("chain.schema.json")) { + if (!data.slip44) data.slip44 = 118; + if (data.codebase) { + data.codebase = { + cosmos_sdk_version: data.codebase.cosmos_sdk_version, + cosmwasm_enabled: data.codebase.cosmwasm_enabled, + cosmwasm_version: data.codebase.cosmwasm_version, + }; + } + delete data.peers; + + if (!data.chain_name) { + console.log(`problematic file: ${file}`); + return; + } + + initChainBlock(result, data.network_type, data.chain_name); + + result[data.network_type][data.chain_name].chain = data; + + chainNetworkMap[data.chain_name] = data.network_type; + } +}); + +paths.forEach((file) => { + const data = JSON.parse(fs.readFileSync(file, "utf-8")); + if (!data.$schema) { + console.warn("problematic data:"); + console.log(data); + return; + } + + if (data.$schema.endsWith("assetlist.schema.json")) { + const network_type = chainNetworkMap[data.chain_name]; + + if (!network_type) { + initChainBlock(result, NON_COSMOS_NETWORK_TYPE, data.chain_name); + result[NON_COSMOS_NETWORK_TYPE][data.chain_name].assets = data; + } else { + result[network_type][data.chain_name].assets = data; + } + } + + if (data.$schema.endsWith("ibc_data.schema.json")) { + const network_type1 = chainNetworkMap[data.chain_1.chain_name]; + + if (!network_type1) { + initChainBlock(result, NON_COSMOS_NETWORK_TYPE, data.chain_1.chain_name); + initIBC(result[NON_COSMOS_NETWORK_TYPE][data.chain_1.chain_name], "ibc"); + initIBC( + result[NON_COSMOS_NETWORK_TYPE][data.chain_1.chain_name], + "ibc_chain1" + ); + result[NON_COSMOS_NETWORK_TYPE][data.chain_1.chain_name].ibc.push(data); + result[NON_COSMOS_NETWORK_TYPE][data.chain_1.chain_name].ibc_chain1.push( + data + ); + } else { + initIBC(result[network_type1][data.chain_1.chain_name], "ibc"); + initIBC(result[network_type1][data.chain_1.chain_name], "ibc_chain1"); + result[network_type1][data.chain_1.chain_name].ibc.push(data); + result[network_type1][data.chain_1.chain_name].ibc_chain1.push(data); + } + + const network_type2 = chainNetworkMap[data.chain_2.chain_name]; + + if (!network_type2) { + initChainBlock(result, NON_COSMOS_NETWORK_TYPE, data.chain_2.chain_name); + initIBC(result[NON_COSMOS_NETWORK_TYPE][data.chain_2.chain_name], "ibc"); + result[NON_COSMOS_NETWORK_TYPE][data.chain_2.chain_name].ibc.push(data); + } else { + initIBC(result[network_type2][data.chain_2.chain_name], "ibc"); + result[network_type2][data.chain_2.chain_name].ibc.push(data); + } + } +}); + +const SRC_ROOT = `${__dirname}/../src`; +fs.rmSync(SRC_ROOT, { recursive: true }); + +Object.keys(result).forEach((network_type) => { + const networkFolder = path.join(SRC_ROOT, network_type); + + Object.keys(result[network_type]).forEach((chain_name) => { + const chainFolderPath = path.join(networkFolder, chain_name); + mkdirpSync(chainFolderPath); + + const chainObj = result[network_type][chain_name]; + + if (chainObj.chain) { + const chainFilePath = path.join(chainFolderPath, "chain.ts"); + write(chainFilePath, chainObj.chain, "Chain", false); + } + + if (chainObj.assets) { + const assetsFilePath = path.join(chainFolderPath, "assets.ts"); + write(assetsFilePath, chainObj.assets, "AssetList", false); + } + + if (chainObj.ibc) { + const ibcFilePath = path.join(chainFolderPath, "ibc.ts"); + write(ibcFilePath, chainObj.ibc, "IBCInfo", true); + } + + if (chainObj.ibc_chain1) { + const ibc1FilePath = path.join(chainFolderPath, "ibc_chain1.ts"); + write(ibc1FilePath, chainObj.ibc_chain1, "IBCInfo", true); + } + + const indexFilePath = path.join(chainFolderPath, "index.ts"); + writeChainIndex(indexFilePath, chainObj); + }); + + const assetsFilePath = path.join(networkFolder, "assets.ts"); + const isAssets = writeNetworkAssets(assetsFilePath, result[network_type]); + + const chainsFilePath = path.join(networkFolder, "chains.ts"); + const isChains = writeNetworkChains(chainsFilePath, result[network_type]); + + const ibcFilePath = path.join(networkFolder, "ibc.ts"); + const isIbc = writeNetworkIbc(ibcFilePath, result[network_type]); + + const indexFilePath = path.join(networkFolder, "index.ts"); + writeNetworkIndex(indexFilePath, result[network_type]); + + const allFilePath = path.join(networkFolder, "all.ts"); + result[network_type]["all_files"] = { + isAssets, + isChains, + isIbc, + }; + writeNetworkAll(allFilePath, isAssets, isChains, isIbc); +}); + +const assetsRootFilePath = path.join(SRC_ROOT, "assets.ts"); +writeRootAssets(assetsRootFilePath, result); + +const chainsRootFilePath = path.join(SRC_ROOT, "chains.ts"); +writeRootChains(chainsRootFilePath, result); + +const ibcRootFilePath = path.join(SRC_ROOT, "ibc.ts"); +writeRootIbc(ibcRootFilePath, result); + +const allRootFilePath = path.join(SRC_ROOT, "all.ts"); +writeRootAll(allRootFilePath); + +const indexRootFilePath = path.join(SRC_ROOT, "index.ts"); +writeRootIndex(indexRootFilePath, result); diff --git a/_packages/initia-registry/src/all.ts b/_packages/initia-registry/src/all.ts new file mode 100644 index 0000000..9f31487 --- /dev/null +++ b/_packages/initia-registry/src/all.ts @@ -0,0 +1,11 @@ +import assets from "./assets"; +import chains from "./chains"; +import ibc from "./ibc"; + +export default { + assets, + chains, + ibc, +}; + +export { assets, chains, ibc }; diff --git a/_packages/initia-registry/src/assets.ts b/_packages/initia-registry/src/assets.ts new file mode 100644 index 0000000..5a7f0ba --- /dev/null +++ b/_packages/initia-registry/src/assets.ts @@ -0,0 +1,7 @@ +import { AssetList } from "@initia/initia-registry-types"; + +import * as _devnet from "./devnet/all"; + +const assets: AssetList[] = [..._devnet.assets]; + +export default assets; diff --git a/_packages/initia-registry/src/chains.ts b/_packages/initia-registry/src/chains.ts new file mode 100644 index 0000000..8f02e36 --- /dev/null +++ b/_packages/initia-registry/src/chains.ts @@ -0,0 +1,7 @@ +import { Chain } from "@initia/initia-registry-types"; + +import * as _devnet from "./devnet/all"; + +const chains: Chain[] = [..._devnet.chains]; + +export default chains; diff --git a/_packages/initia-registry/src/devnet/all.ts b/_packages/initia-registry/src/devnet/all.ts new file mode 100644 index 0000000..9f31487 --- /dev/null +++ b/_packages/initia-registry/src/devnet/all.ts @@ -0,0 +1,11 @@ +import assets from "./assets"; +import chains from "./chains"; +import ibc from "./ibc"; + +export default { + assets, + chains, + ibc, +}; + +export { assets, chains, ibc }; diff --git a/_packages/initia-registry/src/devnet/assets.ts b/_packages/initia-registry/src/devnet/assets.ts new file mode 100644 index 0000000..17e162e --- /dev/null +++ b/_packages/initia-registry/src/devnet/assets.ts @@ -0,0 +1,13 @@ +import { AssetList } from "@initia/initia-registry-types"; + +import * as _miniwasm from "./miniwasm"; +import * as _minimove from "./minimove"; +import * as _initia from "./initia"; + +const assets: AssetList[] = [ + _miniwasm.assets, + _minimove.assets, + _initia.assets, +]; + +export default assets; diff --git a/_packages/initia-registry/src/devnet/chains.ts b/_packages/initia-registry/src/devnet/chains.ts new file mode 100644 index 0000000..bc91382 --- /dev/null +++ b/_packages/initia-registry/src/devnet/chains.ts @@ -0,0 +1,9 @@ +import { Chain } from "@initia/initia-registry-types"; + +import * as _miniwasm from "./miniwasm"; +import * as _minimove from "./minimove"; +import * as _initia from "./initia"; + +const chains: Chain[] = [_miniwasm.chain, _minimove.chain, _initia.chain]; + +export default chains; diff --git a/_packages/initia-registry/src/devnet/ibc.ts b/_packages/initia-registry/src/devnet/ibc.ts new file mode 100644 index 0000000..b559af1 --- /dev/null +++ b/_packages/initia-registry/src/devnet/ibc.ts @@ -0,0 +1,7 @@ +import { IBCInfo } from "@initia/initia-registry-types"; + +import * as _initia from "./initia"; + +const ibc: IBCInfo[] = [..._initia.ibc_chain1]; + +export default ibc; diff --git a/_packages/initia-registry/src/devnet/index.ts b/_packages/initia-registry/src/devnet/index.ts new file mode 100644 index 0000000..30631d7 --- /dev/null +++ b/_packages/initia-registry/src/devnet/index.ts @@ -0,0 +1,3 @@ +export * as miniwasm from "./miniwasm"; +export * as minimove from "./minimove"; +export * as initia from "./initia"; diff --git a/_packages/initia-registry/src/devnet/initia/assets.ts b/_packages/initia-registry/src/devnet/initia/assets.ts new file mode 100644 index 0000000..ce7b3e1 --- /dev/null +++ b/_packages/initia-registry/src/devnet/initia/assets.ts @@ -0,0 +1,150 @@ +import { AssetList } from "@initia/initia-registry-types"; +const info: AssetList = { + $schema: "../../assetlist.schema.json", + chain_name: "initia", + assets: [ + { + description: "The native token of Initia", + denom_units: [ + { + denom: "uinit", + exponent: 0, + }, + { + denom: "INIT", + exponent: 6, + }, + ], + base: "uinit", + display: "INIT", + name: "Initia Native Token", + symbol: "INIT", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg", + }, + }, + { + description: "The fake ETH", + denom_units: [ + { + denom: "ueth", + exponent: 0, + }, + { + denom: "ETH", + exponent: 6, + }, + ], + base: "ueth", + display: "ETH", + name: "Fake ETH Token", + symbol: "ETH", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.svg", + }, + }, + { + description: "The fake USDC", + denom_units: [ + { + denom: "uusdc", + exponent: 0, + }, + { + denom: "USDC", + exponent: 6, + }, + ], + base: "uusdc", + display: "USDC", + name: "Fake USDC Token", + symbol: "USDC", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.svg", + }, + }, + { + description: "The LP token of USDC-INIT", + denom_units: [ + { + denom: + "move/dbf06c48af3984ec6d9ae8a9aa7dbb0bb1e784aa9b8c4a5681af660cf8558d7d", + exponent: 0, + }, + { + denom: "USDC-INIT LP", + exponent: 6, + }, + ], + base: "move/dbf06c48af3984ec6d9ae8a9aa7dbb0bb1e784aa9b8c4a5681af660cf8558d7d", + display: "USDC-INIT LP", + name: "USDC-INIT LP Token", + symbol: "USDC-INIT LP", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.svg", + }, + }, + { + description: "The LP token of ETH-INIT", + denom_units: [ + { + denom: + "move/a2b0d3c8e53e379ede31f3a361ff02716d50ec53c6b65b8c48a81d5b06548200", + exponent: 0, + }, + { + denom: "ETH-INIT LP", + exponent: 6, + }, + ], + base: "move/a2b0d3c8e53e379ede31f3a361ff02716d50ec53c6b65b8c48a81d5b06548200", + display: "ETH-INIT LP", + name: "ETH-INIT LP Token", + symbol: "ETH-INIT LP", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.svg", + }, + }, + ], +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/initia/chain.ts b/_packages/initia-registry/src/devnet/initia/chain.ts new file mode 100644 index 0000000..505a996 --- /dev/null +++ b/_packages/initia-registry/src/devnet/initia/chain.ts @@ -0,0 +1,140 @@ +import { Chain } from "@initia/initia-registry-types"; +const info: Chain = { + $schema: "../../chain.schema.json", + chain_name: "initia", + chain_id: "mahalo-2", + website: "https://initia.xyz", + pretty_name: "Initia", + status: "live", + network_type: "devnet", + bech32_prefix: "init", + daemon_name: "initiad", + node_home: "$HOME/.initia", + key_algos: ["secp256k1"], + slip44: 118, + fees: { + fee_tokens: [ + { + denom: "uinit", + fixed_min_gas_price: 0.15, + low_gas_price: 0.15, + average_gas_price: 0.15, + high_gas_price: 0.4, + }, + { + denom: "ueth", + }, + { + denom: "uusdc", + }, + ], + }, + staking: { + staking_tokens: [ + { + denom: "uinit", + }, + { + denom: + "move/dbf06c48af3984ec6d9ae8a9aa7dbb0bb1e784aa9b8c4a5681af660cf8558d7d", + }, + { + denom: + "move/a2b0d3c8e53e379ede31f3a361ff02716d50ec53c6b65b8c48a81d5b06548200", + }, + ], + }, + codebase: {}, + description: "Initia Closed Devnet", + apis: { + rpc: [ + { + address: "https://rpc.mahalo-2.initia.xyz", + provider: "Foundation", + }, + ], + rest: [ + { + address: "https://lcd.mahalo-2.initia.xyz", + provider: "Foundation", + }, + ], + api: [ + { + address: "https://api.mahalo-2.initia.xyz", + provider: "Foundation", + }, + ], + grpc: [ + { + address: "grpc://34.87.121.251:9090", + provider: "Foundation", + }, + ], + }, + explorers: [ + { + kind: "explorer", + url: "https://explorer.mahalo-2.initia.xyz/?layer=l1%2520testnet", + tx_page: + "https://explorer.mahalo-2.initia.xyz/tx/${txHash}?layer=l1%20testnet", + account_page: + "https://explorer.mahalo-2.initia.xyz/address/${accountAddress}?layer=l1%20testnet", + }, + { + kind: "initia scan", + url: "https://scan.initia.xyz/mahalo-2", + tx_page: "https://scan.initia.xyz/mahalo-2/txs/${txHash}", + account_page: + "https://scan.initia.xyz/mahalo-2/accounts/${accountAddress}", + }, + ], + faucets: [ + { + kind: "faucet", + url: "https://faucet.mahalo-2.initia.xyz/", + }, + ], + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg", + }, + metadata: { + is_l1: true, + ibc_channels: [ + { + chain_id: "minimove-2", + port_id: "transfer", + channel_id: "channel-0", + version: "ics20-1", + }, + { + chain_id: "minimove-2", + port_id: "nft-transfer", + channel_id: "channel-2", + version: "ics721-1", + }, + { + chain_id: "miniwasm-2", + port_id: "transfer", + channel_id: "channel-1", + version: "ics20-1", + }, + { + chain_id: "miniwasm-2", + port_id: "nft-transfer", + channel_id: "channel-3", + version: "ics721-1", + }, + ], + assetlist: + "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/assetlist.json", + }, +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/initia/ibc.ts b/_packages/initia-registry/src/devnet/initia/ibc.ts new file mode 100644 index 0000000..baf265c --- /dev/null +++ b/_packages/initia-registry/src/devnet/initia/ibc.ts @@ -0,0 +1,66 @@ +import { IBCInfo } from "@initia/initia-registry-types"; +const info: IBCInfo[] = [ + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-1", + connection_id: "connection-1", + }, + chain_2: { + chain_name: "miniwasm", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-1", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + chain_2: { + chain_name: "minimove", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-0", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, +]; +export default info; diff --git a/_packages/initia-registry/src/devnet/initia/ibc_chain1.ts b/_packages/initia-registry/src/devnet/initia/ibc_chain1.ts new file mode 100644 index 0000000..baf265c --- /dev/null +++ b/_packages/initia-registry/src/devnet/initia/ibc_chain1.ts @@ -0,0 +1,66 @@ +import { IBCInfo } from "@initia/initia-registry-types"; +const info: IBCInfo[] = [ + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-1", + connection_id: "connection-1", + }, + chain_2: { + chain_name: "miniwasm", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-1", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + chain_2: { + chain_name: "minimove", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-0", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, +]; +export default info; diff --git a/_packages/initia-registry/src/devnet/initia/index.ts b/_packages/initia-registry/src/devnet/initia/index.ts new file mode 100644 index 0000000..33b6da2 --- /dev/null +++ b/_packages/initia-registry/src/devnet/initia/index.ts @@ -0,0 +1,9 @@ +import _assets from "./assets"; +import _chain from "./chain"; +import _ibc from "./ibc"; +import _ibc_chain1 from "./ibc_chain1"; + +export const assets = _assets; +export const chain = _chain; +export const ibc = _ibc; +export const ibc_chain1 = _ibc_chain1; diff --git a/_packages/initia-registry/src/devnet/minimove/assets.ts b/_packages/initia-registry/src/devnet/minimove/assets.ts new file mode 100644 index 0000000..edbfba0 --- /dev/null +++ b/_packages/initia-registry/src/devnet/minimove/assets.ts @@ -0,0 +1,66 @@ +import { AssetList } from "@initia/initia-registry-types"; +const info: AssetList = { + $schema: "../../assetlist.schema.json", + chain_name: "minimove", + assets: [ + { + description: "The native token of Initia", + denom_units: [ + { + denom: + "l2/2588fd87a8e081f6a557f43ff14f05dddf5e34cb27afcefd6eaf81f1daea30d0", + exponent: 0, + }, + { + denom: "INIT", + exponent: 6, + }, + ], + base: "l2/2588fd87a8e081f6a557f43ff14f05dddf5e34cb27afcefd6eaf81f1daea30d0", + display: "INIT", + name: "Initia Native Token", + symbol: "INIT", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + }, + { + description: "The fake USDC", + denom_units: [ + { + denom: + "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + exponent: 0, + }, + { + denom: "USDC", + exponent: 6, + }, + ], + base: "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + display: "USDC", + name: "USDC", + symbol: "USDC", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg", + }, + }, + ], +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/minimove/chain.ts b/_packages/initia-registry/src/devnet/minimove/chain.ts new file mode 100644 index 0000000..09fc507 --- /dev/null +++ b/_packages/initia-registry/src/devnet/minimove/chain.ts @@ -0,0 +1,115 @@ +import { Chain } from "@initia/initia-registry-types"; +const info: Chain = { + $schema: "../../chain.schema.json", + chain_name: "minimove", + chain_id: "minimove-2", + website: "https://initia.xyz", + pretty_name: "Minimove", + status: "live", + network_type: "devnet", + bech32_prefix: "init", + daemon_name: "minitiad", + node_home: "$HOME/.minitia", + key_algos: ["secp256k1"], + slip44: 118, + fees: { + fee_tokens: [ + { + denom: + "l2/2588fd87a8e081f6a557f43ff14f05dddf5e34cb27afcefd6eaf81f1daea30d0", + fixed_min_gas_price: 0.15, + low_gas_price: 0.15, + average_gas_price: 0.15, + high_gas_price: 0.4, + }, + { + denom: + "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + fixed_min_gas_price: 0.15, + low_gas_price: 0.15, + average_gas_price: 0.15, + high_gas_price: 0.4, + }, + ], + }, + staking: { + staking_tokens: [], + }, + codebase: {}, + description: "Minimove Closed Devnet", + apis: { + rpc: [ + { + address: "https://rpc.minimove-2.initia.xyz", + provider: "Foundation", + }, + ], + rest: [ + { + address: "https://lcd.minimove-2.initia.xyz", + provider: "Foundation", + }, + ], + api: [ + { + address: "https://api.minimove-2.initia.xyz", + provider: "Foundation", + }, + ], + grpc: [ + { + address: "grpc://34.124.237.204:9090", + provider: "Foundation", + }, + ], + }, + explorers: [ + { + kind: "explorer", + url: "https://explorer.minimove-2.initia.xyz/?layer=minimove", + tx_page: + "https://explorer.minimove-2.initia.xyz/tx/${txHash}?layer=minimove", + account_page: + "https://explorer.minimove-2.initia.xyz/address/${accountAddress}?layer=minimove", + }, + { + kind: "initia scan", + url: "https://scan.initia.xyz/minimove-2", + tx_page: "https://scan.initia.xyz/minimove-2/txs/${txHash}", + account_page: + "https://scan.initia.xyz/minimove-2/accounts/${accountAddress}", + }, + ], + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + metadata: { + op_bridge_id: "2", + creator: "0x723e7894466de983976cc54302f9c436b3291106", + op_denoms: ["uinit"], + ibc_channels: [ + { + chain_id: "mahalo-2", + port_id: "transfer", + channel_id: "channel-0", + version: "ics20-1", + }, + { + chain_id: "mahalo-2", + port_id: "nft-transfer", + channel_id: "channel-1", + version: "ics721-1", + }, + ], + assetlist: + "https://raw.githubusercontent.com/initia-labs/initia-registry/mahalo-2/main/minimove/assetlist.json", + }, +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/minimove/ibc.ts b/_packages/initia-registry/src/devnet/minimove/ibc.ts new file mode 100644 index 0000000..c03489d --- /dev/null +++ b/_packages/initia-registry/src/devnet/minimove/ibc.ts @@ -0,0 +1,35 @@ +import { IBCInfo } from "@initia/initia-registry-types"; +const info: IBCInfo[] = [ + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + chain_2: { + chain_name: "minimove", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-0", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, +]; +export default info; diff --git a/_packages/initia-registry/src/devnet/minimove/index.ts b/_packages/initia-registry/src/devnet/minimove/index.ts new file mode 100644 index 0000000..2f50cc2 --- /dev/null +++ b/_packages/initia-registry/src/devnet/minimove/index.ts @@ -0,0 +1,7 @@ +import _assets from "./assets"; +import _chain from "./chain"; +import _ibc from "./ibc"; + +export const assets = _assets; +export const chain = _chain; +export const ibc = _ibc; diff --git a/_packages/initia-registry/src/devnet/miniwasm/assets.ts b/_packages/initia-registry/src/devnet/miniwasm/assets.ts new file mode 100644 index 0000000..688ebb8 --- /dev/null +++ b/_packages/initia-registry/src/devnet/miniwasm/assets.ts @@ -0,0 +1,66 @@ +import { AssetList } from "@initia/initia-registry-types"; +const info: AssetList = { + $schema: "../../assetlist.schema.json", + chain_name: "miniwasm", + assets: [ + { + description: "The native token of Initia", + denom_units: [ + { + denom: + "l2/771d639f30fbe45e3fbca954ffbe2fcc26f915f5513c67a4a2d0bc1d635bdefd", + exponent: 0, + }, + { + denom: "INIT", + exponent: 6, + }, + ], + base: "l2/771d639f30fbe45e3fbca954ffbe2fcc26f915f5513c67a4a2d0bc1d635bdefd", + display: "INIT", + name: "Initia Native Token", + symbol: "INIT", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg", + }, + }, + { + description: "The fake USDC", + denom_units: [ + { + denom: + "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + exponent: 0, + }, + { + denom: "USDC", + exponent: 6, + }, + ], + base: "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + display: "USDC", + name: "USDC", + symbol: "USDC", + coingecko_id: "", + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg", + }, + }, + ], +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/miniwasm/chain.ts b/_packages/initia-registry/src/devnet/miniwasm/chain.ts new file mode 100644 index 0000000..aa4739d --- /dev/null +++ b/_packages/initia-registry/src/devnet/miniwasm/chain.ts @@ -0,0 +1,116 @@ +import { Chain } from "@initia/initia-registry-types"; +const info: Chain = { + $schema: "../../chain.schema.json", + chain_name: "miniwasm", + chain_id: "miniwasm-2", + website: "https://initia.xyz", + pretty_name: "Miniwasm", + status: "live", + network_type: "devnet", + bech32_prefix: "init", + daemon_name: "minitiad", + node_home: "$HOME/.minitia", + key_algos: ["secp256k1"], + slip44: 118, + fees: { + fee_tokens: [ + { + denom: + "l2/771d639f30fbe45e3fbca954ffbe2fcc26f915f5513c67a4a2d0bc1d635bdefd", + fixed_min_gas_price: 0.15, + low_gas_price: 0.15, + average_gas_price: 0.15, + high_gas_price: 0.4, + }, + { + denom: + "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5", + fixed_min_gas_price: 0.15, + low_gas_price: 0.15, + average_gas_price: 0.15, + high_gas_price: 0.4, + }, + ], + }, + staking: { + staking_tokens: [], + }, + codebase: {}, + description: "miniwasm Closed Devnet", + apis: { + rpc: [ + { + address: "https://rpc.miniwasm-2.initia.xyz", + provider: "Foundation", + }, + ], + rest: [ + { + address: "https://lcd.miniwasm-2.initia.xyz", + provider: "Foundation", + }, + ], + api: [ + { + address: "https://api.miniwasm-2.initia.xyz", + provider: "Foundation", + }, + ], + grpc: [ + { + address: "grpc://34.87.100.162:9090", + provider: "Foundation", + }, + ], + }, + explorers: [ + { + kind: "explorer", + url: "https://explorer.miniwasm-2.initia.xyz/?layer=miniwasm", + tx_page: + "https://explorer.miniwasm-2.initia.xyz/tx/${txHash}?layer=miniwasm", + account_page: + "https://explorer.miniwasm-2.initia.xyz/address/${accountAddress}?layer=miniwasm", + }, + { + kind: "initia scan", + url: "https://scan.initia.xyz/miniwasm-2", + tx_page: "https://scan.initia.xyz/miniwasm-2/txs/${txHash}", + account_page: + "https://scan.initia.xyz/miniwasm-2/accounts/${accountAddress}", + }, + ], + images: [ + { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.svg", + }, + ], + logo_URIs: { + png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.png", + svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.svg", + }, + metadata: { + op_bridge_id: "1", + creator: "0xf324bf4f355abec6d49fdfd0d45419ba99d363d9", + op_denoms: ["uinit"], + ibc_channels: [ + { + chain_id: "mahalo-2", + port_id: "transfer", + channel_id: "channel-0", + version: "ics20-1", + }, + { + chain_id: "mahalo-2", + port_id: + "wasm.init1wug8sewp6cedgkmrmvhl3lf3tulagm9hnvy8p0rppz9yjw0g4wtq7947m6", + channel_id: "channel-1", + version: "ics721-1", + }, + ], + assetlist: + "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/assetlist.json", + }, +}; +export default info; diff --git a/_packages/initia-registry/src/devnet/miniwasm/ibc.ts b/_packages/initia-registry/src/devnet/miniwasm/ibc.ts new file mode 100644 index 0000000..7b3055a --- /dev/null +++ b/_packages/initia-registry/src/devnet/miniwasm/ibc.ts @@ -0,0 +1,35 @@ +import { IBCInfo } from "@initia/initia-registry-types"; +const info: IBCInfo[] = [ + { + $schema: "../../ibc_data.schema.json", + chain_1: { + chain_name: "initia", + client_id: "07-tendermint-1", + connection_id: "connection-1", + }, + chain_2: { + chain_name: "miniwasm", + client_id: "07-tendermint-0", + connection_id: "connection-0", + }, + channels: [ + { + chain_1: { + channel_id: "channel-1", + port_id: "transfer", + }, + chain_2: { + channel_id: "channel-0", + port_id: "transfer", + }, + ordering: "unordered", + version: "ics20-1", + tags: { + status: "live", + preferred: true, + }, + }, + ], + }, +]; +export default info; diff --git a/_packages/initia-registry/src/devnet/miniwasm/index.ts b/_packages/initia-registry/src/devnet/miniwasm/index.ts new file mode 100644 index 0000000..2f50cc2 --- /dev/null +++ b/_packages/initia-registry/src/devnet/miniwasm/index.ts @@ -0,0 +1,7 @@ +import _assets from "./assets"; +import _chain from "./chain"; +import _ibc from "./ibc"; + +export const assets = _assets; +export const chain = _chain; +export const ibc = _ibc; diff --git a/_packages/initia-registry/src/ibc.ts b/_packages/initia-registry/src/ibc.ts new file mode 100644 index 0000000..1cea33b --- /dev/null +++ b/_packages/initia-registry/src/ibc.ts @@ -0,0 +1,7 @@ +import { IBCInfo } from "@initia/initia-registry-types"; + +import * as _devnet from "./devnet/all"; + +const ibc: IBCInfo[] = [..._devnet.ibc]; + +export default ibc; diff --git a/_packages/initia-registry/src/index.ts b/_packages/initia-registry/src/index.ts new file mode 100644 index 0000000..d882eb9 --- /dev/null +++ b/_packages/initia-registry/src/index.ts @@ -0,0 +1,8 @@ +export * from "./devnet"; +import all from "./all"; + +export default all; + +const { assets, chains, ibc } = all; + +export { assets, chains, ibc }; diff --git a/_packages/initia-registry/tsconfig.json b/_packages/initia-registry/tsconfig.json new file mode 100644 index 0000000..b622f62 --- /dev/null +++ b/_packages/initia-registry/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "rootDir": "src", + "skipLibCheck": true, + "emitDeclarationOnly": false, + "declaration": true, + "esModuleInterop": true, + "target": "es2022", + "module": "es2022", + "isolatedModules": true, + "allowJs": true, + "downlevelIteration": true, + "moduleResolution": "node", + "resolveJsonModule": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules"] +} diff --git a/_packages/initia-registry/types/assets.d.ts b/_packages/initia-registry/types/assets.d.ts new file mode 100644 index 0000000..12b5a3d --- /dev/null +++ b/_packages/initia-registry/types/assets.d.ts @@ -0,0 +1,3 @@ +import { AssetList } from "@initia/initia-registry-types"; +declare const assets: AssetList[]; +export default assets; diff --git a/_packages/initia-registry/types/chains.d.ts b/_packages/initia-registry/types/chains.d.ts new file mode 100644 index 0000000..05aa5ca --- /dev/null +++ b/_packages/initia-registry/types/chains.d.ts @@ -0,0 +1,3 @@ +import { Chain } from "@initia/initia-registry-types"; +declare const chains: Chain[]; +export default chains; diff --git a/_packages/initia-registry/types/ibc.d.ts b/_packages/initia-registry/types/ibc.d.ts new file mode 100644 index 0000000..fcb4fb7 --- /dev/null +++ b/_packages/initia-registry/types/ibc.d.ts @@ -0,0 +1,3 @@ +import { IBCInfo } from "@initia/initia-registry-types"; +declare const ibc: IBCInfo[]; +export default ibc; diff --git a/_packages/initia-registry/types/index.d.ts b/_packages/initia-registry/types/index.d.ts new file mode 100644 index 0000000..43635f1 --- /dev/null +++ b/_packages/initia-registry/types/index.d.ts @@ -0,0 +1,10 @@ +import assets from "./assets"; +import chains from "./chains"; +import ibc from "./ibc"; +declare const _default: { + assets: import("@chain-registry/types").AssetList[]; + chains: import("@chain-registry/types").Chain[]; + ibc: import("@chain-registry/types").IBCInfo[]; +}; +export default _default; +export { assets, chains, ibc }; diff --git a/_package/.gitignore b/_packages/types/.gitignore similarity index 100% rename from _package/.gitignore rename to _packages/types/.gitignore diff --git a/_package/.npmignore b/_packages/types/.npmignore similarity index 100% rename from _package/.npmignore rename to _packages/types/.npmignore diff --git a/_package/package-lock.json b/_packages/types/package-lock.json similarity index 92% rename from _package/package-lock.json rename to _packages/types/package-lock.json index 7041a3f..78f123a 100644 --- a/_package/package-lock.json +++ b/_packages/types/package-lock.json @@ -1,22 +1,21 @@ { - "name": "@initia/initia-registry", - "version": "0.0.4", + "name": "@initia/initia-registry-types", + "version": "0.0.11", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@initia/initia-registry", - "version": "0.0.4", + "name": "@initia/initia-registry-types", + "version": "0.0.11", "license": "MIT", "dependencies": { - "json-schema-to-typescript": "^13.1.2", - "json-schema-to-zod": "^1.2.0", - "json5": "^2.2.3", "zod": "^3.22.4" }, "devDependencies": { + "json-schema-to-typescript": "^13.1.2", + "json-schema-to-zod": "^1.2.0", + "json5": "^2.2.3", "ts-node": "^10.9.2", - "tsconfig-paths": "^4.2.0", "typescript": "^5.2.2" } }, @@ -24,6 +23,7 @@ "version": "10.0.5-fork", "resolved": "https://registry.npmjs.org/@bcherny/json-schema-ref-parser/-/json-schema-ref-parser-10.0.5-fork.tgz", "integrity": "sha512-E/jKbPoca1tfUPj3iSbitDZTGnq6FUFjkH6L8U2oDwSuwK1WhnnVtCG7oFOTg/DDnyoXbQYUiUiGOibHqaGVnw==", + "dev": true, "dependencies": { "@jsdevtools/ono": "^7.1.3", "@types/json-schema": "^7.0.6", @@ -77,7 +77,8 @@ "node_modules/@jsdevtools/ono": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==" + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true }, "node_modules/@tsconfig/node10": { "version": "1.0.9", @@ -107,6 +108,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, "dependencies": { "@types/minimatch": "*", "@types/node": "*" @@ -115,22 +117,26 @@ "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true }, "node_modules/@types/lodash": { "version": "4.14.202", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", - "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==" + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true }, "node_modules/@types/minimatch": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==" + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true }, "node_modules/@types/node": { "version": "20.11.25", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz", "integrity": "sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==", + "dev": true, "dependencies": { "undici-types": "~5.26.4" } @@ -138,7 +144,8 @@ "node_modules/@types/prettier": { "version": "2.7.3", "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==" + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true }, "node_modules/acorn": { "version": "8.11.3", @@ -164,7 +171,8 @@ "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true }, "node_modules/arg": { "version": "4.1.3", @@ -175,27 +183,32 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "dev": true }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -205,6 +218,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dev": true, "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -222,12 +236,14 @@ "node_modules/call-me-maybe": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", - "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==" + "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", + "dev": true }, "node_modules/cli-color": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.4.tgz", "integrity": "sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==", + "dev": true, "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.64", @@ -243,6 +259,7 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, "dependencies": { "delayed-stream": "~1.0.0" }, @@ -254,6 +271,7 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, "engines": { "node": ">= 6" } @@ -262,6 +280,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "dev": true, "funding": { "url": "https://github.com/sponsors/sindresorhus" } @@ -269,12 +288,14 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true }, "node_modules/cookiejar": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "dev": true }, "node_modules/create-require": { "version": "1.1.1", @@ -286,6 +307,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dev": true, "dependencies": { "es5-ext": "^0.10.64", "type": "^2.7.2" @@ -298,6 +320,7 @@ "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, "dependencies": { "ms": "2.1.2" }, @@ -314,6 +337,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -330,6 +354,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, "engines": { "node": ">=0.4.0" } @@ -338,6 +363,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", + "dev": true, "dependencies": { "asap": "^2.0.0", "wrappy": "1" @@ -356,6 +382,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dev": true, "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -367,6 +394,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, "engines": { "node": ">= 0.4" } @@ -375,6 +403,7 @@ "version": "0.10.64", "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "dev": true, "hasInstallScript": true, "dependencies": { "es6-iterator": "^2.0.3", @@ -390,6 +419,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, "dependencies": { "d": "1", "es5-ext": "^0.10.35", @@ -400,6 +430,7 @@ "version": "3.1.4", "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dev": true, "dependencies": { "d": "^1.0.2", "ext": "^1.7.0" @@ -412,6 +443,7 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dev": true, "dependencies": { "d": "1", "es5-ext": "^0.10.46", @@ -423,6 +455,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dev": true, "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.62", @@ -437,6 +470,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -449,6 +483,7 @@ "version": "0.3.5", "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, "dependencies": { "d": "1", "es5-ext": "~0.10.14" @@ -458,6 +493,7 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dev": true, "dependencies": { "type": "^2.7.2" } @@ -465,12 +501,14 @@ "node_modules/fast-safe-stringify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "dev": true }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -484,6 +522,7 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", + "dev": true, "dependencies": { "dezalgo": "^1.0.4", "hexoid": "^1.0.0", @@ -497,12 +536,14 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -511,6 +552,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dev": true, "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -529,6 +571,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz", "integrity": "sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==", + "dev": true, "engines": { "node": ">=10" }, @@ -540,6 +583,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -559,6 +603,7 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/glob-promise/-/glob-promise-4.2.2.tgz", "integrity": "sha512-xcUzJ8NWN5bktoTIX7eOclO1Npxd/dyVqUJxlLIDasT4C7KZyqlPIwkdJ0Ypiy3p2ZKahTjK4M9uC3sNSfNMzw==", + "dev": true, "dependencies": { "@types/glob": "^7.1.3" }, @@ -577,6 +622,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dev": true, "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -588,6 +634,7 @@ "version": "2.1.8", "resolved": "https://registry.npmjs.org/graphlib/-/graphlib-2.1.8.tgz", "integrity": "sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==", + "dev": true, "dependencies": { "lodash": "^4.17.15" } @@ -596,6 +643,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, "dependencies": { "es-define-property": "^1.0.0" }, @@ -607,6 +655,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -618,6 +667,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "dev": true, "engines": { "node": ">= 0.4" }, @@ -629,6 +679,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", + "dev": true, "dependencies": { "function-bind": "^1.1.2" }, @@ -640,6 +691,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "dev": true, "engines": { "node": ">=8" } @@ -648,6 +700,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -656,12 +709,14 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -670,6 +725,7 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -680,12 +736,14 @@ "node_modules/is-promise": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", - "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==" + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "dev": true }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, "dependencies": { "argparse": "^2.0.1" }, @@ -697,6 +755,7 @@ "version": "3.0.15", "resolved": "https://registry.npmjs.org/json-refs/-/json-refs-3.0.15.tgz", "integrity": "sha512-0vOQd9eLNBL18EGl5yYaO44GhixmImes2wiYn9Z3sag3QnehWrYWlB9AFtMxCL2Bj3fyxgDYkxGFEU/chlYssw==", + "dev": true, "dependencies": { "commander": "~4.1.1", "graphlib": "^2.1.8", @@ -718,6 +777,7 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, "dependencies": { "sprintf-js": "~1.0.2" } @@ -726,6 +786,7 @@ "version": "3.14.1", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -738,6 +799,7 @@ "version": "13.1.2", "resolved": "https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-13.1.2.tgz", "integrity": "sha512-17G+mjx4nunvOpkPvcz7fdwUwYCEwyH8vR3Ym3rFiQ8uzAL3go+c1306Kk7iGRk8HuXBXqy+JJJmpYl0cvOllw==", + "dev": true, "dependencies": { "@bcherny/json-schema-ref-parser": "10.0.5-fork", "@types/json-schema": "^7.0.11", @@ -765,6 +827,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/json-schema-to-zod/-/json-schema-to-zod-1.2.0.tgz", "integrity": "sha512-fC0JgINgkh1RWHbOonzrxP+221/oGwPE014bJxWRsdK6TqC7vLtx9t4l5dlKXzFR9o35/s0v/qgb15Bfwkm2xA==", + "dev": true, "dependencies": { "json-refs": "^3.0.15", "prettier": "^2.4.1" @@ -777,6 +840,7 @@ "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, "bin": { "json5": "lib/cli.js" }, @@ -787,12 +851,14 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -804,6 +870,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "dev": true, "dependencies": { "es5-ext": "~0.10.2" } @@ -818,6 +885,7 @@ "version": "0.4.15", "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz", "integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==", + "dev": true, "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.53", @@ -833,6 +901,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "dev": true, "engines": { "node": ">= 0.6" } @@ -841,6 +910,7 @@ "version": "2.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, "bin": { "mime": "cli.js" }, @@ -852,6 +922,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, "engines": { "node": ">= 0.6" } @@ -860,6 +931,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -871,6 +943,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -882,6 +955,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -890,6 +964,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -900,12 +975,14 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "node_modules/mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -915,17 +992,20 @@ "node_modules/native-promise-only": { "version": "0.8.1", "resolved": "https://registry.npmjs.org/native-promise-only/-/native-promise-only-0.8.1.tgz", - "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==" + "integrity": "sha512-zkVhZUA3y8mbz652WrL5x0fB0ehrBkulWT3TomAQ9iDtyXZvzKeEA6GPxAItBYeNYl5yngKRX612qHOhvMkDeg==", + "dev": true }, "node_modules/next-tick": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -934,6 +1014,7 @@ "version": "1.13.1", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -942,6 +1023,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, "dependencies": { "wrappy": "1" } @@ -950,6 +1032,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, "engines": { "node": ">=0.10.0" } @@ -958,6 +1041,7 @@ "version": "1.0.12", "resolved": "https://registry.npmjs.org/path-loader/-/path-loader-1.0.12.tgz", "integrity": "sha512-n7oDG8B+k/p818uweWrOixY9/Dsr89o2TkCm6tOTex3fpdo2+BFDgR+KpB37mGKBRsBAlR8CIJMFN0OEy/7hIQ==", + "dev": true, "dependencies": { "native-promise-only": "^0.8.1", "superagent": "^7.1.6" @@ -967,6 +1051,7 @@ "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, "bin": { "prettier": "bin-prettier.js" }, @@ -981,6 +1066,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, "engines": { "node": ">=6" } @@ -989,6 +1075,7 @@ "version": "6.12.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.12.0.tgz", "integrity": "sha512-trVZiI6RMOkO476zLGaBIzszOdFPnCCXHPG9kn0yuS1uz6xdVxPfZdB3vUig9pxPFDM9BRAgz/YUIVQ1/vuiUg==", + "dev": true, "dependencies": { "side-channel": "^1.0.6" }, @@ -1003,6 +1090,7 @@ "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dev": true, "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -1016,6 +1104,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, "funding": [ { "type": "github", @@ -1035,6 +1124,7 @@ "version": "7.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -1049,6 +1139,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", + "dev": true, "dependencies": { "define-data-property": "^1.1.2", "es-errors": "^1.3.0", @@ -1065,6 +1156,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dev": true, "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -1082,6 +1174,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } @@ -1089,30 +1182,24 @@ "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "dev": true, "dependencies": { "safe-buffer": "~5.2.0" } }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/superagent": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.6.tgz", "integrity": "sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==", "deprecated": "Please downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731)", + "dev": true, "dependencies": { "component-emitter": "^1.3.0", "cookiejar": "^2.1.3", @@ -1134,6 +1221,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, "dependencies": { "any-promise": "^1.0.0" } @@ -1142,6 +1230,7 @@ "version": "1.6.0", "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -1153,6 +1242,7 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz", "integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==", + "dev": true, "dependencies": { "es5-ext": "~0.10.46", "next-tick": "1" @@ -1201,24 +1291,11 @@ } } }, - "node_modules/tsconfig-paths": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", - "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", - "dev": true, - "dependencies": { - "json5": "^2.2.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/type": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==", + "dev": true }, "node_modules/typescript": { "version": "5.4.2", @@ -1236,12 +1313,14 @@ "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, "dependencies": { "punycode": "^2.1.0" } @@ -1249,7 +1328,8 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", @@ -1260,12 +1340,14 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/yn": { "version": "3.1.1", diff --git a/_package/package.json b/_packages/types/package.json similarity index 97% rename from _package/package.json rename to _packages/types/package.json index 8b61305..1a0da2c 100644 --- a/_package/package.json +++ b/_packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@initia/initia-registry-types", - "version": "0.0.11", + "version": "0.0.12", "description": "The package provides TypeScript type definitions and Zod integration for initia-registry.", "types": "./dist/types/index.d.ts", "exports": { diff --git a/_package/src/generate.ts b/_packages/types/src/generate.ts similarity index 92% rename from _package/src/generate.ts rename to _packages/types/src/generate.ts index 5a4becc..62aae67 100644 --- a/_package/src/generate.ts +++ b/_packages/types/src/generate.ts @@ -6,13 +6,13 @@ import * as json5 from "json5"; const schemata: Record = { assetlist: "AssetList", chain: "Chain", - ibc_data: "IBCData", + ibc_data: "IBCInfo", }; const schemaTitle: Record = { assetlist: "AssetLists", chain: "CosmosChain", - ibc_data: "IBCData", + ibc_data: "IBCInfo", }; async function main() { @@ -33,7 +33,7 @@ async function generateTypeAndZod(key: string) { } const schema = json5.parse( - fs.readFileSync(`../${key}.schema.json`).toString() + fs.readFileSync(`../../${key}.schema.json`).toString() ); compile(schema, schemata[key]).then((ts) => { diff --git a/_package/src/types/AssetList.ts b/_packages/types/src/types/AssetList.ts similarity index 100% rename from _package/src/types/AssetList.ts rename to _packages/types/src/types/AssetList.ts diff --git a/_package/src/types/Chain.ts b/_packages/types/src/types/Chain.ts similarity index 100% rename from _package/src/types/Chain.ts rename to _packages/types/src/types/Chain.ts diff --git a/_package/src/types/IBCData.ts b/_packages/types/src/types/IBCInfo.ts similarity index 99% rename from _package/src/types/IBCData.ts rename to _packages/types/src/types/IBCInfo.ts index 5559a90..c5e4494 100644 --- a/_package/src/types/IBCData.ts +++ b/_packages/types/src/types/IBCInfo.ts @@ -5,7 +5,7 @@ * and run json-schema-to-typescript to regenerate this file. */ -export interface IBCData { +export interface IBCInfo { $schema?: string; chain_1: ChainInfo; chain_2: ChainInfo1; diff --git a/_package/src/types/index.ts b/_packages/types/src/types/index.ts similarity index 66% rename from _package/src/types/index.ts rename to _packages/types/src/types/index.ts index cefe32f..6db39a4 100644 --- a/_package/src/types/index.ts +++ b/_packages/types/src/types/index.ts @@ -1,3 +1,3 @@ export * from "./AssetList" export * from "./Chain" -export * from "./IBCData" +export * from "./IBCInfo" diff --git a/_package/src/zods/AssetList.ts b/_packages/types/src/zods/AssetList.ts similarity index 100% rename from _package/src/zods/AssetList.ts rename to _packages/types/src/zods/AssetList.ts diff --git a/_package/src/zods/Chain.ts b/_packages/types/src/zods/Chain.ts similarity index 100% rename from _package/src/zods/Chain.ts rename to _packages/types/src/zods/Chain.ts diff --git a/_package/src/zods/IBCData.ts b/_packages/types/src/zods/IBCInfo.ts similarity index 99% rename from _package/src/zods/IBCData.ts rename to _packages/types/src/zods/IBCInfo.ts index 17cea4b..28d69ea 100644 --- a/_package/src/zods/IBCData.ts +++ b/_packages/types/src/zods/IBCInfo.ts @@ -1,6 +1,6 @@ import { z } from "zod"; -export const IBCDataSchema = z +export const IBCInfoSchema = z .object({ $schema: z .string() diff --git a/_package/src/zods/index.ts b/_packages/types/src/zods/index.ts similarity index 66% rename from _package/src/zods/index.ts rename to _packages/types/src/zods/index.ts index 24398f6..4f69f4d 100644 --- a/_package/src/zods/index.ts +++ b/_packages/types/src/zods/index.ts @@ -1,3 +1,3 @@ -export * from "./IBCData" +export * from "./IBCInfo" export * from "./AssetList" export * from "./Chain" diff --git a/_package/tsconfig.json b/_packages/types/tsconfig.json similarity index 100% rename from _package/tsconfig.json rename to _packages/types/tsconfig.json diff --git a/devnets/_IBC/mahalo-minimove.json b/devnets/_IBC/mahalo-minimove.json index 7bb2fe3..9f5fcfa 100644 --- a/devnets/_IBC/mahalo-minimove.json +++ b/devnets/_IBC/mahalo-minimove.json @@ -1,32 +1,31 @@ { - "$schema": "../../ibc_data.schema.json", - "chain_1": { - "chain_name": "mahalo", - "client_id": "07-tendermint-0", - "connection_id": "connection-0" - }, - "chain_2": { - "chain_name": "minimove", - "client_id": "07-tendermint-0", - "connection_id": "connection-0" - }, - "channels": [ - { - "chain_1": { - "channel_id": "channel-0", - "port_id": "transfer" - }, - "chain_2": { - "channel_id": "channel-0", - "port_id": "transfer" - }, - "ordering": "unordered", - "version": "ics20-1", - "tags": { - "status": "live", - "preferred": true - } + "$schema": "../../ibc_data.schema.json", + "chain_1": { + "chain_name": "initia", + "client_id": "07-tendermint-0", + "connection_id": "connection-0" + }, + "chain_2": { + "chain_name": "minimove", + "client_id": "07-tendermint-0", + "connection_id": "connection-0" + }, + "channels": [ + { + "chain_1": { + "channel_id": "channel-0", + "port_id": "transfer" + }, + "chain_2": { + "channel_id": "channel-0", + "port_id": "transfer" + }, + "ordering": "unordered", + "version": "ics20-1", + "tags": { + "status": "live", + "preferred": true } - ] - } - \ No newline at end of file + } + ] +} diff --git a/devnets/_IBC/mahalo-miniwasm.json b/devnets/_IBC/mahalo-miniwasm.json index 44be39d..94b860e 100644 --- a/devnets/_IBC/mahalo-miniwasm.json +++ b/devnets/_IBC/mahalo-miniwasm.json @@ -1,7 +1,7 @@ { "$schema": "../../ibc_data.schema.json", "chain_1": { - "chain_name": "mahalo", + "chain_name": "initia", "client_id": "07-tendermint-1", "connection_id": "connection-1" }, diff --git a/devnets/mahalo/chain.json b/devnets/mahalo/chain.json index 53a6665..72006e7 100644 --- a/devnets/mahalo/chain.json +++ b/devnets/mahalo/chain.json @@ -1,9 +1,9 @@ { "$schema": "../../chain.schema.json", - "chain_name": "Initia", + "chain_name": "initia", "chain_id": "mahalo-2", "website": "https://initia.xyz", - "pretty_name": "Initia L1", + "pretty_name": "Initia", "status": "live", "network_type": "devnet", "bech32_prefix": "init", diff --git a/devnets/minimove/chain.json b/devnets/minimove/chain.json index ac8c3d2..caf888d 100644 --- a/devnets/minimove/chain.json +++ b/devnets/minimove/chain.json @@ -1,9 +1,9 @@ { "$schema": "../../chain.schema.json", - "chain_name": "Minimove", + "chain_name": "minimove", "chain_id": "minimove-2", "website": "https://initia.xyz", - "pretty_name": "Initia MoveVM L2", + "pretty_name": "Minimove", "status": "live", "network_type": "devnet", "bech32_prefix": "init", @@ -105,9 +105,7 @@ "metadata": { "op_bridge_id": "2", "creator": "0x723e7894466de983976cc54302f9c436b3291106", - "op_denoms": [ - "uinit" - ], + "op_denoms": ["uinit"], "ibc_channels": [ { "chain_id": "mahalo-2", @@ -124,4 +122,4 @@ ], "assetlist": "https://raw.githubusercontent.com/initia-labs/initia-registry/mahalo-2/main/minimove/assetlist.json" } -} \ No newline at end of file +} diff --git a/devnets/miniwasm/chain.json b/devnets/miniwasm/chain.json index 982f451..4967290 100644 --- a/devnets/miniwasm/chain.json +++ b/devnets/miniwasm/chain.json @@ -1,9 +1,9 @@ { "$schema": "../../chain.schema.json", - "chain_name": "Miniwasm", + "chain_name": "miniwasm", "chain_id": "miniwasm-2", "website": "https://initia.xyz", - "pretty_name": "Initia WasmVM L2", + "pretty_name": "Miniwasm", "status": "live", "network_type": "devnet", "bech32_prefix": "init",