From 40129ecfa72dab712968b8517e84057bd313f7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?pablito=20=E3=83=86?= Date: Thu, 7 Nov 2024 05:57:54 -0300 Subject: [PATCH 1/2] CI/fix: :package: publish TS-API with pnpm (#3032) * use pnpm * --no-git-checks * use as command * remove jstools, add registry & cache * remove publish script * remove types-bundle dep --- .github/workflows/publish-typescript-api.yml | 18 +- pnpm-lock.yaml | 471 ++++++++++++++++++- typescript-api/package.json | 2 - 3 files changed, 461 insertions(+), 30 deletions(-) diff --git a/.github/workflows/publish-typescript-api.yml b/.github/workflows/publish-typescript-api.yml index 39d288ae76..8d3d5a284e 100644 --- a/.github/workflows/publish-typescript-api.yml +++ b/.github/workflows/publish-typescript-api.yml @@ -27,14 +27,20 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.10.0 + cache: pnpm + registry-url: https://registry.npmjs.org/ - name: Build Typescript Augment API package run: | cd typescript-api - pnpm i + pnpm i --frozen-lockfile pnpm build - name: Publish typescript API - uses: JS-DevTools/npm-publish@v3 - with: - token: ${{ secrets.NPM_TOKEN }} - package: typescript-api/package.json - dry-run: ${{ github.event.inputs.DryRun }} + run: | + cd typescript-api + if [ "${{ github.event.inputs.DryRun }}" == "true" ]; then + pnpm publish --access public --no-git-checks --dry-run + else + pnpm publish --access public --no-git-checks + fi + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9f25b0c833..bb59d47a22 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,10 +43,10 @@ importers: version: link:../typescript-api '@moonwall/cli': specifier: 5.3.3 - version: 5.3.3(@acala-network/chopsticks@0.16.1(bufferutil@4.0.8)(debug@4.3.7)(ts-node@10.9.2(@types/node@22.7.0)(typescript@5.6.2))(utf-8-validate@5.0.10))(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(@types/node@22.7.0)(@vitest/ui@2.1.1(vitest@2.1.1))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1(@types/node@22.7.0)(@vitest/ui@2.1.1)(jsdom@23.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))(zod@3.23.8) + version: 5.3.3(@acala-network/chopsticks@0.16.1(bufferutil@4.0.8)(debug@4.3.7)(ts-node@10.9.2(@types/node@22.7.0)(typescript@5.6.2))(utf-8-validate@5.0.10))(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(@types/node@22.7.0)(@vitest/ui@2.1.1)(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1)(zod@3.23.8) '@moonwall/util': specifier: 5.3.3 - version: 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1(@types/node@22.7.0)(@vitest/ui@2.1.1)(jsdom@23.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))(zod@3.23.8) + version: 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1)(zod@3.23.8) '@openzeppelin/contracts': specifier: 4.9.6 version: 4.9.6 @@ -213,9 +213,6 @@ importers: '@types/node': specifier: ^22.5.5 version: 22.7.4 - moonbeam-types-bundle: - specifier: workspace:* - version: link:../moonbeam-types-bundle prettier: specifier: 2.8.8 version: 2.8.8 @@ -1113,6 +1110,10 @@ packages: resolution: {integrity: sha512-+ZHq3JaQZ/3Q45r6/YQBeLfoP8S5ibgkOvLKnKA9cJeF7oP5Qgi6pAEnGW0accfnT9PyCEco9fD/ZOLR9Yka7w==} engines: {node: '>=18'} + '@polkadot/api-augment@14.2.3': + resolution: {integrity: sha512-H4Xrh54+CWmTBGtNN5BhVEIz2VK/7nszhiH2XFyf6PTTKo7FJOvu1jgHbhUG40n7TNNzPMw6CsttogTnlx/B8A==} + engines: {node: '>=18'} + '@polkadot/api-augment@7.15.1': resolution: {integrity: sha512-7csQLS6zuYuGq7W1EkTBz1ZmxyRvx/Qpz7E7zPSwxmY8Whb7Yn2effU9XF0eCcRpyfSW8LodF8wMmLxGYs1OaQ==} engines: {node: '>=14.0.0'} @@ -1141,6 +1142,10 @@ packages: resolution: {integrity: sha512-OVnDiztKx/1ktae9eCzO1q8lmKEfnQ71fipo8JkDJOMIN4vT1IqL9KQo4e/Xz8UtOfTJ0H8kZ6evaLqdA3ZYOA==} engines: {node: '>=18'} + '@polkadot/api-base@14.2.3': + resolution: {integrity: sha512-SQTVPs9MccfRPpHv4GP9r+nuirSUbZpc+hb8cZLvAc2SsCYlGlz7KFTqnyoFZGIEDGXUgdqP8n2RQbOU6j+rdw==} + engines: {node: '>=18'} + '@polkadot/api-base@7.15.1': resolution: {integrity: sha512-UlhLdljJPDwGpm5FxOjvJNFTxXMRFaMuVNx6EklbuetbBEJ/Amihhtj0EJRodxQwtZ4ZtPKYKt+g+Dn7OJJh4g==} engines: {node: '>=14.0.0'} @@ -1169,6 +1174,10 @@ packages: resolution: {integrity: sha512-ADQMre3DRRW/0rhJqxOVhQ1vqtyafP2dSZJ0qEAsto12q2WMSF8CZWo7pXe4DxiniDkZx3zVq4z5lqw2aBRLfg==} engines: {node: '>=18'} + '@polkadot/api-derive@14.2.3': + resolution: {integrity: sha512-u7ren5ZFWVrhtz5tMMjSu3igjv3TLiVIFS9g3fPLwdIfWkLO+gAvZECWaw6oONdkx/2HKF+srsBK7aUkD3HHDw==} + engines: {node: '>=18'} + '@polkadot/api-derive@7.15.1': resolution: {integrity: sha512-CsOQppksQBaa34L1fWRzmfQQpoEBwfH0yTTQxgj3h7rFYGVPxEKGeFjo1+IgI2vXXvOO73Z8E4H/MnbxvKrs1Q==} engines: {node: '>=14.0.0'} @@ -1197,6 +1206,10 @@ packages: resolution: {integrity: sha512-CDSaUiJpXu9aE6MaTg14K+9Trf8K2PBHcD3Xl5m5KOvJperWgYFxoCqV3rXLIBWt69LgHhMYlq5JSPRHxejIsw==} engines: {node: '>=18'} + '@polkadot/api@14.2.3': + resolution: {integrity: sha512-CmNW2qGtp7YB6tB4RWd793pa4FISVEGIpyuEo3KejkIt7QzVEZ5b9/YE7kGgz5HGxZy+Y13CwEDNLfFBvHSb8Q==} + engines: {node: '>=18'} + '@polkadot/api@7.15.1': resolution: {integrity: sha512-z0z6+k8+R9ixRMWzfsYrNDnqSV5zHKmyhTCL0I7+1I081V18MJTCFUKubrh0t1gD0/FCt3U9Ibvr4IbtukYLrQ==} engines: {node: '>=14.0.0'} @@ -1230,6 +1243,13 @@ packages: '@polkadot/util': 13.1.1 '@polkadot/util-crypto': 13.1.1 + '@polkadot/keyring@13.2.2': + resolution: {integrity: sha512-h4bPU92CALAAC+QOp6+zttuhI5H0GKOUzj1qwnmoPVoWxh21FoekLAXO1YJlsKxciTDdK5OhjdNPOIqcF0GCXA==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2 + '@polkadot/keyring@6.11.1': resolution: {integrity: sha512-rW8INl7pO6Dmaffd6Df1yAYCRWa2RmWQ0LGfJeA/M6seVIkI6J3opZqAd4q2Op+h9a7z4TESQGk8yggOEL+Csg==} engines: {node: '>=14.0.0'} @@ -1267,6 +1287,10 @@ packages: resolution: {integrity: sha512-eEQ4+Mfl1xFtApeU5PdXZ2XBhxNSvUz9yW+YQVGUCkXRjWFbqNRsTOYWGd9uFbiAOXiiiXbtqfZpxSDzIm4XOg==} engines: {node: '>=18'} + '@polkadot/networks@13.2.2': + resolution: {integrity: sha512-di3dLB9BcLQ9ARcDe/nizl7jZZnQbQlxB8kXtAXqTIVFtshtKT+zYcji6dTX7xX9/O9tZB7qnrvuIuI0MkwJ5A==} + engines: {node: '>=18'} + '@polkadot/networks@6.11.1': resolution: {integrity: sha512-0C6Ha2kvr42se3Gevx6UhHzv3KnPHML0N73Amjwvdr4y0HLZ1Nfw+vcm5yqpz5gpiehqz97XqFrsPRauYdcksQ==} engines: {node: '>=14.0.0'} @@ -1306,6 +1330,10 @@ packages: resolution: {integrity: sha512-M0CbN/IScqiedYI2TmoQ+SoeEdJHfxGeQD1qJf9uYv9LILK+x1/5fyr5DrZ3uCGVmLuObWAJLnHTs0BzJcSHTQ==} engines: {node: '>=18'} + '@polkadot/rpc-augment@14.2.3': + resolution: {integrity: sha512-rK2BZ7lNH/WVNUxs3dL3enmIahhu3X5VwUy5qRZudMGpND9VWXVgAvbDnQNPBADHZCbTDa9c8+VTlO9q4A1l8Q==} + engines: {node: '>=18'} + '@polkadot/rpc-augment@7.15.1': resolution: {integrity: sha512-sK0+mphN7nGz/eNPsshVi0qd0+N0Pqxuebwc1YkUGP0f9EkDxzSGp6UjGcSwWVaAtk9WZZ1MpK1Jwb/2GrKV7Q==} engines: {node: '>=14.0.0'} @@ -1334,6 +1362,10 @@ packages: resolution: {integrity: sha512-SfgC6WU7RxaFFgm/GUpsqTywyaDeb7+r5GU3GlwC+QR148h3a7UcQ3sssOpB0MiZ2gIXngJuyIcIQm/3GfHnJw==} engines: {node: '>=18'} + '@polkadot/rpc-core@14.2.3': + resolution: {integrity: sha512-qXj6x2Tjdf/J0FNgeJ2eK0zhrVhrF+BFbMWjSO8VHpbxVA15mc/32muy5J1wpMzztBmXxjTzETWcTilMTdqCew==} + engines: {node: '>=18'} + '@polkadot/rpc-core@7.15.1': resolution: {integrity: sha512-4Sb0e0PWmarCOizzxQAE1NQSr5z0n+hdkrq3+aPohGu9Rh4PodG+OWeIBy7Ov/3GgdhNQyBLG+RiVtliXecM3g==} engines: {node: '>=14.0.0'} @@ -1362,6 +1394,10 @@ packages: resolution: {integrity: sha512-mNfaKZUHPXGSY7TwgOfV05RN3Men21Dw7YXrSZDFkJYsZ55yOAYdmLg9anPZGHW100YnNWrXj+3uhQOw8JgqkA==} engines: {node: '>=18'} + '@polkadot/rpc-provider@14.2.3': + resolution: {integrity: sha512-U0aXFsQ/aRGtKYpDDM54pZ5ZdOVEz6Vngs//pS9GJqedh6tbsiU2/YPDjEKAKLCNlOt0XOtipJSjVoccrU8xCw==} + engines: {node: '>=18'} + '@polkadot/rpc-provider@7.15.1': resolution: {integrity: sha512-n0RWfSaD/r90JXeJkKry1aGZwJeBUUiMpXUQ9Uvp6DYBbYEDs0fKtWLpdT3PdFrMbe5y3kwQmNLxwe6iF4+mzg==} engines: {node: '>=14.0.0'} @@ -1395,6 +1431,10 @@ packages: resolution: {integrity: sha512-PGo81444J5tGJxP3tu060Jx1kkeuo8SmBIt9S/w626Se49x4RLM5a7Pa5fguYVsg4TsJa9cgVPMuu6Y0F/2aCQ==} engines: {node: '>=18'} + '@polkadot/types-augment@14.2.3': + resolution: {integrity: sha512-P7+KqSTSA0vTAY420cny8VqP6SQwsmBF8XLFrikUpOvziyzgApCRu5mPKtpZcM1+oNNKXxYPeFJim0+rUR3C5w==} + engines: {node: '>=18'} + '@polkadot/types-augment@7.15.1': resolution: {integrity: sha512-aqm7xT/66TCna0I2utpIekoquKo0K5pnkA/7WDzZ6gyD8he2h0IXfe8xWjVmuyhjxrT/C/7X1aUF2Z0xlOCwzQ==} engines: {node: '>=14.0.0'} @@ -1423,6 +1463,10 @@ packages: resolution: {integrity: sha512-IyUlkrRZ6uppbHVlMJL+btKP7dfgW65K06ggQxH7Y/IyRAQVDNjXecAZrCUMB/gtjUXNPyTHEIfPGDlg8E6rig==} engines: {node: '>=18'} + '@polkadot/types-codec@14.2.3': + resolution: {integrity: sha512-Rz2SgKIGgRNkuLfjLzvwpxeJ+b+qls8Jdtt3rXX0/KB11rdazpLvw1lt07LJnMYWDRaLC/LHStskE0ekft/kVg==} + engines: {node: '>=18'} + '@polkadot/types-codec@7.15.1': resolution: {integrity: sha512-nI11dT7FGaeDd/fKPD8iJRFGhosOJoyjhZ0gLFFDlKCaD3AcGBRTTY8HFJpP/5QXXhZzfZsD93fVKrosnegU0Q==} engines: {node: '>=14.0.0'} @@ -1451,6 +1495,10 @@ packages: resolution: {integrity: sha512-R9/ac3CHKrFhvPKVUdpjnCDFSaGjfrNwtuY+AzvExAMIq7pM9dxo2N8UfnLbyFaG/n1hfYPXDIS3hLHvOZsLbw==} engines: {node: '>=18'} + '@polkadot/types-create@14.2.3': + resolution: {integrity: sha512-riT17wCehR6B5ucsI9P9NoqjS2OAuPGSgvf/mSHF3cUo0Mu7u8SordkJg0ZOVl2MWc6u69OF7/1+zjea6L+3Mw==} + engines: {node: '>=18'} + '@polkadot/types-create@7.15.1': resolution: {integrity: sha512-+HiaHn7XOwP0kv/rVdORlVkNuMoxuvt+jd67A/CeEreJiXqRLu+S61Mdk7wi6719PTaOal1hTDFfyGrtUd8FSQ==} engines: {node: '>=14.0.0'} @@ -1479,6 +1527,10 @@ packages: resolution: {integrity: sha512-oGypUOQNxZ6bq10czpVadZYeDM2NBB2kX3VFHLKLEpjaRbnVYtKXL6pl8B0uHR8GK/2Z8AmPOj6kuRjaC86qXg==} engines: {node: '>=18'} + '@polkadot/types-known@14.2.3': + resolution: {integrity: sha512-IcFlZ1gBJbibxikJex9jCniN2avlecBX8YP2Z2jyYHJbLnB94YQ0M5mady5LQq0TVggD0UFbUqGAVwuDTPsjoA==} + engines: {node: '>=18'} + '@polkadot/types-known@4.17.1': resolution: {integrity: sha512-YkOwGrO+k9aVrBR8FgYHnfJKhOfpdgC5ZRYNL/xJ9oa7lBYqPts9ENAxeBmJS/5IGeDF9f32MNyrCP2umeCXWg==} engines: {node: '>=14.0.0'} @@ -1515,6 +1567,10 @@ packages: resolution: {integrity: sha512-lcZEyOf5e3WLLtrFlLTvFfUpO0Vx/Gh5lhLLjdx1W9Xs0KJUlOxSAKxvjVieJJj6HifL0Jh6tDYOUeEc4TOrvA==} engines: {node: '>=18'} + '@polkadot/types-support@14.2.3': + resolution: {integrity: sha512-ZvFOMZLrt00hQCQCIYVienpNAjm2TJa7jCoacs68DO4sQK7TgiqkADhgmhiYl2tqkCV1Gbso+yzMKPgqILLNnA==} + engines: {node: '>=18'} + '@polkadot/types-support@7.15.1': resolution: {integrity: sha512-FIK251ffVo+NaUXLlaJeB5OvT7idDd3uxaoBM6IwsS87rzt2CcWMyCbu0uX89AHZUhSviVx7xaBxfkGEqMePWA==} engines: {node: '>=14.0.0'} @@ -1543,6 +1599,10 @@ packages: resolution: {integrity: sha512-DOMzHsyVbCa12FT2Fng8iGiQJhHW2ONpv5oieU+Z2o0gFQqwNmIDXWncScG5mAUBNcDMXLuvWIKLKtUDOq8msg==} engines: {node: '>=18'} + '@polkadot/types@14.2.3': + resolution: {integrity: sha512-IG5hs7+NYz3T/n4l7/94p/gqIWwHYgnnqDrTQ8RWPVwA9BaF4D7Wx7esD1jc0Igt1FhuG60uceVfYrBIGCJLyw==} + engines: {node: '>=18'} + '@polkadot/types@4.17.1': resolution: {integrity: sha512-rjW4OFdwvFekzN3ATLibC2JPSd8AWt5YepJhmuCPdwH26r3zB8bEC6dM7YQExLVUmygVPvgXk5ffHI6RAdXBMg==} engines: {node: '>=14.0.0'} @@ -1591,6 +1651,12 @@ packages: peerDependencies: '@polkadot/util': 13.1.1 + '@polkadot/util-crypto@13.2.2': + resolution: {integrity: sha512-C4vl07XC43vE6egd9LmSe0uOc7hAvBq6CIoILk5ZB95ABNBQSHOrS1pHugW4rJgVUiZgv8sdl+twmgisuSsSfg==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto@6.11.1': resolution: {integrity: sha512-fWA1Nz17FxWJslweZS4l0Uo30WXb5mYV1KEACVzM+BSZAvG5eoiOAYX6VYZjyw6/7u53XKrWQlD83iPsg3KvZw==} engines: {node: '>=14.0.0'} @@ -1615,6 +1681,10 @@ packages: resolution: {integrity: sha512-M4iQ5Um8tFdDmD7a96nPzfrEt+kxyWOqQDPqXyaax4QBnq/WCbq0jo8IO61uz55mdMQnGZvq8jd8uge4V6JzzQ==} engines: {node: '>=18'} + '@polkadot/util@13.2.2': + resolution: {integrity: sha512-zhsGtR0J2a0ODesJNbCYqEXOL2rhPrmv1F6OB2JMdho7iOrkONck3PZaoT/Y0JF7IlHjGV8K6yrw7k9KUtFrEA==} + engines: {node: '>=18'} + '@polkadot/util@6.11.1': resolution: {integrity: sha512-TEdCetr9rsdUfJZqQgX/vxLuV4XU8KMoKBMJdx+JuQ5EWemIdQkEtMBdL8k8udNGbgSNiYFA6rPppATeIxAScg==} engines: {node: '>=14.0.0'} @@ -1637,6 +1707,13 @@ packages: '@polkadot/util': '*' '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-bridge@7.4.1': + resolution: {integrity: sha512-tdkJaV453tezBxhF39r4oeG0A39sPKGDJmN81LYLf+Fihb7astzwju+u75BRmDrHZjZIv00un3razJEWCxze6g==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-crypto-asmjs@4.6.1': resolution: {integrity: sha512-1oHQjz2oEO1kCIcQniOP+dZ9N2YXf2yCLHLsKaKSvfXiWaetVCaBNB8oIHIVYvuLnVc8qlMi66O6xc1UublHsw==} engines: {node: '>=14.0.0'} @@ -1661,6 +1738,12 @@ packages: peerDependencies: '@polkadot/util': '*' + '@polkadot/wasm-crypto-asmjs@7.4.1': + resolution: {integrity: sha512-pwU8QXhUW7IberyHJIQr37IhbB6DPkCG5FhozCiNTq4vFBsFPjm9q8aZh7oX1QHQaiAZa2m2/VjIVE+FHGbvHQ==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/wasm-crypto-init@6.4.1': resolution: {integrity: sha512-1ALagSi/nfkyFaH6JDYfy/QbicVbSn99K8PV9rctDUfxc7P06R7CoqbjGQ4OMPX6w1WYVPU7B4jPHGLYBlVuMw==} engines: {node: '>=14.0.0'} @@ -1675,6 +1758,13 @@ packages: '@polkadot/util': '*' '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-crypto-init@7.4.1': + resolution: {integrity: sha512-AVka33+f7MvXEEIGq5U0dhaA2SaXMXnxVCQyhJTaCnJ5bRDj0Xlm3ijwDEQUiaDql7EikbkkRtmlvs95eSUWYQ==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-crypto-wasm@4.6.1': resolution: {integrity: sha512-NI3JVwmLjrSYpSVuhu0yeQYSlsZrdpK41UC48sY3kyxXC71pi6OVePbtHS1K3xh3FFmDd9srSchExi3IwzKzMw==} engines: {node: '>=14.0.0'} @@ -1699,6 +1789,12 @@ packages: peerDependencies: '@polkadot/util': '*' + '@polkadot/wasm-crypto-wasm@7.4.1': + resolution: {integrity: sha512-PE1OAoupFR0ZOV2O8tr7D1FEUAwaggzxtfs3Aa5gr+yxlSOaWUKeqsOYe1KdrcjmZVV3iINEAXxgrbzCmiuONg==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/wasm-crypto@4.6.1': resolution: {integrity: sha512-2wEftBDxDG+TN8Ah6ogtvzjdZdcF0mAjU4UNNOfpmkBCxQYZOrAHB8HXhzo3noSsKkLX7PDX57NxvJ9OhoTAjw==} engines: {node: '>=14.0.0'} @@ -1727,6 +1823,13 @@ packages: '@polkadot/util': '*' '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-crypto@7.4.1': + resolution: {integrity: sha512-kHN/kF7hYxm1y0WeFLWeWir6oTzvcFmR4N8fJJokR+ajYbdmrafPN+6iLgQVbhZnDdxyv9jWDuRRsDnBx8tPMQ==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-randomvalues': '*' + '@polkadot/wasm-util@6.4.1': resolution: {integrity: sha512-Uwo+WpEsDmFExWC5kTNvsVhvqXMZEKf4gUHXFn4c6Xz4lmieRT5g+1bO1KJ21pl4msuIgdV3Bksfs/oiqMFqlw==} engines: {node: '>=14.0.0'} @@ -1739,6 +1842,12 @@ packages: peerDependencies: '@polkadot/util': '*' + '@polkadot/wasm-util@7.4.1': + resolution: {integrity: sha512-RAcxNFf3zzpkr+LX/ItAsvj+QyM56TomJ0xjUMo4wKkHjwsxkz4dWJtx5knIgQz/OthqSDMR59VNEycQeNuXzA==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': '*' + '@polkadot/x-bigint@10.4.2': resolution: {integrity: sha512-awRiox+/XSReLzimAU94fPldowiwnnMUkQJe8AebYhNocAj6SJU00GNoj6j6tAho6yleOwrTJXZaWFBaQVJQNg==} engines: {node: '>=14.0.0'} @@ -1751,6 +1860,10 @@ packages: resolution: {integrity: sha512-Cq4Y6fd9UWtRBZz8RX2tWEBL1IFwUtY6cL8p6HC9yhZtUR6OPjKZe6RIZQa9gSOoIuqZWd6PmtvSNGVH32yfkQ==} engines: {node: '>=18'} + '@polkadot/x-bigint@13.2.2': + resolution: {integrity: sha512-9ENDfG2wYqABWhQYYrbjJK0aPBvCqVPiFhBiKgIg6OTSJKJToa4Di9R8NxelF8eJTtz7DIvgf6gZY/jnKfbtWw==} + engines: {node: '>=18'} + '@polkadot/x-bigint@8.7.1': resolution: {integrity: sha512-ClkhgdB/KqcAKk3zA6Qw8wBL6Wz67pYTPkrAtImpvoPJmR+l4RARauv+MH34JXMUNlNb3aUwqN6lq2Z1zN+mJg==} engines: {node: '>=14.0.0'} @@ -1767,6 +1880,10 @@ packages: resolution: {integrity: sha512-qA6mIUUebJbS+oWzq/EagZflmaoa9b25WvsxSFn7mCvzKngXzr+GYCY4XiDwKY/S+/pr/kvSCKZ1ia8BDqPBYQ==} engines: {node: '>=18'} + '@polkadot/x-fetch@13.2.2': + resolution: {integrity: sha512-aDhd2kdx3JWvZSU4Ge966C0111CH8pCsDX7+9IsMGaZhjLF1NEo2xDjs+EwfUbSvNk68A4UVeJsXjG+IVor/ug==} + engines: {node: '>=18'} + '@polkadot/x-fetch@8.7.1': resolution: {integrity: sha512-ygNparcalYFGbspXtdtZOHvNXZBkNgmNO+um9C0JYq74K5OY9/be93uyfJKJ8JcRJtOqBfVDsJpbiRkuJ1PRfg==} engines: {node: '>=14.0.0'} @@ -1783,6 +1900,10 @@ packages: resolution: {integrity: sha512-DViIMmmEs29Qlsp058VTg2Mn7e3/CpGazNnKJrsBa0o1Ptxl13/4Z0fjqCpNi2GB+kaOsnREzxUORrHcU+PqcQ==} engines: {node: '>=18'} + '@polkadot/x-global@13.2.2': + resolution: {integrity: sha512-a+iKD7JXxDRtYVo0bp1+HHlaem6MkUHU2yE0cx2e97p9x+IKyNEY58D0L5P66kszLvhFw+t3Jq+qHIj0+2YxkQ==} + engines: {node: '>=18'} + '@polkadot/x-global@6.11.1': resolution: {integrity: sha512-lsBK/e4KbjfieyRmnPs7bTiGbP/6EoCZz7rqD/voNS5qsJAaXgB9LR+ilubun9gK/TDpebyxgO+J19OBiQPIRw==} engines: {node: '>=14.0.0'} @@ -1809,6 +1930,13 @@ packages: '@polkadot/util': 13.1.1 '@polkadot/wasm-util': '*' + '@polkadot/x-randomvalues@13.2.2': + resolution: {integrity: sha512-1UNImkS5PAaGHeIl2DlMjgt2iN7nlclzwrYhmxd0e9Z11RQqavGqi1a02HGREgnUu+wJ7eHmPMVe6K96+cL+aQ==} + engines: {node: '>=18'} + peerDependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-util': '*' + '@polkadot/x-randomvalues@6.11.1': resolution: {integrity: sha512-2MfUfGZSOkuPt7GF5OJkPDbl4yORI64SUuKM25EGrJ22o1UyoBnPOClm9eYujLMD6BfDZRM/7bQqqoLW+NuHVw==} engines: {node: '>=14.0.0'} @@ -1833,6 +1961,10 @@ packages: resolution: {integrity: sha512-LpZ9KYc6HdBH+i86bCmun4g4GWMiWN/1Pzs0hNdanlQMfqp3UGzl1Dqp0nozMvjWAlvyG7ip235VgNMd8HEbqg==} engines: {node: '>=18'} + '@polkadot/x-textdecoder@13.2.2': + resolution: {integrity: sha512-elpIrgdq22yyvt4fzxwb2IRJEpswPVwizzauRipVy3uUmI/lC2f7D7u9jrC554Xy8UrrAPExX1sWJCxZA8DZ/g==} + engines: {node: '>=18'} + '@polkadot/x-textdecoder@6.11.1': resolution: {integrity: sha512-DI1Ym2lyDSS/UhnTT2e9WutukevFZ0WGpzj4eotuG2BTHN3e21uYtYTt24SlyRNMrWJf5+TkZItmZeqs1nwAfQ==} engines: {node: '>=14.0.0'} @@ -1853,6 +1985,10 @@ packages: resolution: {integrity: sha512-w1mT15B9ptN5CJNgN/A0CmBqD5y9OePjBdU6gmAd8KRhwXCF0MTBKcEZk1dHhXiXtX+28ULJWLrfefC5gxy69Q==} engines: {node: '>=18'} + '@polkadot/x-textencoder@13.2.2': + resolution: {integrity: sha512-nxlNvK5h0KPCaAE/cx92e8JCPAlmFGbuXC9l03C1Ei1wAnOcWuJWRIk2qOkCEYkpT+G0jITPN4dgk634+pBQSw==} + engines: {node: '>=18'} + '@polkadot/x-textencoder@6.11.1': resolution: {integrity: sha512-8ipjWdEuqFo+R4Nxsc3/WW9CSEiprX4XU91a37ZyRVC4e9R1bmvClrpXmRQLVcAQyhRvG8DKOOtWbz8xM+oXKg==} engines: {node: '>=14.0.0'} @@ -1873,6 +2009,10 @@ packages: resolution: {integrity: sha512-E/xFmJTiFzu+IK5M3/8W/9fnvNJFelcnunPv/IgO6UST94SDaTsN/Gbeb6SqPb6CsrTHRl3WD+AZ3ErGGwQfEA==} engines: {node: '>=18'} + '@polkadot/x-ws@13.2.2': + resolution: {integrity: sha512-WEygcHPB55cKLiNoejJ0Lq3Z1fb4hUO3FmYTXdpHgk0xIOfYDrr7rTlI2cZ4Nb32MofeehN/ZStmEW5Edib6TQ==} + engines: {node: '>=18'} + '@polkadot/x-ws@8.7.1': resolution: {integrity: sha512-Mt0tcNzGXyKnN3DQ06alkv+JLtTfXWu6zSypFrrKHSQe3u79xMQ1nSicmpT3gWLhIa8YF+8CYJXMrqaXgCnDhw==} engines: {node: '>=14.0.0'} @@ -2077,6 +2217,9 @@ packages: '@substrate/ss58-registry@1.50.0': resolution: {integrity: sha512-mkmlMlcC+MSd9rA+PN8ljGAm5fVZskvVwkXIsbx4NFwaT8kt38r7e9cyDWscG3z2Zn40POviZvEMrJSk+r2SgQ==} + '@substrate/ss58-registry@1.51.0': + resolution: {integrity: sha512-TWDurLiPxndFgKjVavCniytBIw+t4ViOi7TYp9h/D0NMmkEc9klFTo+827eyEJ0lELpqO207Ey7uGxUa+BS1jQ==} + '@substrate/txwrapper-core@7.5.1': resolution: {integrity: sha512-OAz67qDZpBzQLnHeN95hnQWeYX9HZfxow1LkBAW3TmhXUjycU3gu0D0rvw0gYMQyIt7uYszV/m+5xUbUW+bpZg==} @@ -5547,6 +5690,9 @@ packages: tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tsx@4.16.2: resolution: {integrity: sha512-C1uWweJDgdtX2x600HjaFaucXTilT7tgUZHbOE4+ypskZ1OP8CRCSDkCxG6Vya9EwaFIVagWwpaVAn5wzypaqQ==} engines: {node: '>=18.0.0'} @@ -6800,12 +6946,12 @@ snapshots: '@moonbeam-network/api-augment@0.2902.0': {} - '@moonwall/cli@5.3.3(@acala-network/chopsticks@0.16.1(bufferutil@4.0.8)(debug@4.3.7)(ts-node@10.9.2(@types/node@22.7.0)(typescript@5.6.2))(utf-8-validate@5.0.10))(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(@types/node@22.7.0)(@vitest/ui@2.1.1(vitest@2.1.1))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1(@types/node@22.7.0)(@vitest/ui@2.1.1)(jsdom@23.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))(zod@3.23.8)': + '@moonwall/cli@5.3.3(@acala-network/chopsticks@0.16.1(bufferutil@4.0.8)(debug@4.3.7)(ts-node@10.9.2(@types/node@22.7.0)(typescript@5.6.2))(utf-8-validate@5.0.10))(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(@types/node@22.7.0)(@vitest/ui@2.1.1)(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1)(zod@3.23.8)': dependencies: '@acala-network/chopsticks': 0.16.1(bufferutil@4.0.8)(debug@4.3.7)(ts-node@10.9.2(@types/node@22.7.0)(typescript@5.6.2))(utf-8-validate@5.0.10) '@moonbeam-network/api-augment': 0.2902.0 '@moonwall/types': 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(zod@3.23.8) - '@moonwall/util': 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1(@types/node@22.7.0)(@vitest/ui@2.1.1)(jsdom@23.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))(zod@3.23.8) + '@moonwall/util': 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1)(zod@3.23.8) '@octokit/rest': 21.0.2 '@polkadot/api': 14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@polkadot/api-derive': 12.1.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -6879,7 +7025,7 @@ snapshots: - utf-8-validate - zod - '@moonwall/util@5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1(@types/node@22.7.0)(@vitest/ui@2.1.1)(jsdom@23.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)))(zod@3.23.8)': + '@moonwall/util@5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(vitest@2.1.1)(zod@3.23.8)': dependencies: '@moonbeam-network/api-augment': 0.2902.0 '@moonwall/types': 5.3.3(@polkadot/api@14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(chokidar@3.6.0)(encoding@0.1.13)(typescript@5.6.2)(utf-8-validate@5.0.10)(zod@3.23.8) @@ -7376,6 +7522,20 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/api-augment@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/api-base': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/rpc-augment': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/types-augment': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/api-augment@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -7463,6 +7623,18 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/api-base@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/rpc-core': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/util': 13.2.2 + rxjs: 7.8.1 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/api-base@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -7571,6 +7743,23 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/api-derive@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/api': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/api-augment': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/api-base': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/rpc-core': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2(@polkadot/util@13.2.2) + rxjs: 7.8.1 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/api-derive@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -7724,6 +7913,30 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/api@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/api-augment': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/api-base': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/api-derive': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/keyring': 13.2.2(@polkadot/util-crypto@13.2.2(@polkadot/util@13.2.2))(@polkadot/util@13.2.2) + '@polkadot/rpc-augment': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/rpc-core': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/rpc-provider': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/types-augment': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/types-create': 14.2.3 + '@polkadot/types-known': 14.2.3 + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2(@polkadot/util@13.2.2) + eventemitter3: 5.0.1 + rxjs: 7.8.1 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/api@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -7853,6 +8066,12 @@ snapshots: '@polkadot/util-crypto': 13.1.1(@polkadot/util@13.1.1) tslib: 2.7.0 + '@polkadot/keyring@13.2.2(@polkadot/util-crypto@13.2.2(@polkadot/util@13.2.2))(@polkadot/util@13.2.2)': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2(@polkadot/util@13.2.2) + tslib: 2.8.1 + '@polkadot/keyring@6.11.1(@polkadot/util-crypto@13.1.1(@polkadot/util@13.1.1))(@polkadot/util@13.1.1)': dependencies: '@babel/runtime': 7.25.7 @@ -7903,6 +8122,12 @@ snapshots: '@substrate/ss58-registry': 1.50.0 tslib: 2.7.0 + '@polkadot/networks@13.2.2': + dependencies: + '@polkadot/util': 13.2.2 + '@substrate/ss58-registry': 1.51.0 + tslib: 2.8.1 + '@polkadot/networks@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -7991,6 +8216,18 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/rpc-augment@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/rpc-core': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/rpc-augment@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -8079,6 +8316,19 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/rpc-core@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/rpc-augment': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/rpc-provider': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/types': 14.2.3 + '@polkadot/util': 13.2.2 + rxjs: 7.8.1 + tslib: 2.8.1 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/rpc-core@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -8209,6 +8459,27 @@ snapshots: - supports-color - utf-8-validate + '@polkadot/rpc-provider@14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/keyring': 13.2.2(@polkadot/util-crypto@13.2.2(@polkadot/util@13.2.2))(@polkadot/util@13.2.2) + '@polkadot/types': 14.2.3 + '@polkadot/types-support': 14.2.3 + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2(@polkadot/util@13.2.2) + '@polkadot/x-fetch': 13.2.2 + '@polkadot/x-global': 13.2.2 + '@polkadot/x-ws': 13.2.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + eventemitter3: 5.0.1 + mock-socket: 9.3.1 + nock: 13.5.5 + tslib: 2.8.1 + optionalDependencies: + '@substrate/connect': 0.8.11(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + '@polkadot/rpc-provider@7.15.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -8306,6 +8577,13 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/types-augment@14.2.3': + dependencies: + '@polkadot/types': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/types-augment@7.15.1': dependencies: '@babel/runtime': 7.25.7 @@ -8350,6 +8628,12 @@ snapshots: '@polkadot/x-bigint': 13.1.1 tslib: 2.7.0 + '@polkadot/types-codec@14.2.3': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/x-bigint': 13.2.2 + tslib: 2.8.1 + '@polkadot/types-codec@7.15.1': dependencies: '@babel/runtime': 7.25.7 @@ -8391,6 +8675,12 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/types-create@14.2.3': + dependencies: + '@polkadot/types-codec': 14.2.3 + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/types-create@7.15.1': dependencies: '@babel/runtime': 7.25.7 @@ -8448,6 +8738,15 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/types-known@14.2.3': + dependencies: + '@polkadot/networks': 13.2.2 + '@polkadot/types': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/types-create': 14.2.3 + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/types-known@4.17.1': dependencies: '@babel/runtime': 7.25.7 @@ -8505,6 +8804,11 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/types-support@14.2.3': + dependencies: + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/types-support@7.15.1': dependencies: '@babel/runtime': 7.25.7 @@ -8570,6 +8874,17 @@ snapshots: rxjs: 7.8.1 tslib: 2.7.0 + '@polkadot/types@14.2.3': + dependencies: + '@polkadot/keyring': 13.2.2(@polkadot/util-crypto@13.2.2(@polkadot/util@13.2.2))(@polkadot/util@13.2.2) + '@polkadot/types-augment': 14.2.3 + '@polkadot/types-codec': 14.2.3 + '@polkadot/types-create': 14.2.3 + '@polkadot/util': 13.2.2 + '@polkadot/util-crypto': 13.2.2(@polkadot/util@13.2.2) + rxjs: 7.8.1 + tslib: 2.8.1 + '@polkadot/types@4.17.1': dependencies: '@babel/runtime': 7.25.7 @@ -8643,10 +8958,10 @@ snapshots: '@noble/hashes': 1.5.0 '@polkadot/networks': 12.6.2 '@polkadot/util': 12.6.2 - '@polkadot/wasm-crypto': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2))) + '@polkadot/wasm-crypto': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1))) '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) '@polkadot/x-bigint': 12.6.2 - '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)) + '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) '@scure/base': 1.1.9 tslib: 2.7.0 @@ -8663,6 +8978,19 @@ snapshots: '@scure/base': 1.1.9 tslib: 2.7.0 + '@polkadot/util-crypto@13.2.2(@polkadot/util@13.2.2)': + dependencies: + '@noble/curves': 1.6.0 + '@noble/hashes': 1.5.0 + '@polkadot/networks': 13.2.2 + '@polkadot/util': 13.2.2 + '@polkadot/wasm-crypto': 7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2))) + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/x-bigint': 13.2.2 + '@polkadot/x-randomvalues': 13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)) + '@scure/base': 1.1.9 + tslib: 2.8.1 + '@polkadot/util-crypto@6.11.1(@polkadot/util@6.11.1)': dependencies: '@babel/runtime': 7.25.7 @@ -8726,6 +9054,16 @@ snapshots: bn.js: 5.2.1 tslib: 2.7.0 + '@polkadot/util@13.2.2': + dependencies: + '@polkadot/x-bigint': 13.2.2 + '@polkadot/x-global': 13.2.2 + '@polkadot/x-textdecoder': 13.2.2 + '@polkadot/x-textencoder': 13.2.2 + '@types/bn.js': 5.1.6 + bn.js: 5.2.1 + tslib: 2.8.1 + '@polkadot/util@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -8753,11 +9091,11 @@ snapshots: '@polkadot/util': 10.4.2 '@polkadot/x-randomvalues': 10.4.2 - '@polkadot/wasm-bridge@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)))': + '@polkadot/wasm-bridge@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': dependencies: '@polkadot/util': 12.6.2 '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) - '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)) + '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 '@polkadot/wasm-bridge@7.3.2(@polkadot/util@13.1.1)(@polkadot/x-randomvalues@13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': @@ -8767,6 +9105,13 @@ snapshots: '@polkadot/x-randomvalues': 13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 + '@polkadot/wasm-bridge@7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)))': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/x-randomvalues': 13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)) + tslib: 2.8.1 + '@polkadot/wasm-crypto-asmjs@4.6.1(@polkadot/util@6.11.1)': dependencies: '@babel/runtime': 7.25.7 @@ -8792,6 +9137,11 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/wasm-crypto-asmjs@7.4.1(@polkadot/util@13.2.2)': + dependencies: + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/wasm-crypto-init@6.4.1(@polkadot/util@10.4.2)(@polkadot/x-randomvalues@10.4.2)': dependencies: '@babel/runtime': 7.25.7 @@ -8801,14 +9151,14 @@ snapshots: '@polkadot/wasm-crypto-wasm': 6.4.1(@polkadot/util@10.4.2) '@polkadot/x-randomvalues': 10.4.2 - '@polkadot/wasm-crypto-init@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)))': + '@polkadot/wasm-crypto-init@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': dependencies: '@polkadot/util': 12.6.2 - '@polkadot/wasm-bridge': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2))) + '@polkadot/wasm-bridge': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1))) '@polkadot/wasm-crypto-asmjs': 7.3.2(@polkadot/util@12.6.2) '@polkadot/wasm-crypto-wasm': 7.3.2(@polkadot/util@12.6.2) '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) - '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)) + '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 '@polkadot/wasm-crypto-init@7.3.2(@polkadot/util@13.1.1)(@polkadot/x-randomvalues@13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': @@ -8821,6 +9171,16 @@ snapshots: '@polkadot/x-randomvalues': 13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 + '@polkadot/wasm-crypto-init@7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)))': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-bridge': 7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2))) + '@polkadot/wasm-crypto-asmjs': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/wasm-crypto-wasm': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/x-randomvalues': 13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)) + tslib: 2.8.1 + '@polkadot/wasm-crypto-wasm@4.6.1(@polkadot/util@6.11.1)': dependencies: '@babel/runtime': 7.25.7 @@ -8849,6 +9209,12 @@ snapshots: '@polkadot/wasm-util': 7.3.2(@polkadot/util@13.1.1) tslib: 2.7.0 + '@polkadot/wasm-crypto-wasm@7.4.1(@polkadot/util@13.2.2)': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + tslib: 2.8.1 + '@polkadot/wasm-crypto@4.6.1(@polkadot/util@6.11.1)(@polkadot/x-randomvalues@6.11.1)': dependencies: '@babel/runtime': 7.25.7 @@ -8876,15 +9242,15 @@ snapshots: '@polkadot/wasm-util': 6.4.1(@polkadot/util@10.4.2) '@polkadot/x-randomvalues': 10.4.2 - '@polkadot/wasm-crypto@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)))': + '@polkadot/wasm-crypto@7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': dependencies: '@polkadot/util': 12.6.2 - '@polkadot/wasm-bridge': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2))) + '@polkadot/wasm-bridge': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1))) '@polkadot/wasm-crypto-asmjs': 7.3.2(@polkadot/util@12.6.2) - '@polkadot/wasm-crypto-init': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2))) + '@polkadot/wasm-crypto-init': 7.3.2(@polkadot/util@12.6.2)(@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1))) '@polkadot/wasm-crypto-wasm': 7.3.2(@polkadot/util@12.6.2) '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) - '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2)) + '@polkadot/x-randomvalues': 12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 '@polkadot/wasm-crypto@7.3.2(@polkadot/util@13.1.1)(@polkadot/x-randomvalues@13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)))': @@ -8898,6 +9264,17 @@ snapshots: '@polkadot/x-randomvalues': 13.1.1(@polkadot/util@13.1.1)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1)) tslib: 2.7.0 + '@polkadot/wasm-crypto@7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)))': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-bridge': 7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2))) + '@polkadot/wasm-crypto-asmjs': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/wasm-crypto-init': 7.4.1(@polkadot/util@13.2.2)(@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2))) + '@polkadot/wasm-crypto-wasm': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/x-randomvalues': 13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)) + tslib: 2.8.1 + '@polkadot/wasm-util@6.4.1(@polkadot/util@10.4.2)': dependencies: '@babel/runtime': 7.25.7 @@ -8913,6 +9290,11 @@ snapshots: '@polkadot/util': 13.1.1 tslib: 2.7.0 + '@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2)': + dependencies: + '@polkadot/util': 13.2.2 + tslib: 2.8.1 + '@polkadot/x-bigint@10.4.2': dependencies: '@babel/runtime': 7.25.7 @@ -8928,6 +9310,11 @@ snapshots: '@polkadot/x-global': 13.1.1 tslib: 2.7.0 + '@polkadot/x-bigint@13.2.2': + dependencies: + '@polkadot/x-global': 13.2.2 + tslib: 2.8.1 + '@polkadot/x-bigint@8.7.1': dependencies: '@babel/runtime': 7.25.7 @@ -8952,6 +9339,12 @@ snapshots: node-fetch: 3.3.2 tslib: 2.7.0 + '@polkadot/x-fetch@13.2.2': + dependencies: + '@polkadot/x-global': 13.2.2 + node-fetch: 3.3.2 + tslib: 2.8.1 + '@polkadot/x-fetch@8.7.1(encoding@0.1.13)': dependencies: '@babel/runtime': 7.25.7 @@ -8973,6 +9366,10 @@ snapshots: dependencies: tslib: 2.7.0 + '@polkadot/x-global@13.2.2': + dependencies: + tslib: 2.8.1 + '@polkadot/x-global@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -8986,10 +9383,10 @@ snapshots: '@babel/runtime': 7.25.7 '@polkadot/x-global': 10.4.2 - '@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@12.6.2))': + '@polkadot/x-randomvalues@12.6.2(@polkadot/util@12.6.2)(@polkadot/wasm-util@7.3.2(@polkadot/util@13.1.1))': dependencies: '@polkadot/util': 12.6.2 - '@polkadot/wasm-util': 7.3.2(@polkadot/util@12.6.2) + '@polkadot/wasm-util': 7.3.2(@polkadot/util@13.1.1) '@polkadot/x-global': 12.6.2 tslib: 2.7.0 @@ -9000,6 +9397,13 @@ snapshots: '@polkadot/x-global': 13.1.1 tslib: 2.7.0 + '@polkadot/x-randomvalues@13.2.2(@polkadot/util@13.2.2)(@polkadot/wasm-util@7.4.1(@polkadot/util@13.2.2))': + dependencies: + '@polkadot/util': 13.2.2 + '@polkadot/wasm-util': 7.4.1(@polkadot/util@13.2.2) + '@polkadot/x-global': 13.2.2 + tslib: 2.8.1 + '@polkadot/x-randomvalues@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -9030,6 +9434,11 @@ snapshots: '@polkadot/x-global': 13.1.1 tslib: 2.7.0 + '@polkadot/x-textdecoder@13.2.2': + dependencies: + '@polkadot/x-global': 13.2.2 + tslib: 2.8.1 + '@polkadot/x-textdecoder@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -9055,6 +9464,11 @@ snapshots: '@polkadot/x-global': 13.1.1 tslib: 2.7.0 + '@polkadot/x-textencoder@13.2.2': + dependencies: + '@polkadot/x-global': 13.2.2 + tslib: 2.8.1 + '@polkadot/x-textencoder@6.11.1': dependencies: '@babel/runtime': 7.25.7 @@ -9092,6 +9506,15 @@ snapshots: - bufferutil - utf-8-validate + '@polkadot/x-ws@13.2.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + dependencies: + '@polkadot/x-global': 13.2.2 + tslib: 2.8.1 + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@polkadot/x-ws@8.7.1': dependencies: '@babel/runtime': 7.25.7 @@ -9217,7 +9640,7 @@ snapshots: '@subsocial/definitions@0.8.14(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: - '@polkadot/api': 14.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@polkadot/api': 14.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) lodash.camelcase: 4.3.0 transitivePeerDependencies: - bufferutil @@ -9338,6 +9761,8 @@ snapshots: '@substrate/ss58-registry@1.50.0': {} + '@substrate/ss58-registry@1.51.0': {} + '@substrate/txwrapper-core@7.5.1(@polkadot/util-crypto@13.1.1(@polkadot/util@13.1.1))(@polkadot/util@13.1.1)(bufferutil@4.0.8)(utf-8-validate@5.0.10)': dependencies: '@polkadot/api': 11.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -13504,6 +13929,8 @@ snapshots: tslib@2.7.0: {} + tslib@2.8.1: {} + tsx@4.16.2: dependencies: esbuild: 0.21.5 diff --git a/typescript-api/package.json b/typescript-api/package.json index 9af450f5ef..af7efeb141 100644 --- a/typescript-api/package.json +++ b/typescript-api/package.json @@ -32,7 +32,6 @@ "generate:meta:moonriver": "pnpm tsx node_modules/@polkadot/typegen/scripts/polkadot-types-from-chain.mjs --endpoint ./metadata-moonriver.json --package @moonbeam/api-augment/moonbeam/interfaces --output ./src/moonriver/interfaces", "generate:meta:moonbeam": "pnpm tsx node_modules/@polkadot/typegen/scripts/polkadot-types-from-chain.mjs --endpoint ./metadata-moonbeam.json --package @moonbeam/api-augment/moonbeam/interfaces --output ./src/moonbeam/interfaces", "build": "tsc -b --verbose", - "publish": "npm publish", "deploy": "pnpm generate && pnpm build && pnpm publish", "fmt:fix": "prettier --write --ignore-unknown --plugin prettier-plugin-jsdoc 'src/**/*' 'scripts/**/*'" }, @@ -88,7 +87,6 @@ "@polkadot/types": "14.0.1", "@polkadot/types-codec": "14.0.1", "@types/node": "^22.5.5", - "moonbeam-types-bundle": "workspace:*", "prettier": "2.8.8", "prettier-plugin-jsdoc": "^0.3.38", "tsx": "^4.19.1", From c155768dfa954147e65b678551b232a325c745bb Mon Sep 17 00:00:00 2001 From: Rodrigo Quelhas <22591718+RomarQ@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:46:53 +0000 Subject: [PATCH 2/2] feat(lazy-loading): Support querying old blocks by number (#3035) * feat(lazy-loading): support querying old ethereum blocks by number when using lazy-loading * format code --- node/service/src/lazy_loading/backend.rs | 23 +++++++++++++++++++---- node/service/src/lazy_loading/helpers.rs | 2 +- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/node/service/src/lazy_loading/backend.rs b/node/service/src/lazy_loading/backend.rs index 603667a9be..f489590e42 100644 --- a/node/service/src/lazy_loading/backend.rs +++ b/node/service/src/lazy_loading/backend.rs @@ -142,7 +142,22 @@ impl Blockchain { pub fn id(&self, id: BlockId) -> Option { match id { BlockId::Hash(h) => Some(h), - BlockId::Number(n) => self.storage.read().hashes.get(&n).cloned(), + BlockId::Number(n) => { + let block_hash = self.storage.read().hashes.get(&n).cloned(); + match block_hash { + None => { + let block_hash = + self.rpc_client.block_hash::(Some(n)).ok().flatten(); + + block_hash.clone().map(|h| { + self.storage.write().hashes.insert(n, h); + }); + + block_hash + } + block_hash => block_hash, + } + } } } @@ -1506,17 +1521,17 @@ impl RPC { pub fn block_hash( &self, - block_number: Option, + block_number: Option<::Number>, ) -> Result, jsonrpsee::core::ClientError> { let request = &|| { substrate_rpc_client::ChainApi::< - BlockNumber, + ::Number, Block::Hash, Block::Header, SignedBlock, >::block_hash( &self.http_client, - block_number.map(|n| ListOrValue::Value(NumberOrHex::Number(n.into()))), + block_number.map(|n| ListOrValue::Value(NumberOrHex::Hex(n.into()))), ) }; diff --git a/node/service/src/lazy_loading/helpers.rs b/node/service/src/lazy_loading/helpers.rs index 008616c9c6..6492b9850a 100644 --- a/node/service/src/lazy_loading/helpers.rs +++ b/node/service/src/lazy_loading/helpers.rs @@ -33,7 +33,7 @@ pub fn produce_genesis_block( let genesis_block_hash: TBl::Hash = backend .rpc_client - .block_hash::(Some(0)) + .block_hash::(Some(Default::default())) .unwrap() .expect("Not able to obtain genesis block hash");