@cloak.dev/sdk 0.2.6-staging.f92dd96 → 0.2.7
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/CHANGELOG.md +65 -3
- package/README.md +108 -7
- package/dist/index.cjs +211 -83
- package/dist/index.d.cts +146 -19
- package/dist/index.d.ts +146 -19
- package/dist/index.js +209 -83
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3589,18 +3589,43 @@ interface TransactOptions {
|
|
|
3589
3589
|
*/
|
|
3590
3590
|
relayAuthBatch?: RelayBatchAuthItemHandle;
|
|
3591
3591
|
/**
|
|
3592
|
-
*
|
|
3592
|
+
* Partner (affiliate) code attached to fee-bearing relay requests (SDK-001).
|
|
3593
3593
|
*
|
|
3594
|
-
*
|
|
3595
|
-
*
|
|
3596
|
-
* (
|
|
3597
|
-
*
|
|
3594
|
+
* Normalised once at the flow boundary (trimmed, lower-cased; see {@link normalizeAffiliateCode}),
|
|
3595
|
+
* then sent as `affiliate_code` and signed inside the relay request, only when it is valid
|
|
3596
|
+
* (`^[a-z0-9_]{3,24}$`) AND the request is fee-bearing: a withdrawal / send to a public address
|
|
3597
|
+
* (`externalAmount < 0` with a recipient) or a swap intake. Deposits, shield-to-shield sends and
|
|
3598
|
+
* the internal merge steps of `partialWithdraw` never carry it, whatever is passed here. A code
|
|
3599
|
+
* that is still invalid after normalising is left out and reported through {@link onWarning};
|
|
3600
|
+
* it never fails the withdrawal or swap. Omitted, every request is byte-identical to one built
|
|
3598
3601
|
* without this option (INV-007). Requires a relay that accepts `affiliate_code`.
|
|
3599
3602
|
*
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
3603
|
+
* `partialWithdraw`, `fullWithdraw`, `swapUtxo`, `swapWithChange` and `transactBatch` all pass it
|
|
3604
|
+
* down: in a batch one code applies to every fee-bearing item (a per-item `options.affiliateCode`
|
|
3605
|
+
* overrides it).
|
|
3606
|
+
*
|
|
3607
|
+
* @internal For Cloak's own web and mobile apps (spec SDK-001, NG-02, NG-10). Not part of the
|
|
3608
|
+
* public API, not documented, and may change without notice.
|
|
3602
3609
|
*/
|
|
3603
3610
|
affiliateCode?: string;
|
|
3611
|
+
/**
|
|
3612
|
+
* Called with a human-readable message when the SDK adjusts or drops something instead of
|
|
3613
|
+
* failing: today, an `affiliateCode` or `relayClientId` that is not valid. Optional; the flow
|
|
3614
|
+
* behaves the same without it.
|
|
3615
|
+
*/
|
|
3616
|
+
onWarning?: (message: string) => void;
|
|
3617
|
+
/**
|
|
3618
|
+
* Identifies a non-browser client to the relay by sending `X-Cloak-Client: <value>` with
|
|
3619
|
+
* `/transact` and `/transact_swap`. The relay only counts affiliate events from an allowed
|
|
3620
|
+
* browser Origin or from a client id of the exact form `cloak-mobile/(ios|android)/N.N.N`, so
|
|
3621
|
+
* Cloak's own mobile app sets this, e.g. `"cloak-mobile/ios/1.4.0"`. A malformed value is left
|
|
3622
|
+
* out and reported through {@link onWarning}; it never fails the request (INV-006). Browser
|
|
3623
|
+
* callers should leave it unset: a non-safelisted header turns every submission into a CORS
|
|
3624
|
+
* preflight. Wins over a `relayHeaders` entry of the same name.
|
|
3625
|
+
*
|
|
3626
|
+
* @internal For Cloak's own mobile app (spec REL-016, NG-02). Not part of the public API.
|
|
3627
|
+
*/
|
|
3628
|
+
relayClientId?: string;
|
|
3604
3629
|
/**
|
|
3605
3630
|
* Extra HTTP headers sent with this flow's relay submissions (`POST /transact` and
|
|
3606
3631
|
* `POST /transact_swap`), e.g. `{ "X-Cloak-Client": "cloak-mobile/ios/1.4.0" }` (SDK-004).
|
|
@@ -3792,7 +3817,7 @@ interface SubmitTransactToRelayArgs {
|
|
|
3792
3817
|
* builds its own request must `await preflightNullifiers(inputUtxos, connection, programId)` first.
|
|
3793
3818
|
*/
|
|
3794
3819
|
declare function submitTransactToRelay(args: SubmitTransactToRelayArgs): Promise<RelaySubmissionResult>;
|
|
3795
|
-
declare function transact(params: TransactParams,
|
|
3820
|
+
declare function transact(params: TransactParams, rawOptions: TransactOptions): Promise<TransactResult>;
|
|
3796
3821
|
/**
|
|
3797
3822
|
* Execute a shield-to-shield transfer
|
|
3798
3823
|
*
|
|
@@ -3808,7 +3833,7 @@ declare function transact(params: TransactParams, options: TransactOptions): Pro
|
|
|
3808
3833
|
* @param amount Amount to transfer
|
|
3809
3834
|
* @param options Transaction options, including the mandatory `ownerUtxoKeypair`
|
|
3810
3835
|
*/
|
|
3811
|
-
declare function transfer(inputUtxos: Utxo[], recipientPubkey: bigint, amount: bigint,
|
|
3836
|
+
declare function transfer(inputUtxos: Utxo[], recipientPubkey: bigint, amount: bigint, rawOptions: SpendOptions): Promise<TransactResult>;
|
|
3812
3837
|
/**
|
|
3813
3838
|
* Execute a partial withdrawal
|
|
3814
3839
|
*
|
|
@@ -3823,7 +3848,7 @@ declare function transfer(inputUtxos: Utxo[], recipientPubkey: bigint, amount: b
|
|
|
3823
3848
|
* @param withdrawAmount Amount to withdraw
|
|
3824
3849
|
* @param options Transaction options, including the mandatory `ownerUtxoKeypair`
|
|
3825
3850
|
*/
|
|
3826
|
-
declare function partialWithdraw(inputUtxos: Utxo[], recipient: Address, withdrawAmount: bigint,
|
|
3851
|
+
declare function partialWithdraw(inputUtxos: Utxo[], recipient: Address, withdrawAmount: bigint, rawOptions: SpendOptions): Promise<TransactResult>;
|
|
3827
3852
|
/**
|
|
3828
3853
|
* Execute a full withdrawal
|
|
3829
3854
|
*
|
|
@@ -3894,7 +3919,7 @@ interface UtxoSwapResult extends TransactResult {
|
|
|
3894
3919
|
* @param options Transaction options
|
|
3895
3920
|
* @returns UtxoSwapResult with SwapState PDA for executing the swap
|
|
3896
3921
|
*/
|
|
3897
|
-
declare function swapUtxo(params: UtxoSwapParams,
|
|
3922
|
+
declare function swapUtxo(params: UtxoSwapParams, rawOptions: SpendOptions): Promise<UtxoSwapResult>;
|
|
3898
3923
|
/**
|
|
3899
3924
|
* Execute a swap with change
|
|
3900
3925
|
*
|
|
@@ -3907,7 +3932,7 @@ declare function swapUtxo(params: UtxoSwapParams, options: SpendOptions): Promis
|
|
|
3907
3932
|
* @param minOutputAmount Minimum output (slippage protection)
|
|
3908
3933
|
* @param options Transaction options
|
|
3909
3934
|
*/
|
|
3910
|
-
declare function swapWithChange(inputUtxos: Utxo[], swapAmount: bigint, outputMint: Address, recipientAta: Address, minOutputAmount: bigint,
|
|
3935
|
+
declare function swapWithChange(inputUtxos: Utxo[], swapAmount: bigint, outputMint: Address, recipientAta: Address, minOutputAmount: bigint, rawOptions: SpendOptions, recipientWallet?: Address): Promise<UtxoSwapResult>;
|
|
3911
3936
|
|
|
3912
3937
|
/**
|
|
3913
3938
|
* Circuit artifact loading and integrity verification.
|
|
@@ -4206,6 +4231,21 @@ declare function cleanupStalePendingOperations(maxAgeMs?: number): {
|
|
|
4206
4231
|
removedWithdrawals: number;
|
|
4207
4232
|
};
|
|
4208
4233
|
|
|
4234
|
+
/**
|
|
4235
|
+
* Normalise a partner code the way the relay expects it: trimmed and lower-cased. Returns `null`
|
|
4236
|
+
* when the result is still not a valid code (or the input is not a string), so apps can validate a
|
|
4237
|
+
* field before they ever call the SDK.
|
|
4238
|
+
*
|
|
4239
|
+
* @internal For Cloak's own web and mobile apps (spec NG-10). Not part of the public API.
|
|
4240
|
+
*/
|
|
4241
|
+
declare function normalizeAffiliateCode(raw: unknown): string | null;
|
|
4242
|
+
/**
|
|
4243
|
+
* Whether `value` is a well-formed `X-Cloak-Client` value, e.g. `cloak-mobile/ios/1.4.0`.
|
|
4244
|
+
*
|
|
4245
|
+
* @internal For Cloak's own mobile app (spec REL-016). Not part of the public API.
|
|
4246
|
+
*/
|
|
4247
|
+
declare function isValidRelayClientId(value: unknown): value is string;
|
|
4248
|
+
|
|
4209
4249
|
interface TransactBatchItem {
|
|
4210
4250
|
params: TransactParams;
|
|
4211
4251
|
/** Per-item overrides (recipient viewing key, chain-note salt, expected mint, ...). */
|
|
@@ -4230,7 +4270,14 @@ interface TransactBatchResult {
|
|
|
4230
4270
|
/** Wallet approvals raised: 1 for the batch, plus 1 per wave of stale-root re-proves. */
|
|
4231
4271
|
approvals: number;
|
|
4232
4272
|
}
|
|
4233
|
-
|
|
4273
|
+
/**
|
|
4274
|
+
* Partner code semantics: `options.affiliateCode` (and `relayClientId`) apply to every item, and
|
|
4275
|
+
* each item decides for itself whether it is fee-bearing. A withdrawal with a recipient carries the
|
|
4276
|
+
* code; a shield-to-shield send, a deposit or a consolidation step charges no variable fee and
|
|
4277
|
+
* never does. An item may set its own `options.affiliateCode` to override the batch's. The code is
|
|
4278
|
+
* normalised, and an invalid one reported through `onWarning`, once for the whole batch.
|
|
4279
|
+
*/
|
|
4280
|
+
declare function transactBatch(items: readonly TransactBatchItem[], rawOptions: TransactBatchOptions): Promise<TransactBatchResult>;
|
|
4234
4281
|
|
|
4235
4282
|
/**
|
|
4236
4283
|
* Recipient-addressed delivery envelope (CLKD1).
|
|
@@ -5232,6 +5279,28 @@ interface NoteIndexPage {
|
|
|
5232
5279
|
rawItems: Uint8Array[];
|
|
5233
5280
|
/** Items of unknown kinds, skipped by `body_len`. */
|
|
5234
5281
|
skippedUnknown: number;
|
|
5282
|
+
/**
|
|
5283
|
+
* Position in the page (0-based, unknown and malformed kinds counted) of each entry of `items`,
|
|
5284
|
+
* so `page * NOTE_INDEX_PAGE_SIZE + itemPositions[i]` is the item's real sequence number.
|
|
5285
|
+
*/
|
|
5286
|
+
itemPositions: number[];
|
|
5287
|
+
/**
|
|
5288
|
+
* Known-kind items whose body failed that kind's checks and were skipped by `body_len`. Always 0
|
|
5289
|
+
* unless {@link ParseNoteIndexPageOptions.skipMalformedItems} is set (otherwise they throw).
|
|
5290
|
+
*/
|
|
5291
|
+
skippedMalformed: number;
|
|
5292
|
+
}
|
|
5293
|
+
/** Options of {@link parseNoteIndexPage}. */
|
|
5294
|
+
interface ParseNoteIndexPageOptions {
|
|
5295
|
+
/**
|
|
5296
|
+
* Skip (and count in `skippedMalformed`) a known-kind item whose body fails that kind's checks,
|
|
5297
|
+
* instead of refusing the whole page. Only the BODY is forgiven: the page header, the item
|
|
5298
|
+
* framing (`kind | body_len` inside the page, no truncation, no trailing bytes) and the hash
|
|
5299
|
+
* chain stay strict, so a skipped item is exactly a hidden item, which an untrusted relay can
|
|
5300
|
+
* already do. `recoverNotesFromIndex` sets it, so that one bad entry cannot abort every
|
|
5301
|
+
* wallet's restore.
|
|
5302
|
+
*/
|
|
5303
|
+
skipMalformedItems?: boolean;
|
|
5235
5304
|
}
|
|
5236
5305
|
/** Input to {@link encodeNoteIndexPage}. */
|
|
5237
5306
|
interface EncodeNoteIndexPageParams {
|
|
@@ -5249,11 +5318,15 @@ interface EncodeNoteIndexPageParams {
|
|
|
5249
5318
|
* other than `expect`, an item whose body_len differs from the exact length of its kind, a note
|
|
5250
5319
|
* whose version disagrees with its length, an out-of-range ix_tag / note_source, a refund whose mint
|
|
5251
5320
|
* is not WSOL, an unknown kind longer than 1024 bytes, a truncated item, or trailing bytes.
|
|
5321
|
+
*
|
|
5322
|
+
* With `options.skipMalformedItems`, an item whose body alone is at fault (its framing inside the
|
|
5323
|
+
* page is intact) is skipped and counted in `skippedMalformed` instead; everything else above
|
|
5324
|
+
* still throws.
|
|
5252
5325
|
*/
|
|
5253
5326
|
declare function parseNoteIndexPage(bytes: Uint8Array, expect?: {
|
|
5254
5327
|
epoch: bigint;
|
|
5255
5328
|
page: number;
|
|
5256
|
-
}): NoteIndexPage;
|
|
5329
|
+
}, options?: ParseNoteIndexPageOptions): NoteIndexPage;
|
|
5257
5330
|
/**
|
|
5258
5331
|
* Parse ONE raw item (`kind | body_len | body`), as kept in `NoteIndexPage.rawItems` and in a
|
|
5259
5332
|
* persisted cursor. Same strictness as the page parser; unknown kinds are an error here.
|
|
@@ -5302,6 +5375,25 @@ declare function encodeNoteIndexPage(params: EncodeNoteIndexPageParams): Uint8Ar
|
|
|
5302
5375
|
* A HIDDEN nullifier makes a spent note look unspent; the spend-time `preflightNullifiers` in every
|
|
5303
5376
|
* spend entry point is what catches that, and it stays mandatory.
|
|
5304
5377
|
*
|
|
5378
|
+
* What is NOT checked: the proof-bound `chainNoteHash`. An index item does not carry it (nor the
|
|
5379
|
+
* `extDataHash` its preimage needs), and fetching either per transaction would break the one-RPC
|
|
5380
|
+
* budget. It is not needed for (a) to (c): the chain note is AES-GCM under a key HKDF'd from nk
|
|
5381
|
+
* with the item's own `comm0` as salt (`comm1` for a v2 note), so a note written for one
|
|
5382
|
+
* transaction never opens when the relay attaches it to another (a mispaired CLK1 carrier), for its
|
|
5383
|
+
* real owner or anyone else, and whatever does open (a note crafted for the transaction it sits
|
|
5384
|
+
* on, say under a public legacy key) is still held to (b) and (c). The item's other public fields (`publicAmount`,
|
|
5385
|
+
* the nullifiers) feed only derivations whose result must reproduce a published commitment, so a
|
|
5386
|
+
* wrong value there can only make a note fail to match. The cost of a mispairing is therefore
|
|
5387
|
+
* hidden notes (the memo's real owner's, and the paired source's own), never a wrong note, and no
|
|
5388
|
+
* client-side check can recover them: only the relay can pair correctly.
|
|
5389
|
+
*
|
|
5390
|
+
* ── One bad entry never aborts a run ──────────────────────────────────────────────────────────
|
|
5391
|
+
* The index carries what anyone can put on chain, and a legacy viewing key may be public, so a
|
|
5392
|
+
* stranger can write a note that opens for a wallet. An item whose body is malformed (framing
|
|
5393
|
+
* intact), or whose opened contents make a matcher throw, is skipped and counted in
|
|
5394
|
+
* `stats.skipped`, exactly as if it were not this wallet's. Only page-level faults (header,
|
|
5395
|
+
* framing, hash chain, head) still fail the run, since they are not one entry's.
|
|
5396
|
+
*
|
|
5305
5397
|
* ── The cursor never depends on what the wallet owns (contract property 1) ────────────────────
|
|
5306
5398
|
* Every run downloads from the persisted cursor page, so that page must be a function of public
|
|
5307
5399
|
* data only. It is always `floor(complete_pages / 8) * 8` of the head this run saw (or the previous
|
|
@@ -5320,6 +5412,16 @@ declare function encodeNoteIndexPage(params: EncodeNoteIndexPageParams): Uint8Ar
|
|
|
5320
5412
|
* returned in `atRisk`, never in `notes`, so an app can migrate them without counting them as
|
|
5321
5413
|
* balance.
|
|
5322
5414
|
*
|
|
5415
|
+
* Some older clients also encrypted their chain notes under a viewing key that is not the wallet's
|
|
5416
|
+
* canonical nk (mobile used SHA-512 of the public wallet address, or the embedded wallet's nsk).
|
|
5417
|
+
* Pass those as `legacyViewingKeyNks` to find such notes in the same download, at no extra request:
|
|
5418
|
+
* every item is trial-opened under the canonical nk first, then under each legacy key. A legacy key
|
|
5419
|
+
* only ever FINDS notes. Everything that opened only under one is returned in `atRisk`, whatever
|
|
5420
|
+
* its owner key (a legacy key may be public, so the relay and anyone else can read those notes), it
|
|
5421
|
+
* never opens a recipient delivery (the delivery rail never used one), and nothing a legacy key opens
|
|
5422
|
+
* can enter `notes`. A note of this wallet's that spends a legacy note and is encrypted under the
|
|
5423
|
+
* canonical nk (a migration) is matched normally and lands in `notes`.
|
|
5424
|
+
*
|
|
5323
5425
|
* ── Refund leaves ─────────────────────────────────────────────────────────────────────────────
|
|
5324
5426
|
* CloseSwapState appends R_fb to the WSOL MAIN tree (`["merkle_tree", WSOL]`; the separate refund
|
|
5325
5427
|
* tree belonged to the retired ClaimRefund design and the program rejects it). So SWAP_REFUND
|
|
@@ -5338,7 +5440,10 @@ interface IndexedRecoveredNote {
|
|
|
5338
5440
|
utxo: Utxo;
|
|
5339
5441
|
/** Base58 signature the relay attached. Metadata only, NOT proof of payment. */
|
|
5340
5442
|
signature: string;
|
|
5341
|
-
/**
|
|
5443
|
+
/**
|
|
5444
|
+
* `true` for every `atRisk` note (owner key derivable from nk, or found through a legacy viewing
|
|
5445
|
+
* key), `false` for `notes`.
|
|
5446
|
+
*/
|
|
5342
5447
|
legacyExposed: boolean;
|
|
5343
5448
|
}
|
|
5344
5449
|
/**
|
|
@@ -5405,6 +5510,13 @@ interface RecoverNotesFromIndexParams {
|
|
|
5405
5510
|
poolMints: Address[];
|
|
5406
5511
|
/** The wallet's 32-byte viewing base. */
|
|
5407
5512
|
viewingKeyNk: Uint8Array;
|
|
5513
|
+
/**
|
|
5514
|
+
* Other 32-byte viewing keys older clients of this wallet encrypted chain notes under (at most
|
|
5515
|
+
* 8). Scan only: every note found through one is returned in `atRisk`, never in `notes`, and a
|
|
5516
|
+
* legacy key never opens a recipient delivery. Costs local trial decryptions, no extra request.
|
|
5517
|
+
* Entries equal to `viewingKeyNk` are ignored.
|
|
5518
|
+
*/
|
|
5519
|
+
legacyViewingKeyNks?: Uint8Array[];
|
|
5408
5520
|
/** The wallet's long-lived UTXO keypair, with its real private key. */
|
|
5409
5521
|
ownerUtxoKeypair: UtxoKeypair;
|
|
5410
5522
|
/** The `cursor` of the previous run. Omit for a full sync. */
|
|
@@ -5447,13 +5559,28 @@ interface NoteIndexRecoveryStats {
|
|
|
5447
5559
|
conflicts: number;
|
|
5448
5560
|
/** Pending candidates over the carry limit, not carried to the next run. */
|
|
5449
5561
|
pendingDropped: number;
|
|
5562
|
+
/**
|
|
5563
|
+
* Index entries skipped instead of failing the run (each one is treated as not this wallet's):
|
|
5564
|
+
* an item whose body fails its kind's format checks while its framing in the page is intact, and
|
|
5565
|
+
* an item that opened under this wallet's keys but whose contents no derivation accepts (a chain
|
|
5566
|
+
* note salt of 0 or over 96 bits, or anything else that throws while it is matched). Anyone who
|
|
5567
|
+
* can read a legacy viewing key can write such a note, so none of this may abort a restore.
|
|
5568
|
+
*/
|
|
5569
|
+
skipped: number;
|
|
5450
5570
|
}
|
|
5451
5571
|
interface RecoverNotesFromIndexResult {
|
|
5452
5572
|
/** Verified, unspent, owned by `ownerUtxoKeypair`; deduped by (mint, leaf). */
|
|
5453
5573
|
notes: IndexedRecoveredNote[];
|
|
5454
|
-
/**
|
|
5574
|
+
/**
|
|
5575
|
+
* Verified, unspent, and either owned by an nk-derived legacy key (spendable by nk holders) or
|
|
5576
|
+
* found only through a `legacyViewingKeyNks` entry (readable by whoever holds that key). Migrate.
|
|
5577
|
+
*/
|
|
5455
5578
|
atRisk: IndexedRecoveredNote[];
|
|
5456
|
-
/**
|
|
5579
|
+
/**
|
|
5580
|
+
* Candidates not verifiable yet (tree or root not caught up). Carried in the cursor. It depends on
|
|
5581
|
+
* what this wallet owns (a relay can make it non-zero for the owner of one item), so never let it
|
|
5582
|
+
* decide whether or what to download: gate polls on the public head (epoch, watermark) alone.
|
|
5583
|
+
*/
|
|
5457
5584
|
pending: number;
|
|
5458
5585
|
/** Persist and pass back as `cursor`. */
|
|
5459
5586
|
cursor: NoteIndexCursor;
|
|
@@ -6335,8 +6462,8 @@ declare function withShieldRetries<T>(attempt: (attemptNo: number) => Promise<T>
|
|
|
6335
6462
|
* @packageDocumentation
|
|
6336
6463
|
*/
|
|
6337
6464
|
|
|
6338
|
-
declare const VERSION = "0.2.
|
|
6465
|
+
declare const VERSION = "0.2.7";
|
|
6339
6466
|
/** True when scanner supports TransactSwap (tag 1). Check this to verify the correct SDK bundle is loaded. */
|
|
6340
6467
|
declare const SCANNER_SUPPORTS_TRANSACT_SWAP = true;
|
|
6341
6468
|
|
|
6342
|
-
export { BRIDGE_ESCROW_LABEL, BRIDGE_ESCROW_LABEL_V2, BUILD_ALLOWS_LOCAL_ENDPOINTS, type BridgeDeliveryState, type BridgeDeposit, type BridgeDepositState, type BridgeQuoteAssessment, type BridgeQuoteInput, type BridgeRail, type BridgeRailAttestation, type BridgeRailProblem, type BridgeRailQuoteOption, type BridgeRailQuoteRequest, type BridgeRailQuoteResponse, type BridgeRailStatusResult, type BuildRecipientDeliveryNotesParams, CHAIN_NOTE_SALT_BITS, CLEANUP_FEE_BUDGET, CLOAK_PRODUCTION_RELAY_URL, CLOAK_PROGRAM_ID, type ChainNoteTxType, type CircuitVerificationResult, type CleanupResult, type CloakConfig, CloakError, type CloakKeyPair, type CloakNote, type CloakRpc, type CommitmentEntry, type CommitmentsResponse, type CompactChainNote, type ComplianceReport, type ComplianceTxType, type ConfirmSettlementParams, type CreateRecoverableDepositUtxoParams, DEFAULT_CIRCUITS_URL, DEFAULT_TRANSACTION_CIRCUITS_URL, DELIVERY_MEMO_TAG, DELIVERY_REGISTRY_SEED, type DeliveredNote, DepositError, type DepositInstructionParams, type DepositNoteSecrets, type DepositOptions, type DepositOutcome, type DepositRef, type DepositResult, type DepositStatus, type DiscoverOptions, type DiscoverSwapRefundsOptions, type DiscoveredSwapRefund, DoNotRetry, ECONOMIC_MINIMUM, EXPECTED_CIRCUIT_HASHES, type EncodeNoteIndexPageParams, type EncryptedMetadataBundle, type EncryptedNote$1 as EncryptedNote, type ErrorCategory, type ExpandedSpendKey, type ExternalFeePayerAdapter, FEE_BUDGET, FIXED_FEE_LAMPORTS, type FundingPlan, type Groth16Proof, type IndexedRecoveredNote, type IndexedRecoveredNoteKind, InsecureRandomnessError, LAMPORTS_PER_SOL, type LegacyWalletAdapter, type WalletSigner as LegacyWalletSigner, LocalStorageAdapter, type LogLevel, type Logger, type LookupTable, MAINNET_RENT_0, MAINNET_RENT_1, MAX_RECEIVER_INDEX, MERKLE_TREE_HEIGHT, MIN_DEPOSIT_LAMPORTS, MIN_DEPOSIT_SPL_BASE_UNITS, type MasterKey, type MatchChangeNoteParams, type MatchDepositNoteParams, type MatchSwapRefundLeafParams, type MaxLengthArray, MemoryStorageAdapter, type MerkleProof, type MerkleRootResponse, MerkleTree, type MessageSigner, NATIVE_SOL_MINT, NOTE_INDEX_NO_LEAF, NOTE_INDEX_PAGE_SIZE, type Network, type NoteData, type NoteIndexCursor, type NoteIndexDeliveryItem, type NoteIndexFetchOptions, NoteIndexFormatError, type NoteIndexHead, NoteIndexHeadBehindError, type NoteIndexItem, type NoteIndexPage, type NoteIndexRecoveryStats, type NoteIndexSwapRefundItem, type NoteIndexTxItem, ONECLICK_PUBKEY_B58, type OnchainMerkleProof, type ParsedDeliveryCarrier, type PaymasterTopUpExpectation, type PaymasterTopUpResult, type PendingDeposit, type PendingWithdrawal, type PostFailureVerdict, RECIPIENT_DELIVERY_CIPHERTEXT_LEN, RECIPIENT_DELIVERY_EPHEMERAL_PK_LEN, RECIPIENT_DELIVERY_NONCE_LEN, RECIPIENT_DELIVERY_NOTE_BYTES, RECIPIENT_DELIVERY_PLAINTEXT_LEN, RECIPIENT_DELIVERY_TAG_LEN, RELAY_BATCH_AUTH_MAX_ITEMS, RELAY_ORIGIN_ALLOWLIST, REQUEST_AUTH_BATCH_DOMAIN, REQUEST_AUTH_BATCH_MAX_AGE_SECONDS, REQUEST_AUTH_MAX_AGE_SECONDS, REQUEST_AUTH_MAX_FUTURE_SKEW_SECONDS, type RecipientDeliveryNote, type RecoverNotesFromIndexParams, type RecoverNotesFromIndexResult, type RecoveredChangeNote, type RecoveredChangeNoteRecord, type RecoveredDepositNote, type RecoveredDepositNoteRecord, type RecoveredSwapRefund, type RelayAuthMode, type RelayAuthPreimage, type RelayAuthSigner, RelayBatchAuthCoordinator, type RelayBatchAuthCoordinatorOptions, type RelayBatchAuthEnvelope, type RelayBatchAuthFields, type RelayBatchAuthItemHandle, RelayInternalError, RelayService, type RelaySubmissionResult, type RentRates, type RetryHooks, type RiskQuoteInstructionResponse, RootNotFoundError, SCANNER_SUPPORTS_TRANSACT_SWAP, SIGN_IN_MESSAGE, SanctionsQuoteError, type ScanOptions, type ScanRecipientDeliveryOptions, type ScanResult, type ScanSummary, type ScannedTransaction, type SettlementConnection, type SettlementContext, type SettlementStatus, type SettlementVerdict, SettlementVerificationError, ShieldPoolErrors, type ShieldPoolPDAs, SimpleWallet, type SpendKey, type SpendOptions, type StorageAdapter, type SubmitTransactToRelayArgs, type SwapOptions, type SwapParams, type SwapRefundAuthorization, type SwapResult, TERMINAL_FAILURE, TRANSACTION_CIRCUITS_VERSION, TRANSACT_AUTH_FIELDS, TRANSACT_SWAP_AUTH_FIELDS, type TransactBatchItem, type TransactBatchItemOutcome, type TransactBatchOptions, type TransactBatchResult, type TransactOptions, type TransactParams, type TransactRequestBodyParams, type TransactResult, TransactionConfirmationError, type TransactionMetadata, type Transfer, type TransferOptions, type TransferResult, type TxStatus, type UserFriendlyError, type Utxo, UtxoAlreadySpentError, type EncryptedNote as UtxoEncryptedNote, type UtxoKeypair, type UtxoSwapParams, type UtxoSwapResult, UtxoWallet, VARIABLE_FEE_DENOMINATOR, VARIABLE_FEE_NUMERATOR, VARIABLE_FEE_RATE, VERSION, type VerifyUtxosResult, type ViewKey, type ViewingKeyPair, WITHDRAW_FEE_BPS, WITHDRAW_FIXED_FEE, type WalletAdapterBridgeOptions, type WalletSigner$1 as WalletSigner, type WalletUtxo, type Web3Module, type WithdrawOptions, type WithdrawSubmissionResult, accountMeta, addressBytes, addressFromBytes, addressFromPublicKey, assertDirectSubmissionLanded, assertInputMints, assertTransactionCircuitIntegrity, assessBridgeQuote, bigintToBytes32$1 as bigintToBytes32, bigintToHex, buildAuthTransactionMessage, buildMerkleTree, buildMerkleTreeFromChain, buildMerkleTreeFromRelay, buildRecipientDeliveryNotes, buildRelayAuthPreimage, buildRelayBatchAuthMessage, buildTransactRequestBody, buildTransactionMessage, bytesToHex, calculateFee, calculateFeeBigint, calculateRelayFee, canRebuildMerkleTreeFromChain, canonicalJson, canonicalPayloadString, chainNoteFromBase64, chainNoteToBase64, classifyPostFailure, classifyRelayError, cleanupReceivingAddress, cleanupStalePendingOperations, clearPendingDeposits, clearPendingWithdrawals, cloakBridgeRail, computeChainNoteHash, computeExtDataHash, computeMerkleRoot, computeNoteIndexChain, computeProofForLatestDeposit, computeProofFromChain, computeSignature, computeSwapRefundCommitment, computeCommitment as computeUtxoCommitment, computeNullifier as computeUtxoNullifier, confirmSignature, confirmTransactSettlement, copyNoteToClipboard, createCloakError, createCloakRpc, createDepositInstruction, createLogger, createRecoverableChangeUtxo, createRecoverableDepositUtxo, createRelayBatchAuthCoordinator, createUtxo, createZeroUtxo, decryptCompactChainNote, decryptComplianceMetadataWithMasterKey, decryptTransactionMetadata, depositFromDerivedKey, deriveBridgeReceiver, deriveChangeNoteBlinding, deriveDepositNoteBlinding, deriveDiversifiedViewingKey, deriveDiversifier, deriveFundingTargets, deriveInputNullifierPdas, deriveLegacyBridgeReceiver, deriveLegacyDepositNoteSecrets, deriveLegacySwapRefundAuthorization, derivePublicKey, deriveSpendKey, deriveSwapRefundAuthorization, deriveSwapRefundBlinding, deriveUserCompliancePublicKey, deriveUserComplianceScalar, deriveUtxoKeypairFromSpendKey, deriveViewKey, deriveViewingKeyFromNk, deriveViewingKeyFromSpendKey, deriveViewingKeyFromUtxoPrivateKey, deserializeUtxo, detectNetworkFromRpcUrl, discoverSwapRefunds, downloadNote, encodeDeliveryCarrierMemo, encodeNoteIndexItem, encodeNoteIndexPage, encodeNoteSimple, encodeRecipientDeliveryNote, encryptCompactChainNote, encryptNoteForRecipient, encryptTransactionMetadata, encryptTransactionMetadataBundle, expandSpendKey, explainRelayAuthRejection, exportKeys, exportNote, exportWalletKeys, fetchAccountBytes, fetchCommitments, fetchLatestBlockhash, fetchLookupTables, fetchNoteIndexHead, fetchNoteIndexPage, fetchRiskQuoteInstruction, fetchRiskQuoteIx, fetchSignaturesForAddress, filterNotesByNetwork, filterWithdrawableNotes, findNoteByCommitment, findProgramAddress, formatAmount, formatComplianceCsv, formatErrorForLogging, formatSol, fullWithdraw, fundReceiverViaPaymaster, generateCloakKeys, generateCommitmentAsync, generateMasterSeed, generateNoteFromWallet, generateUtxoKeypair, generateViewingKeyPair, getAddressExplorerUrl, getChainNoteRegistryPDA, getCircuitsPath, getDeliveryRegistryPDA, getDistributableAmount, getExplorerUrl, getNkFromUtxoPrivateKey, getNullifierPDA, getPendingOperationsSummary, getPoolAuthorityConfigPDA, getPublicKey, getPublicViewKey, getRecipientAmount, getRpcUrlForNetwork, getShieldPoolPDAs, getSwapStatePDA, getViewKey, hasPendingOperations, hexToBigint$1 as hexToBigint, hexToBytes, importKeys, importWalletKeys, isBrowser, isBrowserLike, isDebugEnabled, isMessageSigner, isPlausibleSignature, isReactNative, isRootNotFoundError, isSubmissionOutcomeUnknownResponse, isTerminalFailure, isValidHex, isValidRpcUrl, isValidSolanaAddress, isWithdrawAmountSufficient, isWithdrawable, listBridgeDeposits, loadPendingDeposits, loadPendingWithdrawals, loadVerifiedCircuitArtifacts, matchChangeNote, matchDepositNote, matchSwapRefundLeaf, mayRetry, messageSignerFromCallback, openRecipientDeliveryNote, parseAmount, parseDeliveryCarrierMemo, parseError, parseNote, parseNoteIndexItem, parseNoteIndexPage, parseRelayErrorResponse, parseRelayErrorSignature, parseTransactionError, partialWithdraw, partiallySignTransaction, poseidonHash, preflightCheck, preflightNullifiers, prepareEncryptedOutput, prepareEncryptedOutputForRecipient, programInstruction, proofToBytes, pubkeyToFieldElement, pubkeyToLimbs, randomBytes, randomChangeNoteSalt, randomDepositNoteSalt, randomFieldElement, readMerkleTreeState, readRent, recipientDeliveryNoteToBase64, recoverNotesFromIndex, registerViewingKey, relayRequestDigestHex, removePendingDeposit, removePendingWithdrawal, renderAssessment, resolveCircuitsBase, retryDelayMs, savePendingDeposit, savePendingWithdrawal, scanNotesForWallet, scanRecipientDeliveryNotes, scanTransactions, sdkLogger, selectUtxos, sendInstructions, sendRawTransaction, sendTransaction, serializeAuthTransactionMessage, serializeNote, serializeUtxo, setCircuitsPath, setDebugMode, signCompiledTransaction, signMessageBytes, signRelayAuthPayload, signTransaction, signerFromKeypair, signerFromSecretKey, signerFromWalletAdapter, splitTo2Limbs, submitTransactToRelay, sumUtxoAmounts, swapUtxo, swapWithChange, toAddress, toComplianceReport, transact, transactBatch, transactionBase64, transactionBytes, transactionFromBytes, transactionWireSize, transfer, truncate, tryDecryptNote, updateNoteWithDeposit, updatePendingDeposit, updatePendingWithdrawal, bigintToBytes32 as utxoBigintToBytes32, utxoEquals, hexToBigint as utxoHexToBigint, validateDepositParams, validateNote, validateOutputsSum, validatePaymasterTopUpTransaction, validateRoot, validateTransfers, validateWalletConnected, validateWithdrawableNote, verifyAllCircuits, verifyCircuitIntegrity, verifyQuoteSignature, verifyUtxos, waitForRoot, withShieldRetries, withTiming, withdrawFeeFor };
|
|
6469
|
+
export { BRIDGE_ESCROW_LABEL, BRIDGE_ESCROW_LABEL_V2, BUILD_ALLOWS_LOCAL_ENDPOINTS, type BridgeDeliveryState, type BridgeDeposit, type BridgeDepositState, type BridgeQuoteAssessment, type BridgeQuoteInput, type BridgeRail, type BridgeRailAttestation, type BridgeRailProblem, type BridgeRailQuoteOption, type BridgeRailQuoteRequest, type BridgeRailQuoteResponse, type BridgeRailStatusResult, type BuildRecipientDeliveryNotesParams, CHAIN_NOTE_SALT_BITS, CLEANUP_FEE_BUDGET, CLOAK_PRODUCTION_RELAY_URL, CLOAK_PROGRAM_ID, type ChainNoteTxType, type CircuitVerificationResult, type CleanupResult, type CloakConfig, CloakError, type CloakKeyPair, type CloakNote, type CloakRpc, type CommitmentEntry, type CommitmentsResponse, type CompactChainNote, type ComplianceReport, type ComplianceTxType, type ConfirmSettlementParams, type CreateRecoverableDepositUtxoParams, DEFAULT_CIRCUITS_URL, DEFAULT_TRANSACTION_CIRCUITS_URL, DELIVERY_MEMO_TAG, DELIVERY_REGISTRY_SEED, type DeliveredNote, DepositError, type DepositInstructionParams, type DepositNoteSecrets, type DepositOptions, type DepositOutcome, type DepositRef, type DepositResult, type DepositStatus, type DiscoverOptions, type DiscoverSwapRefundsOptions, type DiscoveredSwapRefund, DoNotRetry, ECONOMIC_MINIMUM, EXPECTED_CIRCUIT_HASHES, type EncodeNoteIndexPageParams, type EncryptedMetadataBundle, type EncryptedNote$1 as EncryptedNote, type ErrorCategory, type ExpandedSpendKey, type ExternalFeePayerAdapter, FEE_BUDGET, FIXED_FEE_LAMPORTS, type FundingPlan, type Groth16Proof, type IndexedRecoveredNote, type IndexedRecoveredNoteKind, InsecureRandomnessError, LAMPORTS_PER_SOL, type LegacyWalletAdapter, type WalletSigner as LegacyWalletSigner, LocalStorageAdapter, type LogLevel, type Logger, type LookupTable, MAINNET_RENT_0, MAINNET_RENT_1, MAX_RECEIVER_INDEX, MERKLE_TREE_HEIGHT, MIN_DEPOSIT_LAMPORTS, MIN_DEPOSIT_SPL_BASE_UNITS, type MasterKey, type MatchChangeNoteParams, type MatchDepositNoteParams, type MatchSwapRefundLeafParams, type MaxLengthArray, MemoryStorageAdapter, type MerkleProof, type MerkleRootResponse, MerkleTree, type MessageSigner, NATIVE_SOL_MINT, NOTE_INDEX_NO_LEAF, NOTE_INDEX_PAGE_SIZE, type Network, type NoteData, type NoteIndexCursor, type NoteIndexDeliveryItem, type NoteIndexFetchOptions, NoteIndexFormatError, type NoteIndexHead, NoteIndexHeadBehindError, type NoteIndexItem, type NoteIndexPage, type NoteIndexRecoveryStats, type NoteIndexSwapRefundItem, type NoteIndexTxItem, ONECLICK_PUBKEY_B58, type OnchainMerkleProof, type ParseNoteIndexPageOptions, type ParsedDeliveryCarrier, type PaymasterTopUpExpectation, type PaymasterTopUpResult, type PendingDeposit, type PendingWithdrawal, type PostFailureVerdict, RECIPIENT_DELIVERY_CIPHERTEXT_LEN, RECIPIENT_DELIVERY_EPHEMERAL_PK_LEN, RECIPIENT_DELIVERY_NONCE_LEN, RECIPIENT_DELIVERY_NOTE_BYTES, RECIPIENT_DELIVERY_PLAINTEXT_LEN, RECIPIENT_DELIVERY_TAG_LEN, RELAY_BATCH_AUTH_MAX_ITEMS, RELAY_ORIGIN_ALLOWLIST, REQUEST_AUTH_BATCH_DOMAIN, REQUEST_AUTH_BATCH_MAX_AGE_SECONDS, REQUEST_AUTH_MAX_AGE_SECONDS, REQUEST_AUTH_MAX_FUTURE_SKEW_SECONDS, type RecipientDeliveryNote, type RecoverNotesFromIndexParams, type RecoverNotesFromIndexResult, type RecoveredChangeNote, type RecoveredChangeNoteRecord, type RecoveredDepositNote, type RecoveredDepositNoteRecord, type RecoveredSwapRefund, type RelayAuthMode, type RelayAuthPreimage, type RelayAuthSigner, RelayBatchAuthCoordinator, type RelayBatchAuthCoordinatorOptions, type RelayBatchAuthEnvelope, type RelayBatchAuthFields, type RelayBatchAuthItemHandle, RelayInternalError, RelayService, type RelaySubmissionResult, type RentRates, type RetryHooks, type RiskQuoteInstructionResponse, RootNotFoundError, SCANNER_SUPPORTS_TRANSACT_SWAP, SIGN_IN_MESSAGE, SanctionsQuoteError, type ScanOptions, type ScanRecipientDeliveryOptions, type ScanResult, type ScanSummary, type ScannedTransaction, type SettlementConnection, type SettlementContext, type SettlementStatus, type SettlementVerdict, SettlementVerificationError, ShieldPoolErrors, type ShieldPoolPDAs, SimpleWallet, type SpendKey, type SpendOptions, type StorageAdapter, type SubmitTransactToRelayArgs, type SwapOptions, type SwapParams, type SwapRefundAuthorization, type SwapResult, TERMINAL_FAILURE, TRANSACTION_CIRCUITS_VERSION, TRANSACT_AUTH_FIELDS, TRANSACT_SWAP_AUTH_FIELDS, type TransactBatchItem, type TransactBatchItemOutcome, type TransactBatchOptions, type TransactBatchResult, type TransactOptions, type TransactParams, type TransactRequestBodyParams, type TransactResult, TransactionConfirmationError, type TransactionMetadata, type Transfer, type TransferOptions, type TransferResult, type TxStatus, type UserFriendlyError, type Utxo, UtxoAlreadySpentError, type EncryptedNote as UtxoEncryptedNote, type UtxoKeypair, type UtxoSwapParams, type UtxoSwapResult, UtxoWallet, VARIABLE_FEE_DENOMINATOR, VARIABLE_FEE_NUMERATOR, VARIABLE_FEE_RATE, VERSION, type VerifyUtxosResult, type ViewKey, type ViewingKeyPair, WITHDRAW_FEE_BPS, WITHDRAW_FIXED_FEE, type WalletAdapterBridgeOptions, type WalletSigner$1 as WalletSigner, type WalletUtxo, type Web3Module, type WithdrawOptions, type WithdrawSubmissionResult, accountMeta, addressBytes, addressFromBytes, addressFromPublicKey, assertDirectSubmissionLanded, assertInputMints, assertTransactionCircuitIntegrity, assessBridgeQuote, bigintToBytes32$1 as bigintToBytes32, bigintToHex, buildAuthTransactionMessage, buildMerkleTree, buildMerkleTreeFromChain, buildMerkleTreeFromRelay, buildRecipientDeliveryNotes, buildRelayAuthPreimage, buildRelayBatchAuthMessage, buildTransactRequestBody, buildTransactionMessage, bytesToHex, calculateFee, calculateFeeBigint, calculateRelayFee, canRebuildMerkleTreeFromChain, canonicalJson, canonicalPayloadString, chainNoteFromBase64, chainNoteToBase64, classifyPostFailure, classifyRelayError, cleanupReceivingAddress, cleanupStalePendingOperations, clearPendingDeposits, clearPendingWithdrawals, cloakBridgeRail, computeChainNoteHash, computeExtDataHash, computeMerkleRoot, computeNoteIndexChain, computeProofForLatestDeposit, computeProofFromChain, computeSignature, computeSwapRefundCommitment, computeCommitment as computeUtxoCommitment, computeNullifier as computeUtxoNullifier, confirmSignature, confirmTransactSettlement, copyNoteToClipboard, createCloakError, createCloakRpc, createDepositInstruction, createLogger, createRecoverableChangeUtxo, createRecoverableDepositUtxo, createRelayBatchAuthCoordinator, createUtxo, createZeroUtxo, decryptCompactChainNote, decryptComplianceMetadataWithMasterKey, decryptTransactionMetadata, depositFromDerivedKey, deriveBridgeReceiver, deriveChangeNoteBlinding, deriveDepositNoteBlinding, deriveDiversifiedViewingKey, deriveDiversifier, deriveFundingTargets, deriveInputNullifierPdas, deriveLegacyBridgeReceiver, deriveLegacyDepositNoteSecrets, deriveLegacySwapRefundAuthorization, derivePublicKey, deriveSpendKey, deriveSwapRefundAuthorization, deriveSwapRefundBlinding, deriveUserCompliancePublicKey, deriveUserComplianceScalar, deriveUtxoKeypairFromSpendKey, deriveViewKey, deriveViewingKeyFromNk, deriveViewingKeyFromSpendKey, deriveViewingKeyFromUtxoPrivateKey, deserializeUtxo, detectNetworkFromRpcUrl, discoverSwapRefunds, downloadNote, encodeDeliveryCarrierMemo, encodeNoteIndexItem, encodeNoteIndexPage, encodeNoteSimple, encodeRecipientDeliveryNote, encryptCompactChainNote, encryptNoteForRecipient, encryptTransactionMetadata, encryptTransactionMetadataBundle, expandSpendKey, explainRelayAuthRejection, exportKeys, exportNote, exportWalletKeys, fetchAccountBytes, fetchCommitments, fetchLatestBlockhash, fetchLookupTables, fetchNoteIndexHead, fetchNoteIndexPage, fetchRiskQuoteInstruction, fetchRiskQuoteIx, fetchSignaturesForAddress, filterNotesByNetwork, filterWithdrawableNotes, findNoteByCommitment, findProgramAddress, formatAmount, formatComplianceCsv, formatErrorForLogging, formatSol, fullWithdraw, fundReceiverViaPaymaster, generateCloakKeys, generateCommitmentAsync, generateMasterSeed, generateNoteFromWallet, generateUtxoKeypair, generateViewingKeyPair, getAddressExplorerUrl, getChainNoteRegistryPDA, getCircuitsPath, getDeliveryRegistryPDA, getDistributableAmount, getExplorerUrl, getNkFromUtxoPrivateKey, getNullifierPDA, getPendingOperationsSummary, getPoolAuthorityConfigPDA, getPublicKey, getPublicViewKey, getRecipientAmount, getRpcUrlForNetwork, getShieldPoolPDAs, getSwapStatePDA, getViewKey, hasPendingOperations, hexToBigint$1 as hexToBigint, hexToBytes, importKeys, importWalletKeys, isBrowser, isBrowserLike, isDebugEnabled, isMessageSigner, isPlausibleSignature, isReactNative, isRootNotFoundError, isSubmissionOutcomeUnknownResponse, isTerminalFailure, isValidHex, isValidRelayClientId, isValidRpcUrl, isValidSolanaAddress, isWithdrawAmountSufficient, isWithdrawable, listBridgeDeposits, loadPendingDeposits, loadPendingWithdrawals, loadVerifiedCircuitArtifacts, matchChangeNote, matchDepositNote, matchSwapRefundLeaf, mayRetry, messageSignerFromCallback, normalizeAffiliateCode, openRecipientDeliveryNote, parseAmount, parseDeliveryCarrierMemo, parseError, parseNote, parseNoteIndexItem, parseNoteIndexPage, parseRelayErrorResponse, parseRelayErrorSignature, parseTransactionError, partialWithdraw, partiallySignTransaction, poseidonHash, preflightCheck, preflightNullifiers, prepareEncryptedOutput, prepareEncryptedOutputForRecipient, programInstruction, proofToBytes, pubkeyToFieldElement, pubkeyToLimbs, randomBytes, randomChangeNoteSalt, randomDepositNoteSalt, randomFieldElement, readMerkleTreeState, readRent, recipientDeliveryNoteToBase64, recoverNotesFromIndex, registerViewingKey, relayRequestDigestHex, removePendingDeposit, removePendingWithdrawal, renderAssessment, resolveCircuitsBase, retryDelayMs, savePendingDeposit, savePendingWithdrawal, scanNotesForWallet, scanRecipientDeliveryNotes, scanTransactions, sdkLogger, selectUtxos, sendInstructions, sendRawTransaction, sendTransaction, serializeAuthTransactionMessage, serializeNote, serializeUtxo, setCircuitsPath, setDebugMode, signCompiledTransaction, signMessageBytes, signRelayAuthPayload, signTransaction, signerFromKeypair, signerFromSecretKey, signerFromWalletAdapter, splitTo2Limbs, submitTransactToRelay, sumUtxoAmounts, swapUtxo, swapWithChange, toAddress, toComplianceReport, transact, transactBatch, transactionBase64, transactionBytes, transactionFromBytes, transactionWireSize, transfer, truncate, tryDecryptNote, updateNoteWithDeposit, updatePendingDeposit, updatePendingWithdrawal, bigintToBytes32 as utxoBigintToBytes32, utxoEquals, hexToBigint as utxoHexToBigint, validateDepositParams, validateNote, validateOutputsSum, validatePaymasterTopUpTransaction, validateRoot, validateTransfers, validateWalletConnected, validateWithdrawableNote, verifyAllCircuits, verifyCircuitIntegrity, verifyQuoteSignature, verifyUtxos, waitForRoot, withShieldRetries, withTiming, withdrawFeeFor };
|