@zama-fhe/sdk 3.3.0 → 3.3.1-alpha.2

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.
Files changed (119) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/base-signer.cjs +1 -1
  3. package/dist/cjs/base-signer.cjs.map +1 -1
  4. package/dist/cjs/chains.cjs +1 -1
  5. package/dist/cjs/chains.cjs.map +1 -1
  6. package/dist/cjs/cleartext/index.cjs +1 -1
  7. package/dist/cjs/cleartext.cjs +2 -0
  8. package/dist/cjs/cleartext.cjs.map +1 -0
  9. package/dist/cjs/ethers/index.cjs.map +1 -1
  10. package/dist/cjs/fhevm-relayer.cjs +2 -0
  11. package/dist/cjs/fhevm-relayer.cjs.map +1 -0
  12. package/dist/cjs/index.cjs +1 -1
  13. package/dist/cjs/index.cjs.map +1 -1
  14. package/dist/cjs/node/index.cjs +2 -0
  15. package/dist/cjs/node/index.cjs.map +1 -0
  16. package/dist/cjs/query/index.cjs +1 -1
  17. package/dist/cjs/query/index.cjs.map +1 -1
  18. package/dist/cjs/relayer.cjs +1 -1
  19. package/dist/cjs/relayer.cjs.map +1 -1
  20. package/dist/cjs/token.cjs +1 -1
  21. package/dist/cjs/token.cjs.map +1 -1
  22. package/dist/cjs/viem/index.cjs +1 -1
  23. package/dist/cjs/viem/index.cjs.map +1 -1
  24. package/dist/cjs/web/index.cjs +1 -590
  25. package/dist/cjs/web/index.cjs.map +1 -1
  26. package/dist/cjs/wrappers-registry.cjs.map +1 -1
  27. package/dist/esm/base-signer-CI-FYai2.js +2 -0
  28. package/dist/esm/base-signer-CI-FYai2.js.map +1 -0
  29. package/dist/esm/{base-signer-C3Wc5oi9.d.ts → base-signer-Q2EJECrc.d.ts} +2 -2
  30. package/dist/esm/chains/index.d.ts +2 -3
  31. package/dist/esm/chains/index.js +1 -1
  32. package/dist/esm/chains-CLv9HEJ_.js +2 -0
  33. package/dist/esm/chains-CLv9HEJ_.js.map +1 -0
  34. package/dist/esm/cleartext/index.d.ts +3 -2
  35. package/dist/esm/cleartext/index.js +1 -1
  36. package/dist/esm/cleartext-BfXTVQu-.js +2 -0
  37. package/dist/esm/cleartext-BfXTVQu-.js.map +1 -0
  38. package/dist/esm/cleartext-U6sPs_Kd.d.ts +19 -0
  39. package/dist/esm/ethers/index.d.ts +4 -5
  40. package/dist/esm/ethers/index.js +1 -1
  41. package/dist/esm/ethers/index.js.map +1 -1
  42. package/dist/esm/fhevm-relayer-B-lEKfPQ.js +2 -0
  43. package/dist/esm/fhevm-relayer-B-lEKfPQ.js.map +1 -0
  44. package/dist/esm/index-BnIp_-Ak.d.ts +328 -0
  45. package/dist/esm/{index-CYBH0nyo.d.ts → index-D66eC3G7.d.ts} +60 -13
  46. package/dist/esm/index.d.ts +8 -11
  47. package/dist/esm/index.js +1 -1
  48. package/dist/esm/index.js.map +1 -1
  49. package/dist/esm/node/index.d.ts +5 -194
  50. package/dist/esm/node/index.js +1 -1
  51. package/dist/esm/node/index.js.map +1 -1
  52. package/dist/esm/query/index.d.ts +3 -380
  53. package/dist/esm/query/index.js +1 -1
  54. package/dist/esm/query/index.js.map +1 -1
  55. package/dist/esm/relayer-BYq9bLh8.js +2 -0
  56. package/dist/esm/relayer-BYq9bLh8.js.map +1 -0
  57. package/dist/esm/token-CmHTAAWW.js +2 -0
  58. package/dist/esm/token-CmHTAAWW.js.map +1 -0
  59. package/dist/esm/{types-piBsdTIP.d.ts → types-Bov8XY36.d.ts} +3 -3
  60. package/dist/esm/{types-OHIaPwCy.d.ts → types-BpvL50qX.d.ts} +3 -3
  61. package/dist/esm/types-C-WTLcHZ.d.ts +988 -0
  62. package/dist/esm/viem/index.d.ts +4 -5
  63. package/dist/esm/viem/index.js +1 -1
  64. package/dist/esm/viem/index.js.map +1 -1
  65. package/dist/esm/web/index.d.ts +6 -9
  66. package/dist/esm/web/index.js +1 -590
  67. package/dist/esm/web/index.js.map +1 -1
  68. package/dist/esm/{wrappers-registry-C1oK8Bi6.js → wrappers-registry-xZWzyAi4.js} +2 -2
  69. package/dist/esm/wrappers-registry-xZWzyAi4.js.map +1 -0
  70. package/dist/esm/{index-C1Mtc8Rw.d.ts → zama-sdk-q4_qt64Q.d.ts} +1471 -1102
  71. package/package.json +6 -2
  72. package/dist/cjs/assertions.cjs +0 -2
  73. package/dist/cjs/assertions.cjs.map +0 -1
  74. package/dist/cjs/encryption.cjs +0 -2
  75. package/dist/cjs/encryption.cjs.map +0 -1
  76. package/dist/cjs/relayer-cleartext.cjs +0 -2
  77. package/dist/cjs/relayer-cleartext.cjs.map +0 -1
  78. package/dist/cjs/relayer-sdk.worker.js +0 -589
  79. package/dist/cjs/timeout.cjs +0 -2
  80. package/dist/cjs/timeout.cjs.map +0 -1
  81. package/dist/cjs/validation.cjs +0 -2
  82. package/dist/cjs/validation.cjs.map +0 -1
  83. package/dist/esm/assertions-zYseN5Xz.js +0 -2
  84. package/dist/esm/assertions-zYseN5Xz.js.map +0 -1
  85. package/dist/esm/base-signer-DjytqPkd.js +0 -2
  86. package/dist/esm/base-signer-DjytqPkd.js.map +0 -1
  87. package/dist/esm/chains-CXcO1DBP.js +0 -2
  88. package/dist/esm/chains-CXcO1DBP.js.map +0 -1
  89. package/dist/esm/cleartext-DAkOTlrE.d.ts +0 -19
  90. package/dist/esm/cleartext-rTWFctyd.js +0 -2
  91. package/dist/esm/cleartext-rTWFctyd.js.map +0 -1
  92. package/dist/esm/encryption-x4Z_Icqk.js +0 -2
  93. package/dist/esm/encryption-x4Z_Icqk.js.map +0 -1
  94. package/dist/esm/hex-A72GrTf9.js +0 -2
  95. package/dist/esm/hex-A72GrTf9.js.map +0 -1
  96. package/dist/esm/indexeddb-storage-Mi-fCWN3.js +0 -2
  97. package/dist/esm/indexeddb-storage-Mi-fCWN3.js.map +0 -1
  98. package/dist/esm/memory-storage-fp9RY5BQ.js +0 -2
  99. package/dist/esm/memory-storage-fp9RY5BQ.js.map +0 -1
  100. package/dist/esm/node/relayer-sdk.node-worker.d.ts +0 -1
  101. package/dist/esm/node/relayer-sdk.node-worker.js +0 -2
  102. package/dist/esm/node/relayer-sdk.node-worker.js.map +0 -1
  103. package/dist/esm/relayer-cleartext-Bp6jtxDd.js +0 -2
  104. package/dist/esm/relayer-cleartext-Bp6jtxDd.js.map +0 -1
  105. package/dist/esm/relayer-cleartext-CSeMlmGO.d.ts +0 -844
  106. package/dist/esm/relayer-eavK5bfZ.js +0 -2
  107. package/dist/esm/relayer-eavK5bfZ.js.map +0 -1
  108. package/dist/esm/relayer-sdk.worker.js +0 -589
  109. package/dist/esm/timeout-CNVfiaJD.js +0 -2
  110. package/dist/esm/timeout-CNVfiaJD.js.map +0 -1
  111. package/dist/esm/token-Bt33g0zQ.js +0 -2
  112. package/dist/esm/token-Bt33g0zQ.js.map +0 -1
  113. package/dist/esm/types-BgczXqW2.d.ts +0 -49
  114. package/dist/esm/types-Gn5MeDsr.d.ts +0 -669
  115. package/dist/esm/validation-DLszOweh.js +0 -2
  116. package/dist/esm/validation-DLszOweh.js.map +0 -1
  117. package/dist/esm/worker.base-client-BVnT4yJa.js +0 -2
  118. package/dist/esm/worker.base-client-BVnT4yJa.js.map +0 -1
  119. package/dist/esm/wrappers-registry-C1oK8Bi6.js.map +0 -1
@@ -1,380 +1,3 @@
1
- import { A as ShieldCallbacks, B as RawLog, D as ShieldPath, E as ShieldOptions, F as GenericSigner, H as TransactionResult, I as WalletAccount, L as WalletAccountChange, M as UnshieldCallbacks, N as GenericStorage, O as TransferOptions, R as WalletAccountListener, T as ApprovalStrategy, V as TransactionReceipt, c as DelegatedUserDecryptParams, d as EncryptParams, f as EncryptResult, g as PublicDecryptResult, j as TransferCallbacks, k as UnshieldOptions, l as EIP712TypedData, n as RelayerSDK, o as TransportKeyPair, p as EncryptedValue, s as ClearValue, u as EncryptInput, x as UserDecryptParams } from "../relayer-cleartext-CSeMlmGO.js";
2
- import { A as UnshieldPhase2StartedEvent, C as SetOperatorSubmittedEvent, D as TransferFromSubmittedEvent, E as TransactionOperation, F as ZamaSDKEventListener, J as UnwrapRequestedEvent, L as ZamaSDKEvents, M as UnwrapSubmittedEvent, N as ZamaSDKEvent, O as TransferSubmittedEvent, P as ZamaSDKEventInput, S as RevokeDelegationSubmittedEvent, T as TransactionErrorEvent, U as OnChainEvent, V as ConfidentialTransferEvent, Y as WrapEvent, _ as DelegationSubmittedEvent, a as ZamaConfig, b as EncryptStartEvent, f as ApproveUnderlyingSubmittedEvent, g as DecryptStartEvent, h as DecryptErrorEvent, j as UnshieldPhase2SubmittedEvent, k as UnshieldPhase1SubmittedEvent, m as DecryptEndEvent, p as BaseEvent, q as UnwrapFinalizedEvent, v as EncryptEndEvent, w as ShieldSubmittedEvent, x as FinalizeUnwrapSubmittedEvent, y as EncryptErrorEvent } from "../types-Gn5MeDsr.js";
3
- import { $ as DecryptResult, at as QueryFactoryOptions, c as BatchDecryptAsOptions, ct as TokenWrapperPairWithMetadata, et as EncryptedInput, i as WrappersRegistry, it as MutationFactoryOptions, l as Token, nt as SignerQueryContext, o as WrappedToken, ot as PaginatedResult, rt as zamaQueryKeys, s as BatchBalancesResult, st as TokenWrapperPair, t as ZamaSDK, tt as decryptValuesQueryOptions } from "../index-C1Mtc8Rw.js";
4
- import { Address, Hex } from "viem";
5
-
6
- //#region src/query/utils.d.ts
7
- type StrippedQueryOptionKeys = "gcTime" | "staleTime" | "enabled" | "select" | "refetchInterval" | "refetchOnMount" | "refetchOnWindowFocus" | "refetchOnReconnect" | "retry" | "retryDelay" | "retryOnMount" | "queryFn" | "queryKey" | "queryKeyHashFn" | "initialData" | "initialDataUpdatedAt" | "placeholderData" | "structuralSharing" | "throwOnError" | "meta" | "query" | "pollingInterval";
8
- /**
9
- * Remove TanStack behavioral options from a query config object so only domain
10
- * parameters remain for the lower-level factory.
11
- *
12
- * @example
13
- * ```ts
14
- * const params = filterQueryOptions({
15
- * query: { enabled: false },
16
- * gcTime: 60_000,
17
- * owner: "0xabc",
18
- * });
19
- * // => { owner: "0xabc" }
20
- * ```
21
- */
22
- declare function filterQueryOptions<TOptions extends Record<string, unknown>>(options: TOptions): Omit<TOptions, StrippedQueryOptionKeys>;
23
- /**
24
- * Stable hash function for query keys.
25
- * Sorts object keys recursively and converts bigint values to strings.
26
- *
27
- * @remarks
28
- * bigint values are serialized as decimal strings, so `42n` and `"42"` hash to
29
- * the same token when they occupy the same position. This collision is accepted
30
- * by design for the current query-key conventions in this package.
31
- */
32
- declare function hashFn(queryKey: readonly unknown[]): string;
33
- //#endregion
34
- //#region src/query/invalidation.d.ts
35
- interface QueryLike {
36
- queryKey: readonly unknown[];
37
- }
38
- interface QueryFilterLike {
39
- queryKey?: readonly unknown[];
40
- predicate?: (query: QueryLike) => boolean;
41
- }
42
- interface QueryClientLike {
43
- invalidateQueries(filters: QueryFilterLike): void | Promise<void>;
44
- removeQueries(filters: QueryFilterLike): void;
45
- }
46
- declare function invalidateAfterUnwrap(queryClient: QueryClientLike, tokenAddress: Address): void;
47
- declare function invalidateBalanceQueries(queryClient: QueryClientLike, tokenAddress: Address): void;
48
- declare function invalidateAfterShield(queryClient: QueryClientLike, tokenAddress: Address): void;
49
- declare function invalidateAfterUnshield(queryClient: QueryClientLike, tokenAddress: Address): void;
50
- declare function invalidateAfterUnshieldSettled(queryClient: QueryClientLike, tokenAddress: Address): void;
51
- declare function invalidateAfterTransfer(queryClient: QueryClientLike, tokenAddress: Address): void;
52
- declare function invalidateAfterApproveUnderlying(queryClient: QueryClientLike, tokenAddress: Address): void;
53
- declare function invalidateAfterSetOperator(queryClient: QueryClientLike, tokenAddress: Address): void;
54
- declare function invalidateWagmiBalanceQueries(queryClient: QueryClientLike): void;
55
- declare function invalidateWalletLifecycleQueries(queryClient: QueryClientLike): void;
56
- //#endregion
57
- //#region src/query/token-metadata.d.ts
58
- /** ERC-20 token metadata returned by {@link tokenMetadataQueryOptions}. */
59
- interface TokenMetadata {
60
- name: string;
61
- symbol: string;
62
- decimals: number;
63
- }
64
- interface TokenMetadataQueryConfig {
65
- query?: Record<string, unknown>;
66
- }
67
- declare function tokenMetadataQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config?: TokenMetadataQueryConfig): QueryFactoryOptions<TokenMetadata, Error, TokenMetadata, ReturnType<typeof zamaQueryKeys.tokenMetadata.token>>;
68
- //#endregion
69
- //#region src/query/is-confidential.d.ts
70
- interface IsConfidentialQueryConfig {
71
- query?: Record<string, unknown>;
72
- }
73
- declare function isConfidentialQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config?: IsConfidentialQueryConfig): QueryFactoryOptions<boolean, Error, boolean, ReturnType<typeof zamaQueryKeys.isConfidential.token>>;
74
- declare function isWrapperQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config?: IsConfidentialQueryConfig): QueryFactoryOptions<boolean, Error, boolean, ReturnType<typeof zamaQueryKeys.isWrapper.token>>;
75
- //#endregion
76
- //#region src/query/total-supply.d.ts
77
- interface TotalSupplyQueryConfig {
78
- query?: Record<string, unknown>;
79
- }
80
- declare function totalSupplyQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config?: TotalSupplyQueryConfig): QueryFactoryOptions<bigint, Error, bigint, ReturnType<typeof zamaQueryKeys.totalSupply.token>>;
81
- //#endregion
82
- //#region src/query/wrapper-discovery.d.ts
83
- interface WrapperDiscoveryQueryConfig {
84
- /**
85
- * Address of any confidential token you control.
86
- * Used to scope the query cache key and to gate whether the query
87
- * is enabled — it does not affect which wrapper the registry returns.
88
- */
89
- tokenAddress?: Address;
90
- /**
91
- * The ERC-20 token address to discover the confidential wrapper for.
92
- * The registry is resolved automatically from chain config.
93
- */
94
- erc20Address?: Address;
95
- /**
96
- * The resolved registry contract address for the current chain.
97
- * Included in the query key so that switching chains invalidates
98
- * stale cached results. Pass `undefined` when the chain ID is not
99
- * yet known — the query will be disabled.
100
- */
101
- registryAddress?: Address;
102
- query?: Record<string, unknown>;
103
- }
104
- declare function wrapperDiscoveryQueryOptions(registry: WrappersRegistry, config: WrapperDiscoveryQueryConfig): QueryFactoryOptions<Address | null, Error, Address | null, ReturnType<typeof zamaQueryKeys.wrapperDiscovery.token>>;
105
- //#endregion
106
- //#region src/query/underlying-allowance.d.ts
107
- interface UnderlyingAllowanceQueryConfig {
108
- owner?: Address;
109
- query?: Record<string, unknown>;
110
- }
111
- declare function underlyingAllowanceQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config: UnderlyingAllowanceQueryConfig): QueryFactoryOptions<bigint, Error, bigint, ReturnType<typeof zamaQueryKeys.underlyingAllowance.scope>>;
112
- //#endregion
113
- //#region src/query/pending-unshield.d.ts
114
- interface PendingUnshieldQueryConfig {
115
- query?: Record<string, unknown>;
116
- }
117
- /**
118
- * Query options for reading the unwrap tx hash of an unshield that was
119
- * interrupted between its two phases (returns `null` if none is pending).
120
- *
121
- * Backed by {@link ZamaSDK} storage via `WrappedToken.getPendingUnshield()`.
122
- * `staleTime: 0` so the value reflects storage on mount; the unshield/unwrap
123
- * mutations also invalidate this key on success.
124
- */
125
- declare function pendingUnshieldQueryOptions(sdk: ZamaSDK, tokenAddress: Address, config?: PendingUnshieldQueryConfig): QueryFactoryOptions<Hex | null, Error, Hex | null, ReturnType<typeof zamaQueryKeys.pendingUnshield.token>>;
126
- //#endregion
127
- //#region src/query/confidential-is-operator.d.ts
128
- interface ConfidentialIsOperatorQueryConfig {
129
- holder?: Address;
130
- spender?: Address;
131
- query?: Record<string, unknown>;
132
- }
133
- declare function confidentialIsOperatorQueryOptions(sdk: ZamaSDK, tokenAddress: Address | undefined, config: ConfidentialIsOperatorQueryConfig): QueryFactoryOptions<boolean, Error, boolean, ReturnType<typeof zamaQueryKeys.confidentialIsOperator.scope>>;
134
- //#endregion
135
- //#region src/query/confidential-balance.d.ts
136
- interface ConfidentialBalanceQueryConfig {
137
- tokenAddress: Address;
138
- account?: Address;
139
- query?: Record<string, unknown>;
140
- }
141
- /** Query options for a single confidential token balance. Auto-gated on `account`. */
142
- declare function confidentialBalanceQueryOptions(token: Token, config: ConfidentialBalanceQueryConfig, signerContext?: SignerQueryContext): QueryFactoryOptions<bigint, Error, bigint, ReturnType<typeof zamaQueryKeys.confidentialBalance.owner>>;
143
- //#endregion
144
- //#region src/query/confidential-balances.d.ts
145
- interface ConfidentialBalancesQueryConfig {
146
- account?: Address;
147
- query?: Record<string, unknown>;
148
- }
149
- declare function confidentialBalancesQueryOptions(tokens: Token[], config?: ConfidentialBalancesQueryConfig, signerContext?: SignerQueryContext): QueryFactoryOptions<BatchBalancesResult, Error, BatchBalancesResult, ReturnType<typeof zamaQueryKeys.confidentialBalances.tokens>>;
150
- //#endregion
151
- //#region src/query/wrappers-registry.d.ts
152
- interface WrappersRegistryQueryConfig {
153
- registryAddress: Address | undefined;
154
- query?: Record<string, unknown>;
155
- }
156
- declare function tokenPairsQueryOptions(sdk: ZamaSDK, config: WrappersRegistryQueryConfig): QueryFactoryOptions<readonly TokenWrapperPair[], Error, readonly TokenWrapperPair[], ReturnType<typeof zamaQueryKeys.wrappersRegistry.tokenPairs>>;
157
- interface ConfidentialTokenAddressQueryConfig extends WrappersRegistryQueryConfig {
158
- tokenAddress?: Address;
159
- }
160
- declare function confidentialTokenAddressQueryOptions(sdk: ZamaSDK, config: ConfidentialTokenAddressQueryConfig): QueryFactoryOptions<readonly [boolean, Address], Error, readonly [boolean, Address], ReturnType<typeof zamaQueryKeys.wrappersRegistry.confidentialTokenAddress>>;
161
- interface TokenAddressQueryConfig extends WrappersRegistryQueryConfig {
162
- confidentialTokenAddress?: Address;
163
- }
164
- declare function tokenAddressQueryOptions(sdk: ZamaSDK, config: TokenAddressQueryConfig): QueryFactoryOptions<readonly [boolean, Address], Error, readonly [boolean, Address], ReturnType<typeof zamaQueryKeys.wrappersRegistry.tokenAddress>>;
165
- declare function tokenPairsLengthQueryOptions(sdk: ZamaSDK, config: WrappersRegistryQueryConfig): QueryFactoryOptions<bigint, Error, bigint, ReturnType<typeof zamaQueryKeys.wrappersRegistry.tokenPairsLength>>;
166
- interface TokenPairsSliceQueryConfig extends WrappersRegistryQueryConfig {
167
- fromIndex?: bigint;
168
- toIndex?: bigint;
169
- }
170
- declare function tokenPairsSliceQueryOptions(sdk: ZamaSDK, config: TokenPairsSliceQueryConfig): QueryFactoryOptions<readonly TokenWrapperPair[], Error, readonly TokenWrapperPair[], ReturnType<typeof zamaQueryKeys.wrappersRegistry.tokenPairsSlice>>;
171
- interface TokenPairQueryConfig extends WrappersRegistryQueryConfig {
172
- index?: bigint;
173
- }
174
- declare function tokenPairQueryOptions(sdk: ZamaSDK, config: TokenPairQueryConfig): QueryFactoryOptions<TokenWrapperPair, Error, TokenWrapperPair, ReturnType<typeof zamaQueryKeys.wrappersRegistry.tokenPair>>;
175
- interface IsConfidentialTokenValidQueryConfig extends WrappersRegistryQueryConfig {
176
- confidentialTokenAddress?: Address;
177
- }
178
- declare function isConfidentialTokenValidQueryOptions(sdk: ZamaSDK, config: IsConfidentialTokenValidQueryConfig): QueryFactoryOptions<boolean, Error, boolean, ReturnType<typeof zamaQueryKeys.wrappersRegistry.isConfidentialTokenValid>>;
179
- interface ListPairsQueryConfig {
180
- /**
181
- * The registry address for this chain — used as a query key discriminator.
182
- * The registry instance already knows how to resolve the address for the
183
- * current chain; this field just keeps the TanStack Query cache isolated
184
- * per registry contract.
185
- */
186
- registryAddress: Address | undefined;
187
- page?: number;
188
- pageSize?: number;
189
- metadata?: boolean;
190
- query?: Record<string, unknown>;
191
- }
192
- /**
193
- * Query options for paginated listing of token wrapper pairs.
194
- *
195
- * Accepts a {@link WrappersRegistry} instance rather than a raw provider so that the
196
- * class-level TTL cache is shared across multiple `queryFn` executions. Pass
197
- * `sdk.registry` (the ZamaSDK lazy singleton) to ensure a single shared cache.
198
- */
199
- declare function listPairsQueryOptions(registry: WrappersRegistry, config: ListPairsQueryConfig): QueryFactoryOptions<PaginatedResult<TokenWrapperPair | TokenWrapperPairWithMetadata>, Error, PaginatedResult<TokenWrapperPair | TokenWrapperPairWithMetadata>, ReturnType<typeof zamaQueryKeys.wrappersRegistry.listPairs>>;
200
- //#endregion
201
- //#region src/query/shield.d.ts
202
- /** Variables for {@link shieldMutationOptions}. */
203
- interface ShieldParams extends ShieldOptions {
204
- amount: bigint;
205
- }
206
- declare function shieldMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.shield", Address], ShieldParams, TransactionResult>;
207
- //#endregion
208
- //#region src/query/transfer.d.ts
209
- /** Variables for {@link confidentialTransferMutationOptions}. */
210
- interface ConfidentialTransferParams extends TransferOptions {
211
- to: Address;
212
- amount: bigint;
213
- }
214
- declare function confidentialTransferMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.confidentialTransfer", Address], ConfidentialTransferParams, TransactionResult>;
215
- //#endregion
216
- //#region src/query/transfer-and-call.d.ts
217
- /** Variables for {@link confidentialTransferAndCallMutationOptions}. */
218
- interface ConfidentialTransferAndCallParams extends TransferOptions {
219
- to: Address;
220
- amount: bigint;
221
- /** Opaque bytes forwarded to the recipient's ERC-7984 receiver hook. */
222
- data: Hex;
223
- }
224
- declare function confidentialTransferAndCallMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.confidentialTransferAndCall", Address], ConfidentialTransferAndCallParams, TransactionResult>;
225
- //#endregion
226
- //#region src/query/transfer-from.d.ts
227
- /** Variables for {@link confidentialTransferFromMutationOptions}. */
228
- interface ConfidentialTransferFromParams {
229
- from: Address;
230
- to: Address;
231
- amount: bigint;
232
- /** Optional progress callbacks for the multi-step transfer flow. */
233
- callbacks?: TransferCallbacks;
234
- }
235
- declare function confidentialTransferFromMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.confidentialTransferFrom", Address], ConfidentialTransferFromParams, TransactionResult>;
236
- //#endregion
237
- //#region src/query/transfer-from-and-call.d.ts
238
- /** Variables for {@link confidentialTransferFromAndCallMutationOptions}. */
239
- interface ConfidentialTransferFromAndCallParams {
240
- from: Address;
241
- to: Address;
242
- amount: bigint;
243
- /** Opaque bytes forwarded to the recipient's ERC-7984 receiver hook. */
244
- data: Hex;
245
- /** Optional progress callbacks for the multi-step transfer flow. */
246
- callbacks?: TransferCallbacks;
247
- }
248
- declare function confidentialTransferFromAndCallMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.confidentialTransferFromAndCall", Address], ConfidentialTransferFromAndCallParams, TransactionResult>;
249
- //#endregion
250
- //#region src/query/set-operator.d.ts
251
- /** Variables for {@link confidentialSetOperatorMutationOptions}. */
252
- interface ConfidentialSetOperatorParams {
253
- operator: Address;
254
- until?: number;
255
- }
256
- declare function confidentialSetOperatorMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.confidentialSetOperator", Address], ConfidentialSetOperatorParams, TransactionResult>;
257
- //#endregion
258
- //#region src/query/approve-underlying.d.ts
259
- /** Variables for {@link approveUnderlyingMutationOptions}. */
260
- interface ApproveUnderlyingParams {
261
- amount?: bigint;
262
- }
263
- declare function approveUnderlyingMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.approveUnderlying", Address], ApproveUnderlyingParams, TransactionResult>;
264
- //#endregion
265
- //#region src/query/unshield.d.ts
266
- /** Variables for {@link unshieldMutationOptions}. */
267
- interface UnshieldParams extends UnshieldOptions {
268
- amount: bigint;
269
- }
270
- declare function unshieldMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.unshield", Address], UnshieldParams, TransactionResult>;
271
- //#endregion
272
- //#region src/query/unshield-all.d.ts
273
- /** Variables for {@link unshieldAllMutationOptions}. */
274
- interface UnshieldAllParams extends UnshieldCallbacks {}
275
- declare function unshieldAllMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.unshieldAll", Address], UnshieldAllParams | void, TransactionResult>;
276
- //#endregion
277
- //#region src/query/resume-unshield.d.ts
278
- /** Variables for {@link resumeUnshieldMutationOptions}. */
279
- interface ResumeUnshieldParams extends UnshieldCallbacks {
280
- unwrapTxHash: Hex;
281
- }
282
- declare function resumeUnshieldMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.resumeUnshield", Address], ResumeUnshieldParams, TransactionResult>;
283
- //#endregion
284
- //#region src/query/unwrap.d.ts
285
- /** Variables for {@link unwrapMutationOptions}. */
286
- interface UnwrapParams {
287
- amount: bigint;
288
- }
289
- declare function unwrapMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.unwrap", Address], UnwrapParams, TransactionResult>;
290
- //#endregion
291
- //#region src/query/unwrap-all.d.ts
292
- declare function unwrapAllMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.unwrapAll", Address], void, TransactionResult>;
293
- //#endregion
294
- //#region src/query/finalize-unwrap.d.ts
295
- /** Variables for {@link finalizeUnwrapMutationOptions}. */
296
- type FinalizeUnwrapParams = {
297
- /** Identifier from an `UnwrapRequested` event. */unwrapRequestId: EncryptedValue;
298
- };
299
- declare function finalizeUnwrapMutationOptions(token: WrappedToken): MutationFactoryOptions<readonly ["zama.finalizeUnwrap", Address], FinalizeUnwrapParams, TransactionResult>;
300
- //#endregion
301
- //#region src/query/encrypt.d.ts
302
- declare function encryptMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.encrypt"], EncryptParams, EncryptResult>;
303
- //#endregion
304
- //#region src/query/delegated-decrypt.d.ts
305
- interface DelegatedDecryptValuesMutationParams {
306
- encryptedInputs: EncryptedInput[];
307
- delegatorAddress: Address;
308
- }
309
- declare function delegatedDecryptValuesMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.delegatedDecryptValues"], DelegatedDecryptValuesMutationParams, Readonly<Record<EncryptedValue, ClearValue>>>;
310
- //#endregion
311
- //#region src/query/public-decrypt.d.ts
312
- declare function decryptPublicValuesMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.decryptPublicValues"], EncryptedValue[], PublicDecryptResult>;
313
- //#endregion
314
- //#region src/query/grant-permit.d.ts
315
- declare function grantPermitMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.grantPermit"], Address[], void>;
316
- //#endregion
317
- //#region src/query/has-permit.d.ts
318
- interface HasPermitQueryConfig {
319
- /** Contract addresses to check credentials against. */
320
- contractAddresses: Address[];
321
- /**
322
- * Standard TanStack query options. `hasPermit` intentionally overrides cache
323
- * timing because permit state is wallet-local, not server state: every fetch
324
- * should read the SDK credential service directly.
325
- */
326
- query?: Record<string, unknown>;
327
- }
328
- declare function hasPermitQueryOptions(sdk: ZamaSDK, config: HasPermitQueryConfig, signerContext?: SignerQueryContext): QueryFactoryOptions<boolean, Error, boolean, ReturnType<typeof zamaQueryKeys.hasPermit.scope>>;
329
- //#endregion
330
- //#region src/query/revoke-permits.d.ts
331
- /** TanStack Query mutation factory for {@link Permits.revokePermits}. */
332
- declare function revokePermitsMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.revokePermits"], Address[] | void, void>;
333
- //#endregion
334
- //#region src/query/clear-credentials.d.ts
335
- /** TanStack Query mutation factory for {@link Permits.clear}. */
336
- declare function clearCredentialsMutationOptions(sdk: ZamaSDK): MutationFactoryOptions<readonly ["zama.clearCredentials"], void, void>;
337
- //#endregion
338
- //#region src/query/delegate-decryption.d.ts
339
- /** Variables for {@link delegateDecryptionMutationOptions}. */
340
- interface DelegateDecryptionParams {
341
- delegateAddress: Address;
342
- expirationDate?: Date;
343
- }
344
- declare function delegateDecryptionMutationOptions(sdk: ZamaSDK, contractAddress: Address): MutationFactoryOptions<readonly ["zama.delegateDecryption", Address], DelegateDecryptionParams, TransactionResult>;
345
- //#endregion
346
- //#region src/query/decrypt-balance-as.d.ts
347
- /** Variables for {@link decryptBalanceAsMutationOptions}. */
348
- interface DecryptBalanceAsParams {
349
- delegatorAddress: Address;
350
- accountAddress?: Address;
351
- }
352
- declare function decryptBalanceAsMutationOptions(token: Token): MutationFactoryOptions<readonly ["zama.decryptBalanceAs", Address], DecryptBalanceAsParams, bigint>;
353
- //#endregion
354
- //#region src/query/batch-decrypt-balances-as.d.ts
355
- /** Variables for {@link batchDecryptBalancesAsMutationOptions}. */
356
- type BatchDecryptBalancesAsParams = BatchDecryptAsOptions;
357
- declare function batchDecryptBalancesAsMutationOptions(tokens: Token[]): MutationFactoryOptions<readonly ["zama.batchDecryptBalancesAs", ...Address[]], BatchDecryptBalancesAsParams, Map<Address, bigint>>;
358
- //#endregion
359
- //#region src/query/revoke-delegation.d.ts
360
- /** Variables for {@link revokeDelegationMutationOptions}. */
361
- interface RevokeDelegationParams {
362
- delegateAddress: Address;
363
- }
364
- declare function revokeDelegationMutationOptions(sdk: ZamaSDK, contractAddress: Address): MutationFactoryOptions<readonly ["zama.revokeDelegation", Address], RevokeDelegationParams, TransactionResult>;
365
- //#endregion
366
- //#region src/query/delegation-status.d.ts
367
- interface DelegationStatusData {
368
- isActive: boolean;
369
- expiryTimestamp: bigint;
370
- }
371
- interface DelegationStatusQueryConfig {
372
- contractAddress: Address | undefined;
373
- delegatorAddress?: Address;
374
- delegateAddress?: Address;
375
- query?: Record<string, unknown>;
376
- }
377
- declare function delegationStatusQueryOptions(sdk: ZamaSDK, config: DelegationStatusQueryConfig): QueryFactoryOptions<DelegationStatusData, Error, DelegationStatusData, ReturnType<typeof zamaQueryKeys.delegationStatus.scope>>;
378
- //#endregion
379
- export { type ApprovalStrategy, type ApproveUnderlyingParams, type ApproveUnderlyingSubmittedEvent, type BaseEvent, type BatchBalancesResult, type BatchDecryptAsOptions, type BatchDecryptBalancesAsParams, type ClearValue, type ConfidentialBalanceQueryConfig, type ConfidentialBalancesQueryConfig, type ConfidentialIsOperatorQueryConfig, type ConfidentialSetOperatorParams, type ConfidentialTokenAddressQueryConfig, type ConfidentialTransferAndCallParams, type ConfidentialTransferEvent, type ConfidentialTransferFromAndCallParams, type ConfidentialTransferFromParams, type ConfidentialTransferParams, type DecryptBalanceAsParams, type DecryptEndEvent, type DecryptErrorEvent, type EncryptedInput as DecryptInput, type PublicDecryptResult as DecryptPublicValuesResult, type DecryptResult, type DecryptStartEvent, type UserDecryptParams as DecryptValuesParams, type DelegateDecryptionParams, type DelegatedDecryptValuesMutationParams, type DelegatedUserDecryptParams as DelegatedDecryptValuesParams, type DelegationStatusData, type DelegationStatusQueryConfig, type DelegationSubmittedEvent, type EIP712TypedData, type EncryptEndEvent, type EncryptErrorEvent, type EncryptInput, type EncryptParams, type EncryptResult, type EncryptStartEvent, type EncryptedValue, type FinalizeUnwrapParams, type FinalizeUnwrapSubmittedEvent, type GenericSigner, type GenericStorage, type HasPermitQueryConfig, type IsConfidentialQueryConfig, type IsConfidentialTokenValidQueryConfig, type ListPairsQueryConfig, type MutationFactoryOptions, type OnChainEvent, type PendingUnshieldQueryConfig, type QueryClientLike, type QueryFactoryOptions, type QueryFilterLike, type QueryLike, type RawLog, type RelayerSDK, type ResumeUnshieldParams, type RevokeDelegationParams, type RevokeDelegationSubmittedEvent, type SetOperatorSubmittedEvent, type ShieldCallbacks, type ShieldOptions, type ShieldParams, type ShieldPath, type ShieldSubmittedEvent, type StrippedQueryOptionKeys, type Token, type TokenAddressQueryConfig, type TokenMetadata, type TokenMetadataQueryConfig, type TokenPairQueryConfig, type TokenPairsSliceQueryConfig, type TotalSupplyQueryConfig, type TransactionErrorEvent, type TransactionOperation, type TransactionReceipt, type TransactionResult, type TransferCallbacks, type TransferFromSubmittedEvent, type TransferOptions, type TransferSubmittedEvent, type TransportKeyPair, type UnderlyingAllowanceQueryConfig, type UnshieldAllParams, type UnshieldCallbacks, type UnshieldOptions, type UnshieldParams, type UnshieldPhase1SubmittedEvent, type UnshieldPhase2StartedEvent, type UnshieldPhase2SubmittedEvent, type UnwrapFinalizedEvent, type UnwrapParams, type UnwrapRequestedEvent, type UnwrapSubmittedEvent, type WalletAccount, type WalletAccountChange, type WalletAccountListener, type WrapEvent, type WrappedToken, type WrapperDiscoveryQueryConfig, type WrappersRegistryQueryConfig, type ZamaConfig, type ZamaSDK, type ZamaSDKEvent, type ZamaSDKEventInput, type ZamaSDKEventListener, ZamaSDKEvents, approveUnderlyingMutationOptions, batchDecryptBalancesAsMutationOptions, clearCredentialsMutationOptions, confidentialBalanceQueryOptions, confidentialBalancesQueryOptions, confidentialIsOperatorQueryOptions, confidentialSetOperatorMutationOptions, confidentialTokenAddressQueryOptions, confidentialTransferAndCallMutationOptions, confidentialTransferFromAndCallMutationOptions, confidentialTransferFromMutationOptions, confidentialTransferMutationOptions, decryptBalanceAsMutationOptions, decryptPublicValuesMutationOptions, decryptValuesQueryOptions, delegateDecryptionMutationOptions, delegatedDecryptValuesMutationOptions, delegationStatusQueryOptions, encryptMutationOptions, filterQueryOptions, finalizeUnwrapMutationOptions, grantPermitMutationOptions, hasPermitQueryOptions, hashFn, invalidateAfterApproveUnderlying, invalidateAfterSetOperator, invalidateAfterShield, invalidateAfterTransfer, invalidateAfterUnshield, invalidateAfterUnshieldSettled, invalidateAfterUnwrap, invalidateBalanceQueries, invalidateWagmiBalanceQueries, invalidateWalletLifecycleQueries, isConfidentialQueryOptions, isConfidentialTokenValidQueryOptions, isWrapperQueryOptions, listPairsQueryOptions, pendingUnshieldQueryOptions, resumeUnshieldMutationOptions, revokeDelegationMutationOptions, revokePermitsMutationOptions, shieldMutationOptions, tokenAddressQueryOptions, tokenMetadataQueryOptions, tokenPairQueryOptions, tokenPairsLengthQueryOptions, tokenPairsQueryOptions, tokenPairsSliceQueryOptions, totalSupplyQueryOptions, underlyingAllowanceQueryOptions, unshieldAllMutationOptions, unshieldMutationOptions, unwrapAllMutationOptions, unwrapMutationOptions, wrapperDiscoveryQueryOptions, zamaQueryKeys };
380
- //# sourceMappingURL=index.d.ts.map
1
+ import { $ as TransferOptions, A as EncryptEndEvent, At as RawLog, B as TransferSubmittedEvent, Bt as EncryptedValue, D as DecryptErrorEvent, E as DecryptEndEvent, F as SetOperatorSubmittedEvent, G as ZamaSDKEvent, H as UnshieldPhase2StartedEvent, I as ShieldSubmittedEvent, It as EIP712TypedData, K as ZamaSDKEventInput, L as TransactionErrorEvent, Lt as EncryptInput, M as EncryptStartEvent, Mt as TransactionResult, N as FinalizeUnwrapSubmittedEvent, Nt as ClearValue, O as DecryptStartEvent, P as RevokeDelegationSubmittedEvent, Pt as DecryptPublicValuesResult, Q as ShieldPath, R as TransactionOperation, Rt as EncryptParams, T as BaseEvent, U as UnshieldPhase2SubmittedEvent, Ut as FhevmRelayerSDK, V as UnshieldPhase1SubmittedEvent, W as UnwrapSubmittedEvent, X as ApprovalStrategy, Y as ZamaSDKEvents, Z as ShieldOptions, c as GenericStorage, d as WalletAccount, et as UnshieldOptions, f as WalletAccountChange, ht as WrapEvent, i as ZamaConfig, j as EncryptErrorEvent, jt as TransactionReceipt, k as DelegationSubmittedEvent, lt as OnChainEvent, mt as UnwrapRequestedEvent, nt as TransferCallbacks, p as WalletAccountListener, pt as UnwrapFinalizedEvent, q as ZamaSDKEventListener, rt as UnshieldCallbacks, st as ConfidentialTransferEvent, tt as ShieldCallbacks, u as GenericSigner, w as ApproveUnderlyingSubmittedEvent, z as TransferFromSubmittedEvent, zt as EncryptResult } from "../types-C-WTLcHZ.js";
2
+ import { $ as confidentialTransferMutationOptions, A as encryptMutationOptions, An as QueryFilterLike, B as UnshieldParams, Bn as invalidateWagmiBalanceQueries, C as grantPermitMutationOptions, Cn as IsConfidentialQueryConfig, Ct as BatchDecryptAsOptions, D as DecryptResult, Dn as TokenMetadataQueryConfig, E as delegatedDecryptValuesMutationOptions, En as TokenMetadata, F as unwrapMutationOptions, Fn as invalidateAfterTransfer, G as confidentialSetOperatorMutationOptions, Gn as QueryFactoryOptions, H as ApproveUnderlyingParams, Hn as zamaQueryKeys, I as ResumeUnshieldParams, In as invalidateAfterUnshield, J as ConfidentialTransferFromParams, Jn as hashFn, K as ConfidentialTransferFromAndCallParams, Kn as StrippedQueryOptionKeys, L as resumeUnshieldMutationOptions, Ln as invalidateAfterUnshieldSettled, M as finalizeUnwrapMutationOptions, Mn as invalidateAfterApproveUnderlying, N as unwrapAllMutationOptions, Nn as invalidateAfterSetOperator, O as EncryptedInput, On as tokenMetadataQueryOptions, P as UnwrapParams, Pn as invalidateAfterShield, Q as ConfidentialTransferParams, R as UnshieldAllParams, Rn as invalidateAfterUnwrap, S as hasPermitQueryOptions, Sn as totalSupplyQueryOptions, St as BatchBalancesResult, T as DelegatedDecryptValuesMutationParams, Tn as isWrapperQueryOptions, U as approveUnderlyingMutationOptions, Un as SignerQueryContext, V as unshieldMutationOptions, Vn as invalidateWalletLifecycleQueries, W as ConfidentialSetOperatorParams, Wn as MutationFactoryOptions, X as ConfidentialTransferAndCallParams, Y as confidentialTransferFromMutationOptions, Z as confidentialTransferAndCallMutationOptions, _ as DelegateDecryptionParams, _t as ConfidentialBalancesQueryConfig, at as TokenAddressQueryConfig, b as revokePermitsMutationOptions, bt as confidentialBalanceQueryOptions, c as DelegationStatusData, cn as PendingUnshieldQueryConfig, ct as WrappersRegistryQueryConfig, d as RevokeDelegationParams, dn as underlyingAllowanceQueryOptions, dt as listPairsQueryOptions, et as ShieldParams, f as revokeDelegationMutationOptions, fn as WrapperDiscoveryQueryConfig, ft as tokenAddressQueryOptions, g as decryptBalanceAsMutationOptions, gt as tokenPairsSliceQueryOptions, h as DecryptBalanceAsParams, ht as tokenPairsQueryOptions, it as ListPairsQueryConfig, j as FinalizeUnwrapParams, jn as QueryLike, k as decryptValuesQueryOptions, kn as QueryClientLike, l as DelegationStatusQueryConfig, ln as pendingUnshieldQueryOptions, lt as confidentialTokenAddressQueryOptions, m as batchDecryptBalancesAsMutationOptions, mt as tokenPairsLengthQueryOptions, nt as ConfidentialTokenAddressQueryConfig, on as ConfidentialIsOperatorQueryConfig, ot as TokenPairQueryConfig, p as BatchDecryptBalancesAsParams, pn as wrapperDiscoveryQueryOptions, pt as tokenPairQueryOptions, q as confidentialTransferFromAndCallMutationOptions, qn as filterQueryOptions, rt as IsConfidentialTokenValidQueryConfig, sn as confidentialIsOperatorQueryOptions, st as TokenPairsSliceQueryConfig, t as ZamaSDK, tt as shieldMutationOptions, u as delegationStatusQueryOptions, un as UnderlyingAllowanceQueryConfig, ut as isConfidentialTokenValidQueryOptions, v as delegateDecryptionMutationOptions, vt as confidentialBalancesQueryOptions, w as decryptPublicValuesMutationOptions, wn as isConfidentialQueryOptions, wt as Token, x as HasPermitQueryConfig, xn as TotalSupplyQueryConfig, xt as WrappedToken, y as clearCredentialsMutationOptions, yn as SerializedTransportKeyPair, yt as ConfidentialBalanceQueryConfig, z as unshieldAllMutationOptions, zn as invalidateBalanceQueries } from "../zama-sdk-q4_qt64Q.js";
3
+ export { type ApprovalStrategy, type ApproveUnderlyingParams, type ApproveUnderlyingSubmittedEvent, type BaseEvent, type BatchBalancesResult, type BatchDecryptAsOptions, type BatchDecryptBalancesAsParams, type ClearValue, type ConfidentialBalanceQueryConfig, type ConfidentialBalancesQueryConfig, type ConfidentialIsOperatorQueryConfig, type ConfidentialSetOperatorParams, type ConfidentialTokenAddressQueryConfig, type ConfidentialTransferAndCallParams, type ConfidentialTransferEvent, type ConfidentialTransferFromAndCallParams, type ConfidentialTransferFromParams, type ConfidentialTransferParams, type DecryptBalanceAsParams, type DecryptEndEvent, type DecryptErrorEvent, type EncryptedInput as DecryptInput, type DecryptPublicValuesResult, type DecryptResult, type DecryptStartEvent, type DelegateDecryptionParams, type DelegatedDecryptValuesMutationParams, type DelegationStatusData, type DelegationStatusQueryConfig, type DelegationSubmittedEvent, type EIP712TypedData, type EncryptEndEvent, type EncryptErrorEvent, type EncryptInput, type EncryptParams, type EncryptResult, type EncryptStartEvent, type EncryptedValue, type FinalizeUnwrapParams, type FinalizeUnwrapSubmittedEvent, type GenericSigner, type GenericStorage, type HasPermitQueryConfig, type IsConfidentialQueryConfig, type IsConfidentialTokenValidQueryConfig, type ListPairsQueryConfig, type MutationFactoryOptions, type OnChainEvent, type PendingUnshieldQueryConfig, type QueryClientLike, type QueryFactoryOptions, type QueryFilterLike, type QueryLike, type RawLog, type FhevmRelayerSDK as RelayerSDK, type ResumeUnshieldParams, type RevokeDelegationParams, type RevokeDelegationSubmittedEvent, type SerializedTransportKeyPair, type SetOperatorSubmittedEvent, type ShieldCallbacks, type ShieldOptions, type ShieldParams, type ShieldPath, type ShieldSubmittedEvent, type SignerQueryContext, type StrippedQueryOptionKeys, type Token, type TokenAddressQueryConfig, type TokenMetadata, type TokenMetadataQueryConfig, type TokenPairQueryConfig, type TokenPairsSliceQueryConfig, type TotalSupplyQueryConfig, type TransactionErrorEvent, type TransactionOperation, type TransactionReceipt, type TransactionResult, type TransferCallbacks, type TransferFromSubmittedEvent, type TransferOptions, type TransferSubmittedEvent, type UnderlyingAllowanceQueryConfig, type UnshieldAllParams, type UnshieldCallbacks, type UnshieldOptions, type UnshieldParams, type UnshieldPhase1SubmittedEvent, type UnshieldPhase2StartedEvent, type UnshieldPhase2SubmittedEvent, type UnwrapFinalizedEvent, type UnwrapParams, type UnwrapRequestedEvent, type UnwrapSubmittedEvent, type WalletAccount, type WalletAccountChange, type WalletAccountListener, type WrapEvent, type WrappedToken, type WrapperDiscoveryQueryConfig, type WrappersRegistryQueryConfig, type ZamaConfig, type ZamaSDK, type ZamaSDKEvent, type ZamaSDKEventInput, type ZamaSDKEventListener, ZamaSDKEvents, approveUnderlyingMutationOptions, batchDecryptBalancesAsMutationOptions, clearCredentialsMutationOptions, confidentialBalanceQueryOptions, confidentialBalancesQueryOptions, confidentialIsOperatorQueryOptions, confidentialSetOperatorMutationOptions, confidentialTokenAddressQueryOptions, confidentialTransferAndCallMutationOptions, confidentialTransferFromAndCallMutationOptions, confidentialTransferFromMutationOptions, confidentialTransferMutationOptions, decryptBalanceAsMutationOptions, decryptPublicValuesMutationOptions, decryptValuesQueryOptions, delegateDecryptionMutationOptions, delegatedDecryptValuesMutationOptions, delegationStatusQueryOptions, encryptMutationOptions, filterQueryOptions, finalizeUnwrapMutationOptions, grantPermitMutationOptions, hasPermitQueryOptions, hashFn, invalidateAfterApproveUnderlying, invalidateAfterSetOperator, invalidateAfterShield, invalidateAfterTransfer, invalidateAfterUnshield, invalidateAfterUnshieldSettled, invalidateAfterUnwrap, invalidateBalanceQueries, invalidateWagmiBalanceQueries, invalidateWalletLifecycleQueries, isConfidentialQueryOptions, isConfidentialTokenValidQueryOptions, isWrapperQueryOptions, listPairsQueryOptions, pendingUnshieldQueryOptions, resumeUnshieldMutationOptions, revokeDelegationMutationOptions, revokePermitsMutationOptions, shieldMutationOptions, tokenAddressQueryOptions, tokenMetadataQueryOptions, tokenPairQueryOptions, tokenPairsLengthQueryOptions, tokenPairsQueryOptions, tokenPairsSliceQueryOptions, totalSupplyQueryOptions, underlyingAllowanceQueryOptions, unshieldAllMutationOptions, unshieldMutationOptions, unwrapAllMutationOptions, unwrapMutationOptions, wrapperDiscoveryQueryOptions, zamaQueryKeys };
@@ -1,2 +1,2 @@
1
- import{A as e,N as t,a as n,b as r,d as i,f as a,h as o,i as s,k as c,n as l,o as u,r as d,s as f,t as p,v as ee,x as m}from"../wrappers-registry-C1oK8Bi6.js";import{d as h,l as g,o as _,t as v}from"../token-Bt33g0zQ.js";import{d as y,i as b}from"../assertions-zYseN5Xz.js";import{getAddress as x,zeroAddress as S}from"viem";import{z as C}from"zod/mini";function te(e){if(!w(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!w(n)||!n.hasOwnProperty(`isPrototypeOf`))}function w(e){return Object.prototype.toString.call(e)===`[object Object]`}function T(e){let{gcTime:t,staleTime:n,enabled:r,select:i,refetchInterval:a,refetchOnMount:o,refetchOnWindowFocus:s,refetchOnReconnect:c,retry:l,retryDelay:u,retryOnMount:d,queryFn:f,queryKey:p,queryKeyHashFn:ee,initialData:m,initialDataUpdatedAt:h,placeholderData:g,structuralSharing:_,throwOnError:v,meta:y,query:b,pollingInterval:x,...S}=e;return S}function E(e){return JSON.stringify(e,(e,t)=>te(t)?Object.keys(t).toSorted().reduce((e,n)=>(e[n]=t[n],e),{}):typeof t==`bigint`?t.toString():t)}const D=e=>e.map(e=>x(e)),O=e=>e===void 0?void 0:x(e),k=e=>e?{walletAddress:x(e.address),walletChainId:e.chainId}:{},A={confidentialBalance:{all:[`zama.confidentialBalance`],token:e=>[`zama.confidentialBalance`,{tokenAddress:x(e)}],owner:(e,t,n)=>[`zama.confidentialBalance`,{tokenAddress:x(e),...k(n),...t?{owner:x(t)}:{}}]},confidentialBalances:{all:[`zama.confidentialBalances`],tokens:(e,t,n)=>[`zama.confidentialBalances`,{tokenAddresses:D(e),...k(n),...t?{owner:x(t)}:{}}]},tokenMetadata:{all:[`zama.tokenMetadata`],token:e=>[`zama.tokenMetadata`,{tokenAddress:x(e)}]},isConfidential:{all:[`zama.isConfidential`],token:e=>[`zama.isConfidential`,{tokenAddress:x(e)}]},isWrapper:{all:[`zama.isWrapper`],token:e=>[`zama.isWrapper`,{tokenAddress:x(e)}]},wrapperDiscovery:{all:[`zama.wrapperDiscovery`],token:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.wrapperDiscovery`,{...r?{tokenAddress:r}:{},...i?{erc20Address:i}:{},...a?{registryAddress:a}:{}}]}},underlyingAllowance:{all:[`zama.underlyingAllowance`],token:e=>[`zama.underlyingAllowance`,{tokenAddress:x(e)}],scope:(e,t)=>[`zama.underlyingAllowance`,{tokenAddress:x(e),...t?{owner:x(t)}:{}}]},confidentialIsOperator:{all:[`zama.confidentialIsOperator`],token:e=>{let t=O(e);return[`zama.confidentialIsOperator`,t?{tokenAddress:t}:{}]},scope:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.confidentialIsOperator`,{...r?{tokenAddress:r}:{},...i?{holder:i}:{},...a?{spender:a}:{}}]}},totalSupply:{all:[`zama.totalSupply`],token:e=>[`zama.totalSupply`,{tokenAddress:x(e)}]},pendingUnshield:{all:[`zama.pendingUnshield`],token:e=>[`zama.pendingUnshield`,{tokenAddress:x(e)}]},hasPermit:{all:[`zama.hasPermit`],scope:(e,t)=>[`zama.hasPermit`,{...k(t),contractAddresses:D(e).toSorted()}]},delegationStatus:{all:[`zama.delegationStatus`],contract:e=>{let t=O(e);return[`zama.delegationStatus`,t?{contractAddress:t}:{}]},scope:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.delegationStatus`,{...r?{contractAddress:r}:{},...i?{delegatorAddress:i}:{},...a?{delegateAddress:a}:{}}]}},decryption:{all:[`zama.decryption`],encryptedValue:(e,t)=>[`zama.decryption`,{encryptedValue:e,...t===void 0?{}:{contractAddress:x(t)}}],encryptedInputs:(e,t)=>[`zama.decryption`,{...k(t),encryptedInputs:[...e].toSorted((e,t)=>e.encryptedValue.localeCompare(t.encryptedValue)).map(e=>({encryptedValue:e.encryptedValue,contractAddress:x(e.contractAddress)}))}]},wrappersRegistry:{all:[`zama.wrappersRegistry`],chainId:()=>[`zama.wrappersRegistry`,{type:`chainId`}],tokenPairs:e=>[`zama.wrappersRegistry`,{type:`tokenPairs`,registryAddress:x(e)}],confidentialTokenAddress:(e,t)=>[`zama.wrappersRegistry`,{type:`confidentialTokenAddress`,registryAddress:x(e),tokenAddress:x(t)}],tokenAddress:(e,t)=>[`zama.wrappersRegistry`,{type:`tokenAddress`,registryAddress:x(e),confidentialTokenAddress:x(t)}],tokenPairsLength:e=>[`zama.wrappersRegistry`,{type:`tokenPairsLength`,registryAddress:x(e)}],tokenPairsSlice:(e,t,n)=>[`zama.wrappersRegistry`,{type:`tokenPairsSlice`,registryAddress:x(e),fromIndex:t,toIndex:n}],tokenPair:(e,t)=>[`zama.wrappersRegistry`,{type:`tokenPair`,registryAddress:x(e),index:t}],isConfidentialTokenValid:(e,t)=>[`zama.wrappersRegistry`,{type:`isConfidentialTokenValid`,registryAddress:x(e),confidentialTokenAddress:x(t)}],listPairs:(e,t,n,r)=>[`zama.wrappersRegistry`,{type:`listPairs`,registryAddress:x(e),page:t,pageSize:n,metadata:r}]}};function j(e,t){e.invalidateQueries({queryKey:A.underlyingAllowance.token(t)})}function M(e,t){e.invalidateQueries({queryKey:A.pendingUnshield.token(t)})}function N(e,t){P(e,t),j(e,t),M(e,t),q(e)}function P(e,t){e.invalidateQueries({queryKey:A.confidentialBalance.token(t)}),e.invalidateQueries({queryKey:A.confidentialBalances.all})}function F(e,t){P(e,t),j(e,t),q(e)}function I(e,t){P(e,t),j(e,t),M(e,t),q(e)}function L(e,t){M(e,t)}function R(e,t){P(e,t)}function z(e,t){j(e,t)}function B(e,t){e.invalidateQueries({queryKey:A.confidentialIsOperator.token(t)})}function V(e){return Array.isArray(e.queryKey)&&typeof e.queryKey[0]==`string`?e.queryKey[0].startsWith(`zama.`):!1}const H=C.enum([`balanceOf`,`confidentialBalanceOf`]),U=C.object({functionName:H}),W=C.object({contracts:C.array(C.unknown())});function G(e){if(U.safeParse(e).success)return!0;let t=W.safeParse(e);return t.success&&t.data.contracts.some(e=>U.safeParse(e).success)}function K(e){return Array.isArray(e.queryKey)&&e.queryKey.some(G)}function q(e){e.invalidateQueries({predicate:K})}function J(e){e.removeQueries({queryKey:A.decryption.all}),e.removeQueries({queryKey:A.hasPermit.all}),e.invalidateQueries({predicate:V}),q(e)}function Y(e,t,n){let i=A.tokenMetadata.token(t);return{...T(n?.query??{}),queryKey:i,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey,[i,a,o]=await Promise.all([e.provider.readContract(r(n)),e.provider.readContract(m(n)),e.provider.readContract(ee(n))]);return{name:i,symbol:a,decimals:o}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function X(e,t,n){let r=A.isConfidential.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;try{return await e.provider.readContract(i(n))}catch(e){if(y(e))return!1;throw e}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function Z(e,t,n){let r=A.isWrapper.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;try{return await e.provider.readContract(a(n))}catch(e){if(y(e))return!1;throw e}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function Q(e,t,n){let r=A.totalSupply.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;return e.provider.readContract(c(n))},staleTime:3e4,enabled:n?.query?.enabled!==!1}}function ne(e,t){let n=A.wrapperDiscovery.token(t.tokenAddress,t.erc20Address,t.registryAddress);return{...T(t.query??{}),queryKey:n,queryFn:async t=>{let[,{erc20Address:n}]=t.queryKey;b(n,`wrapperDiscoveryQueryOptions: erc20Address`);let r=await e.getConfidentialToken(n);return r?r.confidentialTokenAddress:null},staleTime:1/0,enabled:!!(t.tokenAddress&&t.erc20Address&&t.registryAddress)&&t.query?.enabled!==!1}}function re(e,n,r){let i=r.owner,a=r.query?.enabled!==!1,s=A.underlyingAllowance.scope(n,i);return{...T(r.query??{}),queryKey:s,queryFn:async n=>{let[,{tokenAddress:r,owner:i}]=n.queryKey;b(i,`underlyingAllowanceQueryOptions: owner`);let a=await e.provider.readContract(t(r));return e.provider.readContract(o(a,i,r))},staleTime:3e4,enabled:!!i&&a}}function ie(e,t,n){let r=A.pendingUnshield.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;return e.createWrappedToken(n).getPendingUnshield()},staleTime:0,enabled:n?.query?.enabled!==!1}}function ae(t,n,r){let i=r.holder,a=r.spender,o=r.query?.enabled!==!1,s=A.confidentialIsOperator.scope(n,i,a);return{...T(r.query??{}),queryKey:s,queryFn:async n=>{let[,{tokenAddress:r,holder:i,spender:a}]=n.queryKey;return b(r,`confidentialIsOperatorQueryOptions: tokenAddress`),b(i,`confidentialIsOperatorQueryOptions: holder`),b(a,`confidentialIsOperatorQueryOptions: spender`),t.provider.readContract(e(r,i,a))},staleTime:3e4,enabled:!!(n&&i&&a)&&o}}function oe(e,t,n={}){let r=t.query??{};return{...T(r),queryKey:A.confidentialBalance.owner(t.tokenAddress,t.account,n.walletAccount),queryFn:async t=>{let[,{owner:n}]=t.queryKey;return b(n,`confidentialBalanceQueryOptions: owner`),e.balanceOf(n)},enabled:!!t.account&&n.walletAccount!==void 0&&r?.enabled!==!1}}function se(e,t,n={}){let r=t?.account,i=n.walletAccount,a=t?.query??{},o=e.map(e=>e.address);return{...T(a),queryKey:A.confidentialBalances.tokens(o,r,i),queryFn:async t=>{let[,{owner:n}]=t.queryKey;return b(n,`confidentialBalancesQueryOptions: owner`),v.batchBalancesOf(e,n)},enabled:!!r&&e.length>0&&i!==void 0&&a?.enabled!==!1}}function ce(e,t){let n=!!t.registryAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPairs(t.registryAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n}]=t.queryKey;return e.provider.readContract(s(n))},staleTime:e.registry.ttlMs,enabled:n}}function le(e,t){let n=!!t.registryAddress&&!!t.tokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.confidentialTokenAddress(t.registryAddress??S,t.tokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,tokenAddress:r}]=t.queryKey;return e.provider.readContract(p(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function ue(e,t){let n=!!t.registryAddress&&!!t.confidentialTokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenAddress(t.registryAddress??S,t.confidentialTokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,confidentialTokenAddress:r}]=t.queryKey;return e.provider.readContract(l(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function de(e,t){let r=!!t.registryAddress&&t.query?.enabled!==!1,i=A.wrappersRegistry.tokenPairsLength(t.registryAddress??S);return{...T(t.query??{}),queryKey:i,queryFn:async t=>{let[,{registryAddress:r}]=t.queryKey;return e.provider.readContract(n(r))},staleTime:e.registry.ttlMs,enabled:r}}function fe(e,t){let n=!!t.registryAddress&&t.fromIndex!==void 0&&t.toIndex!==void 0&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPairsSlice(t.registryAddress??S,String(t.fromIndex??0n),String(t.toIndex??0n));return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,fromIndex:r,toIndex:i}]=t.queryKey;return e.provider.readContract(u(n,BigInt(r),BigInt(i)))},staleTime:e.registry.ttlMs,enabled:n}}function pe(e,t){let n=!!t.registryAddress&&t.index!==void 0&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPair(t.registryAddress??S,String(t.index??0n));return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,index:r}]=t.queryKey;return e.provider.readContract(d(n,BigInt(r)))},staleTime:e.registry.ttlMs,enabled:n}}function me(e,t){let n=!!t.registryAddress&&!!t.confidentialTokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.isConfidentialTokenValid(t.registryAddress??S,t.confidentialTokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,confidentialTokenAddress:r}]=t.queryKey;return e.provider.readContract(f(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function he(e,t){let n=!!t.registryAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.listPairs(t.registryAddress??S,t.page??1,t.pageSize??100,t.metadata??!1);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{page:n,pageSize:r,metadata:i}]=t.queryKey;return e.listPairs({page:n,pageSize:r,metadata:i})},staleTime:e.ttlMs,enabled:n}}function ge(e){return{mutationKey:[`zama.shield`,e.address],mutationFn:async({amount:t,...n})=>e.shield(t,n)}}function _e(e){return{mutationKey:[`zama.confidentialTransfer`,e.address],mutationFn:async({to:t,amount:n,...r})=>e.confidentialTransfer(t,n,r)}}function ve(e){return{mutationKey:[`zama.confidentialTransferAndCall`,e.address],mutationFn:async({to:t,amount:n,data:r,...i})=>e.confidentialTransferAndCall(t,n,r,i)}}function ye(e){return{mutationKey:[`zama.confidentialTransferFrom`,e.address],mutationFn:async({from:t,to:n,amount:r,callbacks:i})=>e.confidentialTransferFrom(t,n,r,i)}}function be(e){return{mutationKey:[`zama.confidentialTransferFromAndCall`,e.address],mutationFn:async({from:t,to:n,amount:r,data:i,callbacks:a})=>e.confidentialTransferFromAndCall(t,n,r,i,a)}}function xe(e){return{mutationKey:[`zama.confidentialSetOperator`,e.address],mutationFn:async({operator:t,until:n})=>e.setOperator(t,n)}}function Se(e){return{mutationKey:[`zama.approveUnderlying`,e.address],mutationFn:async({amount:t})=>e.approveUnderlying(t)}}function Ce(e){return{mutationKey:[`zama.unshield`,e.address],mutationFn:async({amount:t,...n})=>e.unshield(t,n)}}function we(e){return{mutationKey:[`zama.unshieldAll`,e.address],mutationFn:async t=>e.unshieldAll(t||void 0)}}function Te(e){return{mutationKey:[`zama.resumeUnshield`,e.address],mutationFn:async({unwrapTxHash:t,...n})=>e.resumeUnshield(t,n)}}function Ee(e){return{mutationKey:[`zama.unwrap`,e.address],mutationFn:async({amount:t})=>e.unwrap(t)}}function De(e){return{mutationKey:[`zama.unwrapAll`,e.address],mutationFn:async()=>e.unwrapAll()}}function $(e){return{mutationKey:[`zama.finalizeUnwrap`,e.address],mutationFn:async({unwrapRequestId:t})=>e.finalizeUnwrap(t)}}function Oe(e){return{mutationKey:[`zama.encrypt`],mutationFn:async t=>e.encrypt(t)}}function ke(e){return{mutationKey:[`zama.delegatedDecryptValues`],mutationFn:async t=>e.decryption.delegatedDecryptValues(t.encryptedInputs,t.delegatorAddress)}}function Ae(e){return{mutationKey:[`zama.decryptPublicValues`],mutationFn:async t=>e.decryption.decryptPublicValues(t),onSuccess:(e,t,n,r)=>{for(let[t,n]of Object.entries(e.clearValues))r.client.setQueryData(A.decryption.encryptedValue(t),n)}}}function je(e){return{mutationKey:[`zama.grantPermit`],mutationFn:t=>e.permits.grantPermit(t)}}function Me(e,t,n={}){let r=t.query?.enabled!==!1;return{...T(t?.query??{}),queryKey:A.hasPermit.scope(t.contractAddresses,n.walletAccount),queryFn:t=>{let[,{contractAddresses:n}]=t.queryKey;return e.permits.hasPermit(n)},staleTime:0,gcTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1,enabled:r&&n.walletAccount!==void 0&&t.contractAddresses.length>0}}function Ne(e){return{mutationKey:[`zama.revokePermits`],mutationFn:t=>t===void 0?e.permits.revokePermits():e.permits.revokePermits(t)}}function Pe(e){return{mutationKey:[`zama.clearCredentials`],mutationFn:()=>e.permits.clear()}}function Fe(e,t){return{mutationKey:[`zama.delegateDecryption`,t],mutationFn:async({delegateAddress:n,expirationDate:r})=>e.delegations.delegateDecryption({contractAddress:t,delegateAddress:n,expirationDate:r})}}function Ie(e,t,n={}){return{queryKey:A.decryption.encryptedInputs(t,n.walletAccount),queryFn:t=>{let[,{encryptedInputs:n}]=t.queryKey;return e.decryption.decryptValues(n)},staleTime:1/0,enabled:t.length>0&&n.walletAccount!==void 0}}function Le(e){return{mutationKey:[`zama.decryptBalanceAs`,e.address],mutationFn:async({delegatorAddress:t,accountAddress:n})=>e.decryptBalanceAs({delegatorAddress:t,accountAddress:n})}}function Re(e){return{mutationKey:[`zama.batchDecryptBalancesAs`,...e.map(e=>e.address)],mutationFn:async t=>v.batchDecryptBalancesAs(e,t)}}function ze(e,t){return{mutationKey:[`zama.revokeDelegation`,t],mutationFn:async({delegateAddress:n})=>e.delegations.revokeDelegation({contractAddress:t,delegateAddress:n})}}function Be(e,t){return{...T(t.query??{}),queryKey:A.delegationStatus.scope(t.contractAddress,t.delegatorAddress,t.delegateAddress),queryFn:async t=>{let[,{contractAddress:n,delegatorAddress:r,delegateAddress:i}]=t.queryKey;b(n,`delegationStatusQueryOptions: contractAddress`),b(r,`delegationStatusQueryOptions: delegatorAddress`),b(i,`delegationStatusQueryOptions: delegateAddress`);let a=await e.relayer.getAclAddress(),o=await e.provider.readContract(h(a,r,i,n)),s;return s=o===0n?!1:o===g?!0:o>await e.provider.getBlockTimestamp(),{isActive:s,expiryTimestamp:o}},enabled:!!(t.contractAddress&&t.delegatorAddress&&t.delegateAddress)&&t.query?.enabled!==!1}}export{_ as ZamaSDKEvents,Se as approveUnderlyingMutationOptions,Re as batchDecryptBalancesAsMutationOptions,Pe as clearCredentialsMutationOptions,oe as confidentialBalanceQueryOptions,se as confidentialBalancesQueryOptions,ae as confidentialIsOperatorQueryOptions,xe as confidentialSetOperatorMutationOptions,le as confidentialTokenAddressQueryOptions,ve as confidentialTransferAndCallMutationOptions,be as confidentialTransferFromAndCallMutationOptions,ye as confidentialTransferFromMutationOptions,_e as confidentialTransferMutationOptions,Le as decryptBalanceAsMutationOptions,Ae as decryptPublicValuesMutationOptions,Ie as decryptValuesQueryOptions,Fe as delegateDecryptionMutationOptions,ke as delegatedDecryptValuesMutationOptions,Be as delegationStatusQueryOptions,Oe as encryptMutationOptions,T as filterQueryOptions,$ as finalizeUnwrapMutationOptions,je as grantPermitMutationOptions,Me as hasPermitQueryOptions,E as hashFn,z as invalidateAfterApproveUnderlying,B as invalidateAfterSetOperator,F as invalidateAfterShield,R as invalidateAfterTransfer,I as invalidateAfterUnshield,L as invalidateAfterUnshieldSettled,N as invalidateAfterUnwrap,P as invalidateBalanceQueries,q as invalidateWagmiBalanceQueries,J as invalidateWalletLifecycleQueries,X as isConfidentialQueryOptions,me as isConfidentialTokenValidQueryOptions,Z as isWrapperQueryOptions,he as listPairsQueryOptions,ie as pendingUnshieldQueryOptions,Te as resumeUnshieldMutationOptions,ze as revokeDelegationMutationOptions,Ne as revokePermitsMutationOptions,ge as shieldMutationOptions,ue as tokenAddressQueryOptions,Y as tokenMetadataQueryOptions,pe as tokenPairQueryOptions,de as tokenPairsLengthQueryOptions,ce as tokenPairsQueryOptions,fe as tokenPairsSliceQueryOptions,Q as totalSupplyQueryOptions,re as underlyingAllowanceQueryOptions,we as unshieldAllMutationOptions,Ce as unshieldMutationOptions,De as unwrapAllMutationOptions,Ee as unwrapMutationOptions,ne as wrapperDiscoveryQueryOptions,A as zamaQueryKeys};
1
+ import{A as e,N as t,a as n,b as r,d as i,f as a,h as o,i as s,k as c,n as l,o as u,r as d,s as f,t as p,v as ee,x as m}from"../wrappers-registry-xZWzyAi4.js";import{b as h,c as g,d as _,o as v,p as y,t as b}from"../token-CmHTAAWW.js";import{getAddress as x,zeroAddress as S}from"viem";import{z as C}from"zod/mini";function te(e){if(!w(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!w(n)||!n.hasOwnProperty(`isPrototypeOf`))}function w(e){return Object.prototype.toString.call(e)===`[object Object]`}function T(e){let{gcTime:t,staleTime:n,enabled:r,select:i,refetchInterval:a,refetchOnMount:o,refetchOnWindowFocus:s,refetchOnReconnect:c,retry:l,retryDelay:u,retryOnMount:d,queryFn:f,queryKey:p,queryKeyHashFn:ee,initialData:m,initialDataUpdatedAt:h,placeholderData:g,structuralSharing:_,throwOnError:v,meta:y,query:b,pollingInterval:x,...S}=e;return S}function E(e){return JSON.stringify(e,(e,t)=>te(t)?Object.keys(t).toSorted().reduce((e,n)=>(e[n]=t[n],e),{}):typeof t==`bigint`?t.toString():t)}const D=e=>e.map(e=>x(e)),O=e=>e===void 0?void 0:x(e),k=e=>e?{walletAddress:x(e.address),walletChainId:e.chainId}:{},A={confidentialBalance:{all:[`zama.confidentialBalance`],token:e=>[`zama.confidentialBalance`,{tokenAddress:x(e)}],owner:(e,t,n)=>[`zama.confidentialBalance`,{tokenAddress:x(e),...k(n),...t?{owner:x(t)}:{}}]},confidentialBalances:{all:[`zama.confidentialBalances`],tokens:(e,t,n)=>[`zama.confidentialBalances`,{tokenAddresses:D(e),...k(n),...t?{owner:x(t)}:{}}]},tokenMetadata:{all:[`zama.tokenMetadata`],token:e=>[`zama.tokenMetadata`,{tokenAddress:x(e)}]},isConfidential:{all:[`zama.isConfidential`],token:e=>[`zama.isConfidential`,{tokenAddress:x(e)}]},isWrapper:{all:[`zama.isWrapper`],token:e=>[`zama.isWrapper`,{tokenAddress:x(e)}]},wrapperDiscovery:{all:[`zama.wrapperDiscovery`],token:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.wrapperDiscovery`,{...r?{tokenAddress:r}:{},...i?{erc20Address:i}:{},...a?{registryAddress:a}:{}}]}},underlyingAllowance:{all:[`zama.underlyingAllowance`],token:e=>[`zama.underlyingAllowance`,{tokenAddress:x(e)}],scope:(e,t)=>[`zama.underlyingAllowance`,{tokenAddress:x(e),...t?{owner:x(t)}:{}}]},confidentialIsOperator:{all:[`zama.confidentialIsOperator`],token:e=>{let t=O(e);return[`zama.confidentialIsOperator`,t?{tokenAddress:t}:{}]},scope:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.confidentialIsOperator`,{...r?{tokenAddress:r}:{},...i?{holder:i}:{},...a?{spender:a}:{}}]}},totalSupply:{all:[`zama.totalSupply`],token:e=>[`zama.totalSupply`,{tokenAddress:x(e)}]},pendingUnshield:{all:[`zama.pendingUnshield`],token:e=>[`zama.pendingUnshield`,{tokenAddress:x(e)}]},hasPermit:{all:[`zama.hasPermit`],scope:(e,t)=>[`zama.hasPermit`,{...k(t),contractAddresses:D(e).toSorted()}]},delegationStatus:{all:[`zama.delegationStatus`],contract:e=>{let t=O(e);return[`zama.delegationStatus`,t?{contractAddress:t}:{}]},scope:(e,t,n)=>{let r=O(e),i=O(t),a=O(n);return[`zama.delegationStatus`,{...r?{contractAddress:r}:{},...i?{delegatorAddress:i}:{},...a?{delegateAddress:a}:{}}]}},decryption:{all:[`zama.decryption`],encryptedValue:(e,t)=>[`zama.decryption`,{encryptedValue:e,...t===void 0?{}:{contractAddress:x(t)}}],encryptedInputs:(e,t)=>[`zama.decryption`,{...k(t),encryptedInputs:[...e].toSorted((e,t)=>e.encryptedValue.localeCompare(t.encryptedValue)).map(e=>({encryptedValue:e.encryptedValue,contractAddress:x(e.contractAddress)}))}]},wrappersRegistry:{all:[`zama.wrappersRegistry`],chainId:()=>[`zama.wrappersRegistry`,{type:`chainId`}],tokenPairs:e=>[`zama.wrappersRegistry`,{type:`tokenPairs`,registryAddress:x(e)}],confidentialTokenAddress:(e,t)=>[`zama.wrappersRegistry`,{type:`confidentialTokenAddress`,registryAddress:x(e),tokenAddress:x(t)}],tokenAddress:(e,t)=>[`zama.wrappersRegistry`,{type:`tokenAddress`,registryAddress:x(e),confidentialTokenAddress:x(t)}],tokenPairsLength:e=>[`zama.wrappersRegistry`,{type:`tokenPairsLength`,registryAddress:x(e)}],tokenPairsSlice:(e,t,n)=>[`zama.wrappersRegistry`,{type:`tokenPairsSlice`,registryAddress:x(e),fromIndex:t,toIndex:n}],tokenPair:(e,t)=>[`zama.wrappersRegistry`,{type:`tokenPair`,registryAddress:x(e),index:t}],isConfidentialTokenValid:(e,t)=>[`zama.wrappersRegistry`,{type:`isConfidentialTokenValid`,registryAddress:x(e),confidentialTokenAddress:x(t)}],listPairs:(e,t,n,r)=>[`zama.wrappersRegistry`,{type:`listPairs`,registryAddress:x(e),page:t,pageSize:n,metadata:r}]}};function j(e,t){e.invalidateQueries({queryKey:A.underlyingAllowance.token(t)})}function M(e,t){e.invalidateQueries({queryKey:A.pendingUnshield.token(t)})}function N(e,t){P(e,t),j(e,t),M(e,t),q(e)}function P(e,t){e.invalidateQueries({queryKey:A.confidentialBalance.token(t)}),e.invalidateQueries({queryKey:A.confidentialBalances.all})}function F(e,t){P(e,t),j(e,t),q(e)}function I(e,t){P(e,t),j(e,t),M(e,t),q(e)}function L(e,t){M(e,t)}function R(e,t){P(e,t)}function z(e,t){j(e,t)}function B(e,t){e.invalidateQueries({queryKey:A.confidentialIsOperator.token(t)})}function V(e){return Array.isArray(e.queryKey)&&typeof e.queryKey[0]==`string`?e.queryKey[0].startsWith(`zama.`):!1}const H=C.enum([`balanceOf`,`confidentialBalanceOf`]),U=C.object({functionName:H}),W=C.object({contracts:C.array(C.unknown())});function G(e){if(U.safeParse(e).success)return!0;let t=W.safeParse(e);return t.success&&t.data.contracts.some(e=>U.safeParse(e).success)}function K(e){return Array.isArray(e.queryKey)&&e.queryKey.some(G)}function q(e){e.invalidateQueries({predicate:K})}function J(e){e.removeQueries({queryKey:A.decryption.all}),e.removeQueries({queryKey:A.hasPermit.all}),e.invalidateQueries({predicate:V}),q(e)}function Y(e,t,n){let i=A.tokenMetadata.token(t);return{...T(n?.query??{}),queryKey:i,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey,[i,a,o]=await Promise.all([e.provider.readContract(r(n)),e.provider.readContract(m(n)),e.provider.readContract(ee(n))]);return{name:i,symbol:a,decimals:o}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function X(e,t,n){let r=A.isConfidential.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;try{return await e.provider.readContract(i(n))}catch(e){if(h(e))return!1;throw e}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function Z(e,t,n){let r=A.isWrapper.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;try{return await e.provider.readContract(a(n))}catch(e){if(h(e))return!1;throw e}},staleTime:1/0,enabled:n?.query?.enabled!==!1}}function Q(e,t,n){let r=A.totalSupply.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;return e.provider.readContract(c(n))},staleTime:3e4,enabled:n?.query?.enabled!==!1}}function ne(e,t){let n=A.wrapperDiscovery.token(t.tokenAddress,t.erc20Address,t.registryAddress);return{...T(t.query??{}),queryKey:n,queryFn:async t=>{let[,{erc20Address:n}]=t.queryKey;g(n,`wrapperDiscoveryQueryOptions: erc20Address`);let r=await e.getConfidentialToken(n);return r?r.confidentialTokenAddress:null},staleTime:1/0,enabled:!!(t.tokenAddress&&t.erc20Address&&t.registryAddress)&&t.query?.enabled!==!1}}function re(e,n,r){let i=r.owner,a=r.query?.enabled!==!1,s=A.underlyingAllowance.scope(n,i);return{...T(r.query??{}),queryKey:s,queryFn:async n=>{let[,{tokenAddress:r,owner:i}]=n.queryKey;g(i,`underlyingAllowanceQueryOptions: owner`);let a=await e.provider.readContract(t(r));return e.provider.readContract(o(a,i,r))},staleTime:3e4,enabled:!!i&&a}}function ie(e,t,n){let r=A.pendingUnshield.token(t);return{...T(n?.query??{}),queryKey:r,queryFn:async t=>{let[,{tokenAddress:n}]=t.queryKey;return e.createWrappedToken(n).getPendingUnshield()},staleTime:0,enabled:n?.query?.enabled!==!1}}function ae(t,n,r){let i=r.holder,a=r.spender,o=r.query?.enabled!==!1,s=A.confidentialIsOperator.scope(n,i,a);return{...T(r.query??{}),queryKey:s,queryFn:async n=>{let[,{tokenAddress:r,holder:i,spender:a}]=n.queryKey;return g(r,`confidentialIsOperatorQueryOptions: tokenAddress`),g(i,`confidentialIsOperatorQueryOptions: holder`),g(a,`confidentialIsOperatorQueryOptions: spender`),t.provider.readContract(e(r,i,a))},staleTime:3e4,enabled:!!(n&&i&&a)&&o}}function oe(e,t,n={}){let r=t.query??{};return{...T(r),queryKey:A.confidentialBalance.owner(t.tokenAddress,t.account,n.walletAccount),queryFn:async t=>{let[,{owner:n}]=t.queryKey;return g(n,`confidentialBalanceQueryOptions: owner`),e.balanceOf(n)},enabled:!!t.account&&n.walletAccount!==void 0&&r?.enabled!==!1}}function se(e,t,n={}){let r=t?.account,i=n.walletAccount,a=t?.query??{},o=e.map(e=>e.address);return{...T(a),queryKey:A.confidentialBalances.tokens(o,r,i),queryFn:async t=>{let[,{owner:n}]=t.queryKey;return g(n,`confidentialBalancesQueryOptions: owner`),b.batchBalancesOf(e,n)},enabled:!!r&&e.length>0&&i!==void 0&&a?.enabled!==!1}}function ce(e,t){let n=!!t.registryAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPairs(t.registryAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n}]=t.queryKey;return e.provider.readContract(s(n))},staleTime:e.registry.ttlMs,enabled:n}}function le(e,t){let n=!!t.registryAddress&&!!t.tokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.confidentialTokenAddress(t.registryAddress??S,t.tokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,tokenAddress:r}]=t.queryKey;return e.provider.readContract(p(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function ue(e,t){let n=!!t.registryAddress&&!!t.confidentialTokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenAddress(t.registryAddress??S,t.confidentialTokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,confidentialTokenAddress:r}]=t.queryKey;return e.provider.readContract(l(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function de(e,t){let r=!!t.registryAddress&&t.query?.enabled!==!1,i=A.wrappersRegistry.tokenPairsLength(t.registryAddress??S);return{...T(t.query??{}),queryKey:i,queryFn:async t=>{let[,{registryAddress:r}]=t.queryKey;return e.provider.readContract(n(r))},staleTime:e.registry.ttlMs,enabled:r}}function fe(e,t){let n=!!t.registryAddress&&t.fromIndex!==void 0&&t.toIndex!==void 0&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPairsSlice(t.registryAddress??S,String(t.fromIndex??0n),String(t.toIndex??0n));return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,fromIndex:r,toIndex:i}]=t.queryKey;return e.provider.readContract(u(n,BigInt(r),BigInt(i)))},staleTime:e.registry.ttlMs,enabled:n}}function pe(e,t){let n=!!t.registryAddress&&t.index!==void 0&&t.query?.enabled!==!1,r=A.wrappersRegistry.tokenPair(t.registryAddress??S,String(t.index??0n));return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,index:r}]=t.queryKey;return e.provider.readContract(d(n,BigInt(r)))},staleTime:e.registry.ttlMs,enabled:n}}function me(e,t){let n=!!t.registryAddress&&!!t.confidentialTokenAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.isConfidentialTokenValid(t.registryAddress??S,t.confidentialTokenAddress??S);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{registryAddress:n,confidentialTokenAddress:r}]=t.queryKey;return e.provider.readContract(f(n,r))},staleTime:e.registry.ttlMs,enabled:n}}function he(e,t){let n=!!t.registryAddress&&t.query?.enabled!==!1,r=A.wrappersRegistry.listPairs(t.registryAddress??S,t.page??1,t.pageSize??100,t.metadata??!1);return{...T(t.query??{}),queryKey:r,queryFn:async t=>{let[,{page:n,pageSize:r,metadata:i}]=t.queryKey;return e.listPairs({page:n,pageSize:r,metadata:i})},staleTime:e.ttlMs,enabled:n}}function ge(e){return{mutationKey:[`zama.shield`,e.address],mutationFn:async({amount:t,...n})=>e.shield(t,n)}}function _e(e){return{mutationKey:[`zama.confidentialTransfer`,e.address],mutationFn:async({to:t,amount:n,...r})=>e.confidentialTransfer(t,n,r)}}function ve(e){return{mutationKey:[`zama.confidentialTransferAndCall`,e.address],mutationFn:async({to:t,amount:n,data:r,...i})=>e.confidentialTransferAndCall(t,n,r,i)}}function ye(e){return{mutationKey:[`zama.confidentialTransferFrom`,e.address],mutationFn:async({from:t,to:n,amount:r,callbacks:i})=>e.confidentialTransferFrom(t,n,r,i)}}function be(e){return{mutationKey:[`zama.confidentialTransferFromAndCall`,e.address],mutationFn:async({from:t,to:n,amount:r,data:i,callbacks:a})=>e.confidentialTransferFromAndCall(t,n,r,i,a)}}function xe(e){return{mutationKey:[`zama.confidentialSetOperator`,e.address],mutationFn:async({operator:t,until:n})=>e.setOperator(t,n)}}function Se(e){return{mutationKey:[`zama.approveUnderlying`,e.address],mutationFn:async({amount:t})=>e.approveUnderlying(t)}}function Ce(e){return{mutationKey:[`zama.unshield`,e.address],mutationFn:async({amount:t,...n})=>e.unshield(t,n)}}function we(e){return{mutationKey:[`zama.unshieldAll`,e.address],mutationFn:async t=>e.unshieldAll(t||void 0)}}function Te(e){return{mutationKey:[`zama.resumeUnshield`,e.address],mutationFn:async({unwrapTxHash:t,...n})=>e.resumeUnshield(t,n)}}function Ee(e){return{mutationKey:[`zama.unwrap`,e.address],mutationFn:async({amount:t})=>e.unwrap(t)}}function De(e){return{mutationKey:[`zama.unwrapAll`,e.address],mutationFn:async()=>e.unwrapAll()}}function $(e){return{mutationKey:[`zama.finalizeUnwrap`,e.address],mutationFn:async({unwrapRequestId:t})=>e.finalizeUnwrap(t)}}function Oe(e){return{mutationKey:[`zama.encrypt`],mutationFn:async t=>e.encrypt(t)}}function ke(e){return{mutationKey:[`zama.delegatedDecryptValues`],mutationFn:async t=>e.decryption.delegatedDecryptValues(t.encryptedInputs,t.delegatorAddress)}}function Ae(e){return{mutationKey:[`zama.decryptPublicValues`],mutationFn:async t=>e.decryption.decryptPublicValues(t),onSuccess:(e,t,n,r)=>{for(let[t,n]of Object.entries(e.clearValues))r.client.setQueryData(A.decryption.encryptedValue(t),n)}}}function je(e){return{mutationKey:[`zama.grantPermit`],mutationFn:t=>e.permits.grantPermit(t)}}function Me(e,t,n={}){let r=t.query?.enabled!==!1;return{...T(t?.query??{}),queryKey:A.hasPermit.scope(t.contractAddresses,n.walletAccount),queryFn:t=>{let[,{contractAddresses:n}]=t.queryKey;return e.permits.hasPermit(n)},staleTime:0,gcTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1,enabled:r&&n.walletAccount!==void 0&&t.contractAddresses.length>0}}function Ne(e){return{mutationKey:[`zama.revokePermits`],mutationFn:t=>t===void 0?e.permits.revokePermits():e.permits.revokePermits(t)}}function Pe(e){return{mutationKey:[`zama.clearCredentials`],mutationFn:()=>e.permits.clear()}}function Fe(e,t){return{mutationKey:[`zama.delegateDecryption`,t],mutationFn:async({delegateAddress:n,expirationDate:r})=>e.delegations.delegateDecryption({contractAddress:t,delegateAddress:n,expirationDate:r})}}function Ie(e,t,n={}){return{queryKey:A.decryption.encryptedInputs(t,n.walletAccount),queryFn:t=>{let[,{encryptedInputs:n}]=t.queryKey;return e.decryption.decryptValues(n)},staleTime:1/0,enabled:t.length>0&&n.walletAccount!==void 0}}function Le(e){return{mutationKey:[`zama.decryptBalanceAs`,e.address],mutationFn:async({delegatorAddress:t,accountAddress:n})=>e.decryptBalanceAs({delegatorAddress:t,accountAddress:n})}}function Re(e){return{mutationKey:[`zama.batchDecryptBalancesAs`,...e.map(e=>e.address)],mutationFn:async t=>b.batchDecryptBalancesAs(e,t)}}function ze(e,t){return{mutationKey:[`zama.revokeDelegation`,t],mutationFn:async({delegateAddress:n})=>e.delegations.revokeDelegation({contractAddress:t,delegateAddress:n})}}function Be(e,t){return{...T(t.query??{}),queryKey:A.delegationStatus.scope(t.contractAddress,t.delegatorAddress,t.delegateAddress),queryFn:async t=>{let[,{contractAddress:n,delegatorAddress:r,delegateAddress:i}]=t.queryKey;g(n,`delegationStatusQueryOptions: contractAddress`),g(r,`delegationStatusQueryOptions: delegatorAddress`),g(i,`delegationStatusQueryOptions: delegateAddress`);let a=e.relayer.chain.aclContractAddress,o=await e.provider.readContract(y(a,r,i,n)),s;return s=o===0n?!1:o===_?!0:o>await e.provider.getBlockTimestamp(),{isActive:s,expiryTimestamp:o}},enabled:!!(t.contractAddress&&t.delegatorAddress&&t.delegateAddress)&&t.query?.enabled!==!1}}export{v as ZamaSDKEvents,Se as approveUnderlyingMutationOptions,Re as batchDecryptBalancesAsMutationOptions,Pe as clearCredentialsMutationOptions,oe as confidentialBalanceQueryOptions,se as confidentialBalancesQueryOptions,ae as confidentialIsOperatorQueryOptions,xe as confidentialSetOperatorMutationOptions,le as confidentialTokenAddressQueryOptions,ve as confidentialTransferAndCallMutationOptions,be as confidentialTransferFromAndCallMutationOptions,ye as confidentialTransferFromMutationOptions,_e as confidentialTransferMutationOptions,Le as decryptBalanceAsMutationOptions,Ae as decryptPublicValuesMutationOptions,Ie as decryptValuesQueryOptions,Fe as delegateDecryptionMutationOptions,ke as delegatedDecryptValuesMutationOptions,Be as delegationStatusQueryOptions,Oe as encryptMutationOptions,T as filterQueryOptions,$ as finalizeUnwrapMutationOptions,je as grantPermitMutationOptions,Me as hasPermitQueryOptions,E as hashFn,z as invalidateAfterApproveUnderlying,B as invalidateAfterSetOperator,F as invalidateAfterShield,R as invalidateAfterTransfer,I as invalidateAfterUnshield,L as invalidateAfterUnshieldSettled,N as invalidateAfterUnwrap,P as invalidateBalanceQueries,q as invalidateWagmiBalanceQueries,J as invalidateWalletLifecycleQueries,X as isConfidentialQueryOptions,me as isConfidentialTokenValidQueryOptions,Z as isWrapperQueryOptions,he as listPairsQueryOptions,ie as pendingUnshieldQueryOptions,Te as resumeUnshieldMutationOptions,ze as revokeDelegationMutationOptions,Ne as revokePermitsMutationOptions,ge as shieldMutationOptions,ue as tokenAddressQueryOptions,Y as tokenMetadataQueryOptions,pe as tokenPairQueryOptions,de as tokenPairsLengthQueryOptions,ce as tokenPairsQueryOptions,fe as tokenPairsSliceQueryOptions,Q as totalSupplyQueryOptions,re as underlyingAllowanceQueryOptions,we as unshieldAllMutationOptions,Ce as unshieldMutationOptions,De as unwrapAllMutationOptions,Ee as unwrapMutationOptions,ne as wrapperDiscoveryQueryOptions,A as zamaQueryKeys};
2
2
  //# sourceMappingURL=index.js.map