From e471cb20d3130d512c804cb7ff450ac5a12e0495 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Tue, 17 Feb 2026 14:42:07 +0000 Subject: [PATCH 1/3] Bump Codama JS renderer to v2 --- .github/workflows/main.yml | 2 +- Makefile | 3 + README.md | 2 +- clients/js/package.json | 4 +- clients/js/pnpm-lock.yaml | 678 ++++++++++-------- .../instructions/advanceNonceAccount.ts | 18 +- .../js/src/generated/instructions/allocate.ts | 14 +- .../instructions/allocateWithSeed.ts | 17 +- .../js/src/generated/instructions/assign.ts | 14 +- .../generated/instructions/assignWithSeed.ts | 14 +- .../instructions/authorizeNonceAccount.ts | 17 +- .../generated/instructions/createAccount.ts | 18 +- .../instructions/createAccountWithSeed.ts | 18 +- .../instructions/initializeNonceAccount.ts | 18 +- .../src/generated/instructions/transferSol.ts | 14 +- .../instructions/transferSolWithSeed.ts | 18 +- .../instructions/upgradeNonceAccount.ts | 14 +- .../instructions/withdrawNonceAccount.ts | 22 +- clients/js/src/generated/programs/system.ts | 140 +++- clients/js/src/generated/shared/index.ts | 125 ---- clients/js/tsconfig.json | 2 +- codama.json | 8 +- package.json | 6 +- pnpm-lock.yaml | 59 +- 24 files changed, 660 insertions(+), 585 deletions(-) delete mode 100644 clients/js/src/generated/shared/index.ts diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 09a7e06..7b931ea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,7 +62,7 @@ jobs: toolchain: format - name: Generate Clients - run: pnpm generate:clients + run: make generate-clients - name: Check Working Directory run: | diff --git a/Makefile b/Makefile index dc294bd..6c29c6c 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,9 @@ lint-features-%: test-%: cargo $(nightly) test --manifest-path $(subst -,/,$*)/Cargo.toml +generate-clients: + pnpm codama run --all $(ARGS) + format-js: cd ./clients/js && pnpm install && pnpm format diff --git a/README.md b/README.md index 9b205bb..a23d0a1 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ pnpm install You can generate clients for them using the following command. ```sh -pnpm generate:clients +make generate-clients ``` ## Managing clients diff --git a/clients/js/package.json b/clients/js/package.json index fe43358..3d5e0f2 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -43,11 +43,11 @@ }, "homepage": "https://github.com/solana-program/system#readme", "peerDependencies": { - "@solana/kit": "^6.0.0" + "@solana/kit": "^6.1.0" }, "devDependencies": { "@solana/eslint-config-solana": "^6.0.0", - "@solana/kit": "^6.0.0", + "@solana/kit": "^6.1.0", "@types/node": "^24", "eslint": "^9.39.2", "prettier": "^3.7.4", diff --git a/clients/js/pnpm-lock.yaml b/clients/js/pnpm-lock.yaml index 2af9fc9..92bef3a 100644 --- a/clients/js/pnpm-lock.yaml +++ b/clients/js/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^6.0.0 version: 6.0.0(@eslint/js@9.39.2)(@types/eslint@9.6.1)(@types/eslint__js@8.42.3)(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@7.16.1(@typescript-eslint/parser@8.48.1(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(jest@30.2.0(@types/node@24.3.0))(typescript@5.9.3))(eslint-plugin-react-hooks@4.6.0(eslint@9.39.2))(eslint-plugin-simple-import-sort@10.0.0(eslint@9.39.2))(eslint-plugin-sort-keys-fix@1.1.2)(eslint-plugin-typescript-sort-keys@3.2.0(@typescript-eslint/parser@8.48.1(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(typescript@5.9.3))(eslint@9.39.2)(globals@14.0.0)(jest@30.2.0(@types/node@24.3.0))(typescript-eslint@8.48.1(eslint@9.39.2)(typescript@5.9.3))(typescript@5.9.3) '@solana/kit': - specifier: ^6.0.0 - version: 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + specifier: ^6.1.0 + version: 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) '@types/node': specifier: ^24 version: 24.3.0 @@ -945,8 +945,8 @@ packages: '@sinonjs/fake-timers@13.0.5': resolution: {integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==} - '@solana/accounts@6.0.1': - resolution: {integrity: sha512-wdW2KI31jeAIyryL2hLytu+bmIbfKBPkO2Qsu7DO80m2pqOVVOGQ0L0wIqFdNXZN7Eu/FVTY8sh6gqF9bnf5LQ==} + '@solana/accounts@6.1.0': + resolution: {integrity: sha512-0jhmhSSS71ClLtBQIDrLlhkiNER4M9RIXTl1eJ1yJoFlE608JaKHTjNWsdVKdke7uBD6exdjNZkIVmouQPHMcA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -954,8 +954,8 @@ packages: typescript: optional: true - '@solana/addresses@6.0.1': - resolution: {integrity: sha512-i/7JuTZF1MInCulP8/+aK9khKcDgjTrqqEl3wRmg6Kk/Dq+rOBrjXggLf3bEtGSWV53iH0NGDQt+psUNFd5Reg==} + '@solana/addresses@6.1.0': + resolution: {integrity: sha512-QT04Vie4iICaalQQRJFMGj/P56IxXiwFtVuZHu1qjZUNmuGTOvX6G98b27RaGtLzpJ3NIku/6OtKxLUBqAKAyQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -963,8 +963,8 @@ packages: typescript: optional: true - '@solana/assertions@6.0.1': - resolution: {integrity: sha512-Fnk0PCxjeNLDrsRQX+DRS3HnN5PRYQedosmtqx0/xK2CIB4lG/4coK/IdoL6i8/yS4EcKq8gNcMfH4fkmaMfLQ==} + '@solana/assertions@6.1.0': + resolution: {integrity: sha512-pLgxB2xxTk2QfTaWpnRpSMYgaPkKYDQgptRvbwmuDQnOW1Zopg+42MT2UrDGd3UFMML1uOFPxIwKM6m51H0uXw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -972,8 +972,8 @@ packages: typescript: optional: true - '@solana/codecs-core@6.0.1': - resolution: {integrity: sha512-OnUQk94qfvfE0nVveZ638aNUL3tyRJoorUFiAG0ICTGUo3c6fkYb8vH23o/5O2qmuSmYND1sn+UCaldNMVkFpg==} + '@solana/codecs-core@6.1.0': + resolution: {integrity: sha512-5rNnDOOm2GRFMJbd9imYCPNvGOrQ+TZ53NCkFFWbbB7f+L9KkLeuuAsDMFN1lCziJFlymvN785YtDnMeWj2W+g==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -981,8 +981,8 @@ packages: typescript: optional: true - '@solana/codecs-data-structures@6.0.1': - resolution: {integrity: sha512-ImPGi5wtpca0gLaD9dJGj29z6GMU8tCYjqnmTc5Lyh5S80iCz9wNlwT1/VvPM6gqeIOFVx8bM9H1iljQ7MuCMw==} + '@solana/codecs-data-structures@6.1.0': + resolution: {integrity: sha512-1cb9g5hrrucTuGkGxqVVq7dCwSMnn4YqwTe365iKkK8HBpLBmUl8XATf1MUs5UtDun1g9eNWOL72Psr8mIUqTQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -990,8 +990,8 @@ packages: typescript: optional: true - '@solana/codecs-numbers@6.0.1': - resolution: {integrity: sha512-ZrI1NjUsf4I+Klue/2rlQbZLcGRom/G2E4VB/8x4IEHGOeFLQhXcxmnib8kdgomQRYOzF1BjVDmCYxvZr+6AWA==} + '@solana/codecs-numbers@6.1.0': + resolution: {integrity: sha512-YPQwwl6LE3igH23ah+d8kgpyE5xFcPbuwhxCDsLWqY/ESrvO/0YQSbsgIXahbhZxN59ZC4uq1LnHhBNbpCSVQg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -999,8 +999,8 @@ packages: typescript: optional: true - '@solana/codecs-strings@6.0.1': - resolution: {integrity: sha512-OmMIfMFbbJVIxveBeATKCj9DsmZ8l4vJPnOLHUop0hLWRiYHTQ1qokMqfk/X8PCmUjXmbXnlp63BikGtdKN3/g==} + '@solana/codecs-strings@6.1.0': + resolution: {integrity: sha512-pRH5uAn4VCFUs2rYiDITyWsRnpvs3Uh/nhSc6OSP/kusghcCcCJcUzHBIjT4x08MVacXmGUlSLe/9qPQO+QK3Q==} engines: {node: '>=20.18.0'} peerDependencies: fastestsmallesttextencoderdecoder: ^1.0.22 @@ -1011,8 +1011,8 @@ packages: typescript: optional: true - '@solana/codecs@6.0.1': - resolution: {integrity: sha512-xNL69WA50fCMItk3zXA7UMDHVMDyW9paL32wwxzL++sv7txfgma3UIAxP90tn9GBMwjPTB74hI6ook1mA2DhTQ==} + '@solana/codecs@6.1.0': + resolution: {integrity: sha512-VHBS3t8fyVjE0Nqo6b4TUnzdwdRaVo+B5ufHhPLbbjkEXzz8HB4E/OBjgasn+zWGlfScfQAiBFOsfZjbVWu4XA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1020,8 +1020,8 @@ packages: typescript: optional: true - '@solana/errors@6.0.1': - resolution: {integrity: sha512-sMe5GCsXto8F1KDeq9GbZR0+m841SqEYep3NAcYlC0lqF2RG4giaaPQHgrWI5DJR/L7yc8FzUIQfTxnaN7bwOQ==} + '@solana/errors@6.1.0': + resolution: {integrity: sha512-cqSwcw3Rmn85UR7PyF5nKPdlQsRYBkx7YGRvFaJ6Sal1PM+bfolhL5iT7STQoXxdhXGYwHMPg7kZYxmMdjwnJA==} engines: {node: '>=20.18.0'} hasBin: true peerDependencies: @@ -1047,8 +1047,26 @@ packages: typescript: ^5.9.3 typescript-eslint: ^8.49.0 - '@solana/fast-stable-stringify@6.0.1': - resolution: {integrity: sha512-60F0TaKm+mbIfsj94TaPgO2mbKtXVYyELC1Kf8YoRo9jIQSXVGXdljXR1UzqSxrN6V4Ueyx3RE5jW9fAIzQZ/A==} + '@solana/fast-stable-stringify@6.1.0': + resolution: {integrity: sha512-QXUfDFaJCFeARsxJgScWmJ153Tit7Cimk9y0UWWreNBr2Aphi67Nlcj/tr7UABTO0Qaw/0gwrK76zz3m1t3nIw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/functional@6.1.0': + resolution: {integrity: sha512-+Sm8ldVxSTHIKaZDvcBu81FPjknXx6OMPlakkKmXjKxPgVLl86ruqMo2yEwoDUHV7DysLrLLcRNn13rfulomRw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/instruction-plans@6.1.0': + resolution: {integrity: sha512-zcsHg544t1zn7LLOVUxOWYlsKn9gvT7R+pL3cTiP2wFNoUN0h9En87H6nVqkZ8LWw23asgW0uM5uJGwfBx2h1Q==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1056,8 +1074,8 @@ packages: typescript: optional: true - '@solana/functional@6.0.1': - resolution: {integrity: sha512-qHPw87tCf4Kq4H9cpH6XV/C1wKJzSj0OQ8t+BqbFxvpX+c7svSRUY/It2gJOAcJd9f9hduQ3ZrqARXOU7aILvw==} + '@solana/instructions@6.1.0': + resolution: {integrity: sha512-w1LdbJ3yanESckNTYC5KPckgN/25FyGCm07WWrs+dCnnpRNeLiVHIytXCPmArOVAXVkOYidXzhWmqCzqKUjYaA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1065,8 +1083,8 @@ packages: typescript: optional: true - '@solana/instruction-plans@6.0.1': - resolution: {integrity: sha512-aEwCfksUxVgcrOGnDJmmIp4phYn+DpOeS0fq7v3uteBu7T7lkwW+EJCu2iT1j1VLxcjDuPf243pNBp5GR13+yw==} + '@solana/keys@6.1.0': + resolution: {integrity: sha512-C/SGCl3VOgBQZ0mLrMxCcJYnMsGpgE8wbx29jqRY+R91m5YhS1f/GfXJPR1lN/h7QGrJ6YDm8eI0Y3AZ7goKHg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1074,8 +1092,8 @@ packages: typescript: optional: true - '@solana/instructions@6.0.1': - resolution: {integrity: sha512-qNTc3GrmiesN2x27Ap8qhKKn9vIocz/1Dc/Am7hiYU4TFiKtuj34TARyDa5VVbLGKRY5vZCpNsX2jqVx2V0lSQ==} + '@solana/kit@6.1.0': + resolution: {integrity: sha512-24exn11BPonquufyCkGgypVtmN4JOsdGMsbF3EZ4kFyk7ZNryCn/N8eELr1FCVrHWRXoc0xy/HFaESBULTMf6g==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1083,8 +1101,8 @@ packages: typescript: optional: true - '@solana/keys@6.0.1': - resolution: {integrity: sha512-naN3yRzN2VDJUgdcrxwsObr2ik8MV2brOI/MLrOWDUW8nlVfcs4OC7mB/HC1hYd60DT0rsP18P33Gjd8juknYw==} + '@solana/nominal-types@6.1.0': + resolution: {integrity: sha512-+skHjN0arNNB9TLsGqA94VCx7euyGURI+qG6wck6E4D7hH6i6DxGiVrtKRghx+smJkkLtTm9BvdVKGoeNQYr7Q==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1092,8 +1110,8 @@ packages: typescript: optional: true - '@solana/kit@6.0.1': - resolution: {integrity: sha512-zCU5URMgkCgL5hZOxjIzhAD7SjqVAJN4sbpyC4MatxbXE/NGoabPc4I2y5STrXsZLokQD0t4KZ1zs9v5M8Ylag==} + '@solana/offchain-messages@6.1.0': + resolution: {integrity: sha512-jrUb7HGUnRA+k44upcqKeevtEdqMxYRSlFdE0JTctZunGlP3GCcTl12tFOpbnFHvBLt8RwS62+nyeES8zzNwXA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1101,8 +1119,8 @@ packages: typescript: optional: true - '@solana/nominal-types@6.0.1': - resolution: {integrity: sha512-2/1loP3iHgLQIaeksrDPNL2be2zboKbsF2EKDAt7zqbiDCOsPY9Kgdq50WJGGileIXD0v7yincq6UTdOLcaR8Q==} + '@solana/options@6.1.0': + resolution: {integrity: sha512-/4FtVfR6nkHkMCumyh7/lJ6jMqyES6tKUbOJRa6gJxcIUWeRDu+XrHTHLf3gRNUqDAbFvW8FMIrQm7PdreZgRA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1110,8 +1128,8 @@ packages: typescript: optional: true - '@solana/offchain-messages@6.0.1': - resolution: {integrity: sha512-lwpNl+kusH2v5nLgUfwxme66uDonCn8+TqzYqJeENolaAbV0nnF8rV4ZHjfFs1Bc/3UG+TxrI0WYvRI+B5nVBA==} + '@solana/plugin-core@6.1.0': + resolution: {integrity: sha512-2nmNCPa6B1QArqpAZHWUkK6K7UXLTrekfcfJm2V//ATEtLpKEBlv0c3mrhOYwNAKP2TpNuvEV33InXWKst9oXQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1119,8 +1137,8 @@ packages: typescript: optional: true - '@solana/options@6.0.1': - resolution: {integrity: sha512-ld13WWyMgicU8FkN6dNOmMJgVaV0uqU8HDQRJCfClsPl0v2TQ1t3aOYHkxpYfX+OvBjja1x2v2wflqJgUHKS+Q==} + '@solana/plugin-interfaces@6.1.0': + resolution: {integrity: sha512-eWSzfOuwtHUp8vljf5V24Tkz3WxqxiV0vD/BJZBNRZMdYRw3Cw3oeWcvEqHHxGUOie6AjIK8GrKggi8F73ZXbg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1128,8 +1146,8 @@ packages: typescript: optional: true - '@solana/plugin-core@6.0.1': - resolution: {integrity: sha512-mrVb6cf/HurU93z2bgCOoRxWuZWF/fWzIK+v7YMl9t8aKHhGdB4/iElXvPwGoArapZJaAe7dRqHgCJvYRPFvCg==} + '@solana/program-client-core@6.1.0': + resolution: {integrity: sha512-5Apka+ulWNfLNLYNR63pLnr5XvkXTQWeaftWED93iTWTZrZv9SyFWcmIsaes6eqGXMQ3RhlebnrWODtKuAA62g==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1137,8 +1155,8 @@ packages: typescript: optional: true - '@solana/programs@6.0.1': - resolution: {integrity: sha512-eKsSVuADG/bzTu66iwhJctbIEQQLZVnD/kx98gtPAuNG6Z1WjMXO8tn6EYLn3ndc5yS+oeNSQBV6z3ozL+gTkQ==} + '@solana/programs@6.1.0': + resolution: {integrity: sha512-i4L4gSlIHDsdYRt3/YKVKMIN3UuYSKHRqK9B+AejcIc0y6Y/AXnHqzmpBRXEhvTXz18nt59MLXpVU4wu7ASjJA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1146,8 +1164,8 @@ packages: typescript: optional: true - '@solana/promises@6.0.1': - resolution: {integrity: sha512-6W8yFBtjhwy8Gn7aagXBUjiQejpa+ENgqot2uy3LACQPQMCnd+TwZk9Pggnm5+Q12rm+d9bMvAa4110eoXR0Bw==} + '@solana/promises@6.1.0': + resolution: {integrity: sha512-/mUW6peXQiEOaylLpGv4vtkvPzQvSbfhX9j5PNIK/ry4S3SHRQ3j3W/oGy4y3LR5alwo7NcVbubrkh4e4xwcww==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1155,8 +1173,8 @@ packages: typescript: optional: true - '@solana/rpc-api@6.0.1': - resolution: {integrity: sha512-lCXPGHx2eF8wl0kdpuDLWX44vdDaTcPTAD9hCIsHQFLWeahJDarieoOacaAuse6TsRtGaPExBvbW6Da555Lnaw==} + '@solana/rpc-api@6.1.0': + resolution: {integrity: sha512-+hO5+kZjJHuUNATUQxlJ1+ztXFkgn1j46zRwt3X7kF+VHkW3wsQ7up0JTS+Xsacmkrj1WKfymQweq8JTrsAG8A==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1164,8 +1182,8 @@ packages: typescript: optional: true - '@solana/rpc-parsed-types@6.0.1': - resolution: {integrity: sha512-2CnWhtJuiOgefU3EerwM1bg/OvmLJTMBUuGiSVoVAr7WfGjUXcoRa3mNO0HUDDoRo2gZwM/8BaFzhiRSbamsmQ==} + '@solana/rpc-parsed-types@6.1.0': + resolution: {integrity: sha512-YKccynVgWt/gbs0tBYstNw6BSVuOeWdeAldTB2OgH95o2Q04DpO4v97X1MZDysA4SvSZM30Ek5Ni5ss3kskgdw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1173,8 +1191,8 @@ packages: typescript: optional: true - '@solana/rpc-spec-types@6.0.1': - resolution: {integrity: sha512-dosqI9gWs5Cz5T9Uanu4FkMkBN7AD6bRVw0YDIkalRcpC50Ak2iP48fJKArw3lh/phjcxEBVQxY3XeKEVGZP7Q==} + '@solana/rpc-spec-types@6.1.0': + resolution: {integrity: sha512-tldMv1b6VGcvcRrY5MDWKlsyEKH6K96zE7gAIpKDX2G4T47ZOV+OMA3nh6xQpRgtyCUBsej0t80qmvTBDX/5IQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1182,8 +1200,8 @@ packages: typescript: optional: true - '@solana/rpc-spec@6.0.1': - resolution: {integrity: sha512-SfZZUCbpiKNHsIAYq9WKd6PhnpXkH8ASRIda9KMkpFtTVg1thm4sA/A/Jpk8vJDpUVvzYLBVblNHQWqwRiRxAA==} + '@solana/rpc-spec@6.1.0': + resolution: {integrity: sha512-RxpkIGizCYhXGUcap7npV2S/rAXZ7P/liozY/ExjMmCxYTDwGIW33kp/uH/JRxuzrL8+f8FqY76VsqqIe+2VZw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1191,8 +1209,8 @@ packages: typescript: optional: true - '@solana/rpc-subscriptions-api@6.0.1': - resolution: {integrity: sha512-yj6niyZ6jqwg4u4oi55gDPzDNwXdgGBuu1zVfUnD6auCavDl4OxziUEtRIQ3NURJZa5kjTqQ48TuR0tD55vfiA==} + '@solana/rpc-subscriptions-api@6.1.0': + resolution: {integrity: sha512-I6J+3VU0dda6EySKbDyd+1urC7RGIRPRp0DcWRVcy68NOLbq0I5C40Dn9O2Zf8iCdK4PbQ7JKdCvZ/bDd45hdg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1200,8 +1218,8 @@ packages: typescript: optional: true - '@solana/rpc-subscriptions-channel-websocket@6.0.1': - resolution: {integrity: sha512-lxjfG+krZF8np69SQyRbmQL8jYNV/G69Ak782GYYfkEdAYztFs9OOQMgZNuciIgUlQAcXWWkNjJ6GhIbisg9NA==} + '@solana/rpc-subscriptions-channel-websocket@6.1.0': + resolution: {integrity: sha512-vsx9b+uyCr9L3giao/BTiBFA8DxV5+gDNFq0t5uL21uQ17JXzBektwzHuHoth9IjkvXV/h+IhwXfuLE9Qm4GQg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1209,8 +1227,8 @@ packages: typescript: optional: true - '@solana/rpc-subscriptions-spec@6.0.1': - resolution: {integrity: sha512-FhZOXpP71R5y7q0TEvAFNJ+WmxIJUfhQicgae71WQtaiw+vM/dFnT/AL3I9rRBVzF0UQ7wIeqkuVKltdJEdzqQ==} + '@solana/rpc-subscriptions-spec@6.1.0': + resolution: {integrity: sha512-P06jhqzHpZGaLeJmIQkpDeMDD1xUp53ARpmXMsduMC+U5ZKQt29CLo+JrR18boNtls6WfttjVMEbzF25/4UPVA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1218,8 +1236,8 @@ packages: typescript: optional: true - '@solana/rpc-subscriptions@6.0.1': - resolution: {integrity: sha512-h2LXD8PiXPZca3vtECmUSEzLjc5m6EswgnJcq+HtJqA0M+xINFRl8mL6yS5D2d1Cf7sl/CwU/7935GJ8uLFeJA==} + '@solana/rpc-subscriptions@6.1.0': + resolution: {integrity: sha512-sqwj+cQinWcZ7M/9+cudKxMPTkTQyGP73980vPCWM7vCpPkp2qzgrEie4DdgDGo+NMwIjeFgu2kdUuLHI3GD/g==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1227,8 +1245,8 @@ packages: typescript: optional: true - '@solana/rpc-transformers@6.0.1': - resolution: {integrity: sha512-tkyTh5jwK/IZV+jI4plFttG1l43g47YB/laFtxYvu8OZx5RTCljryPh5RamjxGAhFk3w6xnLZJbc3MBk8VrPsQ==} + '@solana/rpc-transformers@6.1.0': + resolution: {integrity: sha512-OsSuuRPmsmS02eR9Zz+4iTsr+21hvEMEex5vwbwN6LAGPFlQ4ohqGkxgZCwmYd+Q5HWpnn9Uuf1MDTLLrKQkig==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1236,8 +1254,8 @@ packages: typescript: optional: true - '@solana/rpc-transport-http@6.0.1': - resolution: {integrity: sha512-l9TOpQq4cSIhReyzLJb7j+03YaUDClDJOzJr7ZQSo1fqt7Ww6C5+dKOVIUUu6tg9AOO8mCA0QVT/rFmZ9ZjhiQ==} + '@solana/rpc-transport-http@6.1.0': + resolution: {integrity: sha512-3ebaTYuglLJagaXtjwDPVI7SQeeeFN2fpetpGKsuMAiti4fzYqEkNN8FIo+nXBzqqG/cVc2421xKjXl6sO1k/g==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1245,8 +1263,8 @@ packages: typescript: optional: true - '@solana/rpc-types@6.0.1': - resolution: {integrity: sha512-40nXhThKNzh0ih2Pd8ACsIKPgVaP/6OqbLfgcZxPjZ10XjhjMy9crwW1ZF0EPhK8uo+bs9gtztl9OVWWgYYrNQ==} + '@solana/rpc-types@6.1.0': + resolution: {integrity: sha512-lR+Cb3v5Rpl49HsXWASy++TSE1AD86eRKabY+iuWnbBMYVGI4MamAvYwgBiygsCNc30nyO2TFNj9STMeSD/gAg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1254,8 +1272,8 @@ packages: typescript: optional: true - '@solana/rpc@6.0.1': - resolution: {integrity: sha512-fuRnm1SNcRLWii6N3WeJL8LSJJDEVEdS+ZDXclUWAPXUccl6wGb99/1tHWeOOwczgk9nmWoTYY9XeOLJt88HSg==} + '@solana/rpc@6.1.0': + resolution: {integrity: sha512-R3y5PklW9mPy5Y34hsXj40R28zN2N7AGLnHqYJVkXkllwVub/QCNpSdDxAnbbS5EGOYGoUOW8s5LFoXwMSr1LQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1263,8 +1281,8 @@ packages: typescript: optional: true - '@solana/signers@6.0.1': - resolution: {integrity: sha512-iby4CGjk4pBNqytpyyPK2IGZ8/BMcrdtubVCuSYze2DJE3RdrPkuhVv2A6A6Cfk/0DPfUkqZQtTNMxCOj6oCbw==} + '@solana/signers@6.1.0': + resolution: {integrity: sha512-WDPGZJr6jIe2dEChv/2KQBnaga8dqOjd6ceBj/HcDHxnCudo66t7GlyZ9+9jMO40AgOOb7EDE5FDqPMrHMg5Yw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1272,8 +1290,8 @@ packages: typescript: optional: true - '@solana/subscribable@6.0.1': - resolution: {integrity: sha512-GGXvRVzOAJlbGwwgOHbcxwT8lILkgrlHYO72ChkG8IbJWq7eTi1+Uz3TQTsXtC923dZ2XHLqp+aHl7Kx3L3ENg==} + '@solana/subscribable@6.1.0': + resolution: {integrity: sha512-HiUfkxN7638uxPmY4t0gI4+yqnFLZYJKFaT9EpWIuGrOB1d9n+uOHNs3NU7cVMwWXgfZUbztTCKyCVTbcwesNg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1281,8 +1299,8 @@ packages: typescript: optional: true - '@solana/sysvars@6.0.1': - resolution: {integrity: sha512-fSMasRQUfbzrhZ3t0XdVpwIezHRelPx3ZxkqyUy8Lx/90YzR1kxaJpmNS7c1pBV60scdiJVQ4vXQtetKxIgRVQ==} + '@solana/sysvars@6.1.0': + resolution: {integrity: sha512-KwJyBBrAOx0BgkiZqOKAaySDb/0JrUFSBQL9/O1kSKGy9TCRX55Ytr1HxNTcTPppWNpbM6JZVK+yW3Ruey0HRw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1290,8 +1308,8 @@ packages: typescript: optional: true - '@solana/transaction-confirmation@6.0.1': - resolution: {integrity: sha512-x0sXnS75xwchAtQU0UbQ7wBQoWqgUQkn0G4DKQMEGllWGRsJFvpQzuUqAgh5fNhe2sMt8+4QdQHrI01zUNDDtQ==} + '@solana/transaction-confirmation@6.1.0': + resolution: {integrity: sha512-akSjcqAMOGPFvKctFDSzhjcRc/45WbEVdVQ9mjgH6OYo7B11WZZZaeGPlzAw5KyuG34Px941xmICkBmNqEH47Q==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1299,8 +1317,8 @@ packages: typescript: optional: true - '@solana/transaction-messages@6.0.1': - resolution: {integrity: sha512-lpSyXsFPMCDo5Vf0LLsdj5+WyYxUD+8WEMWuVDYiG/7e8fVjLEsZ6k/UpvyI7ZJnkMhfwEa3DRAubNDH1Biafg==} + '@solana/transaction-messages@6.1.0': + resolution: {integrity: sha512-Dpv54LRVcfFbFEa/uB53LaY/TRfKuPGMKR7Z4F290zBgkj9xkpZkI+WLiJBiSloI7Qo2KZqXj3514BIeZvJLcg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1308,8 +1326,8 @@ packages: typescript: optional: true - '@solana/transactions@6.0.1': - resolution: {integrity: sha512-VLFug8oKCpEyZv/mMMnQIraupXwMUzO4KzA/kGBHbUnCX95K7UFpc07AFc1nXGbo1jBBO4e+O2cnVWg097Yz0A==} + '@solana/transactions@6.1.0': + resolution: {integrity: sha512-1dkiNJcTtlHm4Fvs5VohNVpv7RbvbUYYKV7lYXMPIskoLF1eZp0tVlEqD/cRl91RNz7HEysfHqBAwlcJcRmrRg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -3036,8 +3054,8 @@ packages: undici-types@7.10.0: resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==} - undici-types@7.20.0: - resolution: {integrity: sha512-PZDAAlMkNw5ZzN/ebfyrwzrMWfIf7Jbn9iM/I6SF456OKrb2wnfqVowaxEY/cMAM8MjFu1zhdpJyA0L+rTYwNw==} + undici-types@7.22.0: + resolution: {integrity: sha512-RKZvifiL60xdsIuC80UY0dq8Z7DbJUV8/l2hOVbyZAxBzEeQU4Z58+4ZzJ6WN2Lidi9KzT5EbiGX+PI/UGYuRw==} unrs-resolver@1.11.1: resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==} @@ -4029,80 +4047,80 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 - '@solana/accounts@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/accounts@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/addresses@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/addresses@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/assertions': 6.0.1(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) + '@solana/assertions': 6.1.0(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/assertions@6.0.1(typescript@5.9.3)': + '@solana/assertions@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/codecs-core@6.0.1(typescript@5.9.3)': + '@solana/codecs-core@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/codecs-data-structures@6.0.1(typescript@5.9.3)': + '@solana/codecs-data-structures@6.1.0(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/codecs-numbers@6.0.1(typescript@5.9.3)': + '@solana/codecs-numbers@6.1.0(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/codecs-strings@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/codecs-strings@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.9.3 - '@solana/codecs@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/codecs@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-data-structures': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/options': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-data-structures': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/options': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/errors@6.0.1(typescript@5.9.3)': + '@solana/errors@6.1.0(typescript@5.9.3)': dependencies: chalk: 5.6.2 commander: 14.0.3 @@ -4125,70 +4143,72 @@ snapshots: typescript: 5.9.3 typescript-eslint: 8.48.1(eslint@9.39.2)(typescript@5.9.3) - '@solana/fast-stable-stringify@6.0.1(typescript@5.9.3)': + '@solana/fast-stable-stringify@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/functional@6.0.1(typescript@5.9.3)': + '@solana/functional@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/instruction-plans@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/instruction-plans@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/instructions': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/promises': 6.0.1(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/promises': 6.1.0(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/instructions@6.0.1(typescript@5.9.3)': + '@solana/instructions@6.1.0(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/keys@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/keys@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/assertions': 6.0.1(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) + '@solana/assertions': 6.1.0(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/kit@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/accounts': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/instruction-plans': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/instructions': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/offchain-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/plugin-core': 6.0.1(typescript@5.9.3) - '@solana/programs': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-api': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-parsed-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-subscriptions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/signers': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/sysvars': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-confirmation': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/accounts': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/instruction-plans': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/offchain-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/plugin-core': 6.1.0(typescript@5.9.3) + '@solana/plugin-interfaces': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/program-client-core': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/programs': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-api': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-parsed-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-subscriptions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/signers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/sysvars': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-confirmation': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -4196,107 +4216,137 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate - '@solana/nominal-types@6.0.1(typescript@5.9.3)': + '@solana/nominal-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/offchain-messages@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/offchain-messages@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-data-structures': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-data-structures': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/options@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/options@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-data-structures': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-data-structures': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/plugin-core@6.0.1(typescript@5.9.3)': + '@solana/plugin-core@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/programs@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/plugin-interfaces@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/instruction-plans': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/signers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + + '@solana/program-client-core@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/accounts': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/instruction-plans': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/plugin-interfaces': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-api': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/signers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + + '@solana/programs@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/promises@6.0.1(typescript@5.9.3)': + '@solana/promises@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/rpc-api@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-parsed-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-transformers': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-api@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-parsed-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-transformers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-parsed-types@6.0.1(typescript@5.9.3)': + '@solana/rpc-parsed-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/rpc-spec-types@6.0.1(typescript@5.9.3)': + '@solana/rpc-spec-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 - '@solana/rpc-spec@6.0.1(typescript@5.9.3)': + '@solana/rpc-spec@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/rpc-subscriptions-api@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/rpc-subscriptions-api@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-subscriptions-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-transformers': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-transformers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-subscriptions-channel-websocket@6.0.1(typescript@5.9.3)': + '@solana/rpc-subscriptions-channel-websocket@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/rpc-subscriptions-spec': 6.0.1(typescript@5.9.3) - '@solana/subscribable': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 6.1.0(typescript@5.9.3) + '@solana/subscribable': 6.1.0(typescript@5.9.3) ws: 8.19.0 optionalDependencies: typescript: 5.9.3 @@ -4304,28 +4354,28 @@ snapshots: - bufferutil - utf-8-validate - '@solana/rpc-subscriptions-spec@6.0.1(typescript@5.9.3)': + '@solana/rpc-subscriptions-spec@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/promises': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - '@solana/subscribable': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/promises': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + '@solana/subscribable': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/rpc-subscriptions@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/fast-stable-stringify': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/promises': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-subscriptions-api': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-subscriptions-channel-websocket': 6.0.1(typescript@5.9.3) - '@solana/rpc-subscriptions-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-transformers': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/subscribable': 6.0.1(typescript@5.9.3) + '@solana/rpc-subscriptions@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/fast-stable-stringify': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/promises': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-subscriptions-api': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions-channel-websocket': 6.1.0(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-transformers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/subscribable': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -4333,101 +4383,101 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate - '@solana/rpc-transformers@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/rpc-transformers@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-transport-http@6.0.1(typescript@5.9.3)': + '@solana/rpc-transport-http@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - undici-types: 7.20.0 + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + undici-types: 7.22.0 optionalDependencies: typescript: 5.9.3 - '@solana/rpc-types@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/rpc-types@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/fast-stable-stringify': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/rpc-api': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-spec': 6.0.1(typescript@5.9.3) - '@solana/rpc-spec-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-transformers': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-transport-http': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/fast-stable-stringify': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/rpc-api': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-spec': 6.1.0(typescript@5.9.3) + '@solana/rpc-spec-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-transformers': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-transport-http': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/signers@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/instructions': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) - '@solana/offchain-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/signers@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) + '@solana/offchain-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/subscribable@6.0.1(typescript@5.9.3)': + '@solana/subscribable@6.1.0(typescript@5.9.3)': dependencies: - '@solana/errors': 6.0.1(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 - '@solana/sysvars@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + '@solana/sysvars@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: - '@solana/accounts': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/accounts': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/transaction-confirmation@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/promises': 6.0.1(typescript@5.9.3) - '@solana/rpc': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-subscriptions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transactions': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-confirmation@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/promises': 6.1.0(typescript@5.9.3) + '@solana/rpc': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -4435,36 +4485,36 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate - '@solana/transaction-messages@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-data-structures': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/instructions': 6.0.1(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-data-structures': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/transactions@6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': - dependencies: - '@solana/addresses': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/codecs-core': 6.0.1(typescript@5.9.3) - '@solana/codecs-data-structures': 6.0.1(typescript@5.9.3) - '@solana/codecs-numbers': 6.0.1(typescript@5.9.3) - '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/errors': 6.0.1(typescript@5.9.3) - '@solana/functional': 6.0.1(typescript@5.9.3) - '@solana/instructions': 6.0.1(typescript@5.9.3) - '@solana/keys': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/nominal-types': 6.0.1(typescript@5.9.3) - '@solana/rpc-types': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) - '@solana/transaction-messages': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 6.1.0(typescript@5.9.3) + '@solana/codecs-data-structures': 6.1.0(typescript@5.9.3) + '@solana/codecs-numbers': 6.1.0(typescript@5.9.3) + '@solana/codecs-strings': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 6.1.0(typescript@5.9.3) + '@solana/functional': 6.1.0(typescript@5.9.3) + '@solana/instructions': 6.1.0(typescript@5.9.3) + '@solana/keys': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 6.1.0(typescript@5.9.3) + '@solana/rpc-types': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 transitivePeerDependencies: @@ -6419,7 +6469,7 @@ snapshots: undici-types@7.10.0: {} - undici-types@7.20.0: {} + undici-types@7.22.0: {} unrs-resolver@1.11.1: dependencies: diff --git a/clients/js/src/generated/instructions/advanceNonceAccount.ts b/clients/js/src/generated/instructions/advanceNonceAccount.ts index 3b64fd3..c9f46d1 100644 --- a/clients/js/src/generated/instructions/advanceNonceAccount.ts +++ b/clients/js/src/generated/instructions/advanceNonceAccount.ts @@ -12,6 +12,8 @@ import { getStructEncoder, getU32Decoder, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -28,8 +30,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const ADVANCE_NONCE_ACCOUNT_DISCRIMINATOR = 4; @@ -114,7 +116,7 @@ export function getAdvanceNonceAccountInstruction< recentBlockhashesSysvar: { value: input.recentBlockhashesSysvar ?? null, isWritable: false }, nonceAuthority: { value: input.nonceAuthority ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Resolve default values. if (!accounts.recentBlockhashesSysvar.value) { @@ -125,9 +127,9 @@ export function getAdvanceNonceAccountInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ accounts: [ - getAccountMeta(accounts.nonceAccount), - getAccountMeta(accounts.recentBlockhashesSysvar), - getAccountMeta(accounts.nonceAuthority), + getAccountMeta('nonceAccount', accounts.nonceAccount), + getAccountMeta('recentBlockhashesSysvar', accounts.recentBlockhashesSysvar), + getAccountMeta('nonceAuthority', accounts.nonceAuthority), ], data: getAdvanceNonceAccountInstructionDataEncoder().encode({}), programAddress, @@ -161,8 +163,10 @@ export function parseAdvanceNonceAccountInstruction< InstructionWithData, ): ParsedAdvanceNonceAccountInstruction { if (instruction.accounts.length < 3) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 3, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/allocate.ts b/clients/js/src/generated/instructions/allocate.ts index d3493e6..c9dac64 100644 --- a/clients/js/src/generated/instructions/allocate.ts +++ b/clients/js/src/generated/instructions/allocate.ts @@ -14,6 +14,8 @@ import { getU32Encoder, getU64Decoder, getU64Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -28,8 +30,8 @@ import { type TransactionSigner, type WritableSignerAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const ALLOCATE_DISCRIMINATOR = 8; @@ -97,14 +99,14 @@ export function getAllocateInstruction< // Original accounts. const originalAccounts = { newAccount: { value: input.newAccount ?? null, isWritable: true } }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.newAccount)], + accounts: [getAccountMeta('newAccount', accounts.newAccount)], data: getAllocateInstructionDataEncoder().encode(args as AllocateInstructionDataArgs), programAddress, } as AllocateInstruction); @@ -127,8 +129,10 @@ export function parseAllocateInstruction, ): ParsedAllocateInstruction { if (instruction.accounts.length < 1) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 1, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/allocateWithSeed.ts b/clients/js/src/generated/instructions/allocateWithSeed.ts index 1a91e6e..e8531e5 100644 --- a/clients/js/src/generated/instructions/allocateWithSeed.ts +++ b/clients/js/src/generated/instructions/allocateWithSeed.ts @@ -20,6 +20,8 @@ import { getU64Encoder, getUtf8Decoder, getUtf8Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -35,8 +37,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const ALLOCATE_WITH_SEED_DISCRIMINATOR = 9; @@ -134,14 +136,17 @@ export function getAllocateWithSeedInstruction< newAccount: { value: input.newAccount ?? null, isWritable: true }, baseAccount: { value: input.baseAccount ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.newAccount), getAccountMeta(accounts.baseAccount)], + accounts: [ + getAccountMeta('newAccount', accounts.newAccount), + getAccountMeta('baseAccount', accounts.baseAccount), + ], data: getAllocateWithSeedInstructionDataEncoder().encode(args as AllocateWithSeedInstructionDataArgs), programAddress, } as AllocateWithSeedInstruction); @@ -165,8 +170,10 @@ export function parseAllocateWithSeedInstruction, ): ParsedAllocateWithSeedInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/assign.ts b/clients/js/src/generated/instructions/assign.ts index a1a77cd..6abc81f 100644 --- a/clients/js/src/generated/instructions/assign.ts +++ b/clients/js/src/generated/instructions/assign.ts @@ -14,6 +14,8 @@ import { getStructEncoder, getU32Decoder, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -28,8 +30,8 @@ import { type TransactionSigner, type WritableSignerAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const ASSIGN_DISCRIMINATOR = 1; @@ -94,14 +96,14 @@ export function getAssignInstruction< // Original accounts. const originalAccounts = { account: { value: input.account ?? null, isWritable: true } }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.account)], + accounts: [getAccountMeta('account', accounts.account)], data: getAssignInstructionDataEncoder().encode(args as AssignInstructionDataArgs), programAddress, } as AssignInstruction); @@ -124,8 +126,10 @@ export function parseAssignInstruction, ): ParsedAssignInstruction { if (instruction.accounts.length < 1) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 1, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/assignWithSeed.ts b/clients/js/src/generated/instructions/assignWithSeed.ts index 528cf88..15a6160 100644 --- a/clients/js/src/generated/instructions/assignWithSeed.ts +++ b/clients/js/src/generated/instructions/assignWithSeed.ts @@ -20,6 +20,8 @@ import { getU64Encoder, getUtf8Decoder, getUtf8Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -35,8 +37,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const ASSIGN_WITH_SEED_DISCRIMINATOR = 10; @@ -125,14 +127,14 @@ export function getAssignWithSeedInstruction< account: { value: input.account ?? null, isWritable: true }, baseAccount: { value: input.baseAccount ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.account), getAccountMeta(accounts.baseAccount)], + accounts: [getAccountMeta('account', accounts.account), getAccountMeta('baseAccount', accounts.baseAccount)], data: getAssignWithSeedInstructionDataEncoder().encode(args as AssignWithSeedInstructionDataArgs), programAddress, } as AssignWithSeedInstruction); @@ -156,8 +158,10 @@ export function parseAssignWithSeedInstruction, ): ParsedAssignWithSeedInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/authorizeNonceAccount.ts b/clients/js/src/generated/instructions/authorizeNonceAccount.ts index 9c9c312..dcd60db 100644 --- a/clients/js/src/generated/instructions/authorizeNonceAccount.ts +++ b/clients/js/src/generated/instructions/authorizeNonceAccount.ts @@ -14,6 +14,8 @@ import { getStructEncoder, getU32Decoder, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -29,8 +31,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const AUTHORIZE_NONCE_ACCOUNT_DISCRIMINATOR = 7; @@ -111,14 +113,17 @@ export function getAuthorizeNonceAccountInstruction< nonceAccount: { value: input.nonceAccount ?? null, isWritable: true }, nonceAuthority: { value: input.nonceAuthority ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.nonceAccount), getAccountMeta(accounts.nonceAuthority)], + accounts: [ + getAccountMeta('nonceAccount', accounts.nonceAccount), + getAccountMeta('nonceAuthority', accounts.nonceAuthority), + ], data: getAuthorizeNonceAccountInstructionDataEncoder().encode(args as AuthorizeNonceAccountInstructionDataArgs), programAddress, } as AuthorizeNonceAccountInstruction); @@ -145,8 +150,10 @@ export function parseAuthorizeNonceAccountInstruction< InstructionWithData, ): ParsedAuthorizeNonceAccountInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/createAccount.ts b/clients/js/src/generated/instructions/createAccount.ts index be3340d..46c3141 100644 --- a/clients/js/src/generated/instructions/createAccount.ts +++ b/clients/js/src/generated/instructions/createAccount.ts @@ -17,6 +17,8 @@ import { getU32Encoder, getU64Decoder, getU64Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -31,8 +33,12 @@ import { type TransactionSigner, type WritableSignerAccount, } from '@solana/kit'; +import { + getAccountMetaFactory, + type InstructionWithByteDelta, + type ResolvedInstructionAccount, +} from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type InstructionWithByteDelta, type ResolvedAccount } from '../shared'; export const CREATE_ACCOUNT_DISCRIMINATOR = 0; @@ -124,7 +130,7 @@ export function getCreateAccountInstruction< payer: { value: input.payer ?? null, isWritable: true }, newAccount: { value: input.newAccount ?? null, isWritable: true }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; @@ -134,7 +140,7 @@ export function getCreateAccountInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.payer), getAccountMeta(accounts.newAccount)], + accounts: [getAccountMeta('payer', accounts.payer), getAccountMeta('newAccount', accounts.newAccount)], byteDelta, data: getCreateAccountInstructionDataEncoder().encode(args as CreateAccountInstructionDataArgs), programAddress, @@ -159,8 +165,10 @@ export function parseCreateAccountInstruction, ): ParsedCreateAccountInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/createAccountWithSeed.ts b/clients/js/src/generated/instructions/createAccountWithSeed.ts index 89df24c..46f14f5 100644 --- a/clients/js/src/generated/instructions/createAccountWithSeed.ts +++ b/clients/js/src/generated/instructions/createAccountWithSeed.ts @@ -20,6 +20,8 @@ import { getU64Encoder, getUtf8Decoder, getUtf8Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -36,8 +38,8 @@ import { type WritableAccount, type WritableSignerAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const CREATE_ACCOUNT_WITH_SEED_DISCRIMINATOR = 3; @@ -155,7 +157,7 @@ export function getCreateAccountWithSeedInstruction< newAccount: { value: input.newAccount ?? null, isWritable: true }, baseAccount: { value: input.baseAccount ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; @@ -163,9 +165,9 @@ export function getCreateAccountWithSeedInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ accounts: [ - getAccountMeta(accounts.payer), - getAccountMeta(accounts.newAccount), - getAccountMeta(accounts.baseAccount), + getAccountMeta('payer', accounts.payer), + getAccountMeta('newAccount', accounts.newAccount), + getAccountMeta('baseAccount', accounts.baseAccount), ].filter((x: T | undefined): x is T => x !== undefined), data: getCreateAccountWithSeedInstructionDataEncoder().encode(args as CreateAccountWithSeedInstructionDataArgs), programAddress, @@ -194,8 +196,10 @@ export function parseCreateAccountWithSeedInstruction< InstructionWithData, ): ParsedCreateAccountWithSeedInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/initializeNonceAccount.ts b/clients/js/src/generated/instructions/initializeNonceAccount.ts index 755529f..6f0b8ce 100644 --- a/clients/js/src/generated/instructions/initializeNonceAccount.ts +++ b/clients/js/src/generated/instructions/initializeNonceAccount.ts @@ -14,6 +14,8 @@ import { getStructEncoder, getU32Decoder, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type Address, @@ -27,8 +29,8 @@ import { type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const INITIALIZE_NONCE_ACCOUNT_DISCRIMINATOR = 6; @@ -121,7 +123,7 @@ export function getInitializeNonceAccountInstruction< recentBlockhashesSysvar: { value: input.recentBlockhashesSysvar ?? null, isWritable: false }, rentSysvar: { value: input.rentSysvar ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; @@ -139,9 +141,9 @@ export function getInitializeNonceAccountInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ accounts: [ - getAccountMeta(accounts.nonceAccount), - getAccountMeta(accounts.recentBlockhashesSysvar), - getAccountMeta(accounts.rentSysvar), + getAccountMeta('nonceAccount', accounts.nonceAccount), + getAccountMeta('recentBlockhashesSysvar', accounts.recentBlockhashesSysvar), + getAccountMeta('rentSysvar', accounts.rentSysvar), ], data: getInitializeNonceAccountInstructionDataEncoder().encode( args as InitializeNonceAccountInstructionDataArgs, @@ -177,8 +179,10 @@ export function parseInitializeNonceAccountInstruction< InstructionWithData, ): ParsedInitializeNonceAccountInstruction { if (instruction.accounts.length < 3) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 3, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/transferSol.ts b/clients/js/src/generated/instructions/transferSol.ts index df60340..5c05f44 100644 --- a/clients/js/src/generated/instructions/transferSol.ts +++ b/clients/js/src/generated/instructions/transferSol.ts @@ -14,6 +14,8 @@ import { getU32Encoder, getU64Decoder, getU64Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -29,8 +31,8 @@ import { type WritableAccount, type WritableSignerAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const TRANSFER_SOL_DISCRIMINATOR = 2; @@ -105,14 +107,14 @@ export function getTransferSolInstruction< source: { value: input.source ?? null, isWritable: true }, destination: { value: input.destination ?? null, isWritable: true }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.source), getAccountMeta(accounts.destination)], + accounts: [getAccountMeta('source', accounts.source), getAccountMeta('destination', accounts.destination)], data: getTransferSolInstructionDataEncoder().encode(args as TransferSolInstructionDataArgs), programAddress, } as TransferSolInstruction); @@ -136,8 +138,10 @@ export function parseTransferSolInstruction, ): ParsedTransferSolInstruction { if (instruction.accounts.length < 2) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 2, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/transferSolWithSeed.ts b/clients/js/src/generated/instructions/transferSolWithSeed.ts index 1955fe3..4c7b83b 100644 --- a/clients/js/src/generated/instructions/transferSolWithSeed.ts +++ b/clients/js/src/generated/instructions/transferSolWithSeed.ts @@ -20,6 +20,8 @@ import { getU64Encoder, getUtf8Decoder, getUtf8Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -35,8 +37,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const TRANSFER_SOL_WITH_SEED_DISCRIMINATOR = 11; @@ -131,7 +133,7 @@ export function getTransferSolWithSeedInstruction< baseAccount: { value: input.baseAccount ?? null, isWritable: false }, destination: { value: input.destination ?? null, isWritable: true }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; @@ -139,9 +141,9 @@ export function getTransferSolWithSeedInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ accounts: [ - getAccountMeta(accounts.source), - getAccountMeta(accounts.baseAccount), - getAccountMeta(accounts.destination), + getAccountMeta('source', accounts.source), + getAccountMeta('baseAccount', accounts.baseAccount), + getAccountMeta('destination', accounts.destination), ], data: getTransferSolWithSeedInstructionDataEncoder().encode(args as TransferSolWithSeedInstructionDataArgs), programAddress, @@ -170,8 +172,10 @@ export function parseTransferSolWithSeedInstruction< InstructionWithData, ): ParsedTransferSolWithSeedInstruction { if (instruction.accounts.length < 3) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 3, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/upgradeNonceAccount.ts b/clients/js/src/generated/instructions/upgradeNonceAccount.ts index 6e27121..a5362aa 100644 --- a/clients/js/src/generated/instructions/upgradeNonceAccount.ts +++ b/clients/js/src/generated/instructions/upgradeNonceAccount.ts @@ -12,6 +12,8 @@ import { getStructEncoder, getU32Decoder, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type Address, @@ -24,8 +26,8 @@ import { type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const UPGRADE_NONCE_ACCOUNT_DISCRIMINATOR = 12; @@ -84,11 +86,11 @@ export function getUpgradeNonceAccountInstruction< // Original accounts. const originalAccounts = { nonceAccount: { value: input.nonceAccount ?? null, isWritable: true } }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ - accounts: [getAccountMeta(accounts.nonceAccount)], + accounts: [getAccountMeta('nonceAccount', accounts.nonceAccount)], data: getUpgradeNonceAccountInstructionDataEncoder().encode({}), programAddress, } as UpgradeNonceAccountInstruction); @@ -114,8 +116,10 @@ export function parseUpgradeNonceAccountInstruction< InstructionWithData, ): ParsedUpgradeNonceAccountInstruction { if (instruction.accounts.length < 1) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 1, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/instructions/withdrawNonceAccount.ts b/clients/js/src/generated/instructions/withdrawNonceAccount.ts index ac221b3..aad680a 100644 --- a/clients/js/src/generated/instructions/withdrawNonceAccount.ts +++ b/clients/js/src/generated/instructions/withdrawNonceAccount.ts @@ -14,6 +14,8 @@ import { getU32Encoder, getU64Decoder, getU64Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, + SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, @@ -30,8 +32,8 @@ import { type TransactionSigner, type WritableAccount, } from '@solana/kit'; +import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core'; import { SYSTEM_PROGRAM_ADDRESS } from '../programs'; -import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; export const WITHDRAW_NONCE_ACCOUNT_DISCRIMINATOR = 5; @@ -148,7 +150,7 @@ export function getWithdrawNonceAccountInstruction< rentSysvar: { value: input.rentSysvar ?? null, isWritable: false }, nonceAuthority: { value: input.nonceAuthority ?? null, isWritable: false }, }; - const accounts = originalAccounts as Record; + const accounts = originalAccounts as Record; // Original args. const args = { ...input }; @@ -166,11 +168,11 @@ export function getWithdrawNonceAccountInstruction< const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted'); return Object.freeze({ accounts: [ - getAccountMeta(accounts.nonceAccount), - getAccountMeta(accounts.recipientAccount), - getAccountMeta(accounts.recentBlockhashesSysvar), - getAccountMeta(accounts.rentSysvar), - getAccountMeta(accounts.nonceAuthority), + getAccountMeta('nonceAccount', accounts.nonceAccount), + getAccountMeta('recipientAccount', accounts.recipientAccount), + getAccountMeta('recentBlockhashesSysvar', accounts.recentBlockhashesSysvar), + getAccountMeta('rentSysvar', accounts.rentSysvar), + getAccountMeta('nonceAuthority', accounts.nonceAuthority), ], data: getWithdrawNonceAccountInstructionDataEncoder().encode(args as WithdrawNonceAccountInstructionDataArgs), programAddress, @@ -208,8 +210,10 @@ export function parseWithdrawNonceAccountInstruction< InstructionWithData, ): ParsedWithdrawNonceAccountInstruction { if (instruction.accounts.length < 5) { - // TODO: Coded error. - throw new Error('Not enough accounts'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { + actualAccountMetas: instruction.accounts.length, + expectedAccountMetas: 5, + }); } let accountIndex = 0; const getNextAccount = () => { diff --git a/clients/js/src/generated/programs/system.ts b/clients/js/src/generated/programs/system.ts index 38a19ab..ae3a52a 100644 --- a/clients/js/src/generated/programs/system.ts +++ b/clients/js/src/generated/programs/system.ts @@ -10,12 +10,41 @@ import { assertIsInstructionWithAccounts, containsBytes, getU32Encoder, + SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, + SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, + SolanaError, type Address, + type ClientWithPayer, + type ClientWithRpc, + type ClientWithTransactionPlanning, + type ClientWithTransactionSending, + type GetAccountInfoApi, + type GetMultipleAccountsApi, type Instruction, type InstructionWithData, type ReadonlyUint8Array, } from '@solana/kit'; import { + addSelfFetchFunctions, + addSelfPlanAndSendFunctions, + type SelfFetchFunctions, + type SelfPlanAndSendFunctions, +} from '@solana/kit/program-client-core'; +import { getNonceCodec, type Nonce, type NonceArgs } from '../accounts'; +import { + getAdvanceNonceAccountInstruction, + getAllocateInstruction, + getAllocateWithSeedInstruction, + getAssignInstruction, + getAssignWithSeedInstruction, + getAuthorizeNonceAccountInstruction, + getCreateAccountInstruction, + getCreateAccountWithSeedInstruction, + getInitializeNonceAccountInstruction, + getTransferSolInstruction, + getTransferSolWithSeedInstruction, + getUpgradeNonceAccountInstruction, + getWithdrawNonceAccountInstruction, parseAdvanceNonceAccountInstruction, parseAllocateInstruction, parseAllocateWithSeedInstruction, @@ -29,6 +58,15 @@ import { parseTransferSolWithSeedInstruction, parseUpgradeNonceAccountInstruction, parseWithdrawNonceAccountInstruction, + type AdvanceNonceAccountInput, + type AllocateInput, + type AllocateWithSeedInput, + type AssignInput, + type AssignWithSeedInput, + type AuthorizeNonceAccountInput, + type CreateAccountInput, + type CreateAccountWithSeedInput, + type InitializeNonceAccountInput, type ParsedAdvanceNonceAccountInstruction, type ParsedAllocateInstruction, type ParsedAllocateWithSeedInstruction, @@ -42,6 +80,10 @@ import { type ParsedTransferSolWithSeedInstruction, type ParsedUpgradeNonceAccountInstruction, type ParsedWithdrawNonceAccountInstruction, + type TransferSolInput, + type TransferSolWithSeedInput, + type UpgradeNonceAccountInput, + type WithdrawNonceAccountInput, } from '../instructions'; export const SYSTEM_PROGRAM_ADDRESS = '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>; @@ -109,7 +151,10 @@ export function identifySystemInstruction( if (containsBytes(data, getU32Encoder().encode(12), 0)) { return SystemInstruction.UpgradeNonceAccount; } - throw new Error('The provided instruction could not be identified as a system instruction.'); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION, { + instructionData: data, + programName: 'system', + }); } export type ParsedSystemInstruction = @@ -214,6 +259,97 @@ export function parseSystemInstruction( }; } default: - throw new Error(`Unrecognized instruction type: ${instructionType as string}`); + throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE, { + instructionType: instructionType as string, + programName: 'system', + }); } } + +export type SystemPlugin = { accounts: SystemPluginAccounts; instructions: SystemPluginInstructions }; + +export type SystemPluginAccounts = { nonce: ReturnType & SelfFetchFunctions }; + +export type SystemPluginInstructions = { + createAccount: ( + input: MakeOptional, + ) => ReturnType & SelfPlanAndSendFunctions; + assign: (input: AssignInput) => ReturnType & SelfPlanAndSendFunctions; + transferSol: (input: TransferSolInput) => ReturnType & SelfPlanAndSendFunctions; + createAccountWithSeed: ( + input: MakeOptional, + ) => ReturnType & SelfPlanAndSendFunctions; + advanceNonceAccount: ( + input: AdvanceNonceAccountInput, + ) => ReturnType & SelfPlanAndSendFunctions; + withdrawNonceAccount: ( + input: WithdrawNonceAccountInput, + ) => ReturnType & SelfPlanAndSendFunctions; + initializeNonceAccount: ( + input: InitializeNonceAccountInput, + ) => ReturnType & SelfPlanAndSendFunctions; + authorizeNonceAccount: ( + input: AuthorizeNonceAccountInput, + ) => ReturnType & SelfPlanAndSendFunctions; + allocate: (input: AllocateInput) => ReturnType & SelfPlanAndSendFunctions; + allocateWithSeed: ( + input: AllocateWithSeedInput, + ) => ReturnType & SelfPlanAndSendFunctions; + assignWithSeed: ( + input: AssignWithSeedInput, + ) => ReturnType & SelfPlanAndSendFunctions; + transferSolWithSeed: ( + input: TransferSolWithSeedInput, + ) => ReturnType & SelfPlanAndSendFunctions; + upgradeNonceAccount: ( + input: UpgradeNonceAccountInput, + ) => ReturnType & SelfPlanAndSendFunctions; +}; + +export type SystemPluginRequirements = ClientWithRpc & + ClientWithPayer & + ClientWithTransactionPlanning & + ClientWithTransactionSending; + +export function systemProgram() { + return (client: T) => { + return { + ...client, + system: { + accounts: { nonce: addSelfFetchFunctions(client, getNonceCodec()) }, + instructions: { + createAccount: input => + addSelfPlanAndSendFunctions( + client, + getCreateAccountInstruction({ ...input, payer: input.payer ?? client.payer }), + ), + assign: input => addSelfPlanAndSendFunctions(client, getAssignInstruction(input)), + transferSol: input => addSelfPlanAndSendFunctions(client, getTransferSolInstruction(input)), + createAccountWithSeed: input => + addSelfPlanAndSendFunctions( + client, + getCreateAccountWithSeedInstruction({ ...input, payer: input.payer ?? client.payer }), + ), + advanceNonceAccount: input => + addSelfPlanAndSendFunctions(client, getAdvanceNonceAccountInstruction(input)), + withdrawNonceAccount: input => + addSelfPlanAndSendFunctions(client, getWithdrawNonceAccountInstruction(input)), + initializeNonceAccount: input => + addSelfPlanAndSendFunctions(client, getInitializeNonceAccountInstruction(input)), + authorizeNonceAccount: input => + addSelfPlanAndSendFunctions(client, getAuthorizeNonceAccountInstruction(input)), + allocate: input => addSelfPlanAndSendFunctions(client, getAllocateInstruction(input)), + allocateWithSeed: input => + addSelfPlanAndSendFunctions(client, getAllocateWithSeedInstruction(input)), + assignWithSeed: input => addSelfPlanAndSendFunctions(client, getAssignWithSeedInstruction(input)), + transferSolWithSeed: input => + addSelfPlanAndSendFunctions(client, getTransferSolWithSeedInstruction(input)), + upgradeNonceAccount: input => + addSelfPlanAndSendFunctions(client, getUpgradeNonceAccountInstruction(input)), + }, + }, + }; + }; +} + +type MakeOptional = Omit & Partial>; diff --git a/clients/js/src/generated/shared/index.ts b/clients/js/src/generated/shared/index.ts deleted file mode 100644 index 7380d8c..0000000 --- a/clients/js/src/generated/shared/index.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * This code was AUTOGENERATED using the Codama library. - * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun Codama to update it. - * - * @see https://github.com/codama-idl/codama - */ - -import { - AccountRole, - isProgramDerivedAddress, - isTransactionSigner as kitIsTransactionSigner, - type AccountMeta, - type AccountSignerMeta, - type Address, - type ProgramDerivedAddress, - type TransactionSigner, - upgradeRoleToSigner, -} from '@solana/kit'; - -/** - * Asserts that the given value is not null or undefined. - * @internal - */ -export function expectSome(value: T | null | undefined): T { - if (value === null || value === undefined) { - throw new Error('Expected a value but received null or undefined.'); - } - return value; -} - -/** - * Asserts that the given value is a PublicKey. - * @internal - */ -export function expectAddress( - value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined, -): Address { - if (!value) { - throw new Error('Expected a Address.'); - } - if (typeof value === 'object' && 'address' in value) { - return value.address; - } - if (Array.isArray(value)) { - return value[0] as Address; - } - return value as Address; -} - -/** - * Asserts that the given value is a PDA. - * @internal - */ -export function expectProgramDerivedAddress( - value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined, -): ProgramDerivedAddress { - if (!value || !Array.isArray(value) || !isProgramDerivedAddress(value)) { - throw new Error('Expected a ProgramDerivedAddress.'); - } - return value; -} - -/** - * Asserts that the given value is a TransactionSigner. - * @internal - */ -export function expectTransactionSigner( - value: Address | ProgramDerivedAddress | TransactionSigner | null | undefined, -): TransactionSigner { - if (!value || !isTransactionSigner(value)) { - throw new Error('Expected a TransactionSigner.'); - } - return value; -} - -/** - * Defines an instruction account to resolve. - * @internal - */ -export type ResolvedAccount< - T extends string = string, - U extends Address | ProgramDerivedAddress | TransactionSigner | null = - | Address - | ProgramDerivedAddress - | TransactionSigner - | null, -> = { - isWritable: boolean; - value: U; -}; - -/** - * Defines an instruction that stores additional bytes on-chain. - * @internal - */ -export type InstructionWithByteDelta = { - byteDelta: number; -}; - -/** - * Get account metas and signers from resolved accounts. - * @internal - */ -export function getAccountMetaFactory(programAddress: Address, optionalAccountStrategy: 'omitted' | 'programId') { - return (account: ResolvedAccount): AccountMeta | AccountSignerMeta | undefined => { - if (!account.value) { - if (optionalAccountStrategy === 'omitted') return; - return Object.freeze({ address: programAddress, role: AccountRole.READONLY }); - } - - const writableRole = account.isWritable ? AccountRole.WRITABLE : AccountRole.READONLY; - return Object.freeze({ - address: expectAddress(account.value), - role: isTransactionSigner(account.value) ? upgradeRoleToSigner(writableRole) : writableRole, - ...(isTransactionSigner(account.value) ? { signer: account.value } : {}), - }); - }; -} - -export function isTransactionSigner( - value: Address | ProgramDerivedAddress | TransactionSigner, -): value is TransactionSigner { - return !!value && typeof value === 'object' && 'address' in value && kitIsTransactionSigner(value); -} diff --git a/clients/js/tsconfig.json b/clients/js/tsconfig.json index 1bc202a..de75bed 100644 --- a/clients/js/tsconfig.json +++ b/clients/js/tsconfig.json @@ -9,7 +9,7 @@ "inlineSources": false, "isolatedModules": true, "module": "ESNext", - "moduleResolution": "node", + "moduleResolution": "bundler", "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/codama.json b/codama.json index e8cab3d..a895fe3 100644 --- a/codama.json +++ b/codama.json @@ -4,13 +4,7 @@ "scripts": { "js": { "from": "@codama/renderers-js", - "args": [ - "clients/js/src/generated", - { - "packageFolder": "clients/js", - "syncPackageJson": true - } - ] + "args": ["clients/js", { "kitImportStrategy": "rootOnly" }] }, "rust": { "from": "@codama/renderers-rust", diff --git a/package.json b/package.json index b0b8121..54e27a3 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,7 @@ { "private": true, - "scripts": { - "generate": "pnpm generate:clients", - "generate:clients": "codama run --all" - }, "devDependencies": { - "@codama/renderers-js": "^1.7.0", + "@codama/renderers-js": "^2.0.2", "@codama/renderers-rust": "^2.0.0", "@solana/prettier-config-solana": "0.0.6", "codama": "^1.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b1466f..8d1529c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: devDependencies: '@codama/renderers-js': - specifier: ^1.7.0 - version: 1.7.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) + specifier: ^2.0.2 + version: 2.0.2(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) '@codama/renderers-rust': specifier: ^2.0.0 version: 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) @@ -27,34 +27,21 @@ packages: resolution: {integrity: sha512-0uLecW/RZC2c1wx3j/eiRAYvilvNY+2DoyEYu/hV0OfM1/uIgIyuy5U+wolV+LY4wLFYdApjYdy+5D32lngCHg==} hasBin: true - '@codama/errors@1.4.4': - resolution: {integrity: sha512-XC86H5X+zGTi0cSRKLc+wFkeXNsvnh+ttOgVnVHIljmXOJWbUt9wXhKding3UftipLWwlHPuoswERJ0vS0mO2A==} - hasBin: true - '@codama/errors@1.5.0': resolution: {integrity: sha512-i4cS+S7JaZXhofQHFY3cwzt8rqxUVPNaeJND5VOyKUbtcOi933YXJXk52gDG4mc+CpGqHJijsJjfSpr1lJGxzg==} hasBin: true - '@codama/node-types@1.4.4': - resolution: {integrity: sha512-uUeIz34Id/TTAMi4k5OVl9FByM/PawnlNIIVqgpooH9AS0UlniICZ+KJ/mdHZidJs/AGo6bSRoOPS1BLtMajyw==} - '@codama/node-types@1.5.0': resolution: {integrity: sha512-Ebz2vOUukmNaFXWdkni1ZihXkAIUnPYtqIMXYxKXOxjMP+TGz2q0lGtRo7sqw1pc2ksFBIkfBp5pZsl5p6gwXA==} - '@codama/nodes@1.4.4': - resolution: {integrity: sha512-JzlY5qLk3rhsnu0nerC/Vkc9/2HjdsLtEpBtST0dxC1j9kpfHvIc2uyIj+5hlB1YIBRJIDNo+UOHGla8hidkaA==} - '@codama/nodes@1.5.0': resolution: {integrity: sha512-yg+xmorWiMNjS3n19CGIt/FZ/ZCuDIu+HEY45bq6gHu1MN3RtJZY+Q3v0ErnBPA60D8mNWkvkKoeSZXfzcAvfw==} - '@codama/renderers-core@1.3.4': - resolution: {integrity: sha512-+qEPsvpCjUElohgJTcVNsjy6u1LjoCcwo72NbcffLF9QU5mUjNwL8EhFouEq2K60H/QKmNaiVKLQfJcQ/xCT9A==} - '@codama/renderers-core@1.3.5': resolution: {integrity: sha512-MuZLU+3LZPQb1HuZffwZl+v5JHQDe5LYHGhA1wTMNlwRedYIysSxBjogHNciNIHsKP3JjmqyYmLO5LCEp3hjaQ==} - '@codama/renderers-js@1.7.0': - resolution: {integrity: sha512-WwKkSkNPdUBVWjGmkG+RNXyZ5K/4ji8UZQGzowDNTrqktUrqPsBThOkc7Zpmv+TpCapxrfjj0Txpo+0q5FjKGw==} + '@codama/renderers-js@2.0.2': + resolution: {integrity: sha512-5gEDCgfqqUnc/uTAphj06+tU6n2fVZH439ih7H1yAF8WM+ftHB7Ph0rMb63J7/d+HRRZhdEet0Cngs1CZI6GHA==} engines: {node: '>=20.18.0'} '@codama/renderers-rust@2.0.0': @@ -64,9 +51,6 @@ packages: '@codama/validators@1.5.0': resolution: {integrity: sha512-p3ufDxnCH1jiuHGzcBv4/d+ctzUcKD2K3gX/W8169tC41o9DggjlEpNy1Z6YAAhVb3wHnmXVGA2qmp32rWSfWw==} - '@codama/visitors-core@1.4.4': - resolution: {integrity: sha512-vk/4tczViAUHa7c8PF7FxN+JWbuTcDB0pIdrDbbO6eBPKDPQGZCUCEp6rXIYBVxfO129jWrNf2+CuyYre/c/vA==} - '@codama/visitors-core@1.5.0': resolution: {integrity: sha512-3PIAlBX0a06hIxzyPtQMfQcqWGFBgfbwysSwcXBbvHUYbemwhD6xwlBKJuqTwm9DyFj3faStp5fpvcp03Rjxtw==} @@ -280,50 +264,31 @@ snapshots: picocolors: 1.1.1 prompts: 2.4.2 - '@codama/errors@1.4.4': - dependencies: - '@codama/node-types': 1.4.4 - commander: 14.0.2 - picocolors: 1.1.1 - '@codama/errors@1.5.0': dependencies: '@codama/node-types': 1.5.0 commander: 14.0.2 picocolors: 1.1.1 - '@codama/node-types@1.4.4': {} - '@codama/node-types@1.5.0': {} - '@codama/nodes@1.4.4': - dependencies: - '@codama/errors': 1.4.4 - '@codama/node-types': 1.4.4 - '@codama/nodes@1.5.0': dependencies: '@codama/errors': 1.5.0 '@codama/node-types': 1.5.0 - '@codama/renderers-core@1.3.4': - dependencies: - '@codama/errors': 1.4.4 - '@codama/nodes': 1.4.4 - '@codama/visitors-core': 1.4.4 - '@codama/renderers-core@1.3.5': dependencies: '@codama/errors': 1.5.0 '@codama/nodes': 1.5.0 '@codama/visitors-core': 1.5.0 - '@codama/renderers-js@1.7.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3)': + '@codama/renderers-js@2.0.2(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3)': dependencies: - '@codama/errors': 1.4.4 - '@codama/nodes': 1.4.4 - '@codama/renderers-core': 1.3.4 - '@codama/visitors-core': 1.4.4 + '@codama/errors': 1.5.0 + '@codama/nodes': 1.5.0 + '@codama/renderers-core': 1.3.5 + '@codama/visitors-core': 1.5.0 '@solana/codecs-strings': 6.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) prettier: 3.8.1 semver: 7.7.3 @@ -352,12 +317,6 @@ snapshots: '@codama/nodes': 1.5.0 '@codama/visitors-core': 1.5.0 - '@codama/visitors-core@1.4.4': - dependencies: - '@codama/errors': 1.4.4 - '@codama/nodes': 1.4.4 - json-stable-stringify: 1.3.0 - '@codama/visitors-core@1.5.0': dependencies: '@codama/errors': 1.5.0 From 3db62b53fcbdab8fe14edc6f883a6fe4d1f0a261 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Tue, 17 Feb 2026 15:10:49 +0000 Subject: [PATCH 2/3] Add test using generated plugin --- clients/js/package.json | 1 + clients/js/pnpm-lock.yaml | 975 +++++++++++++++++++++++++- clients/js/test/createAccount.test.ts | 38 +- 3 files changed, 1005 insertions(+), 9 deletions(-) diff --git a/clients/js/package.json b/clients/js/package.json index 3d5e0f2..93e328a 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -47,6 +47,7 @@ }, "devDependencies": { "@solana/eslint-config-solana": "^6.0.0", + "@solana/kit-plugins": "^0.5.0", "@solana/kit": "^6.1.0", "@types/node": "^24", "eslint": "^9.39.2", diff --git a/clients/js/pnpm-lock.yaml b/clients/js/pnpm-lock.yaml index 92bef3a..0266755 100644 --- a/clients/js/pnpm-lock.yaml +++ b/clients/js/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@solana/kit': specifier: ^6.1.0 version: 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/kit-plugins': + specifier: ^0.5.0 + version: 0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) '@types/node': specifier: ^24 version: 24.3.0 @@ -708,6 +711,46 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + '@loris-sandbox/litesvm-kit-darwin-arm64@0.5.0': + resolution: {integrity: sha512-yWPgh8bQsHJtmVcHcwhJFFEjh5G6wigHYuiRBIbY+lybKPTQ1LKJ3CK/zlD74KwL/xfgUdiyBLz+fORQrCO19Q==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [darwin] + + '@loris-sandbox/litesvm-kit-darwin-x64@0.5.0': + resolution: {integrity: sha512-fddPO15++i67Yemiopxj/qEw4X/Jup/jBcWBN/UeE1bPt2GDrj02alzO1CSOKfaRrfu7MeWbwPumG07xQpwF9Q==} + engines: {node: '>= 20'} + cpu: [x64] + os: [darwin] + + '@loris-sandbox/litesvm-kit-linux-arm64-gnu@0.5.0': + resolution: {integrity: sha512-otmfH7UBYseWzPMPOKVc4k6/G8QXCeZ8scd+eoINwcvNYtEtKoUe0CBItnwTSCiwLyzYDcWB4LXzcpQV0ZNZKg==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + + '@loris-sandbox/litesvm-kit-linux-arm64-musl@0.5.0': + resolution: {integrity: sha512-mCGPqtl5PcJ3PTb20NnaCnFZ00E54c4r00e1IPB7O4DW+fLYoICfgNUy5S6mVNv0Yt45fT8QaUQbWcoGnmL6IQ==} + engines: {node: '>= 20'} + cpu: [arm64] + os: [linux] + + '@loris-sandbox/litesvm-kit-linux-x64-gnu@0.5.0': + resolution: {integrity: sha512-zbXvI71o9k715m1H/CtH2vEIwlf54O5oUmIZthVmnMRa33ct9vZj/sz0mcPW7NIIsYQEm1+rKysqXXNoThiFwg==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + + '@loris-sandbox/litesvm-kit-linux-x64-musl@0.5.0': + resolution: {integrity: sha512-bI30I12C7HczA9Q6c9d6DMKGHEqQBn0zRHDHAYX1T8YfGFFEKxTm0XtTFPH1BZrFfBzEHEUHfPB/pYaVjzb1cA==} + engines: {node: '>= 20'} + cpu: [x64] + os: [linux] + + '@loris-sandbox/litesvm-kit@0.5.0': + resolution: {integrity: sha512-zJcAFmEX82td18uzxhLX9yM6lqQ3as3FzLpJpARdJtTrIMNe0txVdAB+vZw1FqMQ9dL3h6IkUBahIWdCT4uHzw==} + engines: {node: '>= 20'} + '@napi-rs/wasm-runtime@0.2.12': resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==} @@ -945,6 +988,30 @@ packages: '@sinonjs/fake-timers@13.0.5': resolution: {integrity: sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==} + '@solana-program/compute-budget@0.13.0': + resolution: {integrity: sha512-jdiiWaxFG3kEf6bYPNo2mwz2jNxaj7sF+gZIb8wHw9zK3ZILmpkg4sUeChb1BnH2UGf+HgYb9L/lMdqOTqUoWA==} + peerDependencies: + '@solana/kit': ^6.0.0 + + '@solana-program/system@0.10.0': + resolution: {integrity: sha512-Go+LOEZmqmNlfr+Gjy5ZWAdY5HbYzk2RBewD9QinEU/bBSzpFfzqDRT55JjFRBGJUvMgf3C2vfXEGT4i8DSI4g==} + peerDependencies: + '@solana/kit': ^5.0 + + '@solana-program/token@0.9.0': + resolution: {integrity: sha512-vnZxndd4ED4Fc56sw93cWZ2djEeeOFxtaPS8SPf5+a+JZjKA/EnKqzbE1y04FuMhIVrLERQ8uR8H2h72eZzlsA==} + peerDependencies: + '@solana/kit': ^5.0 + + '@solana/accounts@5.5.1': + resolution: {integrity: sha512-TfOY9xixg5rizABuLVuZ9XI2x2tmWUC/OoN556xwfDlhBHBjKfszicYYOyD6nbFmwTGYarCmyGIdteXxTXIdhQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/accounts@6.1.0': resolution: {integrity: sha512-0jhmhSSS71ClLtBQIDrLlhkiNER4M9RIXTl1eJ1yJoFlE608JaKHTjNWsdVKdke7uBD6exdjNZkIVmouQPHMcA==} engines: {node: '>=20.18.0'} @@ -954,6 +1021,15 @@ packages: typescript: optional: true + '@solana/addresses@5.5.1': + resolution: {integrity: sha512-5xoah3Q9G30HQghu/9BiHLb5pzlPKRC3zydQDmE3O9H//WfayxTFppsUDCL6FjYUHqj/wzK6CWHySglc2RkpdA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/addresses@6.1.0': resolution: {integrity: sha512-QT04Vie4iICaalQQRJFMGj/P56IxXiwFtVuZHu1qjZUNmuGTOvX6G98b27RaGtLzpJ3NIku/6OtKxLUBqAKAyQ==} engines: {node: '>=20.18.0'} @@ -963,6 +1039,15 @@ packages: typescript: optional: true + '@solana/assertions@5.5.1': + resolution: {integrity: sha512-YTCSWAlGwSlVPnWtWLm3ukz81wH4j2YaCveK+TjpvUU88hTy6fmUqxi0+hvAMAe4zKXpJyj3Az7BrLJRxbIm4Q==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/assertions@6.1.0': resolution: {integrity: sha512-pLgxB2xxTk2QfTaWpnRpSMYgaPkKYDQgptRvbwmuDQnOW1Zopg+42MT2UrDGd3UFMML1uOFPxIwKM6m51H0uXw==} engines: {node: '>=20.18.0'} @@ -972,6 +1057,15 @@ packages: typescript: optional: true + '@solana/codecs-core@5.5.1': + resolution: {integrity: sha512-TgBt//bbKBct0t6/MpA8ElaOA3sa8eYVvR7LGslCZ84WiAwwjCY0lW/lOYsFHJQzwREMdUyuEyy5YWBKtdh8Rw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/codecs-core@6.1.0': resolution: {integrity: sha512-5rNnDOOm2GRFMJbd9imYCPNvGOrQ+TZ53NCkFFWbbB7f+L9KkLeuuAsDMFN1lCziJFlymvN785YtDnMeWj2W+g==} engines: {node: '>=20.18.0'} @@ -981,6 +1075,15 @@ packages: typescript: optional: true + '@solana/codecs-data-structures@5.5.1': + resolution: {integrity: sha512-97bJWGyUY9WvBz3mX1UV3YPWGDTez6btCfD0ip3UVEXJbItVuUiOkzcO5iFDUtQT5riKT6xC+Mzl+0nO76gd0w==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/codecs-data-structures@6.1.0': resolution: {integrity: sha512-1cb9g5hrrucTuGkGxqVVq7dCwSMnn4YqwTe365iKkK8HBpLBmUl8XATf1MUs5UtDun1g9eNWOL72Psr8mIUqTQ==} engines: {node: '>=20.18.0'} @@ -990,6 +1093,15 @@ packages: typescript: optional: true + '@solana/codecs-numbers@5.5.1': + resolution: {integrity: sha512-rllMIZAHqmtvC0HO/dc/21wDuWaD0B8Ryv8o+YtsICQBuiL/0U4AGwH7Pi5GNFySYk0/crSuwfIqQFtmxNSPFw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/codecs-numbers@6.1.0': resolution: {integrity: sha512-YPQwwl6LE3igH23ah+d8kgpyE5xFcPbuwhxCDsLWqY/ESrvO/0YQSbsgIXahbhZxN59ZC4uq1LnHhBNbpCSVQg==} engines: {node: '>=20.18.0'} @@ -999,6 +1111,18 @@ packages: typescript: optional: true + '@solana/codecs-strings@5.5.1': + resolution: {integrity: sha512-7klX4AhfHYA+uKKC/nxRGP2MntbYQCR3N6+v7bk1W/rSxYuhNmt+FN8aoThSZtWIKwN6BEyR1167ka8Co1+E7A==} + engines: {node: '>=20.18.0'} + peerDependencies: + fastestsmallesttextencoderdecoder: ^1.0.22 + typescript: ^5.0.0 + peerDependenciesMeta: + fastestsmallesttextencoderdecoder: + optional: true + typescript: + optional: true + '@solana/codecs-strings@6.1.0': resolution: {integrity: sha512-pRH5uAn4VCFUs2rYiDITyWsRnpvs3Uh/nhSc6OSP/kusghcCcCJcUzHBIjT4x08MVacXmGUlSLe/9qPQO+QK3Q==} engines: {node: '>=20.18.0'} @@ -1011,6 +1135,15 @@ packages: typescript: optional: true + '@solana/codecs@5.5.1': + resolution: {integrity: sha512-Vea29nJub/bXjfzEV7ZZQ/PWr1pYLZo3z0qW0LQL37uKKVzVFRQlwetd7INk3YtTD3xm9WUYr7bCvYUk3uKy2g==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/codecs@6.1.0': resolution: {integrity: sha512-VHBS3t8fyVjE0Nqo6b4TUnzdwdRaVo+B5ufHhPLbbjkEXzz8HB4E/OBjgasn+zWGlfScfQAiBFOsfZjbVWu4XA==} engines: {node: '>=20.18.0'} @@ -1020,6 +1153,16 @@ packages: typescript: optional: true + '@solana/errors@5.5.1': + resolution: {integrity: sha512-vFO3p+S7HoyyrcAectnXbdsMfwUzY2zYFUc2DEe5BwpiE9J1IAxPBGjOWO6hL1bbYdBrlmjNx8DXCslqS+Kcmg==} + engines: {node: '>=20.18.0'} + hasBin: true + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/errors@6.1.0': resolution: {integrity: sha512-cqSwcw3Rmn85UR7PyF5nKPdlQsRYBkx7YGRvFaJ6Sal1PM+bfolhL5iT7STQoXxdhXGYwHMPg7kZYxmMdjwnJA==} engines: {node: '>=20.18.0'} @@ -1047,6 +1190,15 @@ packages: typescript: ^5.9.3 typescript-eslint: ^8.49.0 + '@solana/fast-stable-stringify@5.5.1': + resolution: {integrity: sha512-Ni7s2FN33zTzhTFgRjEbOVFO+UAmK8qi3Iu0/GRFYK4jN696OjKHnboSQH/EacQ+yGqS54bfxf409wU5dsLLCw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/fast-stable-stringify@6.1.0': resolution: {integrity: sha512-QXUfDFaJCFeARsxJgScWmJ153Tit7Cimk9y0UWWreNBr2Aphi67Nlcj/tr7UABTO0Qaw/0gwrK76zz3m1t3nIw==} engines: {node: '>=20.18.0'} @@ -1056,6 +1208,15 @@ packages: typescript: optional: true + '@solana/functional@5.5.1': + resolution: {integrity: sha512-tTHoJcEQq3gQx5qsdsDJ0LEJeFzwNpXD80xApW9o/PPoCNimI3SALkZl+zNW8VnxRrV3l3yYvfHWBKe/X3WG3w==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/functional@6.1.0': resolution: {integrity: sha512-+Sm8ldVxSTHIKaZDvcBu81FPjknXx6OMPlakkKmXjKxPgVLl86ruqMo2yEwoDUHV7DysLrLLcRNn13rfulomRw==} engines: {node: '>=20.18.0'} @@ -1065,6 +1226,15 @@ packages: typescript: optional: true + '@solana/instruction-plans@5.5.1': + resolution: {integrity: sha512-7z3CB7YMcFKuVvgcnNY8bY6IsZ8LG61Iytbz7HpNVGX2u1RthOs1tRW8luTzSG1MPL0Ox7afyAVMYeFqSPHnaQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/instruction-plans@6.1.0': resolution: {integrity: sha512-zcsHg544t1zn7LLOVUxOWYlsKn9gvT7R+pL3cTiP2wFNoUN0h9En87H6nVqkZ8LWw23asgW0uM5uJGwfBx2h1Q==} engines: {node: '>=20.18.0'} @@ -1074,6 +1244,15 @@ packages: typescript: optional: true + '@solana/instructions@5.5.1': + resolution: {integrity: sha512-h0G1CG6S+gUUSt0eo6rOtsaXRBwCq1+Js2a+Ps9Bzk9q7YHNFA75/X0NWugWLgC92waRp66hrjMTiYYnLBoWOQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/instructions@6.1.0': resolution: {integrity: sha512-w1LdbJ3yanESckNTYC5KPckgN/25FyGCm07WWrs+dCnnpRNeLiVHIytXCPmArOVAXVkOYidXzhWmqCzqKUjYaA==} engines: {node: '>=20.18.0'} @@ -1083,6 +1262,15 @@ packages: typescript: optional: true + '@solana/keys@5.5.1': + resolution: {integrity: sha512-KRD61cL7CRL+b4r/eB9dEoVxIf/2EJ1Pm1DmRYhtSUAJD2dJ5Xw8QFuehobOGm9URqQ7gaQl+Fkc1qvDlsWqKg==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/keys@6.1.0': resolution: {integrity: sha512-C/SGCl3VOgBQZ0mLrMxCcJYnMsGpgE8wbx29jqRY+R91m5YhS1f/GfXJPR1lN/h7QGrJ6YDm8eI0Y3AZ7goKHg==} engines: {node: '>=20.18.0'} @@ -1092,6 +1280,45 @@ packages: typescript: optional: true + '@solana/kit-plugin-airdrop@0.5.0': + resolution: {integrity: sha512-vPM+wpmtka4R0Uh3FQI5xbIui9qXWkk5nXsj5OPU6794ZV7O6QYwod7LSRE5i4cxVTxgBv660NCPA6tRc/Jo9w==} + peerDependencies: + '@solana/kit': ^6.1.0 + + '@solana/kit-plugin-instruction-plan@0.4.0': + resolution: {integrity: sha512-8YnzOAo42nrYVR9EmioeOM8lJwAdyDn8O1XTe1ddFrlaAsYsXYZV8SxVs4OgduEgWxTnr47xaHMJF2IW23SppA==} + peerDependencies: + '@solana/kit': ^6.1.0 + + '@solana/kit-plugin-litesvm@0.3.1': + resolution: {integrity: sha512-nPcog11FvCbxAhs78q37YsgbbuvRhGvlY8Z5xwgqKxcF+vCu8rNK6wBJDGqjgAS28NcgLRBAhTH0ZZYYN/d7XA==} + peerDependencies: + '@solana/kit': ^6.0.0 + + '@solana/kit-plugin-payer@0.5.0': + resolution: {integrity: sha512-PfY/l1ZevuJBh0QdYTR9MAPlrVLiVBVMWstR8TIbORkfx6K9oNLFYLcS2kT1P+sc8qU2Utfs9kPpwkbssPwKcQ==} + peerDependencies: + '@solana/kit': ^6.1.0 + + '@solana/kit-plugin-rpc@0.3.0': + resolution: {integrity: sha512-+HOc9HJw0wn6Yqe6cPnEzw9Cg57bl+grC1ptBmYBFfTIFM709nsbvXIC/Rxm7mCaHf/4joGrixEsAWWNBCWwaQ==} + peerDependencies: + '@solana/kit': ^6.0.0 + + '@solana/kit-plugins@0.5.0': + resolution: {integrity: sha512-smQzPRej3N99za2ebIc4hIhIBwxG5sbyVubP80ww73soFOjlfvdl8VJlGhIzXgn0jHJ7fFJckvAwfd8zymzTMw==} + peerDependencies: + '@solana/kit': ^6.1.0 + + '@solana/kit@5.5.1': + resolution: {integrity: sha512-irKUGiV2yRoyf+4eGQ/ZeCRxa43yjFEL1DUI5B0DkcfZw3cr0VJtVJnrG8OtVF01vT0OUfYOcUn6zJW5TROHvQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/kit@6.1.0': resolution: {integrity: sha512-24exn11BPonquufyCkGgypVtmN4JOsdGMsbF3EZ4kFyk7ZNryCn/N8eELr1FCVrHWRXoc0xy/HFaESBULTMf6g==} engines: {node: '>=20.18.0'} @@ -1101,6 +1328,15 @@ packages: typescript: optional: true + '@solana/nominal-types@5.5.1': + resolution: {integrity: sha512-I1ImR+kfrLFxN5z22UDiTWLdRZeKtU0J/pkWkO8qm/8WxveiwdIv4hooi8pb6JnlR4mSrWhq0pCIOxDYrL9GIQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/nominal-types@6.1.0': resolution: {integrity: sha512-+skHjN0arNNB9TLsGqA94VCx7euyGURI+qG6wck6E4D7hH6i6DxGiVrtKRghx+smJkkLtTm9BvdVKGoeNQYr7Q==} engines: {node: '>=20.18.0'} @@ -1110,6 +1346,15 @@ packages: typescript: optional: true + '@solana/offchain-messages@5.5.1': + resolution: {integrity: sha512-g+xHH95prTU+KujtbOzj8wn+C7ZNoiLhf3hj6nYq3MTyxOXtBEysguc97jJveUZG0K97aIKG6xVUlMutg5yxhw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/offchain-messages@6.1.0': resolution: {integrity: sha512-jrUb7HGUnRA+k44upcqKeevtEdqMxYRSlFdE0JTctZunGlP3GCcTl12tFOpbnFHvBLt8RwS62+nyeES8zzNwXA==} engines: {node: '>=20.18.0'} @@ -1119,6 +1364,15 @@ packages: typescript: optional: true + '@solana/options@5.5.1': + resolution: {integrity: sha512-eo971c9iLNLmk+yOFyo7yKIJzJ/zou6uKpy6mBuyb/thKtS/haiKIc3VLhyTXty3OH2PW8yOlORJnv4DexJB8A==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/options@6.1.0': resolution: {integrity: sha512-/4FtVfR6nkHkMCumyh7/lJ6jMqyES6tKUbOJRa6gJxcIUWeRDu+XrHTHLf3gRNUqDAbFvW8FMIrQm7PdreZgRA==} engines: {node: '>=20.18.0'} @@ -1128,6 +1382,15 @@ packages: typescript: optional: true + '@solana/plugin-core@5.5.1': + resolution: {integrity: sha512-VUZl30lDQFJeiSyNfzU1EjYt2QZvoBFKEwjn1lilUJw7KgqD5z7mbV7diJhT+dLFs36i0OsjXvq5kSygn8YJ3A==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/plugin-core@6.1.0': resolution: {integrity: sha512-2nmNCPa6B1QArqpAZHWUkK6K7UXLTrekfcfJm2V//ATEtLpKEBlv0c3mrhOYwNAKP2TpNuvEV33InXWKst9oXQ==} engines: {node: '>=20.18.0'} @@ -1155,6 +1418,15 @@ packages: typescript: optional: true + '@solana/programs@5.5.1': + resolution: {integrity: sha512-7U9kn0Jsx1NuBLn5HRTFYh78MV4XN145Yc3WP/q5BlqAVNlMoU9coG5IUTJIG847TUqC1lRto3Dnpwm6T4YRpA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/programs@6.1.0': resolution: {integrity: sha512-i4L4gSlIHDsdYRt3/YKVKMIN3UuYSKHRqK9B+AejcIc0y6Y/AXnHqzmpBRXEhvTXz18nt59MLXpVU4wu7ASjJA==} engines: {node: '>=20.18.0'} @@ -1164,6 +1436,15 @@ packages: typescript: optional: true + '@solana/promises@5.5.1': + resolution: {integrity: sha512-T9lfuUYkGykJmppEcssNiCf6yiYQxJkhiLPP+pyAc2z84/7r3UVIb2tNJk4A9sucS66pzJnVHZKcZVGUUp6wzA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/promises@6.1.0': resolution: {integrity: sha512-/mUW6peXQiEOaylLpGv4vtkvPzQvSbfhX9j5PNIK/ry4S3SHRQ3j3W/oGy4y3LR5alwo7NcVbubrkh4e4xwcww==} engines: {node: '>=20.18.0'} @@ -1173,6 +1454,15 @@ packages: typescript: optional: true + '@solana/rpc-api@5.5.1': + resolution: {integrity: sha512-XWOQQPhKl06Vj0xi3RYHAc6oEQd8B82okYJ04K7N0Vvy3J4PN2cxeK7klwkjgavdcN9EVkYCChm2ADAtnztKnA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-api@6.1.0': resolution: {integrity: sha512-+hO5+kZjJHuUNATUQxlJ1+ztXFkgn1j46zRwt3X7kF+VHkW3wsQ7up0JTS+Xsacmkrj1WKfymQweq8JTrsAG8A==} engines: {node: '>=20.18.0'} @@ -1182,6 +1472,15 @@ packages: typescript: optional: true + '@solana/rpc-parsed-types@5.5.1': + resolution: {integrity: sha512-HEi3G2nZqGEsa3vX6U0FrXLaqnUCg4SKIUrOe8CezD+cSFbRTOn3rCLrUmJrhVyXlHoQVaRO9mmeovk31jWxJg==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-parsed-types@6.1.0': resolution: {integrity: sha512-YKccynVgWt/gbs0tBYstNw6BSVuOeWdeAldTB2OgH95o2Q04DpO4v97X1MZDysA4SvSZM30Ek5Ni5ss3kskgdw==} engines: {node: '>=20.18.0'} @@ -1191,6 +1490,15 @@ packages: typescript: optional: true + '@solana/rpc-spec-types@5.5.1': + resolution: {integrity: sha512-6OFKtRpIEJQs8Jb2C4OO8KyP2h2Hy1MFhatMAoXA+0Ik8S3H+CicIuMZvGZ91mIu/tXicuOOsNNLu3HAkrakrw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-spec-types@6.1.0': resolution: {integrity: sha512-tldMv1b6VGcvcRrY5MDWKlsyEKH6K96zE7gAIpKDX2G4T47ZOV+OMA3nh6xQpRgtyCUBsej0t80qmvTBDX/5IQ==} engines: {node: '>=20.18.0'} @@ -1200,6 +1508,15 @@ packages: typescript: optional: true + '@solana/rpc-spec@5.5.1': + resolution: {integrity: sha512-m3LX2bChm3E3by4mQrH4YwCAFY57QBzuUSWqlUw7ChuZ+oLLOq7b2czi4i6L4Vna67j3eCmB3e+4tqy1j5wy7Q==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-spec@6.1.0': resolution: {integrity: sha512-RxpkIGizCYhXGUcap7npV2S/rAXZ7P/liozY/ExjMmCxYTDwGIW33kp/uH/JRxuzrL8+f8FqY76VsqqIe+2VZw==} engines: {node: '>=20.18.0'} @@ -1209,6 +1526,15 @@ packages: typescript: optional: true + '@solana/rpc-subscriptions-api@5.5.1': + resolution: {integrity: sha512-5Oi7k+GdeS8xR2ly1iuSFkAv6CZqwG0Z6b1QZKbEgxadE1XGSDrhM2cn59l+bqCozUWCqh4c/A2znU/qQjROlw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-subscriptions-api@6.1.0': resolution: {integrity: sha512-I6J+3VU0dda6EySKbDyd+1urC7RGIRPRp0DcWRVcy68NOLbq0I5C40Dn9O2Zf8iCdK4PbQ7JKdCvZ/bDd45hdg==} engines: {node: '>=20.18.0'} @@ -1218,6 +1544,15 @@ packages: typescript: optional: true + '@solana/rpc-subscriptions-channel-websocket@5.5.1': + resolution: {integrity: sha512-7tGfBBrYY8TrngOyxSHoCU5shy86iA9SRMRrPSyBhEaZRAk6dnbdpmUTez7gtdVo0BCvh9nzQtUycKWSS7PnFQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-subscriptions-channel-websocket@6.1.0': resolution: {integrity: sha512-vsx9b+uyCr9L3giao/BTiBFA8DxV5+gDNFq0t5uL21uQ17JXzBektwzHuHoth9IjkvXV/h+IhwXfuLE9Qm4GQg==} engines: {node: '>=20.18.0'} @@ -1227,6 +1562,15 @@ packages: typescript: optional: true + '@solana/rpc-subscriptions-spec@5.5.1': + resolution: {integrity: sha512-iq+rGq5fMKP3/mKHPNB6MC8IbVW41KGZg83Us/+LE3AWOTWV1WT20KT2iH1F1ik9roi42COv/TpoZZvhKj45XQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-subscriptions-spec@6.1.0': resolution: {integrity: sha512-P06jhqzHpZGaLeJmIQkpDeMDD1xUp53ARpmXMsduMC+U5ZKQt29CLo+JrR18boNtls6WfttjVMEbzF25/4UPVA==} engines: {node: '>=20.18.0'} @@ -1236,6 +1580,15 @@ packages: typescript: optional: true + '@solana/rpc-subscriptions@5.5.1': + resolution: {integrity: sha512-CTMy5bt/6mDh4tc6vUJms9EcuZj3xvK0/xq8IQ90rhkpYvate91RjBP+egvjgSayUg9yucU9vNuUpEjz4spM7w==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-subscriptions@6.1.0': resolution: {integrity: sha512-sqwj+cQinWcZ7M/9+cudKxMPTkTQyGP73980vPCWM7vCpPkp2qzgrEie4DdgDGo+NMwIjeFgu2kdUuLHI3GD/g==} engines: {node: '>=20.18.0'} @@ -1245,6 +1598,15 @@ packages: typescript: optional: true + '@solana/rpc-transformers@5.5.1': + resolution: {integrity: sha512-OsWqLCQdcrRJKvHiMmwFhp9noNZ4FARuMkHT5us3ustDLXaxOjF0gfqZLnMkulSLcKt7TGXqMhBV+HCo7z5M8Q==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-transformers@6.1.0': resolution: {integrity: sha512-OsSuuRPmsmS02eR9Zz+4iTsr+21hvEMEex5vwbwN6LAGPFlQ4ohqGkxgZCwmYd+Q5HWpnn9Uuf1MDTLLrKQkig==} engines: {node: '>=20.18.0'} @@ -1254,6 +1616,15 @@ packages: typescript: optional: true + '@solana/rpc-transport-http@5.5.1': + resolution: {integrity: sha512-yv8GoVSHqEV0kUJEIhkdOVkR2SvJ6yoWC51cJn2rSV7plr6huLGe0JgujCmB7uZhhaLbcbP3zxXxu9sOjsi7Fg==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-transport-http@6.1.0': resolution: {integrity: sha512-3ebaTYuglLJagaXtjwDPVI7SQeeeFN2fpetpGKsuMAiti4fzYqEkNN8FIo+nXBzqqG/cVc2421xKjXl6sO1k/g==} engines: {node: '>=20.18.0'} @@ -1263,6 +1634,15 @@ packages: typescript: optional: true + '@solana/rpc-types@5.5.1': + resolution: {integrity: sha512-bibTFQ7PbHJJjGJPmfYC2I+/5CRFS4O2p9WwbFraX1Keeel+nRrt/NBXIy8veP5AEn2sVJIyJPpWBRpCx1oATA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc-types@6.1.0': resolution: {integrity: sha512-lR+Cb3v5Rpl49HsXWASy++TSE1AD86eRKabY+iuWnbBMYVGI4MamAvYwgBiygsCNc30nyO2TFNj9STMeSD/gAg==} engines: {node: '>=20.18.0'} @@ -1272,6 +1652,15 @@ packages: typescript: optional: true + '@solana/rpc@5.5.1': + resolution: {integrity: sha512-ku8zTUMrkCWci66PRIBC+1mXepEnZH/q1f3ck0kJZ95a06bOTl5KU7HeXWtskkyefzARJ5zvCs54AD5nxjQJ+A==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/rpc@6.1.0': resolution: {integrity: sha512-R3y5PklW9mPy5Y34hsXj40R28zN2N7AGLnHqYJVkXkllwVub/QCNpSdDxAnbbS5EGOYGoUOW8s5LFoXwMSr1LQ==} engines: {node: '>=20.18.0'} @@ -1281,6 +1670,15 @@ packages: typescript: optional: true + '@solana/signers@5.5.1': + resolution: {integrity: sha512-FY0IVaBT2kCAze55vEieR6hag4coqcuJ31Aw3hqRH7mv6sV8oqwuJmUrx+uFwOp1gwd5OEAzlv6N4hOOple4sQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/signers@6.1.0': resolution: {integrity: sha512-WDPGZJr6jIe2dEChv/2KQBnaga8dqOjd6ceBj/HcDHxnCudo66t7GlyZ9+9jMO40AgOOb7EDE5FDqPMrHMg5Yw==} engines: {node: '>=20.18.0'} @@ -1290,6 +1688,15 @@ packages: typescript: optional: true + '@solana/subscribable@5.5.1': + resolution: {integrity: sha512-9K0PsynFq0CsmK1CDi5Y2vUIJpCqkgSS5yfDN0eKPgHqEptLEaia09Kaxc90cSZDZU5mKY/zv1NBmB6Aro9zQQ==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + '@solana/subscribable@6.1.0': resolution: {integrity: sha512-HiUfkxN7638uxPmY4t0gI4+yqnFLZYJKFaT9EpWIuGrOB1d9n+uOHNs3NU7cVMwWXgfZUbztTCKyCVTbcwesNg==} engines: {node: '>=20.18.0'} @@ -1299,8 +1706,44 @@ packages: typescript: optional: true - '@solana/sysvars@6.1.0': - resolution: {integrity: sha512-KwJyBBrAOx0BgkiZqOKAaySDb/0JrUFSBQL9/O1kSKGy9TCRX55Ytr1HxNTcTPppWNpbM6JZVK+yW3Ruey0HRw==} + '@solana/sysvars@5.5.1': + resolution: {integrity: sha512-k3Quq87Mm+geGUu1GWv6knPk0ALsfY6EKSJGw9xUJDHzY/RkYSBnh0RiOrUhtFm2TDNjOailg8/m0VHmi3reFA==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/sysvars@6.1.0': + resolution: {integrity: sha512-KwJyBBrAOx0BgkiZqOKAaySDb/0JrUFSBQL9/O1kSKGy9TCRX55Ytr1HxNTcTPppWNpbM6JZVK+yW3Ruey0HRw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/transaction-confirmation@5.5.1': + resolution: {integrity: sha512-j4mKlYPHEyu+OD7MBt3jRoX4ScFgkhZC6H65on4Fux6LMScgivPJlwnKoZMnsgxFgWds0pl+BYzSiALDsXlYtw==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/transaction-confirmation@6.1.0': + resolution: {integrity: sha512-akSjcqAMOGPFvKctFDSzhjcRc/45WbEVdVQ9mjgH6OYo7B11WZZZaeGPlzAw5KyuG34Px941xmICkBmNqEH47Q==} + engines: {node: '>=20.18.0'} + peerDependencies: + typescript: ^5.0.0 + peerDependenciesMeta: + typescript: + optional: true + + '@solana/transaction-messages@5.5.1': + resolution: {integrity: sha512-aXyhMCEaAp3M/4fP0akwBBQkFPr4pfwoC5CLDq999r/FUwDax2RE/h4Ic7h2Xk+JdcUwsb+rLq85Y52hq84XvQ==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1308,8 +1751,8 @@ packages: typescript: optional: true - '@solana/transaction-confirmation@6.1.0': - resolution: {integrity: sha512-akSjcqAMOGPFvKctFDSzhjcRc/45WbEVdVQ9mjgH6OYo7B11WZZZaeGPlzAw5KyuG34Px941xmICkBmNqEH47Q==} + '@solana/transaction-messages@6.1.0': + resolution: {integrity: sha512-Dpv54LRVcfFbFEa/uB53LaY/TRfKuPGMKR7Z4F290zBgkj9xkpZkI+WLiJBiSloI7Qo2KZqXj3514BIeZvJLcg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1317,8 +1760,8 @@ packages: typescript: optional: true - '@solana/transaction-messages@6.1.0': - resolution: {integrity: sha512-Dpv54LRVcfFbFEa/uB53LaY/TRfKuPGMKR7Z4F290zBgkj9xkpZkI+WLiJBiSloI7Qo2KZqXj3514BIeZvJLcg==} + '@solana/transactions@5.5.1': + resolution: {integrity: sha512-8hHtDxtqalZ157pnx6p8k10D7J/KY/biLzfgh9R09VNLLY3Fqi7kJvJCr7M2ik3oRll56pxhraAGCC9yIT6eOA==} engines: {node: '>=20.18.0'} peerDependencies: typescript: ^5.0.0 @@ -1865,6 +2308,10 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + commander@14.0.2: + resolution: {integrity: sha512-TywoWNNRbhoD0BXs1P3ZEScW8W5iKrnbithIl0YH+uCmBd0QpPOA8yc82DS3BIE5Ma6FnBVUsJ7wVUDz4dvOWQ==} + engines: {node: '>=20'} + commander@14.0.3: resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} engines: {node: '>=20'} @@ -3879,6 +4326,42 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 + '@loris-sandbox/litesvm-kit-darwin-arm64@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit-darwin-x64@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit-linux-arm64-gnu@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit-linux-arm64-musl@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit-linux-x64-gnu@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit-linux-x64-musl@0.5.0': + optional: true + + '@loris-sandbox/litesvm-kit@0.5.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana-program/system': 0.10.0(@solana/kit@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana-program/token': 0.9.0(@solana/kit@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana/kit': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + '@loris-sandbox/litesvm-kit-darwin-arm64': 0.5.0 + '@loris-sandbox/litesvm-kit-darwin-x64': 0.5.0 + '@loris-sandbox/litesvm-kit-linux-arm64-gnu': 0.5.0 + '@loris-sandbox/litesvm-kit-linux-arm64-musl': 0.5.0 + '@loris-sandbox/litesvm-kit-linux-x64-gnu': 0.5.0 + '@loris-sandbox/litesvm-kit-linux-x64-musl': 0.5.0 + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - typescript + - utf-8-validate + '@napi-rs/wasm-runtime@0.2.12': dependencies: '@emnapi/core': 1.7.1 @@ -4047,6 +4530,31 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 + '@solana-program/compute-budget@0.13.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana-program/system@0.10.0(@solana/kit@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana-program/token@0.9.0(@solana/kit@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana/accounts@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/accounts@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4060,6 +4568,18 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/addresses@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/assertions': 5.5.1(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/addresses@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/assertions': 6.1.0(typescript@5.9.3) @@ -4072,18 +4592,38 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/assertions@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/assertions@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 + '@solana/codecs-core@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/codecs-core@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 + '@solana/codecs-data-structures@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/codecs-data-structures@6.1.0(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4092,6 +4632,13 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/codecs-numbers@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/codecs-numbers@6.1.0(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4099,6 +4646,15 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/codecs-strings@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + fastestsmallesttextencoderdecoder: 1.0.22 + typescript: 5.9.3 + '@solana/codecs-strings@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4108,6 +4664,18 @@ snapshots: fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.9.3 + '@solana/codecs@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-data-structures': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/options': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/codecs@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4120,6 +4688,13 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/errors@5.5.1(typescript@5.9.3)': + dependencies: + chalk: 5.6.2 + commander: 14.0.2 + optionalDependencies: + typescript: 5.9.3 + '@solana/errors@6.1.0(typescript@5.9.3)': dependencies: chalk: 5.6.2 @@ -4143,14 +4718,35 @@ snapshots: typescript: 5.9.3 typescript-eslint: 8.48.1(eslint@9.39.2)(typescript@5.9.3) + '@solana/fast-stable-stringify@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/fast-stable-stringify@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/functional@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/functional@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/instruction-plans@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/instructions': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/promises': 5.5.1(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/instruction-plans@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4164,6 +4760,13 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/instructions@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/instructions@6.1.0(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4171,6 +4774,18 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/keys@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/assertions': 5.5.1(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/keys@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/assertions': 6.1.0(typescript@5.9.3) @@ -4183,6 +4798,78 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/kit-plugin-airdrop@0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana/kit-plugin-instruction-plan@0.4.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana-program/compute-budget': 0.13.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana/kit-plugin-litesvm@0.3.1(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@loris-sandbox/litesvm-kit': 0.5.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - typescript + - utf-8-validate + + '@solana/kit-plugin-payer@0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana/kit-plugin-rpc@0.3.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))': + dependencies: + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + + '@solana/kit-plugins@0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/kit': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/kit-plugin-airdrop': 0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana/kit-plugin-instruction-plan': 0.4.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana/kit-plugin-litesvm': 0.3.1(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/kit-plugin-payer': 0.5.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + '@solana/kit-plugin-rpc': 0.3.0(@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)) + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - typescript + - utf-8-validate + + '@solana/kit@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/accounts': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/instruction-plans': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/instructions': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/offchain-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/plugin-core': 5.5.1(typescript@5.9.3) + '@solana/programs': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-api': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-parsed-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-subscriptions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/signers': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/sysvars': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-confirmation': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - utf-8-validate + '@solana/kit@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/accounts': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4216,10 +4903,29 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate + '@solana/nominal-types@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/nominal-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/offchain-messages@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-data-structures': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/offchain-messages@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4235,6 +4941,18 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/options@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-data-structures': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/options@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/codecs-core': 6.1.0(typescript@5.9.3) @@ -4247,6 +4965,10 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/plugin-core@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/plugin-core@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 @@ -4281,6 +5003,15 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/programs@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/programs@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4290,10 +5021,32 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/promises@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/promises@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/rpc-api@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-parsed-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-transformers': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/rpc-api@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4312,14 +5065,29 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/rpc-parsed-types@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/rpc-parsed-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/rpc-spec-types@5.5.1(typescript@5.9.3)': + optionalDependencies: + typescript: 5.9.3 + '@solana/rpc-spec-types@6.1.0(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 + '@solana/rpc-spec@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/rpc-spec@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4327,6 +5095,20 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/rpc-subscriptions-api@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-transformers': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/rpc-subscriptions-api@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4341,6 +5123,19 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/rpc-subscriptions-channel-websocket@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 5.5.1(typescript@5.9.3) + '@solana/subscribable': 5.5.1(typescript@5.9.3) + ws: 8.19.0 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@solana/rpc-subscriptions-channel-websocket@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4354,6 +5149,15 @@ snapshots: - bufferutil - utf-8-validate + '@solana/rpc-subscriptions-spec@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/promises': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + '@solana/subscribable': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/rpc-subscriptions-spec@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4363,6 +5167,26 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/rpc-subscriptions@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/fast-stable-stringify': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/promises': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-subscriptions-api': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions-channel-websocket': 5.5.1(typescript@5.9.3) + '@solana/rpc-subscriptions-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-transformers': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/subscribable': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - utf-8-validate + '@solana/rpc-subscriptions@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4383,6 +5207,18 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate + '@solana/rpc-transformers@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/rpc-transformers@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4395,6 +5231,15 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/rpc-transport-http@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + undici-types: 7.22.0 + optionalDependencies: + typescript: 5.9.3 + '@solana/rpc-transport-http@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4404,6 +5249,19 @@ snapshots: optionalDependencies: typescript: 5.9.3 + '@solana/rpc-types@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/rpc-types@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4417,6 +5275,22 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/rpc@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/fast-stable-stringify': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/rpc-api': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-spec': 5.5.1(typescript@5.9.3) + '@solana/rpc-spec-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-transformers': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-transport-http': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/rpc@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) @@ -4433,6 +5307,22 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/signers@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/instructions': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + '@solana/offchain-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/signers@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4449,12 +5339,29 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/subscribable@5.5.1(typescript@5.9.3)': + dependencies: + '@solana/errors': 5.5.1(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + '@solana/subscribable@6.1.0(typescript@5.9.3)': dependencies: '@solana/errors': 6.1.0(typescript@5.9.3) optionalDependencies: typescript: 5.9.3 + '@solana/sysvars@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/accounts': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/sysvars@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/accounts': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4466,6 +5373,25 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/transaction-confirmation@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/promises': 5.5.1(typescript@5.9.3) + '@solana/rpc': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-subscriptions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transactions': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - bufferutil + - fastestsmallesttextencoderdecoder + - utf-8-validate + '@solana/transaction-confirmation@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4485,6 +5411,22 @@ snapshots: - fastestsmallesttextencoderdecoder - utf-8-validate + '@solana/transaction-messages@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-data-structures': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/instructions': 5.5.1(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/transaction-messages@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -4501,6 +5443,25 @@ snapshots: transitivePeerDependencies: - fastestsmallesttextencoderdecoder + '@solana/transactions@5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': + dependencies: + '@solana/addresses': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/codecs-core': 5.5.1(typescript@5.9.3) + '@solana/codecs-data-structures': 5.5.1(typescript@5.9.3) + '@solana/codecs-numbers': 5.5.1(typescript@5.9.3) + '@solana/codecs-strings': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/errors': 5.5.1(typescript@5.9.3) + '@solana/functional': 5.5.1(typescript@5.9.3) + '@solana/instructions': 5.5.1(typescript@5.9.3) + '@solana/keys': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/nominal-types': 5.5.1(typescript@5.9.3) + '@solana/rpc-types': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + '@solana/transaction-messages': 5.5.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - fastestsmallesttextencoderdecoder + '@solana/transactions@6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)': dependencies: '@solana/addresses': 6.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) @@ -5115,6 +6076,8 @@ snapshots: color-name@1.1.4: {} + commander@14.0.2: {} + commander@14.0.3: {} commander@4.1.1: {} diff --git a/clients/js/test/createAccount.test.ts b/clients/js/test/createAccount.test.ts index d2a5ee3..bd6f3f2 100644 --- a/clients/js/test/createAccount.test.ts +++ b/clients/js/test/createAccount.test.ts @@ -1,6 +1,13 @@ -import { appendTransactionMessageInstruction, fetchEncodedAccount, generateKeyPairSigner, pipe } from '@solana/kit'; -import { it, expect } from 'vitest'; -import { SYSTEM_PROGRAM_ADDRESS, getCreateAccountInstruction } from '../src'; +import { + appendTransactionMessageInstruction, + fetchEncodedAccount, + generateKeyPairSigner, + Lamports, + pipe, +} from '@solana/kit'; +import { createDefaultLiteSVMClient } from '@solana/kit-plugins'; +import { expect, it } from 'vitest'; +import { SYSTEM_PROGRAM_ADDRESS, getCreateAccountInstruction, systemProgram } from '../src'; import { createDefaultSolanaClient, createDefaultTransaction, @@ -44,3 +51,28 @@ it('creates a new empty account', async () => { space: 42n, }); }); + +it('creates a new empty account using the generated plugin', async () => { + // Given a client with the system program plugin installed. + const client = await createDefaultLiteSVMClient().use(systemProgram()); + const newAccount = await generateKeyPairSigner(); + const space = 42n; + const lamports = client.svm.minimumBalanceForRentExemption(space) as Lamports; + + // When we call createAccount on the plugin. + await client.system.instructions + .createAccount({ newAccount, space, lamports, programAddress: SYSTEM_PROGRAM_ADDRESS }) + .sendTransaction(); + + // Then we expect the following account data. + const fetchedAccount = await fetchEncodedAccount(client.rpc, newAccount.address); + expect(fetchedAccount).toStrictEqual({ + executable: false, + lamports, + programAddress: SYSTEM_PROGRAM_ADDRESS, + address: newAccount.address, + data: new Uint8Array(Array.from({ length: Number(space) }, () => 0)), + exists: true, + space, + }); +}); From b39fba2847cec00aacfebafca33d15ae10e9c27a Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Tue, 17 Feb 2026 15:13:55 +0000 Subject: [PATCH 3/3] Use localhost RPC instead of LiteSVM for now --- clients/js/test/createAccount.test.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/clients/js/test/createAccount.test.ts b/clients/js/test/createAccount.test.ts index bd6f3f2..ed8b3e0 100644 --- a/clients/js/test/createAccount.test.ts +++ b/clients/js/test/createAccount.test.ts @@ -1,11 +1,5 @@ -import { - appendTransactionMessageInstruction, - fetchEncodedAccount, - generateKeyPairSigner, - Lamports, - pipe, -} from '@solana/kit'; -import { createDefaultLiteSVMClient } from '@solana/kit-plugins'; +import { appendTransactionMessageInstruction, fetchEncodedAccount, generateKeyPairSigner, pipe } from '@solana/kit'; +import { createDefaultLocalhostRpcClient } from '@solana/kit-plugins'; import { expect, it } from 'vitest'; import { SYSTEM_PROGRAM_ADDRESS, getCreateAccountInstruction, systemProgram } from '../src'; import { @@ -54,10 +48,12 @@ it('creates a new empty account', async () => { it('creates a new empty account using the generated plugin', async () => { // Given a client with the system program plugin installed. - const client = await createDefaultLiteSVMClient().use(systemProgram()); - const newAccount = await generateKeyPairSigner(); + const client = await createDefaultLocalhostRpcClient().use(systemProgram()); const space = 42n; - const lamports = client.svm.minimumBalanceForRentExemption(space) as Lamports; + const [newAccount, lamports] = await Promise.all([ + generateKeyPairSigner(), + client.rpc.getMinimumBalanceForRentExemption(space).send(), + ]); // When we call createAccount on the plugin. await client.system.instructions