bulk-keychain-wasm 0.1.17 → 0.1.19
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/bulk_keychain_wasm.d.ts +87 -0
- package/bulk_keychain_wasm.js +287 -61
- package/bulk_keychain_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/bulk_keychain_wasm.d.ts
CHANGED
|
@@ -141,6 +141,18 @@ export class WasmSigner {
|
|
|
141
141
|
* Sign multiple orders - each becomes its own transaction (parallel)
|
|
142
142
|
*/
|
|
143
143
|
signAll(orders: any, base_nonce?: number | null): any;
|
|
144
|
+
/**
|
|
145
|
+
* Sign builder-code recipient approval (`abc`)
|
|
146
|
+
*/
|
|
147
|
+
signApproveBuilderCode(to_pubkey: string, fee: number, nonce?: number | null): any;
|
|
148
|
+
/**
|
|
149
|
+
* Sign builder-code recipient approval (`abc`)
|
|
150
|
+
*/
|
|
151
|
+
signApproveCommissionFee(to_pubkey: string, fee: number, nonce?: number | null): any;
|
|
152
|
+
/**
|
|
153
|
+
* Sign raw message bytes and return a base58 Ed25519 signature.
|
|
154
|
+
*/
|
|
155
|
+
signBytes(message: Uint8Array): string;
|
|
144
156
|
/**
|
|
145
157
|
* Sign a multisig creation
|
|
146
158
|
*/
|
|
@@ -189,6 +201,13 @@ export class WasmSigner {
|
|
|
189
201
|
* @deprecated Use signAll() instead
|
|
190
202
|
*/
|
|
191
203
|
signOrdersBatch(batches: any, base_nonce?: number | null): any;
|
|
204
|
+
/**
|
|
205
|
+
* Sign a prepared message and finalize it into a signed transaction.
|
|
206
|
+
*
|
|
207
|
+
* This supports agent-wallet flows where prepared.account is the trading
|
|
208
|
+
* account and prepared.signer is this signer's pubkey.
|
|
209
|
+
*/
|
|
210
|
+
signPrepared(prepared: WasmPreparedMessage): any;
|
|
192
211
|
/**
|
|
193
212
|
* Sign a batch Pyth oracle update (`o`)
|
|
194
213
|
*/
|
|
@@ -208,6 +227,14 @@ export class WasmSigner {
|
|
|
208
227
|
* @param nonce - optional nonce
|
|
209
228
|
*/
|
|
210
229
|
signRenameSubAccount(subaccount: string, name: string, nonce?: number | null): any;
|
|
230
|
+
/**
|
|
231
|
+
* Sign builder-code recipient revocation (`rbc`)
|
|
232
|
+
*/
|
|
233
|
+
signRevokeBuilderCode(to_pubkey: string, nonce?: number | null): any;
|
|
234
|
+
/**
|
|
235
|
+
* Sign builder-code recipient revocation (`rbc`)
|
|
236
|
+
*/
|
|
237
|
+
signRevokeCommissionFee(to_pubkey: string, nonce?: number | null): any;
|
|
211
238
|
/**
|
|
212
239
|
* Sign a margin transfer between accounts
|
|
213
240
|
*
|
|
@@ -283,6 +310,20 @@ export function prepareAgentWallet(agent_pubkey: string, _delete: boolean, optio
|
|
|
283
310
|
*/
|
|
284
311
|
export function prepareAll(orders: any, options: any): WasmPreparedMessage[];
|
|
285
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Prepare builder-code recipient approval for external signing
|
|
315
|
+
*/
|
|
316
|
+
export function prepareApproveBuilderCode(to_pubkey: string, fee: number, options: any): WasmPreparedMessage;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Prepare builder-code recipient approval for external signing
|
|
320
|
+
*
|
|
321
|
+
* @param toPubkey - Builder-code recipient public key
|
|
322
|
+
* @param fee - Maximum builder-code fee in bps
|
|
323
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
324
|
+
*/
|
|
325
|
+
export function prepareApproveCommissionFee(to_pubkey: string, fee: number, options: any): WasmPreparedMessage;
|
|
326
|
+
|
|
286
327
|
/**
|
|
287
328
|
* Prepare a multisig creation for external signing
|
|
288
329
|
*
|
|
@@ -379,6 +420,19 @@ export function prepareRemoveSubAccount(to_remove: string, options: any): WasmPr
|
|
|
379
420
|
*/
|
|
380
421
|
export function prepareRenameSubAccount(subaccount: string, name: string, options: any): WasmPreparedMessage;
|
|
381
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Prepare builder-code recipient revocation for external signing
|
|
425
|
+
*/
|
|
426
|
+
export function prepareRevokeBuilderCode(to_pubkey: string, options: any): WasmPreparedMessage;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Prepare builder-code recipient revocation for external signing
|
|
430
|
+
*
|
|
431
|
+
* @param toPubkey - Builder-code recipient public key
|
|
432
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
433
|
+
*/
|
|
434
|
+
export function prepareRevokeCommissionFee(to_pubkey: string, options: any): WasmPreparedMessage;
|
|
435
|
+
|
|
382
436
|
/**
|
|
383
437
|
* Prepare a margin transfer for external signing
|
|
384
438
|
*
|
|
@@ -402,6 +456,27 @@ export function prepareUpdateMultisigPolicy(multisig: string, signers: any, thre
|
|
|
402
456
|
*/
|
|
403
457
|
export function prepareUpdateUserSettings(settings: any, options: any): WasmPreparedMessage;
|
|
404
458
|
|
|
459
|
+
/**
|
|
460
|
+
* Prepare a portfolio withdraw for external signing
|
|
461
|
+
*
|
|
462
|
+
* @param amount - base-unit amount to withdraw
|
|
463
|
+
* @param blockhash - recent Solana blockhash (base58)
|
|
464
|
+
* @param user - user wallet pubkey (base58)
|
|
465
|
+
* @param vault - vault pubkey (base58)
|
|
466
|
+
* @param recipientTokenAccount - recipient token account pubkey (base58)
|
|
467
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
468
|
+
*/
|
|
469
|
+
export function prepareWithdraw(amount: number, blockhash: string, user: string, vault: string, recipient_token_account: string, options: any): WasmPreparedMessage;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Prepare a withdraw-lock recovery for external signing
|
|
473
|
+
*
|
|
474
|
+
* @param user - user wallet pubkey (base58)
|
|
475
|
+
* @param hash - withdrawal lock hash (base58)
|
|
476
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
477
|
+
*/
|
|
478
|
+
export function prepareWithdrawLockRecover(user: string, hash: string, options: any): WasmPreparedMessage;
|
|
479
|
+
|
|
405
480
|
/**
|
|
406
481
|
* Generate a random hash (for client order IDs)
|
|
407
482
|
*/
|
|
@@ -429,6 +504,7 @@ export interface InitOutput {
|
|
|
429
504
|
readonly finalizeTransaction: (a: any, b: number, c: number) => [number, number, number];
|
|
430
505
|
readonly prepareAgentWallet: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
431
506
|
readonly prepareAll: (a: any, b: any) => [number, number, number, number];
|
|
507
|
+
readonly prepareApproveBuilderCode: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
432
508
|
readonly prepareCreateMultisig: (a: any, b: number, c: any) => [number, number, number];
|
|
433
509
|
readonly prepareCreateSubAccount: (a: number, b: number, c: any) => [number, number, number];
|
|
434
510
|
readonly prepareFaucet: (a: any) => [number, number, number];
|
|
@@ -441,9 +517,12 @@ export interface InitOutput {
|
|
|
441
517
|
readonly prepareOrder: (a: any, b: any) => [number, number, number];
|
|
442
518
|
readonly prepareRemoveSubAccount: (a: number, b: number, c: any) => [number, number, number];
|
|
443
519
|
readonly prepareRenameSubAccount: (a: number, b: number, c: number, d: number, e: any) => [number, number, number];
|
|
520
|
+
readonly prepareRevokeBuilderCode: (a: number, b: number, c: any) => [number, number, number];
|
|
444
521
|
readonly prepareTransfer: (a: number, b: number, c: number, d: number, e: number, f: any) => [number, number, number];
|
|
445
522
|
readonly prepareUpdateMultisigPolicy: (a: number, b: number, c: any, d: number, e: any) => [number, number, number];
|
|
446
523
|
readonly prepareUpdateUserSettings: (a: any, b: any) => [number, number, number];
|
|
524
|
+
readonly prepareWithdraw: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any) => [number, number, number];
|
|
525
|
+
readonly prepareWithdrawLockRecover: (a: number, b: number, c: number, d: number, e: any) => [number, number, number];
|
|
447
526
|
readonly randomHash: () => [number, number];
|
|
448
527
|
readonly validateHash: (a: number, b: number) => number;
|
|
449
528
|
readonly validatePubkey: (a: number, b: number) => number;
|
|
@@ -476,6 +555,8 @@ export interface InitOutput {
|
|
|
476
555
|
readonly wasmsigner_sign: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
477
556
|
readonly wasmsigner_signAgentWallet: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
478
557
|
readonly wasmsigner_signAll: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
558
|
+
readonly wasmsigner_signApproveBuilderCode: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
559
|
+
readonly wasmsigner_signBytes: (a: number, b: number, c: number) => [number, number];
|
|
479
560
|
readonly wasmsigner_signCreateMultisig: (a: number, b: any, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
480
561
|
readonly wasmsigner_signCreateSubAccount: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
481
562
|
readonly wasmsigner_signFaucet: (a: number, b: number, c: number) => [number, number, number];
|
|
@@ -487,16 +568,22 @@ export interface InitOutput {
|
|
|
487
568
|
readonly wasmsigner_signMultisigReject: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
488
569
|
readonly wasmsigner_signOraclePrices: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
489
570
|
readonly wasmsigner_signOrdersBatch: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
571
|
+
readonly wasmsigner_signPrepared: (a: number, b: number) => [number, number, number];
|
|
490
572
|
readonly wasmsigner_signPythOracle: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
491
573
|
readonly wasmsigner_signRemoveSubAccount: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
492
574
|
readonly wasmsigner_signRenameSubAccount: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
575
|
+
readonly wasmsigner_signRevokeBuilderCode: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
493
576
|
readonly wasmsigner_signTransfer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
|
|
494
577
|
readonly wasmsigner_signUpdateMultisigPolicy: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
495
578
|
readonly wasmsigner_signUserSettings: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
496
579
|
readonly wasmsigner_signWhitelistFaucet: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
497
580
|
readonly wasmsigner_withNonceManager: (a: number, b: number, c: number) => [number, number, number];
|
|
498
581
|
readonly init: () => void;
|
|
582
|
+
readonly wasmsigner_signApproveCommissionFee: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
583
|
+
readonly prepareApproveCommissionFee: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
584
|
+
readonly prepareRevokeCommissionFee: (a: number, b: number, c: any) => [number, number, number];
|
|
499
585
|
readonly wasmsigner_signOrder: (a: number, b: any, c: number, d: number) => [number, number, number];
|
|
586
|
+
readonly wasmsigner_signRevokeCommissionFee: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
500
587
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
501
588
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
502
589
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/bulk_keychain_wasm.js
CHANGED
|
@@ -427,6 +427,57 @@ export class WasmSigner {
|
|
|
427
427
|
}
|
|
428
428
|
return takeFromExternrefTable0(ret[0]);
|
|
429
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* Sign builder-code recipient approval (`abc`)
|
|
432
|
+
* @param {string} to_pubkey
|
|
433
|
+
* @param {number} fee
|
|
434
|
+
* @param {number | null} [nonce]
|
|
435
|
+
* @returns {any}
|
|
436
|
+
*/
|
|
437
|
+
signApproveBuilderCode(to_pubkey, fee, nonce) {
|
|
438
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
439
|
+
const len0 = WASM_VECTOR_LEN;
|
|
440
|
+
const ret = wasm.wasmsigner_signApproveBuilderCode(this.__wbg_ptr, ptr0, len0, fee, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
441
|
+
if (ret[2]) {
|
|
442
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
443
|
+
}
|
|
444
|
+
return takeFromExternrefTable0(ret[0]);
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Sign builder-code recipient approval (`abc`)
|
|
448
|
+
* @param {string} to_pubkey
|
|
449
|
+
* @param {number} fee
|
|
450
|
+
* @param {number | null} [nonce]
|
|
451
|
+
* @returns {any}
|
|
452
|
+
*/
|
|
453
|
+
signApproveCommissionFee(to_pubkey, fee, nonce) {
|
|
454
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
|
+
const len0 = WASM_VECTOR_LEN;
|
|
456
|
+
const ret = wasm.wasmsigner_signApproveCommissionFee(this.__wbg_ptr, ptr0, len0, fee, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
457
|
+
if (ret[2]) {
|
|
458
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
459
|
+
}
|
|
460
|
+
return takeFromExternrefTable0(ret[0]);
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Sign raw message bytes and return a base58 Ed25519 signature.
|
|
464
|
+
* @param {Uint8Array} message
|
|
465
|
+
* @returns {string}
|
|
466
|
+
*/
|
|
467
|
+
signBytes(message) {
|
|
468
|
+
let deferred2_0;
|
|
469
|
+
let deferred2_1;
|
|
470
|
+
try {
|
|
471
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
472
|
+
const len0 = WASM_VECTOR_LEN;
|
|
473
|
+
const ret = wasm.wasmsigner_signBytes(this.__wbg_ptr, ptr0, len0);
|
|
474
|
+
deferred2_0 = ret[0];
|
|
475
|
+
deferred2_1 = ret[1];
|
|
476
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
477
|
+
} finally {
|
|
478
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
430
481
|
/**
|
|
431
482
|
* Sign a multisig creation
|
|
432
483
|
* @param {any} signers
|
|
@@ -603,6 +654,22 @@ export class WasmSigner {
|
|
|
603
654
|
}
|
|
604
655
|
return takeFromExternrefTable0(ret[0]);
|
|
605
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Sign a prepared message and finalize it into a signed transaction.
|
|
659
|
+
*
|
|
660
|
+
* This supports agent-wallet flows where prepared.account is the trading
|
|
661
|
+
* account and prepared.signer is this signer's pubkey.
|
|
662
|
+
* @param {WasmPreparedMessage} prepared
|
|
663
|
+
* @returns {any}
|
|
664
|
+
*/
|
|
665
|
+
signPrepared(prepared) {
|
|
666
|
+
_assertClass(prepared, WasmPreparedMessage);
|
|
667
|
+
const ret = wasm.wasmsigner_signPrepared(this.__wbg_ptr, prepared.__wbg_ptr);
|
|
668
|
+
if (ret[2]) {
|
|
669
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
670
|
+
}
|
|
671
|
+
return takeFromExternrefTable0(ret[0]);
|
|
672
|
+
}
|
|
606
673
|
/**
|
|
607
674
|
* Sign a batch Pyth oracle update (`o`)
|
|
608
675
|
* @param {any} oracles
|
|
@@ -656,6 +723,36 @@ export class WasmSigner {
|
|
|
656
723
|
}
|
|
657
724
|
return takeFromExternrefTable0(ret[0]);
|
|
658
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* Sign builder-code recipient revocation (`rbc`)
|
|
728
|
+
* @param {string} to_pubkey
|
|
729
|
+
* @param {number | null} [nonce]
|
|
730
|
+
* @returns {any}
|
|
731
|
+
*/
|
|
732
|
+
signRevokeBuilderCode(to_pubkey, nonce) {
|
|
733
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
735
|
+
const ret = wasm.wasmsigner_signRevokeBuilderCode(this.__wbg_ptr, ptr0, len0, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
736
|
+
if (ret[2]) {
|
|
737
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
738
|
+
}
|
|
739
|
+
return takeFromExternrefTable0(ret[0]);
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Sign builder-code recipient revocation (`rbc`)
|
|
743
|
+
* @param {string} to_pubkey
|
|
744
|
+
* @param {number | null} [nonce]
|
|
745
|
+
* @returns {any}
|
|
746
|
+
*/
|
|
747
|
+
signRevokeCommissionFee(to_pubkey, nonce) {
|
|
748
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
749
|
+
const len0 = WASM_VECTOR_LEN;
|
|
750
|
+
const ret = wasm.wasmsigner_signRevokeCommissionFee(this.__wbg_ptr, ptr0, len0, !isLikeNone(nonce), isLikeNone(nonce) ? 0 : nonce);
|
|
751
|
+
if (ret[2]) {
|
|
752
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
753
|
+
}
|
|
754
|
+
return takeFromExternrefTable0(ret[0]);
|
|
755
|
+
}
|
|
659
756
|
/**
|
|
660
757
|
* Sign a margin transfer between accounts
|
|
661
758
|
*
|
|
@@ -849,6 +946,44 @@ export function prepareAll(orders, options) {
|
|
|
849
946
|
return v1;
|
|
850
947
|
}
|
|
851
948
|
|
|
949
|
+
/**
|
|
950
|
+
* Prepare builder-code recipient approval for external signing
|
|
951
|
+
* @param {string} to_pubkey
|
|
952
|
+
* @param {number} fee
|
|
953
|
+
* @param {any} options
|
|
954
|
+
* @returns {WasmPreparedMessage}
|
|
955
|
+
*/
|
|
956
|
+
export function prepareApproveBuilderCode(to_pubkey, fee, options) {
|
|
957
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
958
|
+
const len0 = WASM_VECTOR_LEN;
|
|
959
|
+
const ret = wasm.prepareApproveBuilderCode(ptr0, len0, fee, options);
|
|
960
|
+
if (ret[2]) {
|
|
961
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
962
|
+
}
|
|
963
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Prepare builder-code recipient approval for external signing
|
|
968
|
+
*
|
|
969
|
+
* @param toPubkey - Builder-code recipient public key
|
|
970
|
+
* @param fee - Maximum builder-code fee in bps
|
|
971
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
972
|
+
* @param {string} to_pubkey
|
|
973
|
+
* @param {number} fee
|
|
974
|
+
* @param {any} options
|
|
975
|
+
* @returns {WasmPreparedMessage}
|
|
976
|
+
*/
|
|
977
|
+
export function prepareApproveCommissionFee(to_pubkey, fee, options) {
|
|
978
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
979
|
+
const len0 = WASM_VECTOR_LEN;
|
|
980
|
+
const ret = wasm.prepareApproveCommissionFee(ptr0, len0, fee, options);
|
|
981
|
+
if (ret[2]) {
|
|
982
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
983
|
+
}
|
|
984
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
985
|
+
}
|
|
986
|
+
|
|
852
987
|
/**
|
|
853
988
|
* Prepare a multisig creation for external signing
|
|
854
989
|
*
|
|
@@ -1077,6 +1212,41 @@ export function prepareRenameSubAccount(subaccount, name, options) {
|
|
|
1077
1212
|
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1078
1213
|
}
|
|
1079
1214
|
|
|
1215
|
+
/**
|
|
1216
|
+
* Prepare builder-code recipient revocation for external signing
|
|
1217
|
+
* @param {string} to_pubkey
|
|
1218
|
+
* @param {any} options
|
|
1219
|
+
* @returns {WasmPreparedMessage}
|
|
1220
|
+
*/
|
|
1221
|
+
export function prepareRevokeBuilderCode(to_pubkey, options) {
|
|
1222
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1223
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1224
|
+
const ret = wasm.prepareRevokeBuilderCode(ptr0, len0, options);
|
|
1225
|
+
if (ret[2]) {
|
|
1226
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1227
|
+
}
|
|
1228
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* Prepare builder-code recipient revocation for external signing
|
|
1233
|
+
*
|
|
1234
|
+
* @param toPubkey - Builder-code recipient public key
|
|
1235
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
1236
|
+
* @param {string} to_pubkey
|
|
1237
|
+
* @param {any} options
|
|
1238
|
+
* @returns {WasmPreparedMessage}
|
|
1239
|
+
*/
|
|
1240
|
+
export function prepareRevokeCommissionFee(to_pubkey, options) {
|
|
1241
|
+
const ptr0 = passStringToWasm0(to_pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1242
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1243
|
+
const ret = wasm.prepareRevokeCommissionFee(ptr0, len0, options);
|
|
1244
|
+
if (ret[2]) {
|
|
1245
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1246
|
+
}
|
|
1247
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1080
1250
|
/**
|
|
1081
1251
|
* Prepare a margin transfer for external signing
|
|
1082
1252
|
*
|
|
@@ -1137,6 +1307,62 @@ export function prepareUpdateUserSettings(settings, options) {
|
|
|
1137
1307
|
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1138
1308
|
}
|
|
1139
1309
|
|
|
1310
|
+
/**
|
|
1311
|
+
* Prepare a portfolio withdraw for external signing
|
|
1312
|
+
*
|
|
1313
|
+
* @param amount - base-unit amount to withdraw
|
|
1314
|
+
* @param blockhash - recent Solana blockhash (base58)
|
|
1315
|
+
* @param user - user wallet pubkey (base58)
|
|
1316
|
+
* @param vault - vault pubkey (base58)
|
|
1317
|
+
* @param recipientTokenAccount - recipient token account pubkey (base58)
|
|
1318
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
1319
|
+
* @param {number} amount
|
|
1320
|
+
* @param {string} blockhash
|
|
1321
|
+
* @param {string} user
|
|
1322
|
+
* @param {string} vault
|
|
1323
|
+
* @param {string} recipient_token_account
|
|
1324
|
+
* @param {any} options
|
|
1325
|
+
* @returns {WasmPreparedMessage}
|
|
1326
|
+
*/
|
|
1327
|
+
export function prepareWithdraw(amount, blockhash, user, vault, recipient_token_account, options) {
|
|
1328
|
+
const ptr0 = passStringToWasm0(blockhash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1329
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1330
|
+
const ptr1 = passStringToWasm0(user, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1331
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1332
|
+
const ptr2 = passStringToWasm0(vault, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1333
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1334
|
+
const ptr3 = passStringToWasm0(recipient_token_account, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1335
|
+
const len3 = WASM_VECTOR_LEN;
|
|
1336
|
+
const ret = wasm.prepareWithdraw(amount, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, options);
|
|
1337
|
+
if (ret[2]) {
|
|
1338
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1339
|
+
}
|
|
1340
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Prepare a withdraw-lock recovery for external signing
|
|
1345
|
+
*
|
|
1346
|
+
* @param user - user wallet pubkey (base58)
|
|
1347
|
+
* @param hash - withdrawal lock hash (base58)
|
|
1348
|
+
* @param options - { account: string, signer?: string, nonce?: number }
|
|
1349
|
+
* @param {string} user
|
|
1350
|
+
* @param {string} hash
|
|
1351
|
+
* @param {any} options
|
|
1352
|
+
* @returns {WasmPreparedMessage}
|
|
1353
|
+
*/
|
|
1354
|
+
export function prepareWithdrawLockRecover(user, hash, options) {
|
|
1355
|
+
const ptr0 = passStringToWasm0(user, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1356
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1357
|
+
const ptr1 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1358
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1359
|
+
const ret = wasm.prepareWithdrawLockRecover(ptr0, len0, ptr1, len1, options);
|
|
1360
|
+
if (ret[2]) {
|
|
1361
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1362
|
+
}
|
|
1363
|
+
return WasmPreparedMessage.__wrap(ret[0]);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1140
1366
|
/**
|
|
1141
1367
|
* Generate a random hash (for client order IDs)
|
|
1142
1368
|
* @returns {string}
|
|
@@ -1180,11 +1406,11 @@ export function validatePubkey(s) {
|
|
|
1180
1406
|
function __wbg_get_imports() {
|
|
1181
1407
|
const import0 = {
|
|
1182
1408
|
__proto__: null,
|
|
1183
|
-
|
|
1409
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
1184
1410
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1185
1411
|
return ret;
|
|
1186
1412
|
},
|
|
1187
|
-
|
|
1413
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
1188
1414
|
const ret = Number(arg0);
|
|
1189
1415
|
return ret;
|
|
1190
1416
|
},
|
|
@@ -1195,64 +1421,64 @@ function __wbg_get_imports() {
|
|
|
1195
1421
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1196
1422
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1197
1423
|
},
|
|
1198
|
-
|
|
1424
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
1199
1425
|
const v = arg1;
|
|
1200
1426
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1201
1427
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1202
1428
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1203
1429
|
},
|
|
1204
|
-
|
|
1430
|
+
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
1205
1431
|
const v = arg0;
|
|
1206
1432
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1207
1433
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1208
1434
|
},
|
|
1209
|
-
|
|
1435
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
1210
1436
|
const ret = debugString(arg1);
|
|
1211
1437
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1212
1438
|
const len1 = WASM_VECTOR_LEN;
|
|
1213
1439
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1214
1440
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1215
1441
|
},
|
|
1216
|
-
|
|
1442
|
+
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
1217
1443
|
const ret = arg0 in arg1;
|
|
1218
1444
|
return ret;
|
|
1219
1445
|
},
|
|
1220
|
-
|
|
1446
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
1221
1447
|
const ret = typeof(arg0) === 'bigint';
|
|
1222
1448
|
return ret;
|
|
1223
1449
|
},
|
|
1224
|
-
|
|
1450
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
1225
1451
|
const ret = typeof(arg0) === 'function';
|
|
1226
1452
|
return ret;
|
|
1227
1453
|
},
|
|
1228
|
-
|
|
1454
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
1229
1455
|
const val = arg0;
|
|
1230
1456
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1231
1457
|
return ret;
|
|
1232
1458
|
},
|
|
1233
|
-
|
|
1459
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
1234
1460
|
const ret = typeof(arg0) === 'string';
|
|
1235
1461
|
return ret;
|
|
1236
1462
|
},
|
|
1237
|
-
|
|
1463
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
1238
1464
|
const ret = arg0 === undefined;
|
|
1239
1465
|
return ret;
|
|
1240
1466
|
},
|
|
1241
|
-
|
|
1467
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
1242
1468
|
const ret = arg0 === arg1;
|
|
1243
1469
|
return ret;
|
|
1244
1470
|
},
|
|
1245
|
-
|
|
1471
|
+
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
1246
1472
|
const ret = arg0 == arg1;
|
|
1247
1473
|
return ret;
|
|
1248
1474
|
},
|
|
1249
|
-
|
|
1475
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
1250
1476
|
const obj = arg1;
|
|
1251
1477
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1252
1478
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1253
1479
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1254
1480
|
},
|
|
1255
|
-
|
|
1481
|
+
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
1256
1482
|
const obj = arg1;
|
|
1257
1483
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1258
1484
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1260,14 +1486,14 @@ function __wbg_get_imports() {
|
|
|
1260
1486
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1261
1487
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1262
1488
|
},
|
|
1263
|
-
|
|
1489
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
1264
1490
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1265
1491
|
},
|
|
1266
|
-
|
|
1492
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
1267
1493
|
const ret = arg0.call(arg1);
|
|
1268
1494
|
return ret;
|
|
1269
1495
|
}, arguments); },
|
|
1270
|
-
|
|
1496
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1271
1497
|
const ret = arg0.call(arg1, arg2);
|
|
1272
1498
|
return ret;
|
|
1273
1499
|
}, arguments); },
|
|
@@ -1275,11 +1501,11 @@ function __wbg_get_imports() {
|
|
|
1275
1501
|
const ret = arg0.crypto;
|
|
1276
1502
|
return ret;
|
|
1277
1503
|
},
|
|
1278
|
-
|
|
1504
|
+
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
1279
1505
|
const ret = arg0.done;
|
|
1280
1506
|
return ret;
|
|
1281
1507
|
},
|
|
1282
|
-
|
|
1508
|
+
__wbg_entries_015dc610cd81ede0: function(arg0) {
|
|
1283
1509
|
const ret = Object.entries(arg0);
|
|
1284
1510
|
return ret;
|
|
1285
1511
|
},
|
|
@@ -1297,15 +1523,15 @@ function __wbg_get_imports() {
|
|
|
1297
1523
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1298
1524
|
arg0.getRandomValues(arg1);
|
|
1299
1525
|
}, arguments); },
|
|
1300
|
-
|
|
1301
|
-
const ret = Reflect.get(arg0, arg1);
|
|
1302
|
-
return ret;
|
|
1303
|
-
}, arguments); },
|
|
1304
|
-
__wbg_get_98fdf51d029a75eb: function(arg0, arg1) {
|
|
1526
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
1305
1527
|
const ret = arg0[arg1 >>> 0];
|
|
1306
1528
|
return ret;
|
|
1307
1529
|
},
|
|
1308
|
-
|
|
1530
|
+
__wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
|
|
1531
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1532
|
+
return ret;
|
|
1533
|
+
}, arguments); },
|
|
1534
|
+
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
1309
1535
|
const ret = arg0[arg1 >>> 0];
|
|
1310
1536
|
return ret;
|
|
1311
1537
|
},
|
|
@@ -1313,7 +1539,7 @@ function __wbg_get_imports() {
|
|
|
1313
1539
|
const ret = arg0[arg1];
|
|
1314
1540
|
return ret;
|
|
1315
1541
|
},
|
|
1316
|
-
|
|
1542
|
+
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
1317
1543
|
let result;
|
|
1318
1544
|
try {
|
|
1319
1545
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1323,7 +1549,7 @@ function __wbg_get_imports() {
|
|
|
1323
1549
|
const ret = result;
|
|
1324
1550
|
return ret;
|
|
1325
1551
|
},
|
|
1326
|
-
|
|
1552
|
+
__wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
|
|
1327
1553
|
let result;
|
|
1328
1554
|
try {
|
|
1329
1555
|
result = arg0 instanceof Map;
|
|
@@ -1333,7 +1559,7 @@ function __wbg_get_imports() {
|
|
|
1333
1559
|
const ret = result;
|
|
1334
1560
|
return ret;
|
|
1335
1561
|
},
|
|
1336
|
-
|
|
1562
|
+
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
1337
1563
|
let result;
|
|
1338
1564
|
try {
|
|
1339
1565
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1343,23 +1569,23 @@ function __wbg_get_imports() {
|
|
|
1343
1569
|
const ret = result;
|
|
1344
1570
|
return ret;
|
|
1345
1571
|
},
|
|
1346
|
-
|
|
1572
|
+
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
1347
1573
|
const ret = Array.isArray(arg0);
|
|
1348
1574
|
return ret;
|
|
1349
1575
|
},
|
|
1350
|
-
|
|
1576
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
1351
1577
|
const ret = Number.isSafeInteger(arg0);
|
|
1352
1578
|
return ret;
|
|
1353
1579
|
},
|
|
1354
|
-
|
|
1580
|
+
__wbg_iterator_6f722e4a93058b71: function() {
|
|
1355
1581
|
const ret = Symbol.iterator;
|
|
1356
1582
|
return ret;
|
|
1357
1583
|
},
|
|
1358
|
-
|
|
1584
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
1359
1585
|
const ret = arg0.length;
|
|
1360
1586
|
return ret;
|
|
1361
1587
|
},
|
|
1362
|
-
|
|
1588
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
1363
1589
|
const ret = arg0.length;
|
|
1364
1590
|
return ret;
|
|
1365
1591
|
},
|
|
@@ -1367,35 +1593,35 @@ function __wbg_get_imports() {
|
|
|
1367
1593
|
const ret = arg0.msCrypto;
|
|
1368
1594
|
return ret;
|
|
1369
1595
|
},
|
|
1370
|
-
__wbg_new_02d162bc6cf02f60: function() {
|
|
1371
|
-
const ret = new Object();
|
|
1372
|
-
return ret;
|
|
1373
|
-
},
|
|
1374
|
-
__wbg_new_070df68d66325372: function() {
|
|
1375
|
-
const ret = new Map();
|
|
1376
|
-
return ret;
|
|
1377
|
-
},
|
|
1378
1596
|
__wbg_new_227d7c05414eb861: function() {
|
|
1379
1597
|
const ret = new Error();
|
|
1380
1598
|
return ret;
|
|
1381
1599
|
},
|
|
1382
|
-
|
|
1600
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
1383
1601
|
const ret = new Array();
|
|
1384
1602
|
return ret;
|
|
1385
1603
|
},
|
|
1386
|
-
|
|
1604
|
+
__wbg_new_7796ffc7ed656783: function() {
|
|
1605
|
+
const ret = new Map();
|
|
1606
|
+
return ret;
|
|
1607
|
+
},
|
|
1608
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
1387
1609
|
const ret = new Uint8Array(arg0);
|
|
1388
1610
|
return ret;
|
|
1389
1611
|
},
|
|
1390
|
-
|
|
1612
|
+
__wbg_new_da52cf8fe3429cb2: function() {
|
|
1613
|
+
const ret = new Object();
|
|
1614
|
+
return ret;
|
|
1615
|
+
},
|
|
1616
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
1391
1617
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1392
1618
|
return ret;
|
|
1393
1619
|
},
|
|
1394
|
-
|
|
1620
|
+
__wbg_next_6dbf2c0ac8cde20f: function(arg0) {
|
|
1395
1621
|
const ret = arg0.next;
|
|
1396
1622
|
return ret;
|
|
1397
1623
|
},
|
|
1398
|
-
|
|
1624
|
+
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
1399
1625
|
const ret = arg0.next();
|
|
1400
1626
|
return ret;
|
|
1401
1627
|
}, arguments); },
|
|
@@ -1407,7 +1633,7 @@ function __wbg_get_imports() {
|
|
|
1407
1633
|
const ret = arg0.process;
|
|
1408
1634
|
return ret;
|
|
1409
1635
|
},
|
|
1410
|
-
|
|
1636
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
1411
1637
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1412
1638
|
},
|
|
1413
1639
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1417,16 +1643,16 @@ function __wbg_get_imports() {
|
|
|
1417
1643
|
const ret = module.require;
|
|
1418
1644
|
return ret;
|
|
1419
1645
|
}, arguments); },
|
|
1646
|
+
__wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
|
|
1647
|
+
const ret = arg0.set(arg1, arg2);
|
|
1648
|
+
return ret;
|
|
1649
|
+
},
|
|
1420
1650
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1421
1651
|
arg0[arg1] = arg2;
|
|
1422
1652
|
},
|
|
1423
|
-
|
|
1653
|
+
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
1424
1654
|
arg0[arg1 >>> 0] = arg2;
|
|
1425
1655
|
},
|
|
1426
|
-
__wbg_set_facb7a5914e0fa39: function(arg0, arg1, arg2) {
|
|
1427
|
-
const ret = arg0.set(arg1, arg2);
|
|
1428
|
-
return ret;
|
|
1429
|
-
},
|
|
1430
1656
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1431
1657
|
const ret = arg1.stack;
|
|
1432
1658
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1434,27 +1660,27 @@ function __wbg_get_imports() {
|
|
|
1434
1660
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1435
1661
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1436
1662
|
},
|
|
1437
|
-
|
|
1438
|
-
const ret = typeof
|
|
1663
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
1664
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1439
1665
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1440
1666
|
},
|
|
1441
|
-
|
|
1442
|
-
const ret = typeof
|
|
1667
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
1668
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1443
1669
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1444
1670
|
},
|
|
1445
|
-
|
|
1671
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
1446
1672
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1447
1673
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1448
1674
|
},
|
|
1449
|
-
|
|
1675
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
1450
1676
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1451
1677
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1452
1678
|
},
|
|
1453
|
-
|
|
1679
|
+
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
1454
1680
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1455
1681
|
return ret;
|
|
1456
1682
|
},
|
|
1457
|
-
|
|
1683
|
+
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
1458
1684
|
const ret = arg0.value;
|
|
1459
1685
|
return ret;
|
|
1460
1686
|
},
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bulk-keychain-wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "WASM bindings for BULK txn signing",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.19",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/bulk-trade/bulk-keychain"
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
"sideEffects": [
|
|
18
18
|
"./snippets/*"
|
|
19
19
|
]
|
|
20
|
-
}
|
|
20
|
+
}
|