diff --git a/clients/rust/src/generated/instructions/add_memo.rs b/clients/rust/src/generated/instructions/add_memo.rs index 783df0f..f9ccfbf 100644 --- a/clients/rust/src/generated/instructions/add_memo.rs +++ b/clients/rust/src/generated/instructions/add_memo.rs @@ -28,8 +28,8 @@ impl AddMemo { ) -> solana_program::instruction::Instruction { let mut accounts = Vec::with_capacity(remaining_accounts.len()); accounts.extend_from_slice(remaining_accounts); - let mut data = AddMemoInstructionData::new().try_to_vec().unwrap(); - let mut args = args.try_to_vec().unwrap(); + let mut data = borsh::to_vec(&AddMemoInstructionData::new()).unwrap(); + let mut args = borsh::to_vec(&args).unwrap(); data.append(&mut args); solana_program::instruction::Instruction { @@ -169,8 +169,8 @@ impl<'a, 'b> AddMemoCpi<'a, 'b> { is_writable: remaining_account.2, }) }); - let mut data = AddMemoInstructionData::new().try_to_vec().unwrap(); - let mut args = self.__args.try_to_vec().unwrap(); + let mut data = borsh::to_vec(&AddMemoInstructionData::new()).unwrap(); + let mut args = borsh::to_vec(&self.__args).unwrap(); data.append(&mut args); let instruction = solana_program::instruction::Instruction { diff --git a/package.json b/package.json index d7f140c..200fd42 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "devDependencies": { "@codama/renderers-js": "^1.2.4", - "@codama/renderers-rust": "^1.0.12", + "@codama/renderers-rust": "^1.0.13", "@iarna/toml": "^2.2.5", "codama": "^1.2.5", "typescript": "^5.7.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b53bddf..5d25068 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: ^1.2.4 version: 1.2.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) '@codama/renderers-rust': - specifier: ^1.0.12 - version: 1.0.12(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) + specifier: ^1.0.13 + version: 1.0.13(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) '@iarna/toml': specifier: ^2.2.5 version: 2.2.5 @@ -32,32 +32,19 @@ packages: '@codama/cli@1.0.4': resolution: {integrity: sha512-816wC7jMOzsUTbJWBdumFZzZp4LA3qDT6mY1pP4P3jO4BEqrcGV7PgrpCxSWGS1nZaGM9/3TZfpuec0y6lUQEA==} - '@codama/errors@1.2.4': - resolution: {integrity: sha512-iEcTk6+A2zktjoaVu5lz0VIWJAWuss0WLB7eZ0E2/8aBYtvVrjWTj5fr/ICR/TWC5Tv2/lkezhwcNsGgpaawHQ==} - hasBin: true - '@codama/errors@1.2.5': resolution: {integrity: sha512-483rLiGc2O1obCRgoO4C569WnDz/PMHbxFmptnW8RtKqHGNfXEqHEo/oLDv5x4AaOhRizo479B9dtr2HxhDepw==} hasBin: true - '@codama/node-types@1.2.4': - resolution: {integrity: sha512-hwu4oeJ6jFDPDVYqUngs3faJvU7xnp+k/6DfEW0NToNe5jqgDVIZWK1kzJp2vM+OfohN/isrE4G9VORTCqAPaA==} - '@codama/node-types@1.2.5': resolution: {integrity: sha512-CCYLw3m6Q0OEF8vAseByndRjAkKw3zML+Z8Vurkr6QnGizgswxG7I5KSmQ0Ta8+gZT5nkWxMACJxcxwjvzsL+g==} '@codama/nodes-from-anchor@1.1.5': resolution: {integrity: sha512-AM5+ePKNATV6mkUmqNXPge/T/DyttYVVZB2VLsLzgCvgSqPK+el854BYhLxZRscztN3ccZT8SVHmz3Zl/1R3Mg==} - '@codama/nodes@1.2.4': - resolution: {integrity: sha512-75ugCLrKshCkmyzEnwr2tZk6Cklvyb4XnYc7v969DXYwx2G91bv/dtVlbTpxmAPe7IA05rk2qfah5hJiRT5maA==} - '@codama/nodes@1.2.5': resolution: {integrity: sha512-4Donl1g3ea1d10dUEEmvmPsuWLmOS5XLzRM6IA/Ozjczx1apAr9tPvehMD+cqaxmGytNAo/8VpE79ibfdSzPaw==} - '@codama/renderers-core@1.0.6': - resolution: {integrity: sha512-+CW7M3aIXUAdK6QVQPexPtYxulR+WNOW/DV8eVkD6PTMGnTSl+aMB+kPtg5Id+w0/Tln/untRXLuUPyrY1X3OQ==} - '@codama/renderers-core@1.0.7': resolution: {integrity: sha512-Ei8UF4GIr/2i745B4iIrH8gzQH3L0RFf+acyQD7dUOVvct5bHKrc4ygbrJQFbQuHlownS4i6g7K+p11IgQYd/Q==} @@ -67,9 +54,6 @@ packages: '@codama/renderers-js@1.2.4': resolution: {integrity: sha512-wkTg3X9MOho4AfI2aMDiiZt2MozIXCYD9c8xIl8GQzNc2ttswI5vA90W0lmDwKaUjEDnx55Jqc8BzDCfcW1ing==} - '@codama/renderers-rust@1.0.12': - resolution: {integrity: sha512-1u7cY0qAp5Lmy0BF21/zCaG7nzFGcGDjVDqCveX4j4JBfmVd5IGMLNZdU8IOyBL8qpFgo+eZCD/T/kmtgCwV0A==} - '@codama/renderers-rust@1.0.13': resolution: {integrity: sha512-3XfC+I9npFWbv4ceAeI5JQDmfo/ZuEW4K56Qq5qTeh940OMHF+julo34dnRD0F4tqEH3cTqLaDyJxSK8cQmpFA==} @@ -79,9 +63,6 @@ packages: '@codama/validators@1.2.5': resolution: {integrity: sha512-sTmMls7MM0AnwNVnYu4hCsMBKwNOdQm5rDYG1MVakfXmAlREYlNuUOUzXxQO9MKPtnnwLGUyqjYV/qDeLRM3Mg==} - '@codama/visitors-core@1.2.4': - resolution: {integrity: sha512-m8rbkJxwvn8rblC1OIOSGx3FEn9kuppZw390R26qTEK5L+FY9qmKgcMys/BZVJUJe6XrOaufBA1Ir+ZML8pVbA==} - '@codama/visitors-core@1.2.5': resolution: {integrity: sha512-l1JoPFZxXyCD9F4LDV33lR/FIALCP6qBqldXz3IjY32vQomyqghq8JkwJWN6FNQ6zqGUGe0DY4iYoIqs1VYpIQ==} @@ -177,10 +158,6 @@ packages: a-sync-waterfall@1.0.1: resolution: {integrity: sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==} - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - asap@2.0.6: resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==} @@ -196,10 +173,6 @@ packages: resolution: {integrity: sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==} engines: {node: '>= 0.4'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - chalk@5.4.1: resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} @@ -208,13 +181,6 @@ packages: resolution: {integrity: sha512-0+DeK4+2yaALX0JIoPj8t0TAGLIpdqZgrzLhlItNSAa5kxEL9Lit7ikORQwg6Ws/xlZtkiWkknN0Su70GXriNw==} hasBin: true - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - commander@12.1.0: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} @@ -265,10 +231,6 @@ packages: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - has-property-descriptors@1.0.2: resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==} @@ -328,10 +290,6 @@ packages: sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - typescript@5.7.3: resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==} engines: {node: '>=14.17'} @@ -365,20 +323,12 @@ snapshots: - fastestsmallesttextencoderdecoder - typescript - '@codama/errors@1.2.4': - dependencies: - '@codama/node-types': 1.2.4 - chalk: 4.1.2 - commander: 13.1.0 - '@codama/errors@1.2.5': dependencies: '@codama/node-types': 1.2.5 chalk: 5.4.1 commander: 13.1.0 - '@codama/node-types@1.2.4': {} - '@codama/node-types@1.2.5': {} '@codama/nodes-from-anchor@1.1.5(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3)': @@ -392,22 +342,11 @@ snapshots: - fastestsmallesttextencoderdecoder - typescript - '@codama/nodes@1.2.4': - dependencies: - '@codama/errors': 1.2.4 - '@codama/node-types': 1.2.4 - '@codama/nodes@1.2.5': dependencies: '@codama/errors': 1.2.5 '@codama/node-types': 1.2.5 - '@codama/renderers-core@1.0.6': - dependencies: - '@codama/errors': 1.2.4 - '@codama/nodes': 1.2.4 - '@codama/visitors-core': 1.2.4 - '@codama/renderers-core@1.0.7': dependencies: '@codama/errors': 1.2.5 @@ -444,19 +383,6 @@ snapshots: - fastestsmallesttextencoderdecoder - typescript - '@codama/renderers-rust@1.0.12(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3)': - dependencies: - '@codama/errors': 1.2.4 - '@codama/nodes': 1.2.4 - '@codama/renderers-core': 1.0.6 - '@codama/visitors-core': 1.2.4 - '@solana/codecs-strings': 2.0.0-rc.4(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3) - nunjucks: 3.2.4 - transitivePeerDependencies: - - chokidar - - fastestsmallesttextencoderdecoder - - typescript - '@codama/renderers-rust@1.0.13(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3)': dependencies: '@codama/errors': 1.2.5 @@ -486,12 +412,6 @@ snapshots: '@codama/nodes': 1.2.5 '@codama/visitors-core': 1.2.5 - '@codama/visitors-core@1.2.4': - dependencies: - '@codama/errors': 1.2.4 - '@codama/nodes': 1.2.4 - json-stable-stringify: 1.2.1 - '@codama/visitors-core@1.2.5': dependencies: '@codama/errors': 1.2.5 @@ -605,10 +525,6 @@ snapshots: a-sync-waterfall@1.0.1: {} - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 - asap@2.0.6: {} call-bind-apply-helpers@1.0.1: @@ -628,11 +544,6 @@ snapshots: call-bind-apply-helpers: 1.0.1 get-intrinsic: 1.2.7 - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - chalk@5.4.1: {} codama@1.2.5(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.7.3): @@ -647,12 +558,6 @@ snapshots: - fastestsmallesttextencoderdecoder - typescript - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - commander@12.1.0: {} commander@13.1.0: {} @@ -703,8 +608,6 @@ snapshots: gopd@1.2.0: {} - has-flag@4.0.0: {} - has-property-descriptors@1.0.2: dependencies: es-define-property: 1.0.1 @@ -757,10 +660,6 @@ snapshots: sisteransi@1.0.5: {} - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - typescript@5.7.3: {} undici-types@6.20.0: