diff --git a/clients/js/package.json b/clients/js/package.json index 3ad4827..e4ca061 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -42,14 +42,14 @@ }, "homepage": "https://github.com/solana-program/token#readme", "peerDependencies": { - "@solana/kit": "^2.1.0" + "@solana/kit": "^3.0" }, "devDependencies": { "@ava/typescript": "^4.1.0", - "@solana-program/system": "^0.6.1", + "@solana-program/system": "^0.8.0", "@solana/eslint-config-solana": "^3.0.3", - "@solana/kit": "^2.1.0", - "@types/node": "^20", + "@solana/kit": "^3.0", + "@types/node": "^24", "@typescript-eslint/eslint-plugin": "^7.16.1", "@typescript-eslint/parser": "^7.16.1", "ava": "^6.1.3", diff --git a/clients/js/pnpm-lock.yaml b/clients/js/pnpm-lock.yaml index 2a19da8..7b554fd 100644 --- a/clients/js/pnpm-lock.yaml +++ b/clients/js/pnpm-lock.yaml @@ -12,17 +12,17 @@ importers: specifier: ^4.1.0 version: 4.1.0 '@solana-program/system': - specifier: ^0.6.1 - version: 0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)) + specifier: ^0.8.0 + version: 0.8.0(@solana/kit@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)) '@solana/eslint-config-solana': specifier: ^3.0.3 version: 3.0.3(@typescript-eslint/eslint-plugin@7.16.1(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@7.16.1(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-simple-import-sort@10.0.0(eslint@8.57.0))(eslint-plugin-sort-keys-fix@1.1.2)(eslint-plugin-typescript-sort-keys@3.2.0(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) '@solana/kit': - specifier: ^2.1.0 - version: 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) + specifier: ^3.0 + version: 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) '@types/node': - specifier: ^20 - version: 20.14.11 + specifier: ^24 + version: 24.3.0 '@typescript-eslint/eslint-plugin': specifier: ^7.16.1 version: 7.16.1(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) @@ -360,122 +360,66 @@ packages: resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} engines: {node: '>=18'} - '@solana-program/system@0.6.1': - resolution: {integrity: sha512-vfBzveKp13gUL4M8p7wIFamPTT0aPJycUat6GcJGJRopfDX/pB8DHIURKiqFw3UGt7PJ6+koM2uWyESAifjZvA==} + '@solana-program/system@0.8.0': + resolution: {integrity: sha512-/VJZjFoI+FMrsO5gPgktRIo6Sf/2pMEkkpA6grLtm4Xx52bQDo4fBvhA33FL+3pSf25yHcMcXwrKwqDk6/O1fw==} peerDependencies: - '@solana/web3.js': 2.0.0-rc.4 + '@solana/kit': ^3.0 - '@solana/accounts@2.0.0': - resolution: {integrity: sha512-1CE4P3QSDH5x+ZtSthMY2mn/ekROBnlT3/4f3CHDJicDvLQsgAq2yCvGHsYkK3ZA0mxhFLuhJVjuKASPnmG1rQ==} + '@solana/accounts@3.0.1': + resolution: {integrity: sha512-mnSikkN1QFuo77nPnXduynNteP28UnGDJDaSZ7eruyHTNwYymHzadnjkyzdh132pKYcUfyXmoqX2wfBFQ2RQqw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/accounts@2.1.0': - resolution: {integrity: sha512-1JOBiLFeIeHmGx7k1b23UWF9vM1HAh9GBMCzr5rBPrGSBs+QUgxBJ3+yrRg+UPEOSELubqo7qoOVFUKYsb1nXw==} + '@solana/addresses@3.0.1': + resolution: {integrity: sha512-1trIGrZVOw6pVhusQi9rYigUt2cAxPgcd2fs0wCXN+uRnJWKvZCmqegfHVOvygy5ac65yECeyrinl6TGStbxbw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/addresses@2.0.0': - resolution: {integrity: sha512-8n3c/mUlH1/z+pM8e7OJ6uDSXw26Be0dgYiokiqblO66DGQ0d+7pqFUFZ5pEGjJ9PU2lDTSfY8rHf4cemOqwzQ==} + '@solana/assertions@3.0.1': + resolution: {integrity: sha512-tTARLS/c01vISXYC3xsU5R+SUiAo+wn59Me4xlqk0d8erWxjEgEj3uHGTO+xEiQyjEhPNv4rfEx+vmk8mAvCUQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/addresses@2.1.0': - resolution: {integrity: sha512-IgiRuju2yLz14GnrysOPSNZbZQ8F+7jhx7FYZLrbKogf6NX4wy4ijLHxRsLFqP8o8aY69BZULkM9MwrSjsZi7A==} + '@solana/codecs-core@3.0.1': + resolution: {integrity: sha512-7U12QJX6VZeq03r0l0SZnGPk+YHbyU9lDjEZpjiSHdWbixy8inoYTsqV523Soy41SnGwvVsfiJf7SUB5kvgGaQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/assertions@2.0.0': - resolution: {integrity: sha512-NyPPqZRNGXs/GAjfgsw7YS6vCTXWt4ibXveS+ciy5sdmp/0v3pA6DlzYjleF9Sljrew0IiON15rjaXamhDxYfQ==} + '@solana/codecs-data-structures@3.0.1': + resolution: {integrity: sha512-0VarnZxfxm77iTc5aq7mHxXHa6mlFCpkKboT+oc+8jXOCwLyNIss480qc7QX+2FVFSwB5gRIlR36/RubaIDbLg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/assertions@2.1.0': - resolution: {integrity: sha512-KCYmxFRsg897Ec7yGdpc0rniOlqGD3NpicmIjWIV87uiXX5uFco4t+01sKyFlhsv4T4OgHxngMsxkfQ3AUkFVg==} + '@solana/codecs-numbers@3.0.1': + resolution: {integrity: sha512-HdXioWMVc0Ih9N7vuEF11pMwQWHqSF/TQrCDKljr981QQ5q/pBleUZB3hM43zP/ndnTasIxqAuLXIypricAGqg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/codecs-core@2.0.0': - resolution: {integrity: sha512-qCG+3hDU5Pm8V6joJjR4j4Zv9md1z0RaecniNDIkEglnxmOUODnmPLWbtOjnDylfItyuZeDihK8hkewdj8cUtw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-core@2.1.0': - resolution: {integrity: sha512-SR7pKtmJBg2mhmkel2NeHA1pz06QeQXdMv8WJoIR9m8F/hw80K/612uaYbwTt2nkK0jg/Qn/rNSd7EcJ4SBGjw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-data-structures@2.0.0': - resolution: {integrity: sha512-N98Y4jsrC/XeOgqrfsGqcOFIaOoMsKdAxOmy5oqVaEN67YoGSLNC9ROnqamOAOrsZdicTWx9/YLKFmQi9DPh1A==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-data-structures@2.1.0': - resolution: {integrity: sha512-oDF5ek54kirqJ09q8k/qEpobBiWOhd3CkkGOTyfjsmTF/IGIigNbdYIakxV3+vudBeaNBw08y0XdBYI4JL/nqA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-numbers@2.0.0': - resolution: {integrity: sha512-r66i7VzJO1MZkQWZIAI6jjJOFVpnq0+FIabo2Z2ZDtrArFus/SbSEv543yCLeD2tdR/G/p+1+P5On10qF50Y1Q==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-numbers@2.1.0': - resolution: {integrity: sha512-XMu4yw5iCgQnMKsxSWPPOrGgtaohmupN3eyAtYv3K3C/MJEc5V90h74k5B1GUCiHvcrdUDO9RclNjD9lgbjFag==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/codecs-strings@2.0.0': - resolution: {integrity: sha512-dNqeCypsvaHcjW86H0gYgAZGGkKVBeKVeh7WXlOZ9kno7PeQ2wNkpccyzDfuzaIsKv+HZUD3v/eo86GCvnKazQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - fastestsmallesttextencoderdecoder: ^1.0.22 - typescript: '>=5' - - '@solana/codecs-strings@2.1.0': - resolution: {integrity: sha512-O/eJFLzFrHomcCR1Y5QbIqoPo7iaJaWNnIeskB4mVhVjLyjlJS4WtBP2NBRzM9uJXaXyOxxKroqqO9zFsHOpvQ==} + '@solana/codecs-strings@3.0.1': + resolution: {integrity: sha512-UxaD1Xdxe35Y2B0HnSHe48ok8ew+tyrVI1w65eHj0NzGb9FxLx/KuuEg/b/qXQRUB75JQjDo8IBh5rWZ7rl5qQ==} engines: {node: '>=20.18.0'} peerDependencies: fastestsmallesttextencoderdecoder: ^1.0.22 - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/codecs@2.0.0': - resolution: {integrity: sha512-xneIG5ppE6WIGaZCK7JTys0uLhzlnEJUdBO8nRVIyerwH6aqCfb0fGe7q5WNNYAVDRSxC0Pc1TDe1hpdx3KWmQ==} + '@solana/codecs@3.0.1': + resolution: {integrity: sha512-bvSz1L2H/WlTqUvPtEfF4IDhp1PpZeqUdvkfy3X1sj6n/A+k08FyB3T2AbjoeOm1XAg70voYHjal/nE8SAzQFw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/codecs@2.1.0': - resolution: {integrity: sha512-C0TnfrpbTg7zoIFYfM65ofeL2AWEz80OsD6mjVdcTKpb1Uj7XuBuNLss3dMnatPQaL7RagD9VLA5/WfYayyteQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/errors@2.0.0': - resolution: {integrity: sha512-IHlaPFSy4lvYco1oHJ3X8DbchWwAwJaL/4wZKnF1ugwZ0g0re8wbABrqNOe/jyZ84VU9Z14PYM8W9oDAebdJbw==} + '@solana/errors@3.0.1': + resolution: {integrity: sha512-/EhRoJLrO03wj+3/miA6YkBnGjAS12mvilWkQ4LBv/hVqhUF9V8JXpSMnD40hoaMraE23V9IaHNHcfoJmldjwA==} engines: {node: '>=20.18.0'} hasBin: true peerDependencies: - typescript: '>=5' - - '@solana/errors@2.1.0': - resolution: {integrity: sha512-l+GxAv0Ar4d3c3PlZdA9G++wFYZREEbbRyAFP8+n8HSg0vudCuzogh/13io6hYuUhG/9Ve8ARZNamhV7UScKNw==} - engines: {node: '>=20.18.0'} - hasBin: true - peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' '@solana/eslint-config-solana@3.0.3': resolution: {integrity: sha512-yTaeCbOBwjmK4oUkknixOpwOzzAK8+4YWvJEJFNHuueESetieDnAeEHV7rzJllFgHEWa9nXps9Q3aD4/XJp71A==} @@ -490,319 +434,174 @@ packages: eslint-plugin-typescript-sort-keys: ^3.2.0 typescript: ^5.1.6 - '@solana/fast-stable-stringify@2.0.0': - resolution: {integrity: sha512-EsIx9z+eoxOmC+FpzhEb+H67CCYTbs/omAqXD4EdEYnCHWrI1li1oYBV+NoKzfx8fKlX+nzNB7S/9kc4u7Etpw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/fast-stable-stringify@2.1.0': - resolution: {integrity: sha512-a8vR92qbe/VsvQ1BpN3PIEwnoHD2fTHEwCJh9GG58z3R15RIjk73gc0khjcdg4U1tZwTJqWkvk8SbDIgGdOgMA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/functional@2.0.0': - resolution: {integrity: sha512-Sj+sLiUTimnMEyGnSLGt0lbih2xPDUhxhonnrIkPwA+hjQ3ULGHAxeevHU06nqiVEgENQYUJ5rCtHs4xhUFAkQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/functional@2.1.0': - resolution: {integrity: sha512-RVij8Av4F2uUOFcEC8n9lgD72e9gQMritmGHhMh+G91Xops4I6Few+oQ++XgSTiL2t3g3Cs0QZ13onZ0FL45FQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/instructions@2.0.0': - resolution: {integrity: sha512-MiTEiNF7Pzp+Y+x4yadl2VUcNHboaW5WP52psBuhHns3GpbbruRv5efMpM9OEQNe1OsN+Eg39vjEidX55+P+DQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/instructions@2.1.0': - resolution: {integrity: sha512-wfn6e7Rgm0Sw/Th1v/pXsKTvloZvAAQI7j1yc9WcIk9ngqH5p6LhqMMkrwYPB2oTk8+MMr7SZ4E+2eK2gL6ODA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/keys@2.0.0': - resolution: {integrity: sha512-SSLSX8BXRvfLKBqsmBghmlhMKpwHeWd5CHi5zXgTS1BRrtiU6lcrTVC9ie6B+WaNNq7oe3e6K5bdbhu3fFZ+0g==} + '@solana/fast-stable-stringify@3.0.1': + resolution: {integrity: sha512-/E9Hzk1XcCxp2DDXfzQYcgT6SZtJOzTij01UxSpvmsPYai/WwYtig09B/TTZO7a7C3+pstRZnba4XyFnmlrSUw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/keys@2.1.0': - resolution: {integrity: sha512-esY1+dlZjB18hZML5p+YPec29wi3HH0SzKx7RiqF//dI2cJ6vHfq3F+7ArbNnF6R2YCLFtl7DzS/tkqR2Xkxeg==} + '@solana/functional@3.0.1': + resolution: {integrity: sha512-wH0wUWKAB6sVxZ7+JQBVIAsZQWP0G4q/QaI3WGTuVNPNXwnNDkAuKNJFGSqugrWZTn2OKJHMHJUUWPNEKSkhcw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/kit@2.1.0': - resolution: {integrity: sha512-vqaHROLKp89xdIbaKVG6BQ44uMN9E6/rSTeltkvquD2qdTObssafGDbAKVFjwZhlNO+sdzHDCLekGabn5VAL6A==} + '@solana/instruction-plans@3.0.1': + resolution: {integrity: sha512-YIWApyXGS3lhbI8lN9TzPNm1dBtvJBpPutccABqAVmSo06oi85TtWKLST7bv6qPIAP/iJX/dxMjG+K1Xqognyg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/options@2.0.0': - resolution: {integrity: sha512-OVc4KnYosB8oAukQ/htgrxXSxlUP6gUu5Aau6d/BgEkPQzWd/Pr+w91VWw3i3zZuu2SGpedbyh05RoJBe/hSXA==} + '@solana/instructions@3.0.1': + resolution: {integrity: sha512-JoMW+nXotoRWmN8BR1xt5IjLADOtP9NhNcLkQtwvqq2uVPMwe2WgUgHAlwSBWvVTZ6eN1T9WL57uUahC1CcWaw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/options@2.1.0': - resolution: {integrity: sha512-T/vJCr8qnwK6HxriOPXCrx31IpA9ZYecxuOzQ3G74kIayED4spmpXp6PLtRYR/fo2LZ6UcgHN0qSgONnvwEweg==} + '@solana/keys@3.0.1': + resolution: {integrity: sha512-6DdquYFD+btdoM6kwoj/VJvfUmsz+yRkErmqlcIqGS/Ztqsi1cxo+yTYuJD3jFaCl7VIOu3oxrNzjAeaJLhkxg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/programs@2.0.0': - resolution: {integrity: sha512-JPIKB61pWfODnsvEAaPALc6vR5rn7kmHLpFaviWhBtfUlEVgB8yVTR0MURe4+z+fJCPRV5wWss+svA4EeGDYzQ==} + '@solana/kit@3.0.1': + resolution: {integrity: sha512-kQaCLad8ZlFhnJYs2UmhkCULq1XLDYwH9x8VuV6hkD8SJHvRU12SrXN27RcrizAKFkucqyCno/FhqLng7WA8yQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/programs@2.1.0': - resolution: {integrity: sha512-9Y30/yUbTR99+QRN2ukNXQQTGY68oKmVrXnh/et6StM1JF5WHvAJqBigsHG5bt6KxTISoRuncBnH/IRnDqPxKg==} + '@solana/nominal-types@3.0.1': + resolution: {integrity: sha512-EpcR8HMowYUewTgQ7LRS2AcBs+Rqe4t/O4ehyLzdrZJh5yHuEfDFDPXRqJCR0Su5ShxEZhSNNro/4IlctBEjYw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/promises@2.0.0': - resolution: {integrity: sha512-4teQ52HDjK16ORrZe1zl+Q9WcZdQ+YEl0M1gk59XG7D0P9WqaVEQzeXGnKSCs+Y9bnB1u5xCJccwpUhHYWq6gg==} + '@solana/options@3.0.1': + resolution: {integrity: sha512-BlOmXLh4/NDoq89j4gJLg0lVQNnp2Mn76efCUeh/r99NIoliDJPQFPnjvfbBiAN5BvJksr7RCkAamZQjD2j7rw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/promises@2.1.0': - resolution: {integrity: sha512-eQJaQXA2kD4dVyifzhslV3wOvq27fwOJ4az89BQ4Cz83zPbR94xOeDShwcXrKBYqaUf6XqH5MzdEo14t4tKAFQ==} + '@solana/programs@3.0.1': + resolution: {integrity: sha512-Ao2JsRZO6NbxIbKQQWsaetZBotjH1nQ+Ona5FvKxBmTa6p2maM88j+rSJmMtstZGVKiapDIGQESYwZXenUfuhQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-api@2.0.0': - resolution: {integrity: sha512-1FwitYxwADMF/6zKP2kNXg8ESxB6GhNBNW1c4f5dEmuXuBbeD/enLV3WMrpg8zJkIaaYarEFNbt7R7HyFzmURQ==} + '@solana/promises@3.0.1': + resolution: {integrity: sha512-2BRbJNiBDenMKOqtvpXbfkCS8VjhZQgaYarff+O7FCn/w7toTHp1H6hqWjSL429omF7oj6fAqq3Lg26ZrUea9g==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-api@2.1.0': - resolution: {integrity: sha512-4yCnHYHFlz9VffivoY5q/HVeBjT59byB2gmg7UyC3ktxD28AlF9jjsE5tJKiapAKr2J3KWm0D/rH/QwW14cGeA==} + '@solana/rpc-api@3.0.1': + resolution: {integrity: sha512-FEqxaVeUFuhafQCKfFFismEPKGygzbZJmnB1CCIoC3Xs2c/ab0R3H6yFVXONVS/mKFXMHRiJhJMCm2f2VncR3w==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-parsed-types@2.0.0': - resolution: {integrity: sha512-VCeY/oKVEtBnp8EDOc5LSSiOeIOLFIgLndcxqU0ij/cZaQ01DOoHbhluvhZtU80Z3dUeicec8TiMgkFzed+WhQ==} + '@solana/rpc-parsed-types@3.0.1': + resolution: {integrity: sha512-+BXgL5KREoal01M5tGIuVwlO1aenq1jlr2TZeYD/SPFSVRrNQkHnkPWwJzOjuqJ+NuOakBuzgOHY9cfgacz+xg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-parsed-types@2.1.0': - resolution: {integrity: sha512-mRzHemxlWDS9p1fPQNKwL+1vEOUMG8peSUJb0X/NbM12yjowDNdzM++fkOgIyCKDPddfkcoNmNrQmr2jwjdN1Q==} + '@solana/rpc-spec-types@3.0.1': + resolution: {integrity: sha512-UU/blVNDihiC/fkwv4AKqSmiwkTjuJ/xy33D4TmpnByI9J5uRFTDWAo8PlMudQOdMi+j14y8THpKCz+P3di2ZA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-spec-types@2.0.0': - resolution: {integrity: sha512-G2lmhFhgtxMQd/D6B04BHGE7bm5dMZdIPQNOqVGhzNAVjrmyapD3JN2hKAbmaYPe97wLfZERw0Ux1u4Y6q7TqA==} + '@solana/rpc-spec@3.0.1': + resolution: {integrity: sha512-N/y2Oual+aP+AxR4uYNoZ99nJ4gpeWqWq6w8G/LLR+FWrRUKFeUAJabOLLbIYRPF2Xw3QO5DGa5suDF+UO4O0w==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-spec-types@2.1.0': - resolution: {integrity: sha512-NxcZ8piXMyCdbNUL6d36QJfL2UAQEN33StlGku0ltTVe1nrokZ5WRNjSPohU1fODlNaZzTvUFzvUkM1yGCkyzw==} + '@solana/rpc-subscriptions-api@3.0.1': + resolution: {integrity: sha512-/SfNNYsMcN2EYcnfM1FVRW54I1kLw/6mY+/ET7I1tCiSsPzlueF8cZ+0atHznDyKkjK5LvNTyAGpPCSy2srL0w==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-spec@2.0.0': - resolution: {integrity: sha512-1uIDzj7vocCUqfOifjv1zAuxQ53ugiup/42edVFoQLOnJresoEZLL6WjnsJq4oCTccEAvGhUBI1WWKeZTGNxFQ==} + '@solana/rpc-subscriptions-channel-websocket@3.0.1': + resolution: {integrity: sha512-ozfc0NxFlPBluqX4W8Tu2xOEncod1cSVFQ3LkTnHv5m8VmShHTuN5r2mY+z27TwQAtUdsvs29sSHMRQUbAONGA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' - - '@solana/rpc-spec@2.1.0': - resolution: {integrity: sha512-NPAIM5EY7Jke0mHnmoMpgCEb/nZKIo+bgVFK/u+z74gY0JnCNt0DfocStUUQtlhqSmTyoHamt3lfxp4GT2zXbA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/rpc-subscriptions-api@2.0.0': - resolution: {integrity: sha512-NAJQvSFXYIIf8zxsMFBCkSbZNZgT32pzPZ1V6ZAd+U2iDEjx3L+yFwoJgfOcHp8kAV+alsF2lIsGBlG4u+ehvw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/rpc-subscriptions-api@2.1.0': - resolution: {integrity: sha512-de1dBRSE2CUwoZHMXQ/0v7iC+/pG0+iYY8jLHGGNxtKrYbTnV08mXQbaAMrmv2Rk8ZFmfJWbqbYZ9dRWdO3P5g==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/rpc-subscriptions-channel-websocket@2.0.0': - resolution: {integrity: sha512-hSQDZBmcp2t+gLZsSBqs/SqVw4RuNSC7njiP46azyzW7oGg8X2YPV36AHGsHD12KPsc0UpT1OAZ4+AN9meVKww==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' ws: ^8.18.0 - '@solana/rpc-subscriptions-channel-websocket@2.1.0': - resolution: {integrity: sha512-goJe9dv0cs967HJ382vSX8yapXgQzRHCmH323LsXrrpj/s3Eb3yUwJq7AcHgoh4gKIqyAfGybq/bE5Aa8Pcm9g==} + '@solana/rpc-subscriptions-spec@3.0.1': + resolution: {integrity: sha512-OZfd4P9jHabUxLTocJ8QdRJye+tKvBcrf6Kjibvr2E6JAKdJ2qoLTNQN4jeh66VvfHpGfsV3tXfHCIG2XeKUGA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' - ws: ^8.18.0 + typescript: '>=5.3.3' - '@solana/rpc-subscriptions-spec@2.0.0': - resolution: {integrity: sha512-VXMiI3fYtU1PkVVTXL87pcY48ZY8aCi1N6FqtxSP2xg/GASL01j1qbwyIL1OvoCqGyRgIxdd/YfaByW9wmWBhA==} + '@solana/rpc-subscriptions@3.0.1': + resolution: {integrity: sha512-ZGehdTl/8rdXJ+oYuIx1c96VJN/QLqUdaWkawGO9ydYsJGVEMEzuMXhEPmfOr7Tua7LxLUsKVH3ZE7Fr1YVVVg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-subscriptions-spec@2.1.0': - resolution: {integrity: sha512-Uqasfd3Tlr22lC/Vy5dToF0e68dMKPdnt4ks7FwXuPdEbNRM/TDGb0GqG+bt/d3IIrNOCA5Y8vsE0nQHGrWG/w==} + '@solana/rpc-transformers@3.0.1': + resolution: {integrity: sha512-AuSLW9f3dcdv6AZtRbupf2Rs5aoMbYJe57MjTTg/D2tq8n5WuJi1/8tzr7hVnz2Pq1Jou5IOw2BgAueDh0fHnA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-subscriptions@2.0.0': - resolution: {integrity: sha512-AdwMJHMrhlj7q1MPjZmVcKq3iLqMW3N0MT8kzIAP2vP+8o/d6Fn4aqGxoz2Hlfn3OYIZoYStN2VBtwzbcfEgMA==} + '@solana/rpc-transport-http@3.0.1': + resolution: {integrity: sha512-0k9wxFuoHppYQ/pao/Mg9SiR5UnGmWBkEkOaKv0ivg++O/vkirBVrBvFdPMncsoct6NUt3eUiBbd5OfI8ffBkA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-subscriptions@2.1.0': - resolution: {integrity: sha512-dTyI03VlueE3s7mA/OBlA5l6yKUUKHMJd31tpzxV3AFnqE/QPS5NVrF/WY6pPBobLJiCP0UFOe7eR/MKP9SUCA==} + '@solana/rpc-types@3.0.1': + resolution: {integrity: sha512-f9n5YiynR5JxFrLJlnRBhd0wNpns3y2FcLsjS8bEhbRLI8CJcu/2WTZTpJk+2RvUyjWIiW4ib3MBzl+q553/LA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-transformers@2.0.0': - resolution: {integrity: sha512-H6tN0qcqzUangowsLLQtYXKJsf1Roe3/qJ1Cy0gv9ojY9uEvNbJqpeEj+7blv0MUZfEe+rECAwBhxxRKPMhYGw==} + '@solana/rpc@3.0.1': + resolution: {integrity: sha512-TZFAUlxYVPFUfoq5boOIaUwT3p/8bDb2hkVtfZCXX2PfvyNw8/6BpDvTejtk9M7XRBJa8ZGjvqsTKqQpiTwVLQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-transformers@2.1.0': - resolution: {integrity: sha512-E2xPlaCu6tNO00v4HIJxJCYkoNwgVJYad5sxbIUZOQBWwXnWIcll2jUT4bWKpBGq5vFDYfkzRBr8Rco3DhfXqg==} + '@solana/signers@3.0.1': + resolution: {integrity: sha512-VhsMJWr6NfGorBY/aaP+6RGcmCIZQA3R6TPKYFkTFkTGrm+XR2Qlvfj6lTujHSWwvhpUnRFaYD+mIsJaN5LthA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-transport-http@2.0.0': - resolution: {integrity: sha512-UJLhKhhxDd1OPi8hb2AenHsDm1mofCBbhWn4bDCnH2Q3ulwYadUhcNqNbxjJPQ774VNhAf53SSI5A6PQo8IZSQ==} + '@solana/subscribable@3.0.1': + resolution: {integrity: sha512-HFLwqL9GHAFrLfIE6d4pCUVY0lcLbN7x6vZpeZHFzGxUZ9GL11EkOBPvX4MTog5VLypCbagxcsJ20ouQLvnkTA==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-transport-http@2.1.0': - resolution: {integrity: sha512-E3UovTBid4/S8QDd9FkADVKfyG+v7CW5IqI4c27ZDKfazCsnDLLkqh98C6BvNCqi278HKBui4lI2GoFpCq89Pw==} + '@solana/sysvars@3.0.1': + resolution: {integrity: sha512-zsA9xyXJHtBEtbrSiwrq3ZO6QM0WXGUZbwUYGcM7iXivC3MGb3ZC+ogLwdpC3QYy/UbPPhG5m/47ZNm3ql7WLg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-types@2.0.0': - resolution: {integrity: sha512-o1ApB9PYR0A3XjVSOh//SOVWgjDcqMlR3UNmtqciuREIBmWqnvPirdOa5EJxD3iPhfA4gnNnhGzT+tMDeDW/Kw==} + '@solana/transaction-confirmation@3.0.1': + resolution: {integrity: sha512-fzrLtlp3J46ankVXup7lVK4s6nXctcv2fljNA7m1akqtUu00wu+4Dhrf0HL7gRtCcrPXieHdIX3oytChpDyvCg==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc-types@2.1.0': - resolution: {integrity: sha512-1ODnhmpR1X/GjB7hs4gVR3mcCagfPQV0dzq/2DNuCiMjx2snn64KP5WoAHfBEyoC9/Rb36+JpNj/hLAOikipKA==} + '@solana/transaction-messages@3.0.1': + resolution: {integrity: sha512-A5ICJJ0UdfcQucbyEws6a4h6MQIQFNq0n6V8zjMNg24n7G/DHdjWH2C7LoqdjgJyR+bXcbdh/X8Igylvs12RYQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' - '@solana/rpc@2.0.0': - resolution: {integrity: sha512-TumQ9DFRpib/RyaIqLVfr7UjqSo7ldfzpae0tgjM93YjbItB4Z0VcUXc3uAFvkeYw2/HIMb46Zg43mkUwozjDg==} + '@solana/transactions@3.0.1': + resolution: {integrity: sha512-2NjauyVisXse1MyALU+0e9E/VqDkmz4EjyeHHxtEtsRXvWR8+uG+me8k+c94L3a+PptxlWgWann3NRHhX+39vQ==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' - - '@solana/rpc@2.1.0': - resolution: {integrity: sha512-myg9qAo6b2WKyHSMXURQykb+ZRnNEXBPLEcwRwkos8STzPPyRFg6ady2s0FCQQTtL/pVjanIU2bObZIzbMGugA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/signers@2.0.0': - resolution: {integrity: sha512-JEYJS3x/iKkqPV/3b1nLpX9lHib21wQKV3fOuu1aDLQqmX9OYKrnIIITYdnFDhmvGhpEpkkbPnqu7yVaFIBYsQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/signers@2.1.0': - resolution: {integrity: sha512-Yq0JdJnCecRsSBshNWy+OIRmAGeVfjwIh9Z+H1jv8u8p+dJCOreKakTWuxMt5tnj3q5K1mPcak9O2PqVPZ0teA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/subscribable@2.0.0': - resolution: {integrity: sha512-Ex7d2GnTSNVMZDU3z6nKN4agRDDgCgBDiLnmn1hmt0iFo3alr3gRAqiqa7qGouAtYh9/29pyc8tVJCijHWJPQQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/subscribable@2.1.0': - resolution: {integrity: sha512-xi12Cm889+uT5sRKnIzr7nLnHAp3hiR3dqIzrT1P7z7iEGp8OnqUQIQCHlgozFHM2cPW+6685NQXk1l1ImuJIw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/sysvars@2.0.0': - resolution: {integrity: sha512-8D4ajKcCYQsTG1p4k30lre2vjxLR6S5MftUGJnIaQObDCzGmaeA9GRti4Kk4gSPWVYFTBoj1ASx8EcEXaB3eIQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/sysvars@2.1.0': - resolution: {integrity: sha512-GXu9yS0zIebmM1Unqw/XFpYuvug03m42w98ioOPV/yiHzECggGRGpHGD9RLVYnkyz0eL4NRbnJ5dAEu/fvGe0A==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transaction-confirmation@2.0.0': - resolution: {integrity: sha512-JkTw5gXLiqQjf6xK0fpVcoJ/aMp2kagtFSD/BAOazdJ3UYzOzbzqvECt6uWa3ConcMswQ2vXalVtI7ZjmYuIeg==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transaction-confirmation@2.1.0': - resolution: {integrity: sha512-VxOvtvs2e9h5u73PHyE2TptLAMO5x6dOXlOgvq1Nk6l3rKM2HAsd+KDpN7gjOo8/EgItMMmyEilXygWWRgpSIA==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transaction-messages@2.0.0': - resolution: {integrity: sha512-Uc6Fw1EJLBrmgS1lH2ZfLAAKFvprWPQQzOVwZS78Pv8Whsk7tweYTK6S0Upv0nHr50rGpnORJfmdBrXE6OfNGg==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transaction-messages@2.1.0': - resolution: {integrity: sha512-+GPzZHLYNFbqHKoiL8mYALp7eAXtAbI6zLViZpIM3zUbVNU3q5+FCKGv6jCBnxs+3QCbeapu+W1OyfDa6BUtTQ==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transactions@2.0.0': - resolution: {integrity: sha512-VfdTE+59WKvuBG//6iE9RPjAB+ZT2kLgY2CDHabaz6RkH6OjOkMez9fWPVa3Xtcus+YQWN1SnQoryjF/xSx04w==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/transactions@2.1.0': - resolution: {integrity: sha512-QeM4sCItReeIy5LU7LhGkz7RPfMPTg/Qo8h0LSfhiJiPTOHOhElmh42vkLJmwPl83+MsKtisyPQNK6penM2nAw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - - '@solana/web3.js@2.0.0': - resolution: {integrity: sha512-x+ZRB2/r5tVK/xw8QRbAfgPcX51G9f2ifEyAQ/J5npOO+6+MPeeCjtr5UxHNDAYs9Ypo0PN+YJATCO4vhzQJGg==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -810,8 +609,8 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@20.14.11': - resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==} + '@types/node@24.3.0': + resolution: {integrity: sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==} '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} @@ -1071,6 +870,10 @@ packages: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + chalk@5.6.0: + resolution: {integrity: sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -1112,13 +915,9 @@ packages: resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} hasBin: true - commander@12.1.0: - resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} - engines: {node: '>=18'} - - commander@13.1.0: - resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} - engines: {node: '>=18'} + commander@14.0.0: + resolution: {integrity: sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==} + engines: {node: '>=20'} commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} @@ -2137,14 +1936,11 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@5.26.5: - resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - - undici-types@6.20.0: - resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + undici-types@7.10.0: + resolution: {integrity: sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==} - undici-types@7.4.0: - resolution: {integrity: sha512-4tv8DA1nBRW5kF2KBJZzEBjd66kDf3jArNVPoktdlv9Xsgw7EcIMu1bVbAXbX5IWuuZZ3YW3jIM2x85SPgMP6w==} + undici-types@7.15.0: + resolution: {integrity: sha512-Xyn5T99wU4kPhLZMm+ElE6M+IoSeG8Se7eG9xoZ82ZgVHJ07wb/IWcDZeXe2GOPkavcJ8ko5oSlXMDRl/QgY9Q==} unicorn-magic@0.1.0: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} @@ -2466,148 +2262,79 @@ snapshots: '@sindresorhus/merge-streams@2.3.0': {} - '@solana-program/system@0.6.1(@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0))': + '@solana-program/system@0.8.0(@solana/kit@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0))': dependencies: - '@solana/web3.js': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) + '@solana/kit': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/accounts@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/accounts@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/accounts@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/addresses@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/assertions': 3.0.1(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/addresses@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/assertions@3.0.1(typescript@5.5.3)': dependencies: - '@solana/assertions': 2.0.0(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/addresses@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/assertions': 2.1.0(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/assertions@2.0.0(typescript@5.5.3)': + '@solana/codecs-core@3.0.1(typescript@5.5.3)': dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - '@solana/assertions@2.1.0(typescript@5.5.3)': + '@solana/codecs-data-structures@3.0.1(typescript@5.5.3)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - '@solana/codecs-core@2.0.0(typescript@5.5.3)': + '@solana/codecs-numbers@3.0.1(typescript@5.5.3)': dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - '@solana/codecs-core@2.1.0(typescript@5.5.3)': + '@solana/codecs-strings@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-data-structures@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-data-structures@2.1.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-numbers@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-numbers@2.1.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-strings@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - fastestsmallesttextencoderdecoder: 1.0.22 - typescript: 5.5.3 - - '@solana/codecs-strings@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.5.3 - '@solana/codecs@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/codecs@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/options': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-data-structures': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/options': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/codecs@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/errors@3.0.1(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/options': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/errors@2.0.0(typescript@5.5.3)': - dependencies: - chalk: 5.3.0 - commander: 12.1.0 - typescript: 5.5.3 - - '@solana/errors@2.1.0(typescript@5.5.3)': - dependencies: - chalk: 5.3.0 - commander: 13.1.0 + chalk: 5.6.0 + commander: 14.0.0 typescript: 5.5.3 '@solana/eslint-config-solana@3.0.3(@typescript-eslint/eslint-plugin@7.16.1(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-jest@27.9.0(@typescript-eslint/eslint-plugin@7.16.1(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint-plugin-react-hooks@4.6.2(eslint@8.57.0))(eslint-plugin-simple-import-sort@10.0.0(eslint@8.57.0))(eslint-plugin-sort-keys-fix@1.1.2)(eslint-plugin-typescript-sort-keys@3.2.0(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3)': @@ -2622,554 +2349,306 @@ snapshots: eslint-plugin-typescript-sort-keys: 3.2.0(@typescript-eslint/parser@7.16.1(eslint@8.57.0)(typescript@5.5.3))(eslint@8.57.0)(typescript@5.5.3) typescript: 5.5.3 - '@solana/fast-stable-stringify@2.0.0(typescript@5.5.3)': - dependencies: - typescript: 5.5.3 - - '@solana/fast-stable-stringify@2.1.0(typescript@5.5.3)': + '@solana/fast-stable-stringify@3.0.1(typescript@5.5.3)': dependencies: typescript: 5.5.3 - '@solana/functional@2.0.0(typescript@5.5.3)': + '@solana/functional@3.0.1(typescript@5.5.3)': dependencies: typescript: 5.5.3 - '@solana/functional@2.1.0(typescript@5.5.3)': + '@solana/instruction-plans@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - typescript: 5.5.3 - - '@solana/instructions@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/instructions@2.1.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/keys@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/assertions': 2.0.0(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/instructions': 3.0.1(typescript@5.5.3) + '@solana/promises': 3.0.1(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/keys@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/instructions@3.0.1(typescript@5.5.3)': dependencies: - '@solana/assertions': 2.1.0(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/kit@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/instructions': 2.1.0(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/programs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-parsed-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/signers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/sysvars': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-confirmation': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/keys@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + dependencies: + '@solana/assertions': 3.0.1(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - - ws - '@solana/options@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/kit@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': + dependencies: + '@solana/accounts': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/instruction-plans': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/instructions': 3.0.1(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/programs': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-parsed-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-subscriptions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/signers': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/sysvars': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transaction-confirmation': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder + - ws - '@solana/options@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/nominal-types@3.0.1(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/programs@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/options@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-data-structures': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/programs@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/programs@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/promises@2.0.0(typescript@5.5.3)': + '@solana/promises@3.0.1(typescript@5.5.3)': dependencies: typescript: 5.5.3 - '@solana/promises@2.1.0(typescript@5.5.3)': + '@solana/rpc-api@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - typescript: 5.5.3 - - '@solana/rpc-api@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-parsed-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc-api@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-parsed-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-parsed-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-transformers': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-parsed-types@2.0.0(typescript@5.5.3)': - dependencies: - typescript: 5.5.3 - - '@solana/rpc-parsed-types@2.1.0(typescript@5.5.3)': + '@solana/rpc-parsed-types@3.0.1(typescript@5.5.3)': dependencies: typescript: 5.5.3 - '@solana/rpc-spec-types@2.0.0(typescript@5.5.3)': + '@solana/rpc-spec-types@3.0.1(typescript@5.5.3)': dependencies: typescript: 5.5.3 - '@solana/rpc-spec-types@2.1.0(typescript@5.5.3)': + '@solana/rpc-spec@3.0.1(typescript@5.5.3)': dependencies: + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - '@solana/rpc-spec@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/rpc-spec@2.1.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/rpc-subscriptions-api@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc-subscriptions-api@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/rpc-subscriptions-api@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-subscriptions-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-transformers': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-subscriptions-channel-websocket@2.0.0(typescript@5.5.3)(ws@8.17.0)': + '@solana/rpc-subscriptions-channel-websocket@3.0.1(typescript@5.5.3)(ws@8.17.0)': dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.5.3) - '@solana/subscribable': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/rpc-subscriptions-spec': 3.0.1(typescript@5.5.3) + '@solana/subscribable': 3.0.1(typescript@5.5.3) typescript: 5.5.3 ws: 8.17.0 - '@solana/rpc-subscriptions-channel-websocket@2.1.0(typescript@5.5.3)(ws@8.17.0)': + '@solana/rpc-subscriptions-spec@3.0.1(typescript@5.5.3)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.5.3) - '@solana/subscribable': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - ws: 8.17.0 - - '@solana/rpc-subscriptions-spec@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/promises': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - '@solana/subscribable': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/promises': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) + '@solana/subscribable': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - '@solana/rpc-subscriptions-spec@2.1.0(typescript@5.5.3)': + '@solana/rpc-subscriptions@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/promises': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - '@solana/subscribable': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/rpc-subscriptions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/fast-stable-stringify': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/promises': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-subscriptions-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions-channel-websocket': 2.0.0(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-subscriptions-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/subscribable': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - - '@solana/rpc-subscriptions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/fast-stable-stringify': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/promises': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-subscriptions-api': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions-channel-websocket': 2.1.0(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-subscriptions-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/subscribable': 2.1.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/fast-stable-stringify': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/promises': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-subscriptions-api': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-subscriptions-channel-websocket': 3.0.1(typescript@5.5.3)(ws@8.17.0) + '@solana/rpc-subscriptions-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-transformers': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/subscribable': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - ws - '@solana/rpc-transformers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc-transformers@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/rpc-transformers@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-transport-http@2.0.0(typescript@5.5.3)': + '@solana/rpc-transport-http@3.0.1(typescript@5.5.3)': dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - undici-types: 6.20.0 + undici-types: 7.15.0 - '@solana/rpc-transport-http@2.1.0(typescript@5.5.3)': + '@solana/rpc-types@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - undici-types: 7.4.0 - - '@solana/rpc-types@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc-types@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/rpc@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/rpc@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/fast-stable-stringify': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/rpc-api': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-spec': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-transport-http': 2.0.0(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/fast-stable-stringify': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/rpc-api': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-spec': 3.0.1(typescript@5.5.3) + '@solana/rpc-spec-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-transformers': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-transport-http': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/rpc@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/fast-stable-stringify': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/rpc-api': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-spec': 2.1.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.1.0(typescript@5.5.3) - '@solana/rpc-transformers': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-transport-http': 2.1.0(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/signers@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/signers@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/instructions': 2.0.0(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/instructions': 3.0.1(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/signers@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/subscribable@3.0.1(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/instructions': 2.1.0(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - '@solana/subscribable@2.0.0(typescript@5.5.3)': + '@solana/sysvars@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/subscribable@2.1.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.1.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/sysvars@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/accounts': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/sysvars@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/transaction-confirmation@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': dependencies: - '@solana/accounts': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/transaction-confirmation@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/promises': 2.0.0(typescript@5.5.3) - '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/promises': 3.0.1(typescript@5.5.3) + '@solana/rpc': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/rpc-subscriptions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - ws - '@solana/transaction-confirmation@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/promises': 2.1.0(typescript@5.5.3) - '@solana/rpc': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-subscriptions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - - '@solana/transaction-messages@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/instructions': 2.0.0(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/transaction-messages@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/transaction-messages@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/instructions': 2.1.0(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/transactions@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/instructions': 2.0.0(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-data-structures': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/instructions': 3.0.1(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/transactions@2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/addresses': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs-core': 2.1.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.1.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.1.0(typescript@5.5.3) - '@solana/codecs-strings': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.1.0(typescript@5.5.3) - '@solana/functional': 2.1.0(typescript@5.5.3) - '@solana/instructions': 2.1.0(typescript@5.5.3) - '@solana/keys': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-types': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-messages': 2.1.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transactions@3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + dependencies: + '@solana/addresses': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/codecs-core': 3.0.1(typescript@5.5.3) + '@solana/codecs-data-structures': 3.0.1(typescript@5.5.3) + '@solana/codecs-numbers': 3.0.1(typescript@5.5.3) + '@solana/codecs-strings': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/errors': 3.0.1(typescript@5.5.3) + '@solana/functional': 3.0.1(typescript@5.5.3) + '@solana/instructions': 3.0.1(typescript@5.5.3) + '@solana/keys': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/nominal-types': 3.0.1(typescript@5.5.3) + '@solana/rpc-types': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@solana/transaction-messages': 3.0.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) typescript: 5.5.3 transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/web3.js@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0)': - dependencies: - '@solana/accounts': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/addresses': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/codecs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - '@solana/functional': 2.0.0(typescript@5.5.3) - '@solana/instructions': 2.0.0(typescript@5.5.3) - '@solana/keys': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/programs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/rpc-parsed-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-spec-types': 2.0.0(typescript@5.5.3) - '@solana/rpc-subscriptions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/rpc-types': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/signers': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/sysvars': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transaction-confirmation': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)(ws@8.17.0) - '@solana/transaction-messages': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/transactions': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - ws - '@types/estree@1.0.5': {} '@types/json-schema@7.0.15': {} - '@types/node@20.14.11': + '@types/node@24.3.0': dependencies: - undici-types: 5.26.5 + undici-types: 7.10.0 '@types/semver@7.5.8': {} @@ -3491,6 +2970,8 @@ snapshots: chalk@5.3.0: {} + chalk@5.6.0: {} + chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -3534,9 +3015,7 @@ snapshots: color-support@1.1.3: {} - commander@12.1.0: {} - - commander@13.1.0: {} + commander@14.0.0: {} commander@4.1.1: {} @@ -4501,11 +3980,9 @@ snapshots: typescript@5.5.3: {} - undici-types@5.26.5: {} - - undici-types@6.20.0: {} + undici-types@7.10.0: {} - undici-types@7.4.0: {} + undici-types@7.15.0: {} unicorn-magic@0.1.0: {} diff --git a/clients/js/src/generated/accounts/mint.ts b/clients/js/src/generated/accounts/mint.ts index cdd32ef..1ab2fc3 100644 --- a/clients/js/src/generated/accounts/mint.ts +++ b/clients/js/src/generated/accounts/mint.ts @@ -29,12 +29,12 @@ import { getU8Encoder, type Account, type Address, - type Codec, - type Decoder, type EncodedAccount, - type Encoder, type FetchAccountConfig, type FetchAccountsConfig, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type Option, @@ -75,7 +75,7 @@ export type MintArgs = { freezeAuthority: OptionOrNullable
; }; -export function getMintEncoder(): Encoder { +export function getMintEncoder(): FixedSizeEncoder { return getStructEncoder([ [ 'mintAuthority', @@ -97,7 +97,7 @@ export function getMintEncoder(): Encoder { ]); } -export function getMintDecoder(): Decoder { +export function getMintDecoder(): FixedSizeDecoder { return getStructDecoder([ [ 'mintAuthority', @@ -119,7 +119,7 @@ export function getMintDecoder(): Decoder { ]); } -export function getMintCodec(): Codec { +export function getMintCodec(): FixedSizeCodec { return combineCodec(getMintEncoder(), getMintDecoder()); } diff --git a/clients/js/src/generated/accounts/multisig.ts b/clients/js/src/generated/accounts/multisig.ts index 91377b4..504b703 100644 --- a/clients/js/src/generated/accounts/multisig.ts +++ b/clients/js/src/generated/accounts/multisig.ts @@ -25,12 +25,12 @@ import { getU8Encoder, type Account, type Address, - type Codec, - type Decoder, type EncodedAccount, - type Encoder, type FetchAccountConfig, type FetchAccountsConfig, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, } from '@solana/kit'; @@ -48,7 +48,7 @@ export type Multisig = { export type MultisigArgs = Multisig; -export function getMultisigEncoder(): Encoder { +export function getMultisigEncoder(): FixedSizeEncoder { return getStructEncoder([ ['m', getU8Encoder()], ['n', getU8Encoder()], @@ -57,7 +57,7 @@ export function getMultisigEncoder(): Encoder { ]); } -export function getMultisigDecoder(): Decoder { +export function getMultisigDecoder(): FixedSizeDecoder { return getStructDecoder([ ['m', getU8Decoder()], ['n', getU8Decoder()], @@ -66,7 +66,7 @@ export function getMultisigDecoder(): Decoder { ]); } -export function getMultisigCodec(): Codec { +export function getMultisigCodec(): FixedSizeCodec { return combineCodec(getMultisigEncoder(), getMultisigDecoder()); } diff --git a/clients/js/src/generated/accounts/token.ts b/clients/js/src/generated/accounts/token.ts index 04e41b4..0fd3bb9 100644 --- a/clients/js/src/generated/accounts/token.ts +++ b/clients/js/src/generated/accounts/token.ts @@ -25,12 +25,12 @@ import { getU64Encoder, type Account, type Address, - type Codec, - type Decoder, type EncodedAccount, - type Encoder, type FetchAccountConfig, type FetchAccountsConfig, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type Option, @@ -97,7 +97,7 @@ export type TokenArgs = { closeAuthority: OptionOrNullable
; }; -export function getTokenEncoder(): Encoder { +export function getTokenEncoder(): FixedSizeEncoder { return getStructEncoder([ ['mint', getAddressEncoder()], ['owner', getAddressEncoder()], @@ -128,7 +128,7 @@ export function getTokenEncoder(): Encoder { ]); } -export function getTokenDecoder(): Decoder { +export function getTokenDecoder(): FixedSizeDecoder { return getStructDecoder([ ['mint', getAddressDecoder()], ['owner', getAddressDecoder()], @@ -159,7 +159,7 @@ export function getTokenDecoder(): Decoder { ]); } -export function getTokenCodec(): Codec { +export function getTokenCodec(): FixedSizeCodec { return combineCodec(getTokenEncoder(), getTokenDecoder()); } diff --git a/clients/js/src/generated/instructions/amountToUiAmount.ts b/clients/js/src/generated/instructions/amountToUiAmount.ts index 97fbbde..262b521 100644 --- a/clients/js/src/generated/instructions/amountToUiAmount.ts +++ b/clients/js/src/generated/instructions/amountToUiAmount.ts @@ -15,15 +15,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; @@ -36,11 +37,11 @@ export function getAmountToUiAmountDiscriminatorBytes() { export type AmountToUiAmountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? ReadonlyAccount @@ -60,7 +61,7 @@ export type AmountToUiAmountInstructionDataArgs = { amount: number | bigint; }; -export function getAmountToUiAmountInstructionDataEncoder(): Encoder { +export function getAmountToUiAmountInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -70,14 +71,14 @@ export function getAmountToUiAmountInstructionDataEncoder(): Encoder { +export function getAmountToUiAmountInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], ]); } -export function getAmountToUiAmountInstructionDataCodec(): Codec< +export function getAmountToUiAmountInstructionDataCodec(): FixedSizeCodec< AmountToUiAmountInstructionDataArgs, AmountToUiAmountInstructionData > { @@ -129,7 +130,7 @@ export function getAmountToUiAmountInstruction< export type ParsedAmountToUiAmountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -141,11 +142,11 @@ export type ParsedAmountToUiAmountInstruction< export function parseAmountToUiAmountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedAmountToUiAmountInstruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -153,7 +154,7 @@ export function parseAmountToUiAmountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/approve.ts b/clients/js/src/generated/instructions/approve.ts index e73cb65..7a09bab 100644 --- a/clients/js/src/generated/instructions/approve.ts +++ b/clients/js/src/generated/instructions/approve.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getApproveDiscriminatorBytes() { export type ApproveInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountSource extends string | IAccountMeta = string, - TAccountDelegate extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountSource extends string | AccountMeta = string, + TAccountDelegate extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountSource extends string ? WritableAccount @@ -73,7 +74,7 @@ export type ApproveInstructionDataArgs = { amount: number | bigint; }; -export function getApproveInstructionDataEncoder(): Encoder { +export function getApproveInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -83,14 +84,14 @@ export function getApproveInstructionDataEncoder(): Encoder { +export function getApproveInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], ]); } -export function getApproveInstructionDataCodec(): Codec< +export function getApproveInstructionDataCodec(): FixedSizeCodec< ApproveInstructionDataArgs, ApproveInstructionData > { @@ -128,7 +129,7 @@ export function getApproveInstruction< TAccountSource, TAccountDelegate, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -149,7 +150,7 @@ export function getApproveInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -174,7 +175,7 @@ export function getApproveInstruction< TAccountSource, TAccountDelegate, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -183,7 +184,7 @@ export function getApproveInstruction< export type ParsedApproveInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -199,11 +200,11 @@ export type ParsedApproveInstruction< export function parseApproveInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedApproveInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -211,7 +212,7 @@ export function parseApproveInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/approveChecked.ts b/clients/js/src/generated/instructions/approveChecked.ts index 6179390..807de5e 100644 --- a/clients/js/src/generated/instructions/approveChecked.ts +++ b/clients/js/src/generated/instructions/approveChecked.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,14 +42,14 @@ export function getApproveCheckedDiscriminatorBytes() { export type ApproveCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountSource extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountDelegate extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountSource extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountDelegate extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountSource extends string ? WritableAccount @@ -81,7 +82,7 @@ export type ApproveCheckedInstructionDataArgs = { decimals: number; }; -export function getApproveCheckedInstructionDataEncoder(): Encoder { +export function getApproveCheckedInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -92,7 +93,7 @@ export function getApproveCheckedInstructionDataEncoder(): Encoder { +export function getApproveCheckedInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], @@ -100,7 +101,7 @@ export function getApproveCheckedInstructionDataDecoder(): Decoder { @@ -149,7 +150,7 @@ export function getApproveCheckedInstruction< TAccountMint, TAccountDelegate, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -171,7 +172,7 @@ export function getApproveCheckedInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -198,7 +199,7 @@ export function getApproveCheckedInstruction< TAccountMint, TAccountDelegate, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -207,7 +208,7 @@ export function getApproveCheckedInstruction< export type ParsedApproveCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -225,11 +226,11 @@ export type ParsedApproveCheckedInstruction< export function parseApproveCheckedInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedApproveCheckedInstruction { if (instruction.accounts.length < 4) { // TODO: Coded error. @@ -237,7 +238,7 @@ export function parseApproveCheckedInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/burn.ts b/clients/js/src/generated/instructions/burn.ts index 149a865..fb17597 100644 --- a/clients/js/src/generated/instructions/burn.ts +++ b/clients/js/src/generated/instructions/burn.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getBurnDiscriminatorBytes() { export type BurnInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -70,7 +71,7 @@ export type BurnInstructionData = { export type BurnInstructionDataArgs = { amount: number | bigint }; -export function getBurnInstructionDataEncoder(): Encoder { +export function getBurnInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -80,14 +81,14 @@ export function getBurnInstructionDataEncoder(): Encoder { +export function getBurnInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], ]); } -export function getBurnInstructionDataCodec(): Codec< +export function getBurnInstructionDataCodec(): FixedSizeCodec< BurnInstructionDataArgs, BurnInstructionData > { @@ -126,7 +127,7 @@ export function getBurnInstruction< TAccountMint, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority > { // Program address. @@ -147,7 +148,7 @@ export function getBurnInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -173,7 +174,7 @@ export function getBurnInstruction< TAccountMint, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority >; @@ -182,7 +183,7 @@ export function getBurnInstruction< export type ParsedBurnInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -198,11 +199,11 @@ export type ParsedBurnInstruction< export function parseBurnInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedBurnInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -210,7 +211,7 @@ export function parseBurnInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/burnChecked.ts b/clients/js/src/generated/instructions/burnChecked.ts index 88ed2f1..d8ac769 100644 --- a/clients/js/src/generated/instructions/burnChecked.ts +++ b/clients/js/src/generated/instructions/burnChecked.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getBurnCheckedDiscriminatorBytes() { export type BurnCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -77,7 +78,7 @@ export type BurnCheckedInstructionDataArgs = { decimals: number; }; -export function getBurnCheckedInstructionDataEncoder(): Encoder { +export function getBurnCheckedInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -88,7 +89,7 @@ export function getBurnCheckedInstructionDataEncoder(): Encoder { +export function getBurnCheckedInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], @@ -96,7 +97,7 @@ export function getBurnCheckedInstructionDataDecoder(): Decoder { @@ -136,7 +137,7 @@ export function getBurnCheckedInstruction< TAccountMint, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority > { // Program address. @@ -157,7 +158,7 @@ export function getBurnCheckedInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -183,7 +184,7 @@ export function getBurnCheckedInstruction< TAccountMint, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority >; @@ -192,7 +193,7 @@ export function getBurnCheckedInstruction< export type ParsedBurnCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -208,11 +209,11 @@ export type ParsedBurnCheckedInstruction< export function parseBurnCheckedInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedBurnCheckedInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -220,7 +221,7 @@ export function parseBurnCheckedInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/closeAccount.ts b/clients/js/src/generated/instructions/closeAccount.ts index 3237931..4f22615 100644 --- a/clients/js/src/generated/instructions/closeAccount.ts +++ b/clients/js/src/generated/instructions/closeAccount.ts @@ -14,17 +14,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -39,13 +40,13 @@ export function getCloseAccountDiscriminatorBytes() { export type CloseAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountDestination extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountDestination extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -64,18 +65,18 @@ export type CloseAccountInstructionData = { discriminator: number }; export type CloseAccountInstructionDataArgs = {}; -export function getCloseAccountInstructionDataEncoder(): Encoder { +export function getCloseAccountInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: CLOSE_ACCOUNT_DISCRIMINATOR }) ); } -export function getCloseAccountInstructionDataDecoder(): Decoder { +export function getCloseAccountInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getCloseAccountInstructionDataCodec(): Codec< +export function getCloseAccountInstructionDataCodec(): FixedSizeCodec< CloseAccountInstructionDataArgs, CloseAccountInstructionData > { @@ -112,7 +113,7 @@ export function getCloseAccountInstruction< TAccountAccount, TAccountDestination, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -133,7 +134,7 @@ export function getCloseAccountInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -156,7 +157,7 @@ export function getCloseAccountInstruction< TAccountAccount, TAccountDestination, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -165,7 +166,7 @@ export function getCloseAccountInstruction< export type ParsedCloseAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -181,11 +182,11 @@ export type ParsedCloseAccountInstruction< export function parseCloseAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedCloseAccountInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -193,7 +194,7 @@ export function parseCloseAccountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/createAssociatedToken.ts b/clients/js/src/generated/instructions/createAssociatedToken.ts index 371bcf2..ba05c24 100644 --- a/clients/js/src/generated/instructions/createAssociatedToken.ts +++ b/clients/js/src/generated/instructions/createAssociatedToken.ts @@ -13,16 +13,17 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount, @@ -43,24 +44,24 @@ export function getCreateAssociatedTokenDiscriminatorBytes() { export type CreateAssociatedTokenInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, - TAccountPayer extends string | IAccountMeta = string, - TAccountAta extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, + TAccountPayer extends string | AccountMeta = string, + TAccountAta extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, TAccountSystemProgram extends | string - | IAccountMeta = '11111111111111111111111111111111', + | AccountMeta = '11111111111111111111111111111111', TAccountTokenProgram extends | string - | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountPayer extends string ? WritableSignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountPayer, TAccountAta extends string ? WritableAccount : TAccountAta, TAccountOwner extends string @@ -83,7 +84,7 @@ export type CreateAssociatedTokenInstructionData = { discriminator: number }; export type CreateAssociatedTokenInstructionDataArgs = {}; -export function getCreateAssociatedTokenInstructionDataEncoder(): Encoder { +export function getCreateAssociatedTokenInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ @@ -93,11 +94,11 @@ export function getCreateAssociatedTokenInstructionDataEncoder(): Encoder { +export function getCreateAssociatedTokenInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getCreateAssociatedTokenInstructionDataCodec(): Codec< +export function getCreateAssociatedTokenInstructionDataCodec(): FixedSizeCodec< CreateAssociatedTokenInstructionDataArgs, CreateAssociatedTokenInstructionData > { @@ -322,7 +323,7 @@ export function getCreateAssociatedTokenInstruction< export type ParsedCreateAssociatedTokenInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -344,11 +345,11 @@ export type ParsedCreateAssociatedTokenInstruction< export function parseCreateAssociatedTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedCreateAssociatedTokenInstruction { if (instruction.accounts.length < 6) { // TODO: Coded error. @@ -356,7 +357,7 @@ export function parseCreateAssociatedTokenInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts b/clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts index 032f68f..9e7ff7f 100644 --- a/clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts +++ b/clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts @@ -13,16 +13,17 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount, @@ -45,24 +46,24 @@ export function getCreateAssociatedTokenIdempotentDiscriminatorBytes() { export type CreateAssociatedTokenIdempotentInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, - TAccountPayer extends string | IAccountMeta = string, - TAccountAta extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, + TAccountPayer extends string | AccountMeta = string, + TAccountAta extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, TAccountSystemProgram extends | string - | IAccountMeta = '11111111111111111111111111111111', + | AccountMeta = '11111111111111111111111111111111', TAccountTokenProgram extends | string - | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountPayer extends string ? WritableSignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountPayer, TAccountAta extends string ? WritableAccount : TAccountAta, TAccountOwner extends string @@ -87,7 +88,7 @@ export type CreateAssociatedTokenIdempotentInstructionData = { export type CreateAssociatedTokenIdempotentInstructionDataArgs = {}; -export function getCreateAssociatedTokenIdempotentInstructionDataEncoder(): Encoder { +export function getCreateAssociatedTokenIdempotentInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ @@ -97,11 +98,11 @@ export function getCreateAssociatedTokenIdempotentInstructionDataEncoder(): Enco ); } -export function getCreateAssociatedTokenIdempotentInstructionDataDecoder(): Decoder { +export function getCreateAssociatedTokenIdempotentInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getCreateAssociatedTokenIdempotentInstructionDataCodec(): Codec< +export function getCreateAssociatedTokenIdempotentInstructionDataCodec(): FixedSizeCodec< CreateAssociatedTokenIdempotentInstructionDataArgs, CreateAssociatedTokenIdempotentInstructionData > { @@ -326,7 +327,7 @@ export function getCreateAssociatedTokenIdempotentInstruction< export type ParsedCreateAssociatedTokenIdempotentInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -348,11 +349,11 @@ export type ParsedCreateAssociatedTokenIdempotentInstruction< export function parseCreateAssociatedTokenIdempotentInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedCreateAssociatedTokenIdempotentInstruction { if (instruction.accounts.length < 6) { // TODO: Coded error. @@ -360,7 +361,7 @@ export function parseCreateAssociatedTokenIdempotentInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/freezeAccount.ts b/clients/js/src/generated/instructions/freezeAccount.ts index fe7ba71..68bf4cb 100644 --- a/clients/js/src/generated/instructions/freezeAccount.ts +++ b/clients/js/src/generated/instructions/freezeAccount.ts @@ -14,17 +14,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -39,13 +40,13 @@ export function getFreezeAccountDiscriminatorBytes() { export type FreezeAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -64,18 +65,18 @@ export type FreezeAccountInstructionData = { discriminator: number }; export type FreezeAccountInstructionDataArgs = {}; -export function getFreezeAccountInstructionDataEncoder(): Encoder { +export function getFreezeAccountInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: FREEZE_ACCOUNT_DISCRIMINATOR }) ); } -export function getFreezeAccountInstructionDataDecoder(): Decoder { +export function getFreezeAccountInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getFreezeAccountInstructionDataCodec(): Codec< +export function getFreezeAccountInstructionDataCodec(): FixedSizeCodec< FreezeAccountInstructionDataArgs, FreezeAccountInstructionData > { @@ -112,7 +113,7 @@ export function getFreezeAccountInstruction< TAccountAccount, TAccountMint, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -133,7 +134,7 @@ export function getFreezeAccountInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -156,7 +157,7 @@ export function getFreezeAccountInstruction< TAccountAccount, TAccountMint, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -165,7 +166,7 @@ export function getFreezeAccountInstruction< export type ParsedFreezeAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -181,11 +182,11 @@ export type ParsedFreezeAccountInstruction< export function parseFreezeAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedFreezeAccountInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -193,7 +194,7 @@ export function parseFreezeAccountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/getAccountDataSize.ts b/clients/js/src/generated/instructions/getAccountDataSize.ts index f9d3672..e995f7a 100644 --- a/clients/js/src/generated/instructions/getAccountDataSize.ts +++ b/clients/js/src/generated/instructions/getAccountDataSize.ts @@ -13,15 +13,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; @@ -34,11 +35,11 @@ export function getGetAccountDataSizeDiscriminatorBytes() { export type GetAccountDataSizeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? ReadonlyAccount @@ -51,7 +52,7 @@ export type GetAccountDataSizeInstructionData = { discriminator: number }; export type GetAccountDataSizeInstructionDataArgs = {}; -export function getGetAccountDataSizeInstructionDataEncoder(): Encoder { +export function getGetAccountDataSizeInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ @@ -61,11 +62,11 @@ export function getGetAccountDataSizeInstructionDataEncoder(): Encoder { +export function getGetAccountDataSizeInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getGetAccountDataSizeInstructionDataCodec(): Codec< +export function getGetAccountDataSizeInstructionDataCodec(): FixedSizeCodec< GetAccountDataSizeInstructionDataArgs, GetAccountDataSizeInstructionData > { @@ -111,7 +112,7 @@ export function getGetAccountDataSizeInstruction< export type ParsedGetAccountDataSizeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -123,11 +124,11 @@ export type ParsedGetAccountDataSizeInstruction< export function parseGetAccountDataSizeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedGetAccountDataSizeInstruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -135,7 +136,7 @@ export function parseGetAccountDataSizeInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeAccount.ts b/clients/js/src/generated/instructions/initializeAccount.ts index b9ea3ab..0971eaf 100644 --- a/clients/js/src/generated/instructions/initializeAccount.ts +++ b/clients/js/src/generated/instructions/initializeAccount.ts @@ -13,15 +13,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -35,16 +36,16 @@ export function getInitializeAccountDiscriminatorBytes() { export type InitializeAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, TAccountRent extends | string - | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'SysvarRent111111111111111111111111111111111', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -66,18 +67,18 @@ export type InitializeAccountInstructionData = { discriminator: number }; export type InitializeAccountInstructionDataArgs = {}; -export function getInitializeAccountInstructionDataEncoder(): Encoder { +export function getInitializeAccountInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: INITIALIZE_ACCOUNT_DISCRIMINATOR }) ); } -export function getInitializeAccountInstructionDataDecoder(): Decoder { +export function getInitializeAccountInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getInitializeAccountInstructionDataCodec(): Codec< +export function getInitializeAccountInstructionDataCodec(): FixedSizeCodec< InitializeAccountInstructionDataArgs, InitializeAccountInstructionData > { @@ -168,7 +169,7 @@ export function getInitializeAccountInstruction< export type ParsedInitializeAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -186,11 +187,11 @@ export type ParsedInitializeAccountInstruction< export function parseInitializeAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeAccountInstruction { if (instruction.accounts.length < 4) { // TODO: Coded error. @@ -198,7 +199,7 @@ export function parseInitializeAccountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeAccount2.ts b/clients/js/src/generated/instructions/initializeAccount2.ts index 1818d2e..967471f 100644 --- a/clients/js/src/generated/instructions/initializeAccount2.ts +++ b/clients/js/src/generated/instructions/initializeAccount2.ts @@ -15,15 +15,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -37,15 +38,15 @@ export function getInitializeAccount2DiscriminatorBytes() { export type InitializeAccount2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, TAccountRent extends | string - | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'SysvarRent111111111111111111111111111111111', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -71,7 +72,7 @@ export type InitializeAccount2InstructionDataArgs = { owner: Address; }; -export function getInitializeAccount2InstructionDataEncoder(): Encoder { +export function getInitializeAccount2InstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -81,14 +82,14 @@ export function getInitializeAccount2InstructionDataEncoder(): Encoder { +export function getInitializeAccount2InstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['owner', getAddressDecoder()], ]); } -export function getInitializeAccount2InstructionDataCodec(): Codec< +export function getInitializeAccount2InstructionDataCodec(): FixedSizeCodec< InitializeAccount2InstructionDataArgs, InitializeAccount2InstructionData > { @@ -172,7 +173,7 @@ export function getInitializeAccount2Instruction< export type ParsedInitializeAccount2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -188,11 +189,11 @@ export type ParsedInitializeAccount2Instruction< export function parseInitializeAccount2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeAccount2Instruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -200,7 +201,7 @@ export function parseInitializeAccount2Instruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeAccount3.ts b/clients/js/src/generated/instructions/initializeAccount3.ts index 2cdd4d6..2f3115f 100644 --- a/clients/js/src/generated/instructions/initializeAccount3.ts +++ b/clients/js/src/generated/instructions/initializeAccount3.ts @@ -15,15 +15,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -37,12 +38,12 @@ export function getInitializeAccount3DiscriminatorBytes() { export type InitializeAccount3Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -65,7 +66,7 @@ export type InitializeAccount3InstructionDataArgs = { owner: Address; }; -export function getInitializeAccount3InstructionDataEncoder(): Encoder { +export function getInitializeAccount3InstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -75,14 +76,14 @@ export function getInitializeAccount3InstructionDataEncoder(): Encoder { +export function getInitializeAccount3InstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['owner', getAddressDecoder()], ]); } -export function getInitializeAccount3InstructionDataCodec(): Codec< +export function getInitializeAccount3InstructionDataCodec(): FixedSizeCodec< InitializeAccount3InstructionDataArgs, InitializeAccount3InstructionData > { @@ -149,7 +150,7 @@ export function getInitializeAccount3Instruction< export type ParsedInitializeAccount3Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -163,11 +164,11 @@ export type ParsedInitializeAccount3Instruction< export function parseInitializeAccount3Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeAccount3Instruction { if (instruction.accounts.length < 2) { // TODO: Coded error. @@ -175,7 +176,7 @@ export function parseInitializeAccount3Instruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeImmutableOwner.ts b/clients/js/src/generated/instructions/initializeImmutableOwner.ts index 14e9b3a..076db63 100644 --- a/clients/js/src/generated/instructions/initializeImmutableOwner.ts +++ b/clients/js/src/generated/instructions/initializeImmutableOwner.ts @@ -13,14 +13,15 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -34,11 +35,11 @@ export function getInitializeImmutableOwnerDiscriminatorBytes() { export type InitializeImmutableOwnerInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -51,7 +52,7 @@ export type InitializeImmutableOwnerInstructionData = { discriminator: number }; export type InitializeImmutableOwnerInstructionDataArgs = {}; -export function getInitializeImmutableOwnerInstructionDataEncoder(): Encoder { +export function getInitializeImmutableOwnerInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ @@ -61,11 +62,11 @@ export function getInitializeImmutableOwnerInstructionDataEncoder(): Encoder { +export function getInitializeImmutableOwnerInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getInitializeImmutableOwnerInstructionDataCodec(): Codec< +export function getInitializeImmutableOwnerInstructionDataCodec(): FixedSizeCodec< InitializeImmutableOwnerInstructionDataArgs, InitializeImmutableOwnerInstructionData > { @@ -113,7 +114,7 @@ export function getInitializeImmutableOwnerInstruction< export type ParsedInitializeImmutableOwnerInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -125,11 +126,11 @@ export type ParsedInitializeImmutableOwnerInstruction< export function parseInitializeImmutableOwnerInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeImmutableOwnerInstruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -137,7 +138,7 @@ export function parseInitializeImmutableOwnerInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeMint.ts b/clients/js/src/generated/instructions/initializeMint.ts index 4c45660..c4dc04c 100644 --- a/clients/js/src/generated/instructions/initializeMint.ts +++ b/clients/js/src/generated/instructions/initializeMint.ts @@ -18,17 +18,18 @@ import { getU8Encoder, none, transformEncoder, + type AccountMeta, type Address, type Codec, type Decoder, type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -42,14 +43,14 @@ export function getInitializeMintDiscriminatorBytes() { export type InitializeMintInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, + TAccountMint extends string | AccountMeta = string, TAccountRent extends | string - | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'SysvarRent111111111111111111111111111111111', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? WritableAccount @@ -172,7 +173,7 @@ export function getInitializeMintInstruction< export type ParsedInitializeMintInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -186,11 +187,11 @@ export type ParsedInitializeMintInstruction< export function parseInitializeMintInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeMintInstruction { if (instruction.accounts.length < 2) { // TODO: Coded error. @@ -198,7 +199,7 @@ export function parseInitializeMintInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeMint2.ts b/clients/js/src/generated/instructions/initializeMint2.ts index cb00138..cd3f70d 100644 --- a/clients/js/src/generated/instructions/initializeMint2.ts +++ b/clients/js/src/generated/instructions/initializeMint2.ts @@ -18,16 +18,17 @@ import { getU8Encoder, none, transformEncoder, + type AccountMeta, type Address, type Codec, type Decoder, type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type Option, type OptionOrNullable, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -41,11 +42,11 @@ export function getInitializeMint2DiscriminatorBytes() { export type InitializeMint2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? WritableAccount @@ -152,7 +153,7 @@ export function getInitializeMint2Instruction< export type ParsedInitializeMint2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -164,11 +165,11 @@ export type ParsedInitializeMint2Instruction< export function parseInitializeMint2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeMint2Instruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -176,7 +177,7 @@ export function parseInitializeMint2Instruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeMultisig.ts b/clients/js/src/generated/instructions/initializeMultisig.ts index 7314f4a..030972f 100644 --- a/clients/js/src/generated/instructions/initializeMultisig.ts +++ b/clients/js/src/generated/instructions/initializeMultisig.ts @@ -14,15 +14,16 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -36,14 +37,14 @@ export function getInitializeMultisigDiscriminatorBytes() { export type InitializeMultisigInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMultisig extends string | IAccountMeta = string, + TAccountMultisig extends string | AccountMeta = string, TAccountRent extends | string - | IAccountMeta = 'SysvarRent111111111111111111111111111111111', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'SysvarRent111111111111111111111111111111111', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMultisig extends string ? WritableAccount @@ -66,7 +67,7 @@ export type InitializeMultisigInstructionDataArgs = { m: number; }; -export function getInitializeMultisigInstructionDataEncoder(): Encoder { +export function getInitializeMultisigInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -76,14 +77,14 @@ export function getInitializeMultisigInstructionDataEncoder(): Encoder { +export function getInitializeMultisigInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['m', getU8Decoder()], ]); } -export function getInitializeMultisigInstructionDataCodec(): Codec< +export function getInitializeMultisigInstructionDataCodec(): FixedSizeCodec< InitializeMultisigInstructionDataArgs, InitializeMultisigInstructionData > { @@ -140,7 +141,7 @@ export function getInitializeMultisigInstruction< } // Remaining accounts. - const remainingAccounts: IAccountMeta[] = args.signers.map((address) => ({ + const remainingAccounts: AccountMeta[] = args.signers.map((address) => ({ address, role: AccountRole.READONLY, })); @@ -167,7 +168,7 @@ export function getInitializeMultisigInstruction< export type ParsedInitializeMultisigInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -181,11 +182,11 @@ export type ParsedInitializeMultisigInstruction< export function parseInitializeMultisigInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeMultisigInstruction { if (instruction.accounts.length < 2) { // TODO: Coded error. @@ -193,7 +194,7 @@ export function parseInitializeMultisigInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/initializeMultisig2.ts b/clients/js/src/generated/instructions/initializeMultisig2.ts index 36891e1..21d4f32 100644 --- a/clients/js/src/generated/instructions/initializeMultisig2.ts +++ b/clients/js/src/generated/instructions/initializeMultisig2.ts @@ -14,14 +14,15 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -35,11 +36,11 @@ export function getInitializeMultisig2DiscriminatorBytes() { export type InitializeMultisig2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMultisig extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMultisig extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMultisig extends string ? WritableAccount @@ -59,7 +60,7 @@ export type InitializeMultisig2InstructionDataArgs = { m: number; }; -export function getInitializeMultisig2InstructionDataEncoder(): Encoder { +export function getInitializeMultisig2InstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -69,14 +70,14 @@ export function getInitializeMultisig2InstructionDataEncoder(): Encoder { +export function getInitializeMultisig2InstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['m', getU8Decoder()], ]); } -export function getInitializeMultisig2InstructionDataCodec(): Codec< +export function getInitializeMultisig2InstructionDataCodec(): FixedSizeCodec< InitializeMultisig2InstructionDataArgs, InitializeMultisig2InstructionData > { @@ -117,7 +118,7 @@ export function getInitializeMultisig2Instruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = args.signers.map((address) => ({ + const remainingAccounts: AccountMeta[] = args.signers.map((address) => ({ address, role: AccountRole.READONLY, })); @@ -136,7 +137,7 @@ export function getInitializeMultisig2Instruction< export type ParsedInitializeMultisig2Instruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -148,11 +149,11 @@ export type ParsedInitializeMultisig2Instruction< export function parseInitializeMultisig2Instruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedInitializeMultisig2Instruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -160,7 +161,7 @@ export function parseInitializeMultisig2Instruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/mintTo.ts b/clients/js/src/generated/instructions/mintTo.ts index cc9f473..e35e583 100644 --- a/clients/js/src/generated/instructions/mintTo.ts +++ b/clients/js/src/generated/instructions/mintTo.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getMintToDiscriminatorBytes() { export type MintToInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TAccountToken extends string | IAccountMeta = string, - TAccountMintAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TAccountToken extends string | AccountMeta = string, + TAccountMintAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? WritableAccount @@ -73,7 +74,7 @@ export type MintToInstructionDataArgs = { amount: number | bigint; }; -export function getMintToInstructionDataEncoder(): Encoder { +export function getMintToInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -83,14 +84,14 @@ export function getMintToInstructionDataEncoder(): Encoder { +export function getMintToInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], ]); } -export function getMintToInstructionDataCodec(): Codec< +export function getMintToInstructionDataCodec(): FixedSizeCodec< MintToInstructionDataArgs, MintToInstructionData > { @@ -131,7 +132,7 @@ export function getMintToInstruction< TAccountToken, (typeof input)['mintAuthority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountMintAuthority > { // Program address. @@ -152,7 +153,7 @@ export function getMintToInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -178,7 +179,7 @@ export function getMintToInstruction< TAccountToken, (typeof input)['mintAuthority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountMintAuthority >; @@ -187,7 +188,7 @@ export function getMintToInstruction< export type ParsedMintToInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -203,11 +204,11 @@ export type ParsedMintToInstruction< export function parseMintToInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedMintToInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -215,7 +216,7 @@ export function parseMintToInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/mintToChecked.ts b/clients/js/src/generated/instructions/mintToChecked.ts index 8983d52..c7604c0 100644 --- a/clients/js/src/generated/instructions/mintToChecked.ts +++ b/clients/js/src/generated/instructions/mintToChecked.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getMintToCheckedDiscriminatorBytes() { export type MintToCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TAccountToken extends string | IAccountMeta = string, - TAccountMintAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TAccountToken extends string | AccountMeta = string, + TAccountMintAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? WritableAccount @@ -77,7 +78,7 @@ export type MintToCheckedInstructionDataArgs = { decimals: number; }; -export function getMintToCheckedInstructionDataEncoder(): Encoder { +export function getMintToCheckedInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -88,7 +89,7 @@ export function getMintToCheckedInstructionDataEncoder(): Encoder { +export function getMintToCheckedInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], @@ -96,7 +97,7 @@ export function getMintToCheckedInstructionDataDecoder(): Decoder { @@ -138,7 +139,7 @@ export function getMintToCheckedInstruction< TAccountToken, (typeof input)['mintAuthority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountMintAuthority > { // Program address. @@ -159,7 +160,7 @@ export function getMintToCheckedInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -185,7 +186,7 @@ export function getMintToCheckedInstruction< TAccountToken, (typeof input)['mintAuthority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountMintAuthority >; @@ -194,7 +195,7 @@ export function getMintToCheckedInstruction< export type ParsedMintToCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -210,11 +211,11 @@ export type ParsedMintToCheckedInstruction< export function parseMintToCheckedInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedMintToCheckedInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -222,7 +223,7 @@ export function parseMintToCheckedInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts b/clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts index b09cfaf..724c62a 100644 --- a/clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts +++ b/clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts @@ -13,16 +13,17 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount, @@ -45,23 +46,23 @@ export type RecoverNestedAssociatedTokenInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, TAccountNestedAssociatedAccountAddress extends | string - | IAccountMeta = string, - TAccountNestedTokenMintAddress extends string | IAccountMeta = string, + | AccountMeta = string, + TAccountNestedTokenMintAddress extends string | AccountMeta = string, TAccountDestinationAssociatedAccountAddress extends | string - | IAccountMeta = string, + | AccountMeta = string, TAccountOwnerAssociatedAccountAddress extends | string - | IAccountMeta = string, - TAccountOwnerTokenMintAddress extends string | IAccountMeta = string, - TAccountWalletAddress extends string | IAccountMeta = string, + | AccountMeta = string, + TAccountOwnerTokenMintAddress extends string | AccountMeta = string, + TAccountWalletAddress extends string | AccountMeta = string, TAccountTokenProgram extends | string - | IAccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + | AccountMeta = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountNestedAssociatedAccountAddress extends string ? WritableAccount @@ -80,7 +81,7 @@ export type RecoverNestedAssociatedTokenInstruction< : TAccountOwnerTokenMintAddress, TAccountWalletAddress extends string ? WritableSignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountWalletAddress, TAccountTokenProgram extends string ? ReadonlyAccount @@ -95,7 +96,7 @@ export type RecoverNestedAssociatedTokenInstructionData = { export type RecoverNestedAssociatedTokenInstructionDataArgs = {}; -export function getRecoverNestedAssociatedTokenInstructionDataEncoder(): Encoder { +export function getRecoverNestedAssociatedTokenInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ @@ -105,11 +106,11 @@ export function getRecoverNestedAssociatedTokenInstructionDataEncoder(): Encoder ); } -export function getRecoverNestedAssociatedTokenInstructionDataDecoder(): Decoder { +export function getRecoverNestedAssociatedTokenInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getRecoverNestedAssociatedTokenInstructionDataCodec(): Codec< +export function getRecoverNestedAssociatedTokenInstructionDataCodec(): FixedSizeCodec< RecoverNestedAssociatedTokenInstructionDataArgs, RecoverNestedAssociatedTokenInstructionData > { @@ -392,7 +393,7 @@ export function getRecoverNestedAssociatedTokenInstruction< export type ParsedRecoverNestedAssociatedTokenInstruction< TProgram extends string = typeof ASSOCIATED_TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -416,11 +417,11 @@ export type ParsedRecoverNestedAssociatedTokenInstruction< export function parseRecoverNestedAssociatedTokenInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedRecoverNestedAssociatedTokenInstruction { if (instruction.accounts.length < 7) { // TODO: Coded error. @@ -428,7 +429,7 @@ export function parseRecoverNestedAssociatedTokenInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/revoke.ts b/clients/js/src/generated/instructions/revoke.ts index caf2caa..f073c76 100644 --- a/clients/js/src/generated/instructions/revoke.ts +++ b/clients/js/src/generated/instructions/revoke.ts @@ -14,17 +14,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -39,12 +40,12 @@ export function getRevokeDiscriminatorBytes() { export type RevokeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountSource extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountSource extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountSource extends string ? WritableAccount @@ -60,18 +61,18 @@ export type RevokeInstructionData = { discriminator: number }; export type RevokeInstructionDataArgs = {}; -export function getRevokeInstructionDataEncoder(): Encoder { +export function getRevokeInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: REVOKE_DISCRIMINATOR }) ); } -export function getRevokeInstructionDataDecoder(): Decoder { +export function getRevokeInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getRevokeInstructionDataCodec(): Codec< +export function getRevokeInstructionDataCodec(): FixedSizeCodec< RevokeInstructionDataArgs, RevokeInstructionData > { @@ -103,7 +104,7 @@ export function getRevokeInstruction< TProgramAddress, TAccountSource, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -123,7 +124,7 @@ export function getRevokeInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -144,7 +145,7 @@ export function getRevokeInstruction< TProgramAddress, TAccountSource, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -153,7 +154,7 @@ export function getRevokeInstruction< export type ParsedRevokeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -167,11 +168,11 @@ export type ParsedRevokeInstruction< export function parseRevokeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedRevokeInstruction { if (instruction.accounts.length < 2) { // TODO: Coded error. @@ -179,7 +180,7 @@ export function parseRevokeInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/setAuthority.ts b/clients/js/src/generated/instructions/setAuthority.ts index ea97f03..d848f49 100644 --- a/clients/js/src/generated/instructions/setAuthority.ts +++ b/clients/js/src/generated/instructions/setAuthority.ts @@ -18,19 +18,20 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -51,12 +52,12 @@ export function getSetAuthorityDiscriminatorBytes() { export type SetAuthorityInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountOwned extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountOwned extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountOwned extends string ? WritableAccount @@ -136,7 +137,7 @@ export function getSetAuthorityInstruction< TProgramAddress, TAccountOwned, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -156,7 +157,7 @@ export function getSetAuthorityInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -179,7 +180,7 @@ export function getSetAuthorityInstruction< TProgramAddress, TAccountOwned, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -188,7 +189,7 @@ export function getSetAuthorityInstruction< export type ParsedSetAuthorityInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -202,11 +203,11 @@ export type ParsedSetAuthorityInstruction< export function parseSetAuthorityInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedSetAuthorityInstruction { if (instruction.accounts.length < 2) { // TODO: Coded error. @@ -214,7 +215,7 @@ export function parseSetAuthorityInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/syncNative.ts b/clients/js/src/generated/instructions/syncNative.ts index 924051e..e1f6102 100644 --- a/clients/js/src/generated/instructions/syncNative.ts +++ b/clients/js/src/generated/instructions/syncNative.ts @@ -13,14 +13,15 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, + type ReadonlyUint8Array, type WritableAccount, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; @@ -34,11 +35,11 @@ export function getSyncNativeDiscriminatorBytes() { export type SyncNativeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -51,18 +52,18 @@ export type SyncNativeInstructionData = { discriminator: number }; export type SyncNativeInstructionDataArgs = {}; -export function getSyncNativeInstructionDataEncoder(): Encoder { +export function getSyncNativeInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: SYNC_NATIVE_DISCRIMINATOR }) ); } -export function getSyncNativeInstructionDataDecoder(): Decoder { +export function getSyncNativeInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getSyncNativeInstructionDataCodec(): Codec< +export function getSyncNativeInstructionDataCodec(): FixedSizeCodec< SyncNativeInstructionDataArgs, SyncNativeInstructionData > { @@ -108,7 +109,7 @@ export function getSyncNativeInstruction< export type ParsedSyncNativeInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -120,11 +121,11 @@ export type ParsedSyncNativeInstruction< export function parseSyncNativeInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedSyncNativeInstruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -132,7 +133,7 @@ export function parseSyncNativeInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/thawAccount.ts b/clients/js/src/generated/instructions/thawAccount.ts index dbc5885..fbf8a9c 100644 --- a/clients/js/src/generated/instructions/thawAccount.ts +++ b/clients/js/src/generated/instructions/thawAccount.ts @@ -14,17 +14,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -39,13 +40,13 @@ export function getThawAccountDiscriminatorBytes() { export type ThawAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountAccount extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountOwner extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountAccount extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountOwner extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountAccount extends string ? WritableAccount @@ -64,18 +65,18 @@ export type ThawAccountInstructionData = { discriminator: number }; export type ThawAccountInstructionDataArgs = {}; -export function getThawAccountInstructionDataEncoder(): Encoder { +export function getThawAccountInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([['discriminator', getU8Encoder()]]), (value) => ({ ...value, discriminator: THAW_ACCOUNT_DISCRIMINATOR }) ); } -export function getThawAccountInstructionDataDecoder(): Decoder { +export function getThawAccountInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([['discriminator', getU8Decoder()]]); } -export function getThawAccountInstructionDataCodec(): Codec< +export function getThawAccountInstructionDataCodec(): FixedSizeCodec< ThawAccountInstructionDataArgs, ThawAccountInstructionData > { @@ -112,7 +113,7 @@ export function getThawAccountInstruction< TAccountAccount, TAccountMint, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner > { // Program address. @@ -133,7 +134,7 @@ export function getThawAccountInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -156,7 +157,7 @@ export function getThawAccountInstruction< TAccountAccount, TAccountMint, (typeof input)['owner'] extends TransactionSigner - ? ReadonlySignerAccount & IAccountSignerMeta + ? ReadonlySignerAccount & AccountSignerMeta : TAccountOwner >; @@ -165,7 +166,7 @@ export function getThawAccountInstruction< export type ParsedThawAccountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -181,11 +182,11 @@ export type ParsedThawAccountInstruction< export function parseThawAccountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedThawAccountInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -193,7 +194,7 @@ export function parseThawAccountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/transfer.ts b/clients/js/src/generated/instructions/transfer.ts index 8631270..80f004c 100644 --- a/clients/js/src/generated/instructions/transfer.ts +++ b/clients/js/src/generated/instructions/transfer.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,13 +42,13 @@ export function getTransferDiscriminatorBytes() { export type TransferInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountSource extends string | IAccountMeta = string, - TAccountDestination extends string | IAccountMeta = string, - TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountSource extends string | AccountMeta = string, + TAccountDestination extends string | AccountMeta = string, + TAccountAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountSource extends string ? WritableAccount @@ -73,7 +74,7 @@ export type TransferInstructionDataArgs = { amount: number | bigint; }; -export function getTransferInstructionDataEncoder(): Encoder { +export function getTransferInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -83,14 +84,14 @@ export function getTransferInstructionDataEncoder(): Encoder { +export function getTransferInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], ]); } -export function getTransferInstructionDataCodec(): Codec< +export function getTransferInstructionDataCodec(): FixedSizeCodec< TransferInstructionDataArgs, TransferInstructionData > { @@ -129,7 +130,7 @@ export function getTransferInstruction< TAccountDestination, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority > { // Program address. @@ -150,7 +151,7 @@ export function getTransferInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -176,7 +177,7 @@ export function getTransferInstruction< TAccountDestination, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority >; @@ -185,7 +186,7 @@ export function getTransferInstruction< export type ParsedTransferInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -201,11 +202,11 @@ export type ParsedTransferInstruction< export function parseTransferInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedTransferInstruction { if (instruction.accounts.length < 3) { // TODO: Coded error. @@ -213,7 +214,7 @@ export function parseTransferInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/transferChecked.ts b/clients/js/src/generated/instructions/transferChecked.ts index c2ae46e..58c9271 100644 --- a/clients/js/src/generated/instructions/transferChecked.ts +++ b/clients/js/src/generated/instructions/transferChecked.ts @@ -16,17 +16,18 @@ import { getU8Decoder, getU8Encoder, transformEncoder, + type AccountMeta, + type AccountSignerMeta, type Address, - type Codec, - type Decoder, - type Encoder, - type IAccountMeta, - type IAccountSignerMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, + type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, } from '@solana/kit'; @@ -41,14 +42,14 @@ export function getTransferCheckedDiscriminatorBytes() { export type TransferCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountSource extends string | IAccountMeta = string, - TAccountMint extends string | IAccountMeta = string, - TAccountDestination extends string | IAccountMeta = string, - TAccountAuthority extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountSource extends string | AccountMeta = string, + TAccountMint extends string | AccountMeta = string, + TAccountDestination extends string | AccountMeta = string, + TAccountAuthority extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountSource extends string ? WritableAccount @@ -81,7 +82,7 @@ export type TransferCheckedInstructionDataArgs = { decimals: number; }; -export function getTransferCheckedInstructionDataEncoder(): Encoder { +export function getTransferCheckedInstructionDataEncoder(): FixedSizeEncoder { return transformEncoder( getStructEncoder([ ['discriminator', getU8Encoder()], @@ -92,7 +93,7 @@ export function getTransferCheckedInstructionDataEncoder(): Encoder { +export function getTransferCheckedInstructionDataDecoder(): FixedSizeDecoder { return getStructDecoder([ ['discriminator', getU8Decoder()], ['amount', getU64Decoder()], @@ -100,7 +101,7 @@ export function getTransferCheckedInstructionDataDecoder(): Decoder { @@ -150,7 +151,7 @@ export function getTransferCheckedInstruction< TAccountDestination, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority > { // Program address. @@ -172,7 +173,7 @@ export function getTransferCheckedInstruction< const args = { ...input }; // Remaining accounts. - const remainingAccounts: IAccountMeta[] = (args.multiSigners ?? []).map( + const remainingAccounts: AccountMeta[] = (args.multiSigners ?? []).map( (signer) => ({ address: signer.address, role: AccountRole.READONLY_SIGNER, @@ -200,7 +201,7 @@ export function getTransferCheckedInstruction< TAccountDestination, (typeof input)['authority'] extends TransactionSigner ? ReadonlySignerAccount & - IAccountSignerMeta + AccountSignerMeta : TAccountAuthority >; @@ -209,7 +210,7 @@ export function getTransferCheckedInstruction< export type ParsedTransferCheckedInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -227,11 +228,11 @@ export type ParsedTransferCheckedInstruction< export function parseTransferCheckedInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedTransferCheckedInstruction { if (instruction.accounts.length < 4) { // TODO: Coded error. @@ -239,7 +240,7 @@ export function parseTransferCheckedInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/instructions/uiAmountToAmount.ts b/clients/js/src/generated/instructions/uiAmountToAmount.ts index 4437569..36385ec 100644 --- a/clients/js/src/generated/instructions/uiAmountToAmount.ts +++ b/clients/js/src/generated/instructions/uiAmountToAmount.ts @@ -15,15 +15,16 @@ import { getUtf8Decoder, getUtf8Encoder, transformEncoder, + type AccountMeta, type Address, type Codec, type Decoder, type Encoder, - type IAccountMeta, - type IInstruction, - type IInstructionWithAccounts, - type IInstructionWithData, + type Instruction, + type InstructionWithAccounts, + type InstructionWithData, type ReadonlyAccount, + type ReadonlyUint8Array, } from '@solana/kit'; import { TOKEN_PROGRAM_ADDRESS } from '../programs'; import { getAccountMetaFactory, type ResolvedAccount } from '../shared'; @@ -36,11 +37,11 @@ export function getUiAmountToAmountDiscriminatorBytes() { export type UiAmountToAmountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMint extends string | IAccountMeta = string, - TRemainingAccounts extends readonly IAccountMeta[] = [], -> = IInstruction & - IInstructionWithData & - IInstructionWithAccounts< + TAccountMint extends string | AccountMeta = string, + TRemainingAccounts extends readonly AccountMeta[] = [], +> = Instruction & + InstructionWithData & + InstructionWithAccounts< [ TAccountMint extends string ? ReadonlyAccount @@ -129,7 +130,7 @@ export function getUiAmountToAmountInstruction< export type ParsedUiAmountToAmountInstruction< TProgram extends string = typeof TOKEN_PROGRAM_ADDRESS, - TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[], > = { programAddress: Address; accounts: { @@ -141,11 +142,11 @@ export type ParsedUiAmountToAmountInstruction< export function parseUiAmountToAmountInstruction< TProgram extends string, - TAccountMetas extends readonly IAccountMeta[], + TAccountMetas extends readonly AccountMeta[], >( - instruction: IInstruction & - IInstructionWithAccounts & - IInstructionWithData + instruction: Instruction & + InstructionWithAccounts & + InstructionWithData ): ParsedUiAmountToAmountInstruction { if (instruction.accounts.length < 1) { // TODO: Coded error. @@ -153,7 +154,7 @@ export function parseUiAmountToAmountInstruction< } let accountIndex = 0; const getNextAccount = () => { - const accountMeta = instruction.accounts![accountIndex]!; + const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!; accountIndex += 1; return accountMeta; }; diff --git a/clients/js/src/generated/shared/index.ts b/clients/js/src/generated/shared/index.ts index 7ba9053..8841a27 100644 --- a/clients/js/src/generated/shared/index.ts +++ b/clients/js/src/generated/shared/index.ts @@ -10,9 +10,9 @@ import { AccountRole, isProgramDerivedAddress, isTransactionSigner as kitIsTransactionSigner, + type AccountMeta, + type AccountSignerMeta, type Address, - type IAccountMeta, - type IAccountSignerMeta, type ProgramDerivedAddress, type TransactionSigner, upgradeRoleToSigner, @@ -23,7 +23,7 @@ import { * @internal */ export function expectSome(value: T | null | undefined): T { - if (value == null) { + if (value === null || value === undefined) { throw new Error('Expected a value but received null or undefined.'); } return value; @@ -48,7 +48,7 @@ export function expectAddress( return value.address; } if (Array.isArray(value)) { - return value[0]; + return value[0] as Address; } return value as Address; } @@ -113,7 +113,7 @@ export type ResolvedAccount< * Defines an instruction that stores additional bytes on-chain. * @internal */ -export type IInstructionWithByteDelta = { +export type InstructionWithByteDelta = { byteDelta: number; }; @@ -127,7 +127,7 @@ export function getAccountMetaFactory( ) { return ( account: ResolvedAccount - ): IAccountMeta | IAccountSignerMeta | undefined => { + ): AccountMeta | AccountSignerMeta | undefined => { if (!account.value) { if (optionalAccountStrategy === 'omitted') return; return Object.freeze({ diff --git a/clients/js/src/generated/types/accountState.ts b/clients/js/src/generated/types/accountState.ts index a870212..ee0457d 100644 --- a/clients/js/src/generated/types/accountState.ts +++ b/clients/js/src/generated/types/accountState.ts @@ -10,9 +10,9 @@ import { combineCodec, getEnumDecoder, getEnumEncoder, - type Codec, - type Decoder, - type Encoder, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, } from '@solana/kit'; export enum AccountState { @@ -23,14 +23,17 @@ export enum AccountState { export type AccountStateArgs = AccountState; -export function getAccountStateEncoder(): Encoder { +export function getAccountStateEncoder(): FixedSizeEncoder { return getEnumEncoder(AccountState); } -export function getAccountStateDecoder(): Decoder { +export function getAccountStateDecoder(): FixedSizeDecoder { return getEnumDecoder(AccountState); } -export function getAccountStateCodec(): Codec { +export function getAccountStateCodec(): FixedSizeCodec< + AccountStateArgs, + AccountState +> { return combineCodec(getAccountStateEncoder(), getAccountStateDecoder()); } diff --git a/clients/js/src/generated/types/authorityType.ts b/clients/js/src/generated/types/authorityType.ts index 795acad..f6075a1 100644 --- a/clients/js/src/generated/types/authorityType.ts +++ b/clients/js/src/generated/types/authorityType.ts @@ -10,9 +10,9 @@ import { combineCodec, getEnumDecoder, getEnumEncoder, - type Codec, - type Decoder, - type Encoder, + type FixedSizeCodec, + type FixedSizeDecoder, + type FixedSizeEncoder, } from '@solana/kit'; export enum AuthorityType { @@ -24,15 +24,15 @@ export enum AuthorityType { export type AuthorityTypeArgs = AuthorityType; -export function getAuthorityTypeEncoder(): Encoder { +export function getAuthorityTypeEncoder(): FixedSizeEncoder { return getEnumEncoder(AuthorityType); } -export function getAuthorityTypeDecoder(): Decoder { +export function getAuthorityTypeDecoder(): FixedSizeDecoder { return getEnumDecoder(AuthorityType); } -export function getAuthorityTypeCodec(): Codec< +export function getAuthorityTypeCodec(): FixedSizeCodec< AuthorityTypeArgs, AuthorityType > { diff --git a/clients/js/test/_setup.ts b/clients/js/test/_setup.ts index bc9629b..7ed687c 100644 --- a/clients/js/test/_setup.ts +++ b/clients/js/test/_setup.ts @@ -1,16 +1,18 @@ import { getCreateAccountInstruction } from '@solana-program/system'; import { Address, + BaseTransactionMessage, Commitment, - CompilableTransactionMessage, Rpc, RpcSubscriptions, SolanaRpcApi, SolanaRpcSubscriptionsApi, TransactionMessageWithBlockhashLifetime, + TransactionMessageWithFeePayer, TransactionSigner, airdropFactory, appendTransactionMessageInstructions, + assertIsSendableTransaction, createSolanaRpc, createSolanaRpcSubscriptions, createTransactionMessage, @@ -72,13 +74,15 @@ export const createDefaultTransaction = async ( export const signAndSendTransaction = async ( client: Client, - transactionMessage: CompilableTransactionMessage & + transactionMessage: BaseTransactionMessage & + TransactionMessageWithFeePayer & TransactionMessageWithBlockhashLifetime, commitment: Commitment = 'confirmed' ) => { const signedTransaction = await signTransactionMessageWithSigners(transactionMessage); const signature = getSignatureFromTransaction(signedTransaction); + assertIsSendableTransaction(signedTransaction); await sendAndConfirmTransactionFactory(client)(signedTransaction, { commitment, }); diff --git a/package.json b/package.json index 8740fd2..709bda0 100644 --- a/package.json +++ b/package.json @@ -38,10 +38,10 @@ "interface:test": "zx ./scripts/rust/test.mjs interface" }, "devDependencies": { - "@codama/renderers-js": "^1.2.7", - "@codama/renderers-rust": "^1.0.16", + "@codama/renderers-js": "^1.3", + "@codama/renderers-rust": "~1.0", "@iarna/toml": "^2.2.5", - "codama": "^1.2.8", + "codama": "^1.3", "typescript": "^5.5.2", "zx": "^7.2.3" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 806dd1b..5193902 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,17 +9,17 @@ importers: .: devDependencies: '@codama/renderers-js': - specifier: ^1.2.7 - version: 1.2.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + specifier: ^1.3 + version: 1.3.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) '@codama/renderers-rust': - specifier: ^1.0.16 + specifier: ~1.0 version: 1.0.16(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) '@iarna/toml': specifier: ^2.2.5 version: 2.2.5 codama: - specifier: ^1.2.8 - version: 1.2.8(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + specifier: ^1.3 + version: 1.3.3 typescript: specifier: ^5.5.2 version: 5.5.3 @@ -29,53 +29,57 @@ importers: packages: - '@codama/cli@1.0.7': - resolution: {integrity: sha512-qA+cDhTnx3r4Ds9JAIduGTzaEJjjCSVj+Bt2mm1hEW1hrI4hymAxW+BeLfFehzqjggdTVM3UIrTwkXAkhNJfEw==} + '@codama/cli@1.3.1': + resolution: {integrity: sha512-3m84aErp6W0cFIArYh9Ymzp2QFFHL+zFx/QS8R8piBjkA/WbSTdslZnierBBqgXkoSM6uIqvm008DSvo3gj1LA==} + hasBin: true '@codama/errors@1.2.8': resolution: {integrity: sha512-TVPf7oJpbHtxdu52ruftJX+DlTNWi7D65tasysqs7mfRKoiZKzmkatr5hqidBz/M9WzCddUeFAHL9ZiW6g9Ccg==} hasBin: true + '@codama/errors@1.3.3': + resolution: {integrity: sha512-iyo5qEW/rgNTTtcZnGqahcnUtMHRRTlTzeTZo6SLpuNistbEn2itOssnklNZVClhXR/4Td0riHwGedP3AjwgJA==} + hasBin: true + '@codama/node-types@1.2.8': resolution: {integrity: sha512-PEvPLMN3QGJvkwsQ7R9DmAtdazQXN0RD9WYlmHyeiR4nathV0qy9nZGFDoRh5nbNfPkbeLTgL5o3zAoeeRP6GQ==} - '@codama/nodes-from-anchor@1.1.8': - resolution: {integrity: sha512-eaoGrcMMc5yr1XPnv1H3hPw6cCh0e6BRmmuzOBOIDG4PR2gVm415RnBkfQOX2JqRTX7wKLv8Y1EIZV4IgVxkvw==} + '@codama/node-types@1.3.3': + resolution: {integrity: sha512-41GdFy/OPRemXTAmptDSi/wDXHPimy40mx9v0z2EdIMNYEyKAYZDcvr2jzSei8meeCV9j4PgKF5snwBQK7HaSg==} '@codama/nodes@1.2.8': resolution: {integrity: sha512-tCi7KErG2ChQr5n3Nj3dwciFmUo3O8RQ+S4Qv23w1zvYLaGwhEvdg3KRtgCGEI0wr9uvm2QtTBM670kdLntZiQ==} + '@codama/nodes@1.3.3': + resolution: {integrity: sha512-CgxGfH6ndcZpvf+RfVwSyIOyq8cNejbqY9TRr4SqVMIEbE1Wpqx+GPrEGRKtwHgB8KqsWCz7Pve8BCGhsPkr2g==} + '@codama/renderers-core@1.0.10': resolution: {integrity: sha512-7NwoyP2j1cZKgHCrd1RRn891gtxpZeiXNSP3aCFdVsRPW8dDNUL1sJ1SNOF9ILHfNP77clCBtL3eoZIFdeNQAg==} - '@codama/renderers-js-umi@1.1.9': - resolution: {integrity: sha512-rYrm1u3zqqHfYtLnnYmhU+4KXYCqmGJxQP+eiyHIDwxcALzH6y8Ng2zEz3YRGNLXqdlwCB4bx1lJOCjfbRZiwA==} + '@codama/renderers-core@1.0.19': + resolution: {integrity: sha512-ARvgw8ObOMiIbeahcKBpWKl2N4lYaywDOAsbYDjr/zV8jpPll39TVidgQt0lP4JjdGz7xZTBCmQmtxW5hqr9pA==} - '@codama/renderers-js@1.2.7': - resolution: {integrity: sha512-xzWK7tdPneNhbPAMeh5B4ddXjMfkNtTbDDRJ81jNvGv8WRPCvA97c0zMeTskHY+W/C+GlbsSNGMuL4Ga8bEmSA==} + '@codama/renderers-js@1.3.4': + resolution: {integrity: sha512-srcHHCc7l2FXTlUEoPOolw0bmxBkdyqpzOGtBNc7eeF9sOCE3mlR84qXzxoqCKx4T26wl+QHihI0wby0bMlfrA==} '@codama/renderers-rust@1.0.16': resolution: {integrity: sha512-pFHwHN6X4Yuk26Yfh+VT9Ps1i/QEjuK3EoT8BpsCTATOk6ntJNqyD5aQngG2lE4KWx3uQrCYYbQEAN4vG6v+EA==} - '@codama/renderers@1.0.16': - resolution: {integrity: sha512-Mj3k1BJ7Rg9BlaCNCvhWY+FRmgLnislwatA6t9zHiReSeukrOFmSW9KKPpWHXm4+i1ueZFKmLeFzGPEt927WBA==} - - '@codama/validators@1.2.8': - resolution: {integrity: sha512-cGyYgV+zhPzhT3RHBKgDLueeOvSTo3ry9QEliPv90+sL6Q9ecKj4Ut9QVxjmwvdv67rNAZq5JBl+GC8SYcDhPg==} + '@codama/validators@1.3.3': + resolution: {integrity: sha512-dj3vlwMlxU57l6cRLxb76ZwlrEGv+dq7llDtH0aqc1z3OW5SOryREUuzeqL7T/2hY8FiY+pxjH4CQx+A08hULQ==} '@codama/visitors-core@1.2.8': resolution: {integrity: sha512-sYmZT2Z6Goacgr/HrAhjLSGtu2Udcal10tEfYN8ZJBXs34PGPu0oWOC8kFx7CxvmAvt/6mw8NhKIPtg/UaIKHw==} - '@codama/visitors@1.2.8': - resolution: {integrity: sha512-LbcTyzTUEJfGRbCTuQIAVR9X5bLdZ1oD7GAuw5kxaq63+H6JHAbigaKwaq9uvr/OXMT4U/2GcWgKfX1oGKXg/g==} + '@codama/visitors-core@1.3.3': + resolution: {integrity: sha512-Kuz2we5iDhq0Y9bPwEjEGGSueBPJkLxoDkJ+Z3NuHlqo/k2aHvDNl9NaoOOUPwNzPVbntfpJW9Ga3pP9oc/PQQ==} + + '@codama/visitors@1.3.3': + resolution: {integrity: sha512-ReZoo0kItffkhpvl9qRjy3HV1nZXv/k8p4wZ10NveUTDtRghk72YkY0kpK2lt/p+2SlWrhQ9IkO4Q+EQoqABrA==} '@iarna/toml@2.2.5': resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} - '@noble/hashes@1.7.1': - resolution: {integrity: sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==} - engines: {node: ^14.21.3 || >=16} - '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -88,29 +92,17 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@solana/codecs-core@2.0.0': - resolution: {integrity: sha512-qCG+3hDU5Pm8V6joJjR4j4Zv9md1z0RaecniNDIkEglnxmOUODnmPLWbtOjnDylfItyuZeDihK8hkewdj8cUtw==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' - '@solana/codecs-core@2.0.0-rc.4': resolution: {integrity: sha512-JIrTSps032mSE3wBxW3bXOqWfoy4CMy1CX/XeVCijyh5kLVxZTSDIdRTYdePdL1yzaOZF1Xysvt1DhOUgBdM+A==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5' - '@solana/codecs-data-structures@2.0.0': - resolution: {integrity: sha512-N98Y4jsrC/XeOgqrfsGqcOFIaOoMsKdAxOmy5oqVaEN67YoGSLNC9ROnqamOAOrsZdicTWx9/YLKFmQi9DPh1A==} + '@solana/codecs-core@2.3.0': + resolution: {integrity: sha512-oG+VZzN6YhBHIoSKgS5ESM9VIGzhWjEHEGNPSibiDTxFhsFWxNaz8LbMDPjBUE69r9wmdGLkrQ+wVPbnJcZPvw==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' - - '@solana/codecs-numbers@2.0.0': - resolution: {integrity: sha512-r66i7VzJO1MZkQWZIAI6jjJOFVpnq0+FIabo2Z2ZDtrArFus/SbSEv543yCLeD2tdR/G/p+1+P5On10qF50Y1Q==} - engines: {node: '>=20.18.0'} - peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' '@solana/codecs-numbers@2.0.0-rc.4': resolution: {integrity: sha512-ZJR7TaUO65+3Hzo3YOOUCS0wlzh17IW+j0MZC2LCk1R0woaypRpHKj4iSMYeQOZkMxsd9QT3WNvjFrPC2qA6Sw==} @@ -118,12 +110,11 @@ packages: peerDependencies: typescript: '>=5' - '@solana/codecs-strings@2.0.0': - resolution: {integrity: sha512-dNqeCypsvaHcjW86H0gYgAZGGkKVBeKVeh7WXlOZ9kno7PeQ2wNkpccyzDfuzaIsKv+HZUD3v/eo86GCvnKazQ==} + '@solana/codecs-numbers@2.3.0': + resolution: {integrity: sha512-jFvvwKJKffvG7Iz9dmN51OGB7JBcy2CJ6Xf3NqD/VP90xak66m/Lg48T01u5IQ/hc15mChVHiBm+HHuOFDUrQg==} engines: {node: '>=20.18.0'} peerDependencies: - fastestsmallesttextencoderdecoder: ^1.0.22 - typescript: '>=5' + typescript: '>=5.3.3' '@solana/codecs-strings@2.0.0-rc.4': resolution: {integrity: sha512-LGfK2RL0BKjYYUfzu2FG/gTgCsYOMz9FKVs2ntji6WneZygPxJTV5W98K3J8Rl0JewpCSCFQH3xjLSHBJUS0fA==} @@ -132,18 +123,12 @@ packages: fastestsmallesttextencoderdecoder: ^1.0.22 typescript: '>=5' - '@solana/codecs@2.0.0': - resolution: {integrity: sha512-xneIG5ppE6WIGaZCK7JTys0uLhzlnEJUdBO8nRVIyerwH6aqCfb0fGe7q5WNNYAVDRSxC0Pc1TDe1hpdx3KWmQ==} + '@solana/codecs-strings@2.3.0': + resolution: {integrity: sha512-y5pSBYwzVziXu521hh+VxqUtp0hYGTl1eWGoc1W+8mdvBdC1kTqm/X7aYQw33J42hw03JjryvYOvmGgk3Qz/Ug==} engines: {node: '>=20.18.0'} peerDependencies: - typescript: '>=5' - - '@solana/errors@2.0.0': - resolution: {integrity: sha512-IHlaPFSy4lvYco1oHJ3X8DbchWwAwJaL/4wZKnF1ugwZ0g0re8wbABrqNOe/jyZ84VU9Z14PYM8W9oDAebdJbw==} - engines: {node: '>=20.18.0'} - hasBin: true - peerDependencies: - typescript: '>=5' + fastestsmallesttextencoderdecoder: ^1.0.22 + typescript: '>=5.3.3' '@solana/errors@2.0.0-rc.4': resolution: {integrity: sha512-0PPaMyB81keEHG/1pnyEuiBVKctbXO641M2w3CIOrYT/wzjunfF0FTxsqq9wYJeYo0AyiefCKGgSPs6wiY2PpQ==} @@ -152,11 +137,12 @@ packages: peerDependencies: typescript: '>=5' - '@solana/options@2.0.0': - resolution: {integrity: sha512-OVc4KnYosB8oAukQ/htgrxXSxlUP6gUu5Aau6d/BgEkPQzWd/Pr+w91VWw3i3zZuu2SGpedbyh05RoJBe/hSXA==} + '@solana/errors@2.3.0': + resolution: {integrity: sha512-66RI9MAbwYV0UtP7kGcTBVLxJgUxoZGm8Fbc0ah+lGiAw17Gugco6+9GrJCV83VyF2mDWyYnYM9qdI3yjgpnaQ==} engines: {node: '>=20.18.0'} + hasBin: true peerDependencies: - typescript: '>=5' + typescript: '>=5.3.3' '@types/fs-extra@11.0.4': resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} @@ -198,6 +184,10 @@ packages: resolution: {integrity: sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==} engines: {node: '>= 0.4'} + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + chalk@5.3.0: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} @@ -206,8 +196,12 @@ packages: resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} - codama@1.2.8: - resolution: {integrity: sha512-0OWQTK4Bx8mgnkudbWoVqhC98iS0py3vNRJHmWVCQ63PSfszgb+DC/9jCkQZMijFQtdUtUcstAYQBHPM5J0exg==} + chalk@5.6.0: + resolution: {integrity: sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + codama@1.3.3: + resolution: {integrity: sha512-eCOflah25uWKHGyjvW2FPydRAwhDw4ZAjBuBFF9AVJIE3xknR+pcRMLdlxO5LO3ixlxkHKHdESXJY/aVXmzZtw==} hasBin: true commander@12.1.0: @@ -218,6 +212,10 @@ packages: resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} engines: {node: '>=18'} + commander@14.0.0: + resolution: {integrity: sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==} + engines: {node: '>=20'} + commander@5.1.0: resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==} engines: {node: '>= 6'} @@ -241,10 +239,6 @@ packages: duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} - es-define-property@1.0.0: - resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==} - engines: {node: '>= 0.4'} - es-define-property@1.0.1: resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} engines: {node: '>= 0.4'} @@ -296,10 +290,6 @@ packages: resolution: {integrity: sha512-/fZih3/WLsrtlaj2mahjWxAmyuikmcl3D5kKPqLtFmEilLsy9wp0+/vEmfvYXXhwJc+ajtCFDCf+yttXmPMHSQ==} hasBin: true - get-intrinsic@1.2.4: - resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} - engines: {node: '>= 0.4'} - get-intrinsic@1.3.0: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} @@ -316,9 +306,6 @@ packages: resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - gopd@1.0.1: - resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} - gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} @@ -329,14 +316,6 @@ packages: has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} - has-proto@1.0.3: - resolution: {integrity: sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==} - engines: {node: '>= 0.4'} - - has-symbols@1.0.3: - resolution: {integrity: sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==} - engines: {node: '>= 0.4'} - has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -371,6 +350,10 @@ packages: resolution: {integrity: sha512-Lp6HbbBgosLmJbjx0pBLbgvx68FaFU1sdkmBuckmhhJ88kL13OA51CDtR2yJB50eCNMH9wRqtQNNiAqQH4YXnA==} engines: {node: '>= 0.4'} + json-stable-stringify@1.3.0: + resolution: {integrity: sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==} + engines: {node: '>= 0.4'} + jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} @@ -435,8 +418,8 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - prettier@3.5.3: - resolution: {integrity: sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==} + prettier@3.6.2: + resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==} engines: {node: '>=14'} hasBin: true @@ -520,23 +503,14 @@ packages: snapshots: - '@codama/cli@1.0.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@codama/cli@1.3.1': dependencies: - '@codama/nodes': 1.2.8 - '@codama/nodes-from-anchor': 1.1.8(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers': 1.0.16(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-js': 1.2.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-js-umi': 1.1.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-rust': 1.0.16(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/visitors': 1.2.8 - '@codama/visitors-core': 1.2.8 - commander: 13.1.0 + '@codama/nodes': 1.3.3 + '@codama/visitors': 1.3.3 + '@codama/visitors-core': 1.3.3 + commander: 14.0.0 picocolors: 1.1.1 prompts: 2.4.2 - transitivePeerDependencies: - - chokidar - - fastestsmallesttextencoderdecoder - - typescript '@codama/errors@1.2.8': dependencies: @@ -544,55 +518,47 @@ snapshots: chalk: 5.4.1 commander: 13.1.0 + '@codama/errors@1.3.3': + dependencies: + '@codama/node-types': 1.3.3 + chalk: 5.6.0 + commander: 14.0.0 + '@codama/node-types@1.2.8': {} - '@codama/nodes-from-anchor@1.1.8(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/visitors': 1.2.8 - '@noble/hashes': 1.7.1 - '@solana/codecs': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - typescript + '@codama/node-types@1.3.3': {} '@codama/nodes@1.2.8': dependencies: '@codama/errors': 1.2.8 '@codama/node-types': 1.2.8 + '@codama/nodes@1.3.3': + dependencies: + '@codama/errors': 1.3.3 + '@codama/node-types': 1.3.3 + '@codama/renderers-core@1.0.10': dependencies: '@codama/errors': 1.2.8 '@codama/nodes': 1.2.8 '@codama/visitors-core': 1.2.8 - '@codama/renderers-js-umi@1.1.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@codama/renderers-core@1.0.19': dependencies: - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/renderers-core': 1.0.10 - '@codama/validators': 1.2.8 - '@codama/visitors-core': 1.2.8 - '@solana/codecs-strings': 2.0.0-rc.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - nunjucks: 3.2.4 - prettier: 3.5.3 - transitivePeerDependencies: - - chokidar - - fastestsmallesttextencoderdecoder - - typescript + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + '@codama/visitors-core': 1.3.3 - '@codama/renderers-js@1.2.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@codama/renderers-js@1.3.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/nodes-from-anchor': 1.1.8(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-core': 1.0.10 - '@codama/visitors-core': 1.2.8 - '@solana/codecs-strings': 2.0.0-rc.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + '@codama/renderers-core': 1.0.19 + '@codama/visitors-core': 1.3.3 + '@solana/codecs-strings': 2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) nunjucks: 3.2.4 - prettier: 3.5.3 + prettier: 3.6.2 transitivePeerDependencies: - chokidar - fastestsmallesttextencoderdecoder @@ -611,21 +577,11 @@ snapshots: - fastestsmallesttextencoderdecoder - typescript - '@codama/renderers@1.0.16(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@codama/validators@1.3.3': dependencies: - '@codama/renderers-js': 1.2.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-js-umi': 1.1.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/renderers-rust': 1.0.16(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - transitivePeerDependencies: - - chokidar - - fastestsmallesttextencoderdecoder - - typescript - - '@codama/validators@1.2.8': - dependencies: - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/visitors-core': 1.2.8 + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + '@codama/visitors-core': 1.3.3 '@codama/visitors-core@1.2.8': dependencies: @@ -633,15 +589,19 @@ snapshots: '@codama/nodes': 1.2.8 json-stable-stringify: 1.2.1 - '@codama/visitors@1.2.8': + '@codama/visitors-core@1.3.3': dependencies: - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/visitors-core': 1.2.8 + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + json-stable-stringify: 1.3.0 - '@iarna/toml@2.2.5': {} + '@codama/visitors@1.3.3': + dependencies: + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + '@codama/visitors-core': 1.3.3 - '@noble/hashes@1.7.1': {} + '@iarna/toml@2.2.5': {} '@nodelib/fs.scandir@2.1.5': dependencies: @@ -655,27 +615,14 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@solana/codecs-core@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - '@solana/codecs-core@2.0.0-rc.4(typescript@5.5.3)': dependencies: '@solana/errors': 2.0.0-rc.4(typescript@5.5.3) typescript: 5.5.3 - '@solana/codecs-data-structures@2.0.0(typescript@5.5.3)': + '@solana/codecs-core@2.3.0(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - typescript: 5.5.3 - - '@solana/codecs-numbers@2.0.0(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + '@solana/errors': 2.3.0(typescript@5.5.3) typescript: 5.5.3 '@solana/codecs-numbers@2.0.0-rc.4(typescript@5.5.3)': @@ -684,12 +631,10 @@ snapshots: '@solana/errors': 2.0.0-rc.4(typescript@5.5.3) typescript: 5.5.3 - '@solana/codecs-strings@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/codecs-numbers@2.3.0(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) - fastestsmallesttextencoderdecoder: 1.0.22 + '@solana/codecs-core': 2.3.0(typescript@5.5.3) + '@solana/errors': 2.3.0(typescript@5.5.3) typescript: 5.5.3 '@solana/codecs-strings@2.0.0-rc.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': @@ -700,39 +645,25 @@ snapshots: fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.5.3 - '@solana/codecs@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': - dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/options': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder - - '@solana/errors@2.0.0(typescript@5.5.3)': + '@solana/codecs-strings@2.3.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': dependencies: - chalk: 5.3.0 - commander: 12.1.0 + '@solana/codecs-core': 2.3.0(typescript@5.5.3) + '@solana/codecs-numbers': 2.3.0(typescript@5.5.3) + '@solana/errors': 2.3.0(typescript@5.5.3) + fastestsmallesttextencoderdecoder: 1.0.22 typescript: 5.5.3 '@solana/errors@2.0.0-rc.4(typescript@5.5.3)': dependencies: - chalk: 5.3.0 + chalk: 5.4.1 commander: 12.1.0 typescript: 5.5.3 - '@solana/options@2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)': + '@solana/errors@2.3.0(typescript@5.5.3)': dependencies: - '@solana/codecs-core': 2.0.0(typescript@5.5.3) - '@solana/codecs-data-structures': 2.0.0(typescript@5.5.3) - '@solana/codecs-numbers': 2.0.0(typescript@5.5.3) - '@solana/codecs-strings': 2.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@solana/errors': 2.0.0(typescript@5.5.3) + chalk: 5.4.1 + commander: 14.0.0 typescript: 5.5.3 - transitivePeerDependencies: - - fastestsmallesttextencoderdecoder '@types/fs-extra@11.0.4': dependencies: @@ -769,8 +700,8 @@ snapshots: call-bind@1.0.8: dependencies: call-bind-apply-helpers: 1.0.2 - es-define-property: 1.0.0 - get-intrinsic: 1.2.4 + es-define-property: 1.0.1 + get-intrinsic: 1.3.0 set-function-length: 1.2.2 call-bound@1.0.3: @@ -778,35 +709,40 @@ snapshots: call-bind-apply-helpers: 1.0.2 get-intrinsic: 1.3.0 + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + chalk@5.3.0: {} chalk@5.4.1: {} - codama@1.2.8(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3): + chalk@5.6.0: {} + + codama@1.3.3: dependencies: - '@codama/cli': 1.0.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3) - '@codama/errors': 1.2.8 - '@codama/nodes': 1.2.8 - '@codama/validators': 1.2.8 - '@codama/visitors': 1.2.8 - transitivePeerDependencies: - - chokidar - - fastestsmallesttextencoderdecoder - - typescript + '@codama/cli': 1.3.1 + '@codama/errors': 1.3.3 + '@codama/nodes': 1.3.3 + '@codama/validators': 1.3.3 + '@codama/visitors': 1.3.3 commander@12.1.0: {} commander@13.1.0: {} + commander@14.0.0: {} + commander@5.1.0: {} data-uri-to-buffer@4.0.1: {} define-data-property@1.1.4: dependencies: - es-define-property: 1.0.0 + es-define-property: 1.0.1 es-errors: 1.3.0 - gopd: 1.0.1 + gopd: 1.2.0 dir-glob@3.0.1: dependencies: @@ -820,10 +756,6 @@ snapshots: duplexer@0.1.2: {} - es-define-property@1.0.0: - dependencies: - get-intrinsic: 1.2.4 - es-define-property@1.0.1: {} es-errors@1.3.0: {} @@ -881,14 +813,6 @@ snapshots: fx@34.0.0: {} - get-intrinsic@1.2.4: - dependencies: - es-errors: 1.3.0 - function-bind: 1.1.2 - has-proto: 1.0.3 - has-symbols: 1.0.3 - hasown: 2.0.2 - get-intrinsic@1.3.0: dependencies: call-bind-apply-helpers: 1.0.2 @@ -919,21 +843,13 @@ snapshots: merge2: 1.4.1 slash: 4.0.0 - gopd@1.0.1: - dependencies: - get-intrinsic: 1.2.4 - gopd@1.2.0: {} graceful-fs@4.2.11: {} has-property-descriptors@1.0.2: dependencies: - es-define-property: 1.0.0 - - has-proto@1.0.3: {} - - has-symbols@1.0.3: {} + es-define-property: 1.0.1 has-symbols@1.1.0: {} @@ -963,6 +879,14 @@ snapshots: jsonify: 0.0.1 object-keys: 1.1.1 + json-stable-stringify@1.3.0: + dependencies: + call-bind: 1.0.8 + call-bound: 1.0.4 + isarray: 2.0.5 + jsonify: 0.0.1 + object-keys: 1.1.1 + jsonfile@6.1.0: dependencies: universalify: 2.0.1 @@ -1012,7 +936,7 @@ snapshots: picomatch@2.3.1: {} - prettier@3.5.3: {} + prettier@3.6.2: {} prompts@2.4.2: dependencies: @@ -1036,8 +960,8 @@ snapshots: define-data-property: 1.1.4 es-errors: 1.3.0 function-bind: 1.1.2 - get-intrinsic: 1.2.4 - gopd: 1.0.1 + get-intrinsic: 1.3.0 + gopd: 1.2.0 has-property-descriptors: 1.0.2 sisteransi@1.0.5: {}