@wgb5445/aptos-intent-npm 0.0.10 → 0.0.12
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/aptos_intent.d.ts +22 -20
- package/dist/cjs/aptos_intent_bg-2V_b8N0G.js +42 -0
- package/dist/cjs/aptos_intent_bg-A1npHFCR.js +42 -0
- package/dist/cjs/entry.js +31 -31
- package/dist/esm/aptos_intent_bg-CX0REmIg.js +40 -0
- package/dist/esm/aptos_intent_bg-vY0jOTb5.js +40 -0
- package/dist/esm/entry.js +31 -31
- package/package.json +1 -1
package/dist/cjs/entry.js
CHANGED
@@ -298,24 +298,24 @@ function __wbg_adapter_90(arg0, arg1, arg2, arg3) {
|
|
298
298
|
*/
|
299
299
|
const BatchArgumentType = Object.freeze({ Raw:0,"0":"Raw",Signer:1,"1":"Signer",PreviousResult:2,"2":"PreviousResult", });
|
300
300
|
|
301
|
-
const
|
301
|
+
const BatchArgumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
302
302
|
? { register: () => {}, unregister: () => {} }
|
303
|
-
: new FinalizationRegistry(ptr => wasm.
|
303
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_batchargument_free(ptr >>> 0));
|
304
304
|
/**
|
305
305
|
* Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
|
306
306
|
*/
|
307
|
-
class
|
307
|
+
class BatchArgument {
|
308
308
|
|
309
309
|
static __wrap(ptr) {
|
310
310
|
ptr = ptr >>> 0;
|
311
|
-
const obj = Object.create(
|
311
|
+
const obj = Object.create(BatchArgument.prototype);
|
312
312
|
obj.__wbg_ptr = ptr;
|
313
|
-
|
313
|
+
BatchArgumentFinalization.register(obj, obj.__wbg_ptr, obj);
|
314
314
|
return obj;
|
315
315
|
}
|
316
316
|
|
317
317
|
static __unwrap(jsValue) {
|
318
|
-
if (!(jsValue instanceof
|
318
|
+
if (!(jsValue instanceof BatchArgument)) {
|
319
319
|
return 0;
|
320
320
|
}
|
321
321
|
return jsValue.__destroy_into_raw();
|
@@ -324,82 +324,82 @@ class BatchArgumentWASM {
|
|
324
324
|
__destroy_into_raw() {
|
325
325
|
const ptr = this.__wbg_ptr;
|
326
326
|
this.__wbg_ptr = 0;
|
327
|
-
|
327
|
+
BatchArgumentFinalization.unregister(this);
|
328
328
|
return ptr;
|
329
329
|
}
|
330
330
|
|
331
331
|
free() {
|
332
332
|
const ptr = this.__destroy_into_raw();
|
333
|
-
wasm.
|
333
|
+
wasm.__wbg_batchargument_free(ptr);
|
334
334
|
}
|
335
335
|
/**
|
336
336
|
* @param {Uint8Array} bytes
|
337
|
-
* @returns {
|
337
|
+
* @returns {BatchArgument}
|
338
338
|
*/
|
339
339
|
static new_bytes(bytes) {
|
340
340
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
341
341
|
const len0 = WASM_VECTOR_LEN;
|
342
|
-
const ret = wasm.
|
343
|
-
return
|
342
|
+
const ret = wasm.batchargument_new_bytes(ptr0, len0);
|
343
|
+
return BatchArgument.__wrap(ret);
|
344
344
|
}
|
345
345
|
/**
|
346
346
|
* @param {number} signer_idx
|
347
|
-
* @returns {
|
347
|
+
* @returns {BatchArgument}
|
348
348
|
*/
|
349
349
|
static new_signer(signer_idx) {
|
350
|
-
const ret = wasm.
|
351
|
-
return
|
350
|
+
const ret = wasm.batchargument_new_signer(signer_idx);
|
351
|
+
return BatchArgument.__wrap(ret);
|
352
352
|
}
|
353
353
|
/**
|
354
|
-
* @returns {
|
354
|
+
* @returns {BatchArgument}
|
355
355
|
*/
|
356
356
|
borrow() {
|
357
357
|
try {
|
358
358
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
359
|
-
wasm.
|
359
|
+
wasm.batchargument_borrow(retptr, this.__wbg_ptr);
|
360
360
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
361
361
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
362
362
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
363
363
|
if (r2) {
|
364
364
|
throw takeObject(r1);
|
365
365
|
}
|
366
|
-
return
|
366
|
+
return BatchArgument.__wrap(r0);
|
367
367
|
} finally {
|
368
368
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
369
369
|
}
|
370
370
|
}
|
371
371
|
/**
|
372
|
-
* @returns {
|
372
|
+
* @returns {BatchArgument}
|
373
373
|
*/
|
374
374
|
borrow_mut() {
|
375
375
|
try {
|
376
376
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
377
|
-
wasm.
|
377
|
+
wasm.batchargument_borrow_mut(retptr, this.__wbg_ptr);
|
378
378
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
379
379
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
380
380
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
381
381
|
if (r2) {
|
382
382
|
throw takeObject(r1);
|
383
383
|
}
|
384
|
-
return
|
384
|
+
return BatchArgument.__wrap(r0);
|
385
385
|
} finally {
|
386
386
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
387
387
|
}
|
388
388
|
}
|
389
389
|
/**
|
390
|
-
* @returns {
|
390
|
+
* @returns {BatchArgument}
|
391
391
|
*/
|
392
392
|
copy() {
|
393
393
|
try {
|
394
394
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
395
|
-
wasm.
|
395
|
+
wasm.batchargument_copy(retptr, this.__wbg_ptr);
|
396
396
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
397
397
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
398
398
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
399
399
|
if (r2) {
|
400
400
|
throw takeObject(r1);
|
401
401
|
}
|
402
|
-
return
|
402
|
+
return BatchArgument.__wrap(r0);
|
403
403
|
} finally {
|
404
404
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
405
405
|
}
|
@@ -480,8 +480,8 @@ class BatchedFunctionCallBuilder {
|
|
480
480
|
* @param {string} module
|
481
481
|
* @param {string} _function
|
482
482
|
* @param {(string)[]} ty_args
|
483
|
-
* @param {(
|
484
|
-
* @returns {(
|
483
|
+
* @param {(BatchArgument)[]} args
|
484
|
+
* @returns {(BatchArgument)[]}
|
485
485
|
*/
|
486
486
|
add_batched_call(module, _function, ty_args, args) {
|
487
487
|
try {
|
@@ -549,8 +549,8 @@ class BatchedFunctionCallBuilder {
|
|
549
549
|
function __wbg_get_imports() {
|
550
550
|
const imports = {};
|
551
551
|
imports.wbg = {};
|
552
|
-
imports.wbg.
|
553
|
-
const ret =
|
552
|
+
imports.wbg.__wbg_batchargument_new = function(arg0) {
|
553
|
+
const ret = BatchArgument.__wrap(arg0);
|
554
554
|
return addHeapObject(ret);
|
555
555
|
};
|
556
556
|
imports.wbg.__wbg_batchedfunctioncall_new = function(arg0) {
|
@@ -569,8 +569,8 @@ function __wbg_get_imports() {
|
|
569
569
|
const ret = false;
|
570
570
|
return ret;
|
571
571
|
};
|
572
|
-
imports.wbg.
|
573
|
-
const ret =
|
572
|
+
imports.wbg.__wbg_batchargument_unwrap = function(arg0) {
|
573
|
+
const ret = BatchArgument.__unwrap(takeObject(arg0));
|
574
574
|
return ret;
|
575
575
|
};
|
576
576
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
@@ -825,11 +825,11 @@ function initSync(module) {
|
|
825
825
|
}
|
826
826
|
|
827
827
|
async function get_wasm (){
|
828
|
-
return (await Promise.resolve().then(function () { return require('./aptos_intent_bg-
|
828
|
+
return (await Promise.resolve().then(function () { return require('./aptos_intent_bg-A1npHFCR.js'); })).default()
|
829
829
|
}
|
830
830
|
|
831
|
+
exports.BatchArgument = BatchArgument;
|
831
832
|
exports.BatchArgumentType = BatchArgumentType;
|
832
|
-
exports.BatchArgumentWASM = BatchArgumentWASM;
|
833
833
|
exports.BatchedFunctionCall = BatchedFunctionCall;
|
834
834
|
exports.BatchedFunctionCallBuilder = BatchedFunctionCallBuilder;
|
835
835
|
exports.generate_intent_payload_wasm = generate_intent_payload_wasm;
|