@turnkey/core 1.8.3 → 1.9.0
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.
- package/dist/__clients__/core.d.ts +65 -3
- package/dist/__clients__/core.d.ts.map +1 -1
- package/dist/__clients__/core.js +176 -5
- package/dist/__clients__/core.js.map +1 -1
- package/dist/__clients__/core.mjs +176 -5
- package/dist/__clients__/core.mjs.map +1 -1
- package/dist/__generated__/sdk-client-base.d.ts +6 -0
- package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
- package/dist/__generated__/sdk-client-base.js +81 -0
- package/dist/__generated__/sdk-client-base.js.map +1 -1
- package/dist/__generated__/sdk-client-base.mjs +81 -0
- package/dist/__generated__/sdk-client-base.mjs.map +1 -1
- package/dist/__generated__/version.d.ts +1 -1
- package/dist/__generated__/version.js +1 -1
- package/dist/__generated__/version.mjs +1 -1
- package/dist/__inputs__/public_api.types.d.ts +158 -20
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/__types__/method-types/shared.d.ts +25 -0
- package/dist/__types__/method-types/shared.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -196,6 +196,33 @@ class TurnkeySDKClientBase {
|
|
|
196
196
|
url: fullUrl,
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
+
this.getGasUsage = async (input, stampWith) => {
|
|
200
|
+
const session = await this.storageManager?.getActiveSession();
|
|
201
|
+
return this.request("/public/v1/query/get_gas_usage", {
|
|
202
|
+
...input,
|
|
203
|
+
organizationId: input.organizationId ??
|
|
204
|
+
session?.organizationId ??
|
|
205
|
+
this.config.organizationId,
|
|
206
|
+
}, stampWith);
|
|
207
|
+
};
|
|
208
|
+
this.stampGetGasUsage = async (input, stampWith) => {
|
|
209
|
+
const activeStamper = this.getStamper(stampWith);
|
|
210
|
+
if (!activeStamper) {
|
|
211
|
+
return undefined;
|
|
212
|
+
}
|
|
213
|
+
const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_gas_usage";
|
|
214
|
+
const body = {
|
|
215
|
+
...input,
|
|
216
|
+
organizationId: input.organizationId,
|
|
217
|
+
};
|
|
218
|
+
const stringifiedBody = JSON.stringify(body);
|
|
219
|
+
const stamp = await activeStamper.stamp(stringifiedBody);
|
|
220
|
+
return {
|
|
221
|
+
body: stringifiedBody,
|
|
222
|
+
stamp: stamp,
|
|
223
|
+
url: fullUrl,
|
|
224
|
+
};
|
|
225
|
+
};
|
|
199
226
|
this.getLatestBootProof = async (input, stampWith) => {
|
|
200
227
|
const session = await this.storageManager?.getActiveSession();
|
|
201
228
|
return this.request("/public/v1/query/get_latest_boot_proof", {
|
|
@@ -223,6 +250,33 @@ class TurnkeySDKClientBase {
|
|
|
223
250
|
url: fullUrl,
|
|
224
251
|
};
|
|
225
252
|
};
|
|
253
|
+
this.getNonces = async (input, stampWith) => {
|
|
254
|
+
const session = await this.storageManager?.getActiveSession();
|
|
255
|
+
return this.request("/public/v1/query/get_nonces", {
|
|
256
|
+
...input,
|
|
257
|
+
organizationId: input.organizationId ??
|
|
258
|
+
session?.organizationId ??
|
|
259
|
+
this.config.organizationId,
|
|
260
|
+
}, stampWith);
|
|
261
|
+
};
|
|
262
|
+
this.stampGetNonces = async (input, stampWith) => {
|
|
263
|
+
const activeStamper = this.getStamper(stampWith);
|
|
264
|
+
if (!activeStamper) {
|
|
265
|
+
return undefined;
|
|
266
|
+
}
|
|
267
|
+
const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_nonces";
|
|
268
|
+
const body = {
|
|
269
|
+
...input,
|
|
270
|
+
organizationId: input.organizationId,
|
|
271
|
+
};
|
|
272
|
+
const stringifiedBody = JSON.stringify(body);
|
|
273
|
+
const stamp = await activeStamper.stamp(stringifiedBody);
|
|
274
|
+
return {
|
|
275
|
+
body: stringifiedBody,
|
|
276
|
+
stamp: stamp,
|
|
277
|
+
url: fullUrl,
|
|
278
|
+
};
|
|
279
|
+
};
|
|
226
280
|
this.getOauth2Credential = async (input, stampWith) => {
|
|
227
281
|
const session = await this.storageManager?.getActiveSession();
|
|
228
282
|
return this.request("/public/v1/query/get_oauth2_credential", {
|
|
@@ -439,6 +493,33 @@ class TurnkeySDKClientBase {
|
|
|
439
493
|
url: fullUrl,
|
|
440
494
|
};
|
|
441
495
|
};
|
|
496
|
+
this.getSendTransactionStatus = async (input, stampWith) => {
|
|
497
|
+
const session = await this.storageManager?.getActiveSession();
|
|
498
|
+
return this.request("/public/v1/query/get_send_transaction_status", {
|
|
499
|
+
...input,
|
|
500
|
+
organizationId: input.organizationId ??
|
|
501
|
+
session?.organizationId ??
|
|
502
|
+
this.config.organizationId,
|
|
503
|
+
}, stampWith);
|
|
504
|
+
};
|
|
505
|
+
this.stampGetSendTransactionStatus = async (input, stampWith) => {
|
|
506
|
+
const activeStamper = this.getStamper(stampWith);
|
|
507
|
+
if (!activeStamper) {
|
|
508
|
+
return undefined;
|
|
509
|
+
}
|
|
510
|
+
const fullUrl = this.config.apiBaseUrl + "/public/v1/query/get_send_transaction_status";
|
|
511
|
+
const body = {
|
|
512
|
+
...input,
|
|
513
|
+
organizationId: input.organizationId,
|
|
514
|
+
};
|
|
515
|
+
const stringifiedBody = JSON.stringify(body);
|
|
516
|
+
const stamp = await activeStamper.stamp(stringifiedBody);
|
|
517
|
+
return {
|
|
518
|
+
body: stringifiedBody,
|
|
519
|
+
stamp: stamp,
|
|
520
|
+
url: fullUrl,
|
|
521
|
+
};
|
|
522
|
+
};
|
|
442
523
|
this.getSmartContractInterface = async (input, stampWith) => {
|
|
443
524
|
const session = await this.storageManager?.getActiveSession();
|
|
444
525
|
return this.request("/public/v1/query/get_smart_contract_interface", {
|