@metaplex-foundation/kinobi 0.8.3 → 0.8.4
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.
|
@@ -125,7 +125,7 @@ export async function fetch{{ account.name | pascalCase }}FromSeeds(
|
|
|
125
125
|
{% endif %}
|
|
126
126
|
options?: RpcGetAccountOptions,
|
|
127
127
|
): Promise<{{ account.name | pascalCase }}> {
|
|
128
|
-
return fetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context, seeds), options);
|
|
128
|
+
return fetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context{% if hasVariableSeeds %}, seeds{% endif %}), options);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export async function safeFetch{{ account.name | pascalCase }}FromSeeds(
|
|
@@ -135,7 +135,7 @@ export async function safeFetch{{ account.name | pascalCase }}FromSeeds(
|
|
|
135
135
|
{% endif %}
|
|
136
136
|
options?: RpcGetAccountOptions,
|
|
137
137
|
): Promise<{{ account.name | pascalCase }} | null> {
|
|
138
|
-
return safeFetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context, seeds), options);
|
|
138
|
+
return safeFetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context{% if hasVariableSeeds %}, seeds{% endif %}), options);
|
|
139
139
|
}
|
|
140
140
|
{% endif %}
|
|
141
141
|
{% endblock %}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metaplex-foundation/kinobi",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Generate powerful clients for your Solana programs",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"packageManager": "pnpm@
|
|
67
|
+
"packageManager": "pnpm@8.3.0",
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "rimraf dist && tsc && tsc -p test/tsconfig.json && pnpm build:njk",
|
|
70
70
|
"build:njk": "copyfiles -u 1 src/**/*.njk dist/cjs/ && copyfiles -u 1 src/**/*.njk dist/test/src/",
|
|
@@ -125,7 +125,7 @@ export async function fetch{{ account.name | pascalCase }}FromSeeds(
|
|
|
125
125
|
{% endif %}
|
|
126
126
|
options?: RpcGetAccountOptions,
|
|
127
127
|
): Promise<{{ account.name | pascalCase }}> {
|
|
128
|
-
return fetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context, seeds), options);
|
|
128
|
+
return fetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context{% if hasVariableSeeds %}, seeds{% endif %}), options);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export async function safeFetch{{ account.name | pascalCase }}FromSeeds(
|
|
@@ -135,7 +135,7 @@ export async function safeFetch{{ account.name | pascalCase }}FromSeeds(
|
|
|
135
135
|
{% endif %}
|
|
136
136
|
options?: RpcGetAccountOptions,
|
|
137
137
|
): Promise<{{ account.name | pascalCase }} | null> {
|
|
138
|
-
return safeFetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context, seeds), options);
|
|
138
|
+
return safeFetch{{ account.name | pascalCase }}(context, find{{ account.name | pascalCase }}Pda(context{% if hasVariableSeeds %}, seeds{% endif %}), options);
|
|
139
139
|
}
|
|
140
140
|
{% endif %}
|
|
141
141
|
{% endblock %}
|