@codama/renderers-rust 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,6 +80,7 @@ impl<'a, 'b> {{ instruction.name | pascalCase }}Cpi<'a, 'b> {
|
|
|
80
80
|
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> solana_program::entrypoint::ProgramResult {
|
|
81
81
|
self.invoke_signed_with_remaining_accounts(signers_seeds, &[])
|
|
82
82
|
}
|
|
83
|
+
#[allow(clippy::arithmetic_side_effects)]
|
|
83
84
|
#[allow(clippy::clone_on_copy)]
|
|
84
85
|
#[allow(clippy::vec_init_then_push)]
|
|
85
86
|
pub fn invoke_signed_with_remaining_accounts(
|
|
@@ -31,6 +31,7 @@ impl {{ instruction.name | pascalCase }} {
|
|
|
31
31
|
pub fn instruction(&self{{ ', args: ' + instruction.name | pascalCase + 'InstructionArgs' if hasArgs }}) -> solana_program::instruction::Instruction {
|
|
32
32
|
self.instruction_with_remaining_accounts({{ 'args, ' if hasArgs }}&[])
|
|
33
33
|
}
|
|
34
|
+
#[allow(clippy::arithmetic_side_effects)]
|
|
34
35
|
#[allow(clippy::vec_init_then_push)]
|
|
35
36
|
pub fn instruction_with_remaining_accounts(&self{{ ', args: ' + instruction.name | pascalCase + 'InstructionArgs' if hasArgs }}, remaining_accounts: &[solana_program::instruction::AccountMeta]) -> solana_program::instruction::Instruction {
|
|
36
37
|
let mut accounts = Vec::with_capacity({{ instruction.accounts.length + '+' if instruction.accounts.length > 0}} remaining_accounts.len());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codama/renderers-rust",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Renders Rust clients for your programs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@solana/codecs-strings": "rc",
|
|
32
32
|
"nunjucks": "^3.2.4",
|
|
33
|
-
"@codama/errors": "1.2.
|
|
34
|
-
"@codama/nodes": "1.2.
|
|
35
|
-
"@codama/
|
|
36
|
-
"@codama/
|
|
33
|
+
"@codama/errors": "1.2.10",
|
|
34
|
+
"@codama/nodes": "1.2.10",
|
|
35
|
+
"@codama/renderers-core": "1.0.12",
|
|
36
|
+
"@codama/visitors-core": "1.2.10"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/nunjucks": "^3.2.6",
|
|
40
|
-
"@codama/nodes-from-anchor": "1.1.
|
|
40
|
+
"@codama/nodes-from-anchor": "1.1.10"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"repository": {
|