@permissionless-technologies/upp-sdk 0.2.1 → 0.3.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/chunk-3YZSIYJC.cjs +154 -0
- package/dist/chunk-3YZSIYJC.cjs.map +1 -0
- package/dist/{chunk-43U5RGYE.cjs → chunk-4N5BH43P.cjs} +2 -2
- package/dist/{chunk-43U5RGYE.cjs.map → chunk-4N5BH43P.cjs.map} +1 -1
- package/dist/{chunk-C7QQOJ7T.cjs → chunk-52PPS4AT.cjs} +4 -22
- package/dist/chunk-52PPS4AT.cjs.map +1 -0
- package/dist/{chunk-NUIQHTSA.js → chunk-7F75NGNB.js} +76 -3
- package/dist/chunk-7F75NGNB.js.map +1 -0
- package/dist/{chunk-SGZZL5AC.js → chunk-GS4UCMW4.js} +4 -20
- package/dist/chunk-GS4UCMW4.js.map +1 -0
- package/dist/{chunk-64RTC5ML.js → chunk-IU5P5VDV.js} +2 -2
- package/dist/{chunk-64RTC5ML.js.map → chunk-IU5P5VDV.js.map} +1 -1
- package/dist/{chunk-GXZ3MTCQ.cjs → chunk-IYOR5TCO.cjs} +77 -2
- package/dist/chunk-IYOR5TCO.cjs.map +1 -0
- package/dist/{chunk-GQV47S3N.cjs → chunk-PTDVGWHU.cjs} +2 -2
- package/dist/{chunk-GQV47S3N.cjs.map → chunk-PTDVGWHU.cjs.map} +1 -1
- package/dist/{chunk-CZ23JMAQ.js → chunk-QBCLFGMV.js} +3 -3
- package/dist/{chunk-CZ23JMAQ.js.map → chunk-QBCLFGMV.js.map} +1 -1
- package/dist/{chunk-NCW4AE7L.js → chunk-UAVWYXDN.js} +2 -2
- package/dist/chunk-UAVWYXDN.js.map +1 -0
- package/dist/{chunk-46GGZ3TC.cjs → chunk-X4DLTVOG.cjs} +3 -3
- package/dist/{chunk-46GGZ3TC.cjs.map → chunk-X4DLTVOG.cjs.map} +1 -1
- package/dist/chunk-XBNYAAMU.js +140 -0
- package/dist/chunk-XBNYAAMU.js.map +1 -0
- package/dist/core/index.cjs +67 -61
- package/dist/core/index.d.cts +3 -2
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +5 -3
- package/dist/{index-BGvapsJy.d.cts → index-B45-okum.d.cts} +19 -3
- package/dist/{index-ChGaGPzP.d.ts → index-BIcvNMPt.d.ts} +19 -3
- package/dist/{index-BBzvvrhG.d.ts → index-DwAJBoU7.d.ts} +122 -96
- package/dist/{index-C-jSNw6j.d.cts → index-o-Ds3YAq.d.cts} +122 -96
- package/dist/index.cjs +123 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.d.cts +6 -5
- package/dist/indexer/index.d.ts +6 -5
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +107 -102
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +100 -95
- package/dist/react/index.js.map +1 -1
- package/dist/stark-BcTD1OaJ.d.cts +185 -0
- package/dist/stark-BcTD1OaJ.d.ts +185 -0
- package/dist/{transfer-SA4NHNJ7.cjs → transfer-6ZIVZ6JY.cjs} +9 -9
- package/dist/{transfer-SA4NHNJ7.cjs.map → transfer-6ZIVZ6JY.cjs.map} +1 -1
- package/dist/{transfer-DKZuJnRM.d.cts → transfer-BzyernBd.d.cts} +1 -3
- package/dist/{transfer-4OF2JWXX.js → transfer-CDXC3OQW.js} +3 -3
- package/dist/{transfer-4OF2JWXX.js.map → transfer-CDXC3OQW.js.map} +1 -1
- package/dist/{transfer-BlmbO-Rd.d.ts → transfer-sqS6mJko.d.ts} +1 -3
- package/dist/utils/index.cjs +54 -1
- package/dist/utils/index.d.cts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/src/deployments/31337.json +1 -1
- package/dist/chunk-C7QQOJ7T.cjs.map +0 -1
- package/dist/chunk-GXZ3MTCQ.cjs.map +0 -1
- package/dist/chunk-NCW4AE7L.js.map +0 -1
- package/dist/chunk-NUIQHTSA.js.map +0 -1
- package/dist/chunk-SGZZL5AC.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PublicClient, WalletClient, Address, Hex } from 'viem';
|
|
2
|
-
import {
|
|
2
|
+
import { q as ShieldParams, h as Note, L as TransferParams, M as MergeParams, X as WithdrawParams, E as EncryptedNote } from './transfer-BzyernBd.cjs';
|
|
3
3
|
import { M as MasterKeys, O as OneTimeKeys, b as StarkMasterKeys } from './types-CJSbxv4q.cjs';
|
|
4
4
|
import { a as M31Digest } from './keccak-m31-B_AqBbRF.cjs';
|
|
5
5
|
import { P as Point } from './merkle-mteVOlDf.cjs';
|
|
6
|
+
import './stark-BcTD1OaJ.cjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Main UPP Client
|
|
@@ -274,100 +275,6 @@ declare function generateStarkStealthAddress(keys: StarkMasterKeys, chainId?: nu
|
|
|
274
275
|
*/
|
|
275
276
|
declare function detectAddressType(address: string): 'snark' | 'stark' | 'unknown';
|
|
276
277
|
|
|
277
|
-
/**
|
|
278
|
-
* Account Adapter — Pluggable account creation
|
|
279
|
-
*
|
|
280
|
-
* Abstracts how master keys are derived/loaded.
|
|
281
|
-
* The SDK doesn't care if keys come from a wallet signature,
|
|
282
|
-
* seed phrase, hardware wallet, or external KMS.
|
|
283
|
-
*/
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Account adapter interface — pluggable key source.
|
|
287
|
-
*
|
|
288
|
-
* Implement this to bring your own key derivation:
|
|
289
|
-
* - SignatureAccountAdapter: EIP-712 wallet signature (built-in)
|
|
290
|
-
* - DirectAccountAdapter: pre-derived keys (built-in, for testing/KMS)
|
|
291
|
-
* - SeedPhraseAccountAdapter: BIP-39 seed phrase (custom)
|
|
292
|
-
* - HardwareWalletAccountAdapter: Ledger/Trezor (custom)
|
|
293
|
-
*/
|
|
294
|
-
interface IAccountAdapter {
|
|
295
|
-
/** Derive or load SNARK master keys */
|
|
296
|
-
getKeys(): Promise<MasterKeys>;
|
|
297
|
-
/** Derive or load STARK master keys (optional) */
|
|
298
|
-
getStarkKeys?(): Promise<StarkMasterKeys>;
|
|
299
|
-
/** Persist keys (adapter decides where/how) */
|
|
300
|
-
save?(): Promise<void>;
|
|
301
|
-
/** Clear persisted keys */
|
|
302
|
-
clear?(): Promise<void>;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Direct account adapter — accepts pre-derived keys.
|
|
306
|
-
*
|
|
307
|
-
* Use for testing, external KMS, or when keys are derived
|
|
308
|
-
* outside the SDK (e.g., from a seed phrase).
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```ts
|
|
312
|
-
* const adapter = new DirectAccountAdapter({
|
|
313
|
-
* spendingSecret: 12345n,
|
|
314
|
-
* ownerHash: await poseidon([12345n]),
|
|
315
|
-
* viewingSecret: 67890n,
|
|
316
|
-
* viewingHash: await poseidon([67890n]),
|
|
317
|
-
* })
|
|
318
|
-
* const keys = await adapter.getKeys()
|
|
319
|
-
* ```
|
|
320
|
-
*/
|
|
321
|
-
declare class DirectAccountAdapter implements IAccountAdapter {
|
|
322
|
-
private keys;
|
|
323
|
-
private starkKeys?;
|
|
324
|
-
constructor(keys: MasterKeys, starkKeys?: StarkMasterKeys | undefined);
|
|
325
|
-
getKeys(): Promise<MasterKeys>;
|
|
326
|
-
getStarkKeys(): Promise<StarkMasterKeys>;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* ASP Provider — Pluggable compliance layer
|
|
331
|
-
*
|
|
332
|
-
* Abstracts where ASP membership proofs come from.
|
|
333
|
-
* The pool protocol doesn't care which ASP you use —
|
|
334
|
-
* it's the operator who makes the rules.
|
|
335
|
-
*
|
|
336
|
-
* Built-in: none (ASP is optional, ragequit always available)
|
|
337
|
-
* Implementations:
|
|
338
|
-
* - RestASPProvider: fetch from ASP service API (e.g., asp-whitelist.upd.io)
|
|
339
|
-
* - LocalASPProvider: generate from local tree (via upc-sdk)
|
|
340
|
-
* - Custom: any source that can provide Merkle proofs
|
|
341
|
-
*/
|
|
342
|
-
|
|
343
|
-
interface ASPMembershipProof {
|
|
344
|
-
/** Merkle root of the ASP tree */
|
|
345
|
-
root: bigint;
|
|
346
|
-
/** Path elements (siblings) */
|
|
347
|
-
pathElements: bigint[];
|
|
348
|
-
/** Path indices (0 = left, 1 = right) */
|
|
349
|
-
pathIndices: number[];
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* ASP provider interface — pluggable compliance.
|
|
353
|
-
*
|
|
354
|
-
* Implement this to bring your own ASP:
|
|
355
|
-
* - Each operator runs their own ASP service
|
|
356
|
-
* - Users are whitelisted by the operator's rules
|
|
357
|
-
* - Proofs are fetched from the operator's service
|
|
358
|
-
*
|
|
359
|
-
* If no ASP is configured, users can always ragequit
|
|
360
|
-
* (withdraw their own deposits without ASP approval).
|
|
361
|
-
*/
|
|
362
|
-
interface IASPProvider {
|
|
363
|
-
/** ASP ID registered on-chain */
|
|
364
|
-
getASPId(): bigint;
|
|
365
|
-
/** Fetch a membership proof for an address */
|
|
366
|
-
getProof(address: Address): Promise<ASPMembershipProof | null>;
|
|
367
|
-
/** Check if an address is whitelisted (without fetching full proof) */
|
|
368
|
-
isWhitelisted(address: Address): Promise<boolean>;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
278
|
/**
|
|
372
279
|
* Indexer Types
|
|
373
280
|
*
|
|
@@ -672,6 +579,125 @@ interface NullifiedArgs {
|
|
|
672
579
|
nullifier: Hex;
|
|
673
580
|
}
|
|
674
581
|
|
|
582
|
+
/**
|
|
583
|
+
* Account Adapter — Pluggable account creation and persistence
|
|
584
|
+
*
|
|
585
|
+
* Abstracts how master keys are derived/loaded/stored.
|
|
586
|
+
* The SDK doesn't care if keys come from a wallet signature,
|
|
587
|
+
* seed phrase, hardware wallet, or external KMS.
|
|
588
|
+
*
|
|
589
|
+
* Persistence is handled via StorageAdapter (IndexedDB, localStorage, etc.)
|
|
590
|
+
*/
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Account adapter interface — pluggable key source.
|
|
594
|
+
*
|
|
595
|
+
* Implement this to bring your own key derivation:
|
|
596
|
+
* - StorableAccountAdapter: persists keys via StorageAdapter (built-in)
|
|
597
|
+
* - DirectAccountAdapter: pre-derived keys, no persistence (built-in, for testing)
|
|
598
|
+
* - Custom: seed phrase, hardware wallet, external KMS
|
|
599
|
+
*/
|
|
600
|
+
interface IAccountAdapter {
|
|
601
|
+
/** Load persisted keys (returns null if no saved account) */
|
|
602
|
+
load(): Promise<{
|
|
603
|
+
keys: MasterKeys;
|
|
604
|
+
starkKeys?: StarkMasterKeys;
|
|
605
|
+
} | null>;
|
|
606
|
+
/** Save keys to storage */
|
|
607
|
+
save(keys: MasterKeys, starkKeys?: StarkMasterKeys): Promise<void>;
|
|
608
|
+
/** Clear persisted keys */
|
|
609
|
+
clear(): Promise<void>;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Account adapter that persists keys via a pluggable StorageAdapter.
|
|
613
|
+
*
|
|
614
|
+
* Works with IndexedDB, localStorage, memory, Redis, Postgres — anything
|
|
615
|
+
* that implements StorageAdapter.
|
|
616
|
+
*
|
|
617
|
+
* @example
|
|
618
|
+
* ```ts
|
|
619
|
+
* const storage = createAutoAdapter('upp_account')
|
|
620
|
+
* const adapter = new StorableAccountAdapter(storage, ethAddress)
|
|
621
|
+
* const saved = await adapter.load()
|
|
622
|
+
* if (!saved) {
|
|
623
|
+
* const keys = await deriveKeysFromSignature(sig)
|
|
624
|
+
* await adapter.save(keys, starkKeys)
|
|
625
|
+
* }
|
|
626
|
+
* ```
|
|
627
|
+
*/
|
|
628
|
+
declare class StorableAccountAdapter implements IAccountAdapter {
|
|
629
|
+
private storage;
|
|
630
|
+
private storageKey;
|
|
631
|
+
constructor(storage: StorageAdapter, ethAddress: string);
|
|
632
|
+
load(): Promise<{
|
|
633
|
+
keys: MasterKeys;
|
|
634
|
+
starkKeys?: StarkMasterKeys;
|
|
635
|
+
} | null>;
|
|
636
|
+
save(keys: MasterKeys, starkKeys?: StarkMasterKeys): Promise<void>;
|
|
637
|
+
clear(): Promise<void>;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Direct account adapter — accepts pre-derived keys, no persistence.
|
|
641
|
+
*
|
|
642
|
+
* @example
|
|
643
|
+
* ```ts
|
|
644
|
+
* const adapter = new DirectAccountAdapter(masterKeys, starkKeys)
|
|
645
|
+
* ```
|
|
646
|
+
*/
|
|
647
|
+
declare class DirectAccountAdapter implements IAccountAdapter {
|
|
648
|
+
private keys;
|
|
649
|
+
private starkKeys?;
|
|
650
|
+
constructor(keys: MasterKeys, starkKeys?: StarkMasterKeys | undefined);
|
|
651
|
+
load(): Promise<{
|
|
652
|
+
keys: MasterKeys;
|
|
653
|
+
starkKeys: StarkMasterKeys | undefined;
|
|
654
|
+
}>;
|
|
655
|
+
save(): Promise<void>;
|
|
656
|
+
clear(): Promise<void>;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* ASP Provider — Pluggable compliance layer
|
|
661
|
+
*
|
|
662
|
+
* Abstracts where ASP membership proofs come from.
|
|
663
|
+
* The pool protocol doesn't care which ASP you use —
|
|
664
|
+
* it's the operator who makes the rules.
|
|
665
|
+
*
|
|
666
|
+
* Built-in: none (ASP is optional, ragequit always available)
|
|
667
|
+
* Implementations:
|
|
668
|
+
* - RestASPProvider: fetch from ASP service API (e.g., asp-whitelist.upd.io)
|
|
669
|
+
* - LocalASPProvider: generate from local tree (via upc-sdk)
|
|
670
|
+
* - Custom: any source that can provide Merkle proofs
|
|
671
|
+
*/
|
|
672
|
+
|
|
673
|
+
interface ASPMembershipProof {
|
|
674
|
+
/** Merkle root of the ASP tree */
|
|
675
|
+
root: bigint;
|
|
676
|
+
/** Path elements (siblings) */
|
|
677
|
+
pathElements: bigint[];
|
|
678
|
+
/** Path indices (0 = left, 1 = right) */
|
|
679
|
+
pathIndices: number[];
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* ASP provider interface — pluggable compliance.
|
|
683
|
+
*
|
|
684
|
+
* Implement this to bring your own ASP:
|
|
685
|
+
* - Each operator runs their own ASP service
|
|
686
|
+
* - Users are whitelisted by the operator's rules
|
|
687
|
+
* - Proofs are fetched from the operator's service
|
|
688
|
+
*
|
|
689
|
+
* If no ASP is configured, users can always ragequit
|
|
690
|
+
* (withdraw their own deposits without ASP approval).
|
|
691
|
+
*/
|
|
692
|
+
interface IASPProvider {
|
|
693
|
+
/** ASP ID registered on-chain */
|
|
694
|
+
getASPId(): bigint;
|
|
695
|
+
/** Fetch a membership proof for an address */
|
|
696
|
+
getProof(address: Address): Promise<ASPMembershipProof | null>;
|
|
697
|
+
/** Check if an address is whitelisted (without fetching full proof) */
|
|
698
|
+
isWhitelisted(address: Address): Promise<boolean>;
|
|
699
|
+
}
|
|
700
|
+
|
|
675
701
|
/**
|
|
676
702
|
* NoteStore — Single source of truth for note state
|
|
677
703
|
*
|
|
@@ -754,4 +780,4 @@ declare class NoteStore implements INoteStore {
|
|
|
754
780
|
private notify;
|
|
755
781
|
}
|
|
756
782
|
|
|
757
|
-
export { ADDRESS_VERSION as A,
|
|
783
|
+
export { ADDRESS_VERSION as A, decodeStealthAddress as B, type CommitmentInsertedArgs as C, DirectAccountAdapter as D, decryptNote as E, detectAddressType as F, encodeStarkStealthAddress as G, encodeStealthAddress as H, type Indexer as I, encryptNote as J, generateStarkStealthAddress as K, type LiveSyncConfig as L, generateStealthAddress as M, type NoteStatus$1 as N, isValidStarkStealthAddress as O, type ProofSystem as P, isValidStealthAddress as Q, type RpcIndexerConfig as R, type StorageAdapter as S, verifyOwnership as T, type UPPClient as U, type NoteStatus as V, type IndexedNote as a, type NoteFilters as b, type SyncResult as c, type SyncProgress as d, type SyncConfig as e, type IndexerState as f, type SyncState as g, type SerializedNote as h, type StealthTransactArgs as i, type NullifiedArgs as j, type ASPMembershipProof as k, type IASPProvider as l, type IAccountAdapter as m, type INoteStore as n, NoteStore as o, STARK_ADDRESS_VERSION as p, STARK_STEALTH_ADDRESS_PREFIX as q, STEALTH_ADDRESS_PREFIX as r, type ShieldedNote as s, StorableAccountAdapter as t, type UPPClientConfig as u, computeNoteEncryptionKey as v, createNote as w, createOneTimeKeys as x, createUPPClient as y, decodeStarkStealthAddress as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk52PPS4AT_cjs = require('./chunk-52PPS4AT.cjs');
|
|
4
|
+
var chunkX4DLTVOG_cjs = require('./chunk-X4DLTVOG.cjs');
|
|
5
|
+
var chunk4N5BH43P_cjs = require('./chunk-4N5BH43P.cjs');
|
|
6
6
|
var chunkZKZV6OI3_cjs = require('./chunk-ZKZV6OI3.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkIYOR5TCO_cjs = require('./chunk-IYOR5TCO.cjs');
|
|
8
8
|
var chunkNDM5EJEV_cjs = require('./chunk-NDM5EJEV.cjs');
|
|
9
9
|
require('./chunk-ERQE57IA.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-PTDVGWHU.cjs');
|
|
11
11
|
var chunkTSF6HEVS_cjs = require('./chunk-TSF6HEVS.cjs');
|
|
12
|
+
var chunk3YZSIYJC_cjs = require('./chunk-3YZSIYJC.cjs');
|
|
12
13
|
var chunkEUP7MBAH_cjs = require('./chunk-EUP7MBAH.cjs');
|
|
13
14
|
var chunkBH24DZ5S_cjs = require('./chunk-BH24DZ5S.cjs');
|
|
14
15
|
var chunk3HQ7A6ZM_cjs = require('./chunk-3HQ7A6ZM.cjs');
|
|
@@ -3109,85 +3110,77 @@ var TEST_STABLE_TOKEN_2_ABI = [
|
|
|
3109
3110
|
}
|
|
3110
3111
|
];
|
|
3111
3112
|
|
|
3112
|
-
Object.defineProperty(exports, "DirectAccountAdapter", {
|
|
3113
|
-
enumerable: true,
|
|
3114
|
-
get: function () { return chunkC7QQOJ7T_cjs.DirectAccountAdapter; }
|
|
3115
|
-
});
|
|
3116
3113
|
Object.defineProperty(exports, "NOTE_VERSION", {
|
|
3117
3114
|
enumerable: true,
|
|
3118
|
-
get: function () { return
|
|
3119
|
-
});
|
|
3120
|
-
Object.defineProperty(exports, "STARK_AMOUNT_SCALE", {
|
|
3121
|
-
enumerable: true,
|
|
3122
|
-
get: function () { return chunkC7QQOJ7T_cjs.STARK_AMOUNT_SCALE; }
|
|
3115
|
+
get: function () { return chunk52PPS4AT_cjs.NOTE_VERSION; }
|
|
3123
3116
|
});
|
|
3124
3117
|
Object.defineProperty(exports, "createNote", {
|
|
3125
3118
|
enumerable: true,
|
|
3126
|
-
get: function () { return
|
|
3119
|
+
get: function () { return chunk52PPS4AT_cjs.createNote; }
|
|
3127
3120
|
});
|
|
3128
3121
|
Object.defineProperty(exports, "createUPPClient", {
|
|
3129
3122
|
enumerable: true,
|
|
3130
|
-
get: function () { return
|
|
3123
|
+
get: function () { return chunk52PPS4AT_cjs.createUPPClient; }
|
|
3131
3124
|
});
|
|
3132
3125
|
Object.defineProperty(exports, "decryptNote", {
|
|
3133
3126
|
enumerable: true,
|
|
3134
|
-
get: function () { return
|
|
3127
|
+
get: function () { return chunk52PPS4AT_cjs.decryptNote; }
|
|
3135
3128
|
});
|
|
3136
3129
|
Object.defineProperty(exports, "encryptNote", {
|
|
3137
3130
|
enumerable: true,
|
|
3138
|
-
get: function () { return
|
|
3131
|
+
get: function () { return chunk52PPS4AT_cjs.encryptNote; }
|
|
3139
3132
|
});
|
|
3140
3133
|
Object.defineProperty(exports, "buildTransfer", {
|
|
3141
3134
|
enumerable: true,
|
|
3142
|
-
get: function () { return
|
|
3135
|
+
get: function () { return chunkX4DLTVOG_cjs.buildTransfer; }
|
|
3143
3136
|
});
|
|
3144
3137
|
Object.defineProperty(exports, "buildUPPTransferCircuitInputs", {
|
|
3145
3138
|
enumerable: true,
|
|
3146
|
-
get: function () { return
|
|
3139
|
+
get: function () { return chunkX4DLTVOG_cjs.buildUPPTransferCircuitInputs; }
|
|
3147
3140
|
});
|
|
3148
3141
|
Object.defineProperty(exports, "computeNullifier", {
|
|
3149
3142
|
enumerable: true,
|
|
3150
|
-
get: function () { return
|
|
3143
|
+
get: function () { return chunkX4DLTVOG_cjs.computeNullifier; }
|
|
3151
3144
|
});
|
|
3152
3145
|
Object.defineProperty(exports, "formatOutputForContract", {
|
|
3153
3146
|
enumerable: true,
|
|
3154
|
-
get: function () { return
|
|
3147
|
+
get: function () { return chunkX4DLTVOG_cjs.formatOutputForContract; }
|
|
3155
3148
|
});
|
|
3156
3149
|
Object.defineProperty(exports, "getDeployment", {
|
|
3157
3150
|
enumerable: true,
|
|
3158
|
-
get: function () { return
|
|
3151
|
+
get: function () { return chunkX4DLTVOG_cjs.getDeployment; }
|
|
3159
3152
|
});
|
|
3160
3153
|
Object.defineProperty(exports, "getDeploymentOrThrow", {
|
|
3161
3154
|
enumerable: true,
|
|
3162
|
-
get: function () { return
|
|
3155
|
+
get: function () { return chunkX4DLTVOG_cjs.getDeploymentOrThrow; }
|
|
3163
3156
|
});
|
|
3164
3157
|
Object.defineProperty(exports, "getMerkleProofsForNotes", {
|
|
3165
3158
|
enumerable: true,
|
|
3166
|
-
get: function () { return
|
|
3159
|
+
get: function () { return chunkX4DLTVOG_cjs.getMerkleProofsForNotes; }
|
|
3167
3160
|
});
|
|
3168
3161
|
Object.defineProperty(exports, "getSupportedChainIds", {
|
|
3169
3162
|
enumerable: true,
|
|
3170
|
-
get: function () { return
|
|
3163
|
+
get: function () { return chunkX4DLTVOG_cjs.getSupportedChainIds; }
|
|
3171
3164
|
});
|
|
3172
3165
|
Object.defineProperty(exports, "getTokenAddress", {
|
|
3173
3166
|
enumerable: true,
|
|
3174
|
-
get: function () { return
|
|
3167
|
+
get: function () { return chunkX4DLTVOG_cjs.getTokenAddress; }
|
|
3175
3168
|
});
|
|
3176
3169
|
Object.defineProperty(exports, "hasDeployment", {
|
|
3177
3170
|
enumerable: true,
|
|
3178
|
-
get: function () { return
|
|
3171
|
+
get: function () { return chunkX4DLTVOG_cjs.hasDeployment; }
|
|
3179
3172
|
});
|
|
3180
3173
|
Object.defineProperty(exports, "registerDeployment", {
|
|
3181
3174
|
enumerable: true,
|
|
3182
|
-
get: function () { return
|
|
3175
|
+
get: function () { return chunkX4DLTVOG_cjs.registerDeployment; }
|
|
3183
3176
|
});
|
|
3184
3177
|
Object.defineProperty(exports, "syncMerkleTree", {
|
|
3185
3178
|
enumerable: true,
|
|
3186
|
-
get: function () { return
|
|
3179
|
+
get: function () { return chunkX4DLTVOG_cjs.syncMerkleTree; }
|
|
3187
3180
|
});
|
|
3188
3181
|
Object.defineProperty(exports, "makeRpcIndexer", {
|
|
3189
3182
|
enumerable: true,
|
|
3190
|
-
get: function () { return
|
|
3183
|
+
get: function () { return chunk4N5BH43P_cjs.makeRpcIndexer; }
|
|
3191
3184
|
});
|
|
3192
3185
|
Object.defineProperty(exports, "DEFAULT_KEY_DERIVATION_CONFIG", {
|
|
3193
3186
|
enumerable: true,
|
|
@@ -3247,159 +3240,167 @@ Object.defineProperty(exports, "verifyKeysMatchSignature", {
|
|
|
3247
3240
|
});
|
|
3248
3241
|
Object.defineProperty(exports, "ADDRESS_VERSION", {
|
|
3249
3242
|
enumerable: true,
|
|
3250
|
-
get: function () { return
|
|
3243
|
+
get: function () { return chunkIYOR5TCO_cjs.ADDRESS_VERSION; }
|
|
3244
|
+
});
|
|
3245
|
+
Object.defineProperty(exports, "DirectAccountAdapter", {
|
|
3246
|
+
enumerable: true,
|
|
3247
|
+
get: function () { return chunkIYOR5TCO_cjs.DirectAccountAdapter; }
|
|
3251
3248
|
});
|
|
3252
3249
|
Object.defineProperty(exports, "NoteStore", {
|
|
3253
3250
|
enumerable: true,
|
|
3254
|
-
get: function () { return
|
|
3251
|
+
get: function () { return chunkIYOR5TCO_cjs.NoteStore; }
|
|
3255
3252
|
});
|
|
3256
3253
|
Object.defineProperty(exports, "RATE_PRECISION", {
|
|
3257
3254
|
enumerable: true,
|
|
3258
|
-
get: function () { return
|
|
3255
|
+
get: function () { return chunkIYOR5TCO_cjs.RATE_PRECISION; }
|
|
3259
3256
|
});
|
|
3260
3257
|
Object.defineProperty(exports, "STARK_ADDRESS_VERSION", {
|
|
3261
3258
|
enumerable: true,
|
|
3262
|
-
get: function () { return
|
|
3259
|
+
get: function () { return chunkIYOR5TCO_cjs.STARK_ADDRESS_VERSION; }
|
|
3263
3260
|
});
|
|
3264
3261
|
Object.defineProperty(exports, "STARK_STEALTH_ADDRESS_PREFIX", {
|
|
3265
3262
|
enumerable: true,
|
|
3266
|
-
get: function () { return
|
|
3263
|
+
get: function () { return chunkIYOR5TCO_cjs.STARK_STEALTH_ADDRESS_PREFIX; }
|
|
3267
3264
|
});
|
|
3268
3265
|
Object.defineProperty(exports, "STEALTH_ADDRESS_PREFIX", {
|
|
3269
3266
|
enumerable: true,
|
|
3270
|
-
get: function () { return
|
|
3267
|
+
get: function () { return chunkIYOR5TCO_cjs.STEALTH_ADDRESS_PREFIX; }
|
|
3271
3268
|
});
|
|
3272
3269
|
Object.defineProperty(exports, "SWAP_EVENTS_ABI", {
|
|
3273
3270
|
enumerable: true,
|
|
3274
|
-
get: function () { return
|
|
3271
|
+
get: function () { return chunkIYOR5TCO_cjs.SWAP_EVENTS_ABI; }
|
|
3275
3272
|
});
|
|
3276
3273
|
Object.defineProperty(exports, "SWAP_ORDER_CANCELLED_EVENT", {
|
|
3277
3274
|
enumerable: true,
|
|
3278
|
-
get: function () { return
|
|
3275
|
+
get: function () { return chunkIYOR5TCO_cjs.SWAP_ORDER_CANCELLED_EVENT; }
|
|
3279
3276
|
});
|
|
3280
3277
|
Object.defineProperty(exports, "SWAP_ORDER_CLAIMED_EVENT", {
|
|
3281
3278
|
enumerable: true,
|
|
3282
|
-
get: function () { return
|
|
3279
|
+
get: function () { return chunkIYOR5TCO_cjs.SWAP_ORDER_CLAIMED_EVENT; }
|
|
3283
3280
|
});
|
|
3284
3281
|
Object.defineProperty(exports, "SWAP_ORDER_FILLED_EVENT", {
|
|
3285
3282
|
enumerable: true,
|
|
3286
|
-
get: function () { return
|
|
3283
|
+
get: function () { return chunkIYOR5TCO_cjs.SWAP_ORDER_FILLED_EVENT; }
|
|
3287
3284
|
});
|
|
3288
3285
|
Object.defineProperty(exports, "SWAP_ORDER_PLACED_EVENT", {
|
|
3289
3286
|
enumerable: true,
|
|
3290
|
-
get: function () { return
|
|
3287
|
+
get: function () { return chunkIYOR5TCO_cjs.SWAP_ORDER_PLACED_EVENT; }
|
|
3288
|
+
});
|
|
3289
|
+
Object.defineProperty(exports, "StorableAccountAdapter", {
|
|
3290
|
+
enumerable: true,
|
|
3291
|
+
get: function () { return chunkIYOR5TCO_cjs.StorableAccountAdapter; }
|
|
3291
3292
|
});
|
|
3292
3293
|
Object.defineProperty(exports, "computeCancelKeyHash", {
|
|
3293
3294
|
enumerable: true,
|
|
3294
|
-
get: function () { return
|
|
3295
|
+
get: function () { return chunkIYOR5TCO_cjs.computeCancelKeyHash; }
|
|
3295
3296
|
});
|
|
3296
3297
|
Object.defineProperty(exports, "computeFillPercentage", {
|
|
3297
3298
|
enumerable: true,
|
|
3298
|
-
get: function () { return
|
|
3299
|
+
get: function () { return chunkIYOR5TCO_cjs.computeFillPercentage; }
|
|
3299
3300
|
});
|
|
3300
3301
|
Object.defineProperty(exports, "computeGiveAmount", {
|
|
3301
3302
|
enumerable: true,
|
|
3302
|
-
get: function () { return
|
|
3303
|
+
get: function () { return chunkIYOR5TCO_cjs.computeGiveAmount; }
|
|
3303
3304
|
});
|
|
3304
3305
|
Object.defineProperty(exports, "computeNoteEncryptionKey", {
|
|
3305
3306
|
enumerable: true,
|
|
3306
|
-
get: function () { return
|
|
3307
|
+
get: function () { return chunkIYOR5TCO_cjs.computeNoteEncryptionKey; }
|
|
3307
3308
|
});
|
|
3308
3309
|
Object.defineProperty(exports, "computeRate", {
|
|
3309
3310
|
enumerable: true,
|
|
3310
|
-
get: function () { return
|
|
3311
|
+
get: function () { return chunkIYOR5TCO_cjs.computeRate; }
|
|
3311
3312
|
});
|
|
3312
3313
|
Object.defineProperty(exports, "computeTakeAmount", {
|
|
3313
3314
|
enumerable: true,
|
|
3314
|
-
get: function () { return
|
|
3315
|
+
get: function () { return chunkIYOR5TCO_cjs.computeTakeAmount; }
|
|
3315
3316
|
});
|
|
3316
3317
|
Object.defineProperty(exports, "computeTotalBuyAmount", {
|
|
3317
3318
|
enumerable: true,
|
|
3318
|
-
get: function () { return
|
|
3319
|
+
get: function () { return chunkIYOR5TCO_cjs.computeTotalBuyAmount; }
|
|
3319
3320
|
});
|
|
3320
3321
|
Object.defineProperty(exports, "createOneTimeKeys", {
|
|
3321
3322
|
enumerable: true,
|
|
3322
|
-
get: function () { return
|
|
3323
|
+
get: function () { return chunkIYOR5TCO_cjs.createOneTimeKeys; }
|
|
3323
3324
|
});
|
|
3324
3325
|
Object.defineProperty(exports, "decodeStarkStealthAddress", {
|
|
3325
3326
|
enumerable: true,
|
|
3326
|
-
get: function () { return
|
|
3327
|
+
get: function () { return chunkIYOR5TCO_cjs.decodeStarkStealthAddress; }
|
|
3327
3328
|
});
|
|
3328
3329
|
Object.defineProperty(exports, "decodeStealthAddress", {
|
|
3329
3330
|
enumerable: true,
|
|
3330
|
-
get: function () { return
|
|
3331
|
+
get: function () { return chunkIYOR5TCO_cjs.decodeStealthAddress; }
|
|
3331
3332
|
});
|
|
3332
3333
|
Object.defineProperty(exports, "detectAddressType", {
|
|
3333
3334
|
enumerable: true,
|
|
3334
|
-
get: function () { return
|
|
3335
|
+
get: function () { return chunkIYOR5TCO_cjs.detectAddressType; }
|
|
3335
3336
|
});
|
|
3336
3337
|
Object.defineProperty(exports, "encodeStarkStealthAddress", {
|
|
3337
3338
|
enumerable: true,
|
|
3338
|
-
get: function () { return
|
|
3339
|
+
get: function () { return chunkIYOR5TCO_cjs.encodeStarkStealthAddress; }
|
|
3339
3340
|
});
|
|
3340
3341
|
Object.defineProperty(exports, "encodeStealthAddress", {
|
|
3341
3342
|
enumerable: true,
|
|
3342
|
-
get: function () { return
|
|
3343
|
+
get: function () { return chunkIYOR5TCO_cjs.encodeStealthAddress; }
|
|
3343
3344
|
});
|
|
3344
3345
|
Object.defineProperty(exports, "filterOrdersByASP", {
|
|
3345
3346
|
enumerable: true,
|
|
3346
|
-
get: function () { return
|
|
3347
|
+
get: function () { return chunkIYOR5TCO_cjs.filterOrdersByASP; }
|
|
3347
3348
|
});
|
|
3348
3349
|
Object.defineProperty(exports, "filterOrdersByTokenPair", {
|
|
3349
3350
|
enumerable: true,
|
|
3350
|
-
get: function () { return
|
|
3351
|
+
get: function () { return chunkIYOR5TCO_cjs.filterOrdersByTokenPair; }
|
|
3351
3352
|
});
|
|
3352
3353
|
Object.defineProperty(exports, "formatRate", {
|
|
3353
3354
|
enumerable: true,
|
|
3354
|
-
get: function () { return
|
|
3355
|
+
get: function () { return chunkIYOR5TCO_cjs.formatRate; }
|
|
3355
3356
|
});
|
|
3356
3357
|
Object.defineProperty(exports, "generateCancelSecret", {
|
|
3357
3358
|
enumerable: true,
|
|
3358
|
-
get: function () { return
|
|
3359
|
+
get: function () { return chunkIYOR5TCO_cjs.generateCancelSecret; }
|
|
3359
3360
|
});
|
|
3360
3361
|
Object.defineProperty(exports, "generateStarkStealthAddress", {
|
|
3361
3362
|
enumerable: true,
|
|
3362
|
-
get: function () { return
|
|
3363
|
+
get: function () { return chunkIYOR5TCO_cjs.generateStarkStealthAddress; }
|
|
3363
3364
|
});
|
|
3364
3365
|
Object.defineProperty(exports, "generateStealthAddress", {
|
|
3365
3366
|
enumerable: true,
|
|
3366
|
-
get: function () { return
|
|
3367
|
+
get: function () { return chunkIYOR5TCO_cjs.generateStealthAddress; }
|
|
3367
3368
|
});
|
|
3368
3369
|
Object.defineProperty(exports, "getCancelSecret", {
|
|
3369
3370
|
enumerable: true,
|
|
3370
|
-
get: function () { return
|
|
3371
|
+
get: function () { return chunkIYOR5TCO_cjs.getCancelSecret; }
|
|
3371
3372
|
});
|
|
3372
3373
|
Object.defineProperty(exports, "getOwnOrderIds", {
|
|
3373
3374
|
enumerable: true,
|
|
3374
|
-
get: function () { return
|
|
3375
|
+
get: function () { return chunkIYOR5TCO_cjs.getOwnOrderIds; }
|
|
3375
3376
|
});
|
|
3376
3377
|
Object.defineProperty(exports, "isFillerASPAccepted", {
|
|
3377
3378
|
enumerable: true,
|
|
3378
|
-
get: function () { return
|
|
3379
|
+
get: function () { return chunkIYOR5TCO_cjs.isFillerASPAccepted; }
|
|
3379
3380
|
});
|
|
3380
3381
|
Object.defineProperty(exports, "isOrderActive", {
|
|
3381
3382
|
enumerable: true,
|
|
3382
|
-
get: function () { return
|
|
3383
|
+
get: function () { return chunkIYOR5TCO_cjs.isOrderActive; }
|
|
3383
3384
|
});
|
|
3384
3385
|
Object.defineProperty(exports, "isValidStarkStealthAddress", {
|
|
3385
3386
|
enumerable: true,
|
|
3386
|
-
get: function () { return
|
|
3387
|
+
get: function () { return chunkIYOR5TCO_cjs.isValidStarkStealthAddress; }
|
|
3387
3388
|
});
|
|
3388
3389
|
Object.defineProperty(exports, "isValidStealthAddress", {
|
|
3389
3390
|
enumerable: true,
|
|
3390
|
-
get: function () { return
|
|
3391
|
+
get: function () { return chunkIYOR5TCO_cjs.isValidStealthAddress; }
|
|
3391
3392
|
});
|
|
3392
3393
|
Object.defineProperty(exports, "removeCancelSecret", {
|
|
3393
3394
|
enumerable: true,
|
|
3394
|
-
get: function () { return
|
|
3395
|
+
get: function () { return chunkIYOR5TCO_cjs.removeCancelSecret; }
|
|
3395
3396
|
});
|
|
3396
3397
|
Object.defineProperty(exports, "storeCancelSecret", {
|
|
3397
3398
|
enumerable: true,
|
|
3398
|
-
get: function () { return
|
|
3399
|
+
get: function () { return chunkIYOR5TCO_cjs.storeCancelSecret; }
|
|
3399
3400
|
});
|
|
3400
3401
|
Object.defineProperty(exports, "verifyOwnership", {
|
|
3401
3402
|
enumerable: true,
|
|
3402
|
-
get: function () { return
|
|
3403
|
+
get: function () { return chunkIYOR5TCO_cjs.verifyOwnership; }
|
|
3403
3404
|
});
|
|
3404
3405
|
Object.defineProperty(exports, "DEMO_ASP_ID", {
|
|
3405
3406
|
enumerable: true,
|
|
@@ -3489,6 +3490,58 @@ Object.defineProperty(exports, "tupleToPoint", {
|
|
|
3489
3490
|
enumerable: true,
|
|
3490
3491
|
get: function () { return chunkTSF6HEVS_cjs.tupleToPoint; }
|
|
3491
3492
|
});
|
|
3493
|
+
Object.defineProperty(exports, "STARK_AMOUNT_SCALE", {
|
|
3494
|
+
enumerable: true,
|
|
3495
|
+
get: function () { return chunk3YZSIYJC_cjs.STARK_AMOUNT_SCALE; }
|
|
3496
|
+
});
|
|
3497
|
+
Object.defineProperty(exports, "STARK_ASP_TREE_DEPTH", {
|
|
3498
|
+
enumerable: true,
|
|
3499
|
+
get: function () { return chunk3YZSIYJC_cjs.STARK_ASP_TREE_DEPTH; }
|
|
3500
|
+
});
|
|
3501
|
+
Object.defineProperty(exports, "STARK_STATE_TREE_DEPTH", {
|
|
3502
|
+
enumerable: true,
|
|
3503
|
+
get: function () { return chunk3YZSIYJC_cjs.STARK_STATE_TREE_DEPTH; }
|
|
3504
|
+
});
|
|
3505
|
+
Object.defineProperty(exports, "addressToM31", {
|
|
3506
|
+
enumerable: true,
|
|
3507
|
+
get: function () { return chunk3YZSIYJC_cjs.addressToM31; }
|
|
3508
|
+
});
|
|
3509
|
+
Object.defineProperty(exports, "buildStarkTransferWitness", {
|
|
3510
|
+
enumerable: true,
|
|
3511
|
+
get: function () { return chunk3YZSIYJC_cjs.buildStarkTransferWitness; }
|
|
3512
|
+
});
|
|
3513
|
+
Object.defineProperty(exports, "buildStarkWithdrawWitness", {
|
|
3514
|
+
enumerable: true,
|
|
3515
|
+
get: function () { return chunk3YZSIYJC_cjs.buildStarkWithdrawWitness; }
|
|
3516
|
+
});
|
|
3517
|
+
Object.defineProperty(exports, "computeTransferPublicInputsSeed", {
|
|
3518
|
+
enumerable: true,
|
|
3519
|
+
get: function () { return chunk3YZSIYJC_cjs.computeTransferPublicInputsSeed; }
|
|
3520
|
+
});
|
|
3521
|
+
Object.defineProperty(exports, "computeWithdrawPublicInputsSeed", {
|
|
3522
|
+
enumerable: true,
|
|
3523
|
+
get: function () { return chunk3YZSIYJC_cjs.computeWithdrawPublicInputsSeed; }
|
|
3524
|
+
});
|
|
3525
|
+
Object.defineProperty(exports, "isStarkAligned", {
|
|
3526
|
+
enumerable: true,
|
|
3527
|
+
get: function () { return chunk3YZSIYJC_cjs.isStarkAligned; }
|
|
3528
|
+
});
|
|
3529
|
+
Object.defineProperty(exports, "packM31Digest", {
|
|
3530
|
+
enumerable: true,
|
|
3531
|
+
get: function () { return chunk3YZSIYJC_cjs.packM31Digest; }
|
|
3532
|
+
});
|
|
3533
|
+
Object.defineProperty(exports, "scaleAmountForStark", {
|
|
3534
|
+
enumerable: true,
|
|
3535
|
+
get: function () { return chunk3YZSIYJC_cjs.scaleAmountForStark; }
|
|
3536
|
+
});
|
|
3537
|
+
Object.defineProperty(exports, "splitSecretToM31Limbs", {
|
|
3538
|
+
enumerable: true,
|
|
3539
|
+
get: function () { return chunk3YZSIYJC_cjs.splitSecretToM31Limbs; }
|
|
3540
|
+
});
|
|
3541
|
+
Object.defineProperty(exports, "truncateToM31", {
|
|
3542
|
+
enumerable: true,
|
|
3543
|
+
get: function () { return chunk3YZSIYJC_cjs.truncateToM31; }
|
|
3544
|
+
});
|
|
3492
3545
|
Object.defineProperty(exports, "MAX_TREE_DEPTH", {
|
|
3493
3546
|
enumerable: true,
|
|
3494
3547
|
get: function () { return chunkEUP7MBAH_cjs.MAX_TREE_DEPTH; }
|