@permissionless-technologies/upp-sdk 0.4.22 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/{chunk-XDWRMHLY.js → chunk-27SFQEYY.js} +79 -40
- package/dist/chunk-27SFQEYY.js.map +1 -0
- package/dist/chunk-53JACDGZ.js +131 -0
- package/dist/chunk-53JACDGZ.js.map +1 -0
- package/dist/{chunk-D4VCRPKS.js → chunk-5CZ7R4CT.js} +2 -2
- package/dist/{chunk-D4VCRPKS.js.map → chunk-5CZ7R4CT.js.map} +1 -1
- package/dist/chunk-HB43C26P.cjs +139 -0
- package/dist/chunk-HB43C26P.cjs.map +1 -0
- package/dist/{chunk-UYPIWBKM.cjs → chunk-JVFP4Q2B.cjs} +2 -2
- package/dist/{chunk-UYPIWBKM.cjs.map → chunk-JVFP4Q2B.cjs.map} +1 -1
- package/dist/{chunk-DYSU7JYL.cjs → chunk-MSBRBR3X.cjs} +79 -40
- package/dist/chunk-MSBRBR3X.cjs.map +1 -0
- package/dist/core/index.cjs +21 -13
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/{index-CpfUNGm9.d.ts → index-BRgBwiBM.d.ts} +179 -2
- package/dist/{index-hNuffoCo.d.cts → index-BuUCObcz.d.cts} +1167 -714
- package/dist/{index-De5B4r0l.d.ts → index-C7OdmKfs.d.ts} +1167 -714
- package/dist/{index-AooYZ0kF.d.cts → index-brLSTa0y.d.cts} +179 -2
- package/dist/index.cjs +1489 -767
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1464 -747
- package/dist/index.js.map +1 -1
- package/dist/indexer/index.cjs +6 -6
- package/dist/indexer/index.d.cts +5 -5
- package/dist/indexer/index.d.ts +5 -5
- package/dist/indexer/index.js +1 -1
- package/dist/react/index.cjs +30 -28
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +8 -4
- package/dist/react/index.d.ts +8 -4
- package/dist/react/index.js +30 -28
- package/dist/react/index.js.map +1 -1
- package/dist/{transfer-H6UWWUSN.cjs → transfer-AJWQANX7.cjs} +9 -9
- package/dist/{transfer-H6UWWUSN.cjs.map → transfer-AJWQANX7.cjs.map} +1 -1
- package/dist/{transfer-BGzySIhC.d.ts → transfer-BxiDgCvx.d.ts} +2 -0
- package/dist/{transfer-MLVRASM3.js → transfer-SEC6K5A5.js} +3 -3
- package/dist/{transfer-MLVRASM3.js.map → transfer-SEC6K5A5.js.map} +1 -1
- package/dist/{transfer-BhB-UuBP.d.cts → transfer-p-NXHdGY.d.cts} +2 -0
- package/package.json +4 -5
- package/src/contracts/interfaces/IUniversalPrivatePool.sol +52 -93
- package/src/deployments/11155111.json +28 -17
- package/src/deployments/31337.json +28 -14
- package/dist/chunk-632LPXPX.cjs +0 -49
- package/dist/chunk-632LPXPX.cjs.map +0 -1
- package/dist/chunk-DYSU7JYL.cjs.map +0 -1
- package/dist/chunk-UMWY4ICQ.js +0 -43
- package/dist/chunk-UMWY4ICQ.js.map +0 -1
- package/dist/chunk-XDWRMHLY.js.map +0 -1
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as
|
|
2
|
-
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CIRCUIT_CDN_BASE, c as CIRCUIT_VERSION, d as CircuitArtifactCache, e as CircuitArtifacts, f as CircuitCacheStatus, g as CircuitType, h as Commitment, D as DEMO_ASP_ID, i as DEMO_ASP_NAME, j as DownloadProgress, E as EncryptedNote, M as MergeParams, k as MergeRecord, l as MerkleProofWithNote, N as NOTE_VERSION, m as Note, n as NoteWithAmount, o as Nullifier, P as PlonkProvingStage, p as Proof, q as ProofResult, r as ProofWorkerManager, s as ProofWorkerRequest, t as ProofWorkerResponse, R as RATE_PRECISION, u as ResolvedCircuitArtifacts, S as STATE_TREE_DEPTH, v as SWAP_EVENTS_ABI, w as SWAP_ORDER_CANCELLED_EVENT, x as SWAP_ORDER_CLAIMED_EVENT, y as SWAP_ORDER_FILLED_EVENT, z as SWAP_ORDER_PLACED_EVENT, B as ShieldParams, F as SpendableNote, G as StarkNote, H as StarkProof, I as StarkStealthMetaAddress, J as Stealth1x2CircuitInputs, K as Stealth2x2CircuitInputs, L as StealthAddress, O as StealthCircuitInputs, Q as StealthCircuitType, T as StealthMetaAddress, U as SwapFillEvent, V as SwapFillParams, W as SwapOrder, X as SwapOrderEvent, Y as SwapOrderParams, Z as TransferBuildResult, _ as TransferContext, $ as TransferParams, a0 as TransferStage, a1 as UPPCircuitInputs, a2 as UPPCircuitType, a3 as UPPTransferCircuitInputs, a4 as UPPWithdrawCircuitInputs, a5 as WithdrawParams, a6 as buildASPTree, a7 as buildTransfer, a8 as buildUPPTransferCircuitInputs, a9 as computeCancelKeyHash, aa as computeFillPercentage, ab as computeGiveAmount, ac as computeMultiOriginASPRoot, ad as computeNullifier, ae as computeRate, af as computeSingleOriginASPRoot, ag as computeTakeAmount, ah as computeTotalBuyAmount, ai as createDemoASPRoot, aj as filterOrdersByASP, ak as filterOrdersByTokenPair, al as formatOutputForContract, am as formatProofForContract, an as formatRate, ao as generateASPProof, ap as generateCancelSecret, aq as generateMultiOriginASPProof, ar as generateProof, as as generateSingleOriginASPProof, at as generateStealthProof, au as generateUPPProof, av as generateUPPProofAsync, aw as getCancelSecret, ax as getMerkleProofsForNotes, ay as getOwnOrderIds, az as getStealthCircuitArtifacts, aA as getUPPCircuitArtifacts, aB as isFillerASPAccepted, aC as isOrderActive, aD as removeCancelSecret, aE as storeCancelSecret, aF as syncMerkleTree, aG as verifyASPProof, aH as verifyProof } from './transfer-
|
|
1
|
+
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DeploymentConfig, l as DirectAccountAdapter, m as IASPProvider, n as IAccountAdapter, o as INoteStore, a as IndexedNote, N as NoteStatus, p as NoteStore, P as ProofSystem, q as STARK_ADDRESS_VERSION, r as STARK_STEALTH_ADDRESS_PREFIX, s as STEALTH_ADDRESS_PREFIX, t as ShieldedNote, u as StorableAccountAdapter, S as StorageAdapter, c as SyncResult, U as UPPClient, v as UPPClientConfig, V as VerificationCheck, w as VerificationResult, x as VerifierAddresses, y as checkImplementation, z as computeNoteEncryptionKey, B as createNote, E as createOneTimeKeys, F as createUPPClient, G as decodeStarkStealthAddress, H as decodeStealthAddress, J as decryptNote, K as detectAddressType, M as encodeStarkStealthAddress, O as encodeStealthAddress, Q as encryptNote, T as generateStarkStealthAddress, W as generateStealthAddress, X as getDeployment, Y as getDeploymentOrThrow, Z as getSupportedChainIds, _ as getTokenAddress, $ as hasDeployment, a0 as isValidStarkStealthAddress, a1 as isValidStealthAddress, a2 as registerDeployment, a3 as verifyDeployment, a4 as verifyOwnership } from './index-BRgBwiBM.js';
|
|
2
|
+
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CIRCUIT_CDN_BASE, c as CIRCUIT_VERSION, d as CircuitArtifactCache, e as CircuitArtifacts, f as CircuitCacheStatus, g as CircuitType, h as Commitment, D as DEMO_ASP_ID, i as DEMO_ASP_NAME, j as DownloadProgress, E as EncryptedNote, M as MergeParams, k as MergeRecord, l as MerkleProofWithNote, N as NOTE_VERSION, m as Note, n as NoteWithAmount, o as Nullifier, P as PlonkProvingStage, p as Proof, q as ProofResult, r as ProofWorkerManager, s as ProofWorkerRequest, t as ProofWorkerResponse, R as RATE_PRECISION, u as ResolvedCircuitArtifacts, S as STATE_TREE_DEPTH, v as SWAP_EVENTS_ABI, w as SWAP_ORDER_CANCELLED_EVENT, x as SWAP_ORDER_CLAIMED_EVENT, y as SWAP_ORDER_FILLED_EVENT, z as SWAP_ORDER_PLACED_EVENT, B as ShieldParams, F as SpendableNote, G as StarkNote, H as StarkProof, I as StarkStealthMetaAddress, J as Stealth1x2CircuitInputs, K as Stealth2x2CircuitInputs, L as StealthAddress, O as StealthCircuitInputs, Q as StealthCircuitType, T as StealthMetaAddress, U as SwapFillEvent, V as SwapFillParams, W as SwapOrder, X as SwapOrderEvent, Y as SwapOrderParams, Z as TransferBuildResult, _ as TransferContext, $ as TransferParams, a0 as TransferStage, a1 as UPPCircuitInputs, a2 as UPPCircuitType, a3 as UPPTransferCircuitInputs, a4 as UPPWithdrawCircuitInputs, a5 as WithdrawParams, a6 as buildASPTree, a7 as buildTransfer, a8 as buildUPPTransferCircuitInputs, a9 as computeCancelKeyHash, aa as computeFillPercentage, ab as computeGiveAmount, ac as computeMultiOriginASPRoot, ad as computeNullifier, ae as computeRate, af as computeSingleOriginASPRoot, ag as computeTakeAmount, ah as computeTotalBuyAmount, ai as createDemoASPRoot, aj as filterOrdersByASP, ak as filterOrdersByTokenPair, al as formatOutputForContract, am as formatProofForContract, an as formatRate, ao as generateASPProof, ap as generateCancelSecret, aq as generateMultiOriginASPProof, ar as generateProof, as as generateSingleOriginASPProof, at as generateStealthProof, au as generateUPPProof, av as generateUPPProofAsync, aw as getCancelSecret, ax as getMerkleProofsForNotes, ay as getOwnOrderIds, az as getStealthCircuitArtifacts, aA as getUPPCircuitArtifacts, aB as isFillerASPAccepted, aC as isOrderActive, aD as removeCancelSecret, aE as storeCancelSecret, aF as syncMerkleTree, aG as verifyASPProof, aH as verifyProof } from './transfer-BxiDgCvx.js';
|
|
3
3
|
import { A as AuditKeyExport, D as DEFAULT_KEY_DERIVATION_CONFIG, a as DualMasterKeys, K as KeyDerivationConfig, M as MasterKeys, O as OneTimeKeys, P as ProvingSystem, S as SerializedKeys, b as StarkMasterKeys, c as StealthAddressComponents, T as TransactionViewingKey } from './types-mLybMxNR.js';
|
|
4
4
|
import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.js';
|
|
5
5
|
import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.js';
|
|
6
6
|
import { M as MAX_TREE_DEPTH, a as MerkleProof, b as MerkleTree, P as Point, c as addPoints, d as buildMerkleTree, e as computeSharedSecret, f as deriveDecryptionViewingKey, g as deriveEncryptionViewingKey, h as getBasePoint, i as getMerkleProof, j as getSubOrder, k as isOnCurve, m as mulPointScalar, p as packPoint, l as pointToTuple, n as privateToPublic, t as tupleToPoint, v as verifyMerkleProof } from './merkle-mteVOlDf.js';
|
|
7
7
|
import { S as STARK_AMOUNT_SCALE, a as STARK_ASP_TREE_DEPTH, b as STARK_STATE_TREE_DEPTH, c as StarkTransferWitness, d as StarkWithdrawWitness, e as addressToM31, f as buildStarkTransferWitness, g as buildStarkWithdrawWitness, h as computeTransferPublicInputsSeed, i as computeWithdrawPublicInputsSeed, j as isStarkAligned, p as packM31Digest, s as scaleAmountForStark, k as splitSecretToM31Limbs, t as truncateToM31 } from './stark-BcTD1OaJ.js';
|
|
8
8
|
import { D as DIGEST_SIZE, a as M31Digest, M as M31Secret, b as M31_P, S as SECRET_LIMBS, c as computeStarkCommitment, d as computeStarkNullifier, e as computeStarkOwnerHash, k as keccakHashTwo, f as keccakM31, s as splitToM31Limbs } from './keccak-m31-B_AqBbRF.js';
|
|
9
|
-
import { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
|
|
10
|
-
import { Address } from 'viem';
|
|
11
9
|
|
|
12
10
|
/**
|
|
13
11
|
* RPC Indexer
|
|
@@ -60,38 +58,38 @@ import { Address } from 'viem';
|
|
|
60
58
|
*/
|
|
61
59
|
declare function makeRpcIndexer(config: RpcIndexerConfig): Indexer;
|
|
62
60
|
|
|
61
|
+
/**
|
|
62
|
+
* UniversalPrivatePool Contract ABI
|
|
63
|
+
*
|
|
64
|
+
* Auto-generated from Foundry compiled artifacts.
|
|
65
|
+
* DO NOT EDIT MANUALLY.
|
|
66
|
+
*
|
|
67
|
+
* Generated by: scripts/generate-abis.js
|
|
68
|
+
*/
|
|
63
69
|
declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
64
70
|
readonly type: "constructor";
|
|
65
|
-
readonly inputs: readonly [
|
|
66
|
-
readonly name: "_aspHub";
|
|
67
|
-
readonly type: "address";
|
|
68
|
-
readonly internalType: "address";
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "_transferVerifier";
|
|
71
|
-
readonly type: "address";
|
|
72
|
-
readonly internalType: "address";
|
|
73
|
-
}, {
|
|
74
|
-
readonly name: "_mergeVerifier";
|
|
75
|
-
readonly type: "address";
|
|
76
|
-
readonly internalType: "address";
|
|
77
|
-
}, {
|
|
78
|
-
readonly name: "_withdrawVerifier";
|
|
79
|
-
readonly type: "address";
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
}, {
|
|
82
|
-
readonly name: "_joinSplitVerifier";
|
|
83
|
-
readonly type: "address";
|
|
84
|
-
readonly internalType: "address";
|
|
85
|
-
}, {
|
|
86
|
-
readonly name: "_mergeTransfer2x2Verifier";
|
|
87
|
-
readonly type: "address";
|
|
88
|
-
readonly internalType: "address";
|
|
89
|
-
}, {
|
|
90
|
-
readonly name: "_mergeTransfer4x2Verifier";
|
|
91
|
-
readonly type: "address";
|
|
92
|
-
readonly internalType: "address";
|
|
93
|
-
}];
|
|
71
|
+
readonly inputs: readonly [];
|
|
94
72
|
readonly stateMutability: "nonpayable";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "ADMIN_ROLE";
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly name: "";
|
|
79
|
+
readonly type: "bytes32";
|
|
80
|
+
readonly internalType: "bytes32";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly outputs: readonly [{
|
|
88
|
+
readonly name: "";
|
|
89
|
+
readonly type: "bytes32";
|
|
90
|
+
readonly internalType: "bytes32";
|
|
91
|
+
}];
|
|
92
|
+
readonly stateMutability: "view";
|
|
95
93
|
}, {
|
|
96
94
|
readonly type: "function";
|
|
97
95
|
readonly name: "MAX_TREE_DEPTH";
|
|
@@ -102,6 +100,16 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
102
100
|
readonly internalType: "uint256";
|
|
103
101
|
}];
|
|
104
102
|
readonly stateMutability: "view";
|
|
103
|
+
}, {
|
|
104
|
+
readonly type: "function";
|
|
105
|
+
readonly name: "MODULE_ROLE";
|
|
106
|
+
readonly inputs: readonly [];
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly name: "";
|
|
109
|
+
readonly type: "bytes32";
|
|
110
|
+
readonly internalType: "bytes32";
|
|
111
|
+
}];
|
|
112
|
+
readonly stateMutability: "view";
|
|
105
113
|
}, {
|
|
106
114
|
readonly type: "function";
|
|
107
115
|
readonly name: "ROOT_HISTORY_SIZE";
|
|
@@ -122,6 +130,36 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
122
130
|
readonly internalType: "uint256";
|
|
123
131
|
}];
|
|
124
132
|
readonly stateMutability: "view";
|
|
133
|
+
}, {
|
|
134
|
+
readonly type: "function";
|
|
135
|
+
readonly name: "UPGRADER_ROLE";
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
readonly outputs: readonly [{
|
|
138
|
+
readonly name: "";
|
|
139
|
+
readonly type: "bytes32";
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "view";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
146
|
+
readonly inputs: readonly [];
|
|
147
|
+
readonly outputs: readonly [{
|
|
148
|
+
readonly name: "";
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly internalType: "string";
|
|
151
|
+
}];
|
|
152
|
+
readonly stateMutability: "view";
|
|
153
|
+
}, {
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
readonly name: "addSupportedToken";
|
|
156
|
+
readonly inputs: readonly [{
|
|
157
|
+
readonly name: "token";
|
|
158
|
+
readonly type: "address";
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
}];
|
|
161
|
+
readonly outputs: readonly [];
|
|
162
|
+
readonly stateMutability: "nonpayable";
|
|
125
163
|
}, {
|
|
126
164
|
readonly type: "function";
|
|
127
165
|
readonly name: "aspHub";
|
|
@@ -172,6 +210,20 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
172
210
|
readonly internalType: "uint256";
|
|
173
211
|
}];
|
|
174
212
|
readonly stateMutability: "view";
|
|
213
|
+
}, {
|
|
214
|
+
readonly type: "function";
|
|
215
|
+
readonly name: "getRoleAdmin";
|
|
216
|
+
readonly inputs: readonly [{
|
|
217
|
+
readonly name: "role";
|
|
218
|
+
readonly type: "bytes32";
|
|
219
|
+
readonly internalType: "bytes32";
|
|
220
|
+
}];
|
|
221
|
+
readonly outputs: readonly [{
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "bytes32";
|
|
224
|
+
readonly internalType: "bytes32";
|
|
225
|
+
}];
|
|
226
|
+
readonly stateMutability: "view";
|
|
175
227
|
}, {
|
|
176
228
|
readonly type: "function";
|
|
177
229
|
readonly name: "getStarkMerkleRoot";
|
|
@@ -192,6 +244,20 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
192
244
|
readonly internalType: "uint256";
|
|
193
245
|
}];
|
|
194
246
|
readonly stateMutability: "view";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly name: "grantRole";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "role";
|
|
252
|
+
readonly type: "bytes32";
|
|
253
|
+
readonly internalType: "bytes32";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "account";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
readonly internalType: "address";
|
|
258
|
+
}];
|
|
259
|
+
readonly outputs: readonly [];
|
|
260
|
+
readonly stateMutability: "nonpayable";
|
|
195
261
|
}, {
|
|
196
262
|
readonly type: "function";
|
|
197
263
|
readonly name: "hasCommitment";
|
|
@@ -206,6 +272,24 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
206
272
|
readonly internalType: "bool";
|
|
207
273
|
}];
|
|
208
274
|
readonly stateMutability: "view";
|
|
275
|
+
}, {
|
|
276
|
+
readonly type: "function";
|
|
277
|
+
readonly name: "hasRole";
|
|
278
|
+
readonly inputs: readonly [{
|
|
279
|
+
readonly name: "role";
|
|
280
|
+
readonly type: "bytes32";
|
|
281
|
+
readonly internalType: "bytes32";
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "account";
|
|
284
|
+
readonly type: "address";
|
|
285
|
+
readonly internalType: "address";
|
|
286
|
+
}];
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly name: "";
|
|
289
|
+
readonly type: "bool";
|
|
290
|
+
readonly internalType: "bool";
|
|
291
|
+
}];
|
|
292
|
+
readonly stateMutability: "view";
|
|
209
293
|
}, {
|
|
210
294
|
readonly type: "function";
|
|
211
295
|
readonly name: "initStarkTree";
|
|
@@ -216,6 +300,58 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
216
300
|
}];
|
|
217
301
|
readonly outputs: readonly [];
|
|
218
302
|
readonly stateMutability: "nonpayable";
|
|
303
|
+
}, {
|
|
304
|
+
readonly type: "function";
|
|
305
|
+
readonly name: "initialize";
|
|
306
|
+
readonly inputs: readonly [{
|
|
307
|
+
readonly name: "_admin";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
readonly internalType: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "_aspHub";
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
readonly internalType: "address";
|
|
314
|
+
}, {
|
|
315
|
+
readonly name: "_transferVerifier";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "_mergeVerifier";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
readonly internalType: "address";
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "_withdrawVerifier";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "_joinSplitVerifier";
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "_mergeTransfer2x2Verifier";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
readonly internalType: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "_mergeTransfer4x2Verifier";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
readonly internalType: "address";
|
|
338
|
+
}];
|
|
339
|
+
readonly outputs: readonly [];
|
|
340
|
+
readonly stateMutability: "nonpayable";
|
|
341
|
+
}, {
|
|
342
|
+
readonly type: "function";
|
|
343
|
+
readonly name: "insertLeafForModule";
|
|
344
|
+
readonly inputs: readonly [{
|
|
345
|
+
readonly name: "leaf";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
readonly internalType: "uint256";
|
|
348
|
+
}];
|
|
349
|
+
readonly outputs: readonly [{
|
|
350
|
+
readonly name: "";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
}];
|
|
354
|
+
readonly stateMutability: "nonpayable";
|
|
219
355
|
}, {
|
|
220
356
|
readonly type: "function";
|
|
221
357
|
readonly name: "isKnownRoot";
|
|
@@ -361,6 +497,16 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
361
497
|
readonly internalType: "contract IUPPVerifier";
|
|
362
498
|
}];
|
|
363
499
|
readonly stateMutability: "view";
|
|
500
|
+
}, {
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
readonly name: "markNullifierForModule";
|
|
503
|
+
readonly inputs: readonly [{
|
|
504
|
+
readonly name: "nullifier";
|
|
505
|
+
readonly type: "bytes32";
|
|
506
|
+
readonly internalType: "bytes32";
|
|
507
|
+
}];
|
|
508
|
+
readonly outputs: readonly [];
|
|
509
|
+
readonly stateMutability: "nonpayable";
|
|
364
510
|
}, {
|
|
365
511
|
readonly type: "function";
|
|
366
512
|
readonly name: "merge";
|
|
@@ -746,6 +892,54 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
746
892
|
readonly internalType: "bool";
|
|
747
893
|
}];
|
|
748
894
|
readonly stateMutability: "view";
|
|
895
|
+
}, {
|
|
896
|
+
readonly type: "function";
|
|
897
|
+
readonly name: "proxiableUUID";
|
|
898
|
+
readonly inputs: readonly [];
|
|
899
|
+
readonly outputs: readonly [{
|
|
900
|
+
readonly name: "";
|
|
901
|
+
readonly type: "bytes32";
|
|
902
|
+
readonly internalType: "bytes32";
|
|
903
|
+
}];
|
|
904
|
+
readonly stateMutability: "view";
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "function";
|
|
907
|
+
readonly name: "removeSupportedToken";
|
|
908
|
+
readonly inputs: readonly [{
|
|
909
|
+
readonly name: "token";
|
|
910
|
+
readonly type: "address";
|
|
911
|
+
readonly internalType: "address";
|
|
912
|
+
}];
|
|
913
|
+
readonly outputs: readonly [];
|
|
914
|
+
readonly stateMutability: "nonpayable";
|
|
915
|
+
}, {
|
|
916
|
+
readonly type: "function";
|
|
917
|
+
readonly name: "renounceRole";
|
|
918
|
+
readonly inputs: readonly [{
|
|
919
|
+
readonly name: "role";
|
|
920
|
+
readonly type: "bytes32";
|
|
921
|
+
readonly internalType: "bytes32";
|
|
922
|
+
}, {
|
|
923
|
+
readonly name: "callerConfirmation";
|
|
924
|
+
readonly type: "address";
|
|
925
|
+
readonly internalType: "address";
|
|
926
|
+
}];
|
|
927
|
+
readonly outputs: readonly [];
|
|
928
|
+
readonly stateMutability: "nonpayable";
|
|
929
|
+
}, {
|
|
930
|
+
readonly type: "function";
|
|
931
|
+
readonly name: "revokeRole";
|
|
932
|
+
readonly inputs: readonly [{
|
|
933
|
+
readonly name: "role";
|
|
934
|
+
readonly type: "bytes32";
|
|
935
|
+
readonly internalType: "bytes32";
|
|
936
|
+
}, {
|
|
937
|
+
readonly name: "account";
|
|
938
|
+
readonly type: "address";
|
|
939
|
+
readonly internalType: "address";
|
|
940
|
+
}];
|
|
941
|
+
readonly outputs: readonly [];
|
|
942
|
+
readonly stateMutability: "nonpayable";
|
|
749
943
|
}, {
|
|
750
944
|
readonly type: "function";
|
|
751
945
|
readonly name: "roots";
|
|
@@ -760,6 +954,16 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
760
954
|
readonly internalType: "uint256";
|
|
761
955
|
}];
|
|
762
956
|
readonly stateMutability: "view";
|
|
957
|
+
}, {
|
|
958
|
+
readonly type: "function";
|
|
959
|
+
readonly name: "setPermissionlessTokens";
|
|
960
|
+
readonly inputs: readonly [{
|
|
961
|
+
readonly name: "_permissionless";
|
|
962
|
+
readonly type: "bool";
|
|
963
|
+
readonly internalType: "bool";
|
|
964
|
+
}];
|
|
965
|
+
readonly outputs: readonly [];
|
|
966
|
+
readonly stateMutability: "nonpayable";
|
|
763
967
|
}, {
|
|
764
968
|
readonly type: "function";
|
|
765
969
|
readonly name: "setStarkTransferVerifier";
|
|
@@ -958,64 +1162,22 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
958
1162
|
readonly stateMutability: "view";
|
|
959
1163
|
}, {
|
|
960
1164
|
readonly type: "function";
|
|
961
|
-
readonly name: "
|
|
1165
|
+
readonly name: "supportsInterface";
|
|
962
1166
|
readonly inputs: readonly [{
|
|
963
|
-
readonly name: "
|
|
964
|
-
readonly type: "
|
|
965
|
-
readonly internalType: "
|
|
966
|
-
}, {
|
|
967
|
-
readonly name: "cancelSecret";
|
|
968
|
-
readonly type: "bytes32";
|
|
969
|
-
readonly internalType: "bytes32";
|
|
970
|
-
}, {
|
|
971
|
-
readonly name: "refundCommitment";
|
|
972
|
-
readonly type: "bytes32";
|
|
973
|
-
readonly internalType: "bytes32";
|
|
974
|
-
}, {
|
|
975
|
-
readonly name: "encryptedRefundNote";
|
|
976
|
-
readonly type: "bytes";
|
|
977
|
-
readonly internalType: "bytes";
|
|
1167
|
+
readonly name: "interfaceId";
|
|
1168
|
+
readonly type: "bytes4";
|
|
1169
|
+
readonly internalType: "bytes4";
|
|
978
1170
|
}];
|
|
979
|
-
readonly outputs: readonly [
|
|
980
|
-
|
|
1171
|
+
readonly outputs: readonly [{
|
|
1172
|
+
readonly name: "";
|
|
1173
|
+
readonly type: "bool";
|
|
1174
|
+
readonly internalType: "bool";
|
|
1175
|
+
}];
|
|
1176
|
+
readonly stateMutability: "view";
|
|
981
1177
|
}, {
|
|
982
1178
|
readonly type: "function";
|
|
983
|
-
readonly name: "
|
|
984
|
-
readonly inputs: readonly [{
|
|
985
|
-
readonly name: "orderId";
|
|
986
|
-
readonly type: "bytes32";
|
|
987
|
-
readonly internalType: "bytes32";
|
|
988
|
-
}, {
|
|
989
|
-
readonly name: "cancelSecret";
|
|
990
|
-
readonly type: "bytes32";
|
|
991
|
-
readonly internalType: "bytes32";
|
|
992
|
-
}, {
|
|
993
|
-
readonly name: "buyOutputCommitment";
|
|
994
|
-
readonly type: "bytes32";
|
|
995
|
-
readonly internalType: "bytes32";
|
|
996
|
-
}, {
|
|
997
|
-
readonly name: "encryptedBuyNote";
|
|
998
|
-
readonly type: "bytes";
|
|
999
|
-
readonly internalType: "bytes";
|
|
1000
|
-
}, {
|
|
1001
|
-
readonly name: "refundCommitment";
|
|
1002
|
-
readonly type: "bytes32";
|
|
1003
|
-
readonly internalType: "bytes32";
|
|
1004
|
-
}, {
|
|
1005
|
-
readonly name: "encryptedRefundNote";
|
|
1006
|
-
readonly type: "bytes";
|
|
1007
|
-
readonly internalType: "bytes";
|
|
1008
|
-
}];
|
|
1009
|
-
readonly outputs: readonly [];
|
|
1010
|
-
readonly stateMutability: "nonpayable";
|
|
1011
|
-
}, {
|
|
1012
|
-
readonly type: "function";
|
|
1013
|
-
readonly name: "swapFill";
|
|
1179
|
+
readonly name: "transfer";
|
|
1014
1180
|
readonly inputs: readonly [{
|
|
1015
|
-
readonly name: "orderId";
|
|
1016
|
-
readonly type: "bytes32";
|
|
1017
|
-
readonly internalType: "bytes32";
|
|
1018
|
-
}, {
|
|
1019
1181
|
readonly name: "proof";
|
|
1020
1182
|
readonly type: "tuple";
|
|
1021
1183
|
readonly internalType: "struct PlonkVerifierBLS12381.Proof";
|
|
@@ -1093,19 +1255,23 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1093
1255
|
readonly type: "uint256";
|
|
1094
1256
|
readonly internalType: "uint256";
|
|
1095
1257
|
}, {
|
|
1096
|
-
readonly name: "
|
|
1097
|
-
readonly type: "
|
|
1098
|
-
readonly internalType: "
|
|
1258
|
+
readonly name: "token";
|
|
1259
|
+
readonly type: "address";
|
|
1260
|
+
readonly internalType: "address";
|
|
1099
1261
|
}, {
|
|
1100
|
-
readonly name: "
|
|
1101
|
-
readonly type: "
|
|
1102
|
-
readonly internalType: "
|
|
1262
|
+
readonly name: "outputCommitment1";
|
|
1263
|
+
readonly type: "bytes32";
|
|
1264
|
+
readonly internalType: "bytes32";
|
|
1103
1265
|
}, {
|
|
1104
|
-
readonly name: "
|
|
1266
|
+
readonly name: "outputCommitment2";
|
|
1105
1267
|
readonly type: "bytes32";
|
|
1106
1268
|
readonly internalType: "bytes32";
|
|
1107
1269
|
}, {
|
|
1108
|
-
readonly name: "
|
|
1270
|
+
readonly name: "encryptedNote1";
|
|
1271
|
+
readonly type: "bytes";
|
|
1272
|
+
readonly internalType: "bytes";
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly name: "encryptedNote2";
|
|
1109
1275
|
readonly type: "bytes";
|
|
1110
1276
|
readonly internalType: "bytes";
|
|
1111
1277
|
}];
|
|
@@ -1113,72 +1279,11 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1113
1279
|
readonly stateMutability: "nonpayable";
|
|
1114
1280
|
}, {
|
|
1115
1281
|
readonly type: "function";
|
|
1116
|
-
readonly name: "
|
|
1282
|
+
readonly name: "transferSTARK";
|
|
1117
1283
|
readonly inputs: readonly [{
|
|
1118
1284
|
readonly name: "proof";
|
|
1119
|
-
readonly type: "
|
|
1120
|
-
readonly internalType: "
|
|
1121
|
-
readonly components: readonly [{
|
|
1122
|
-
readonly name: "A";
|
|
1123
|
-
readonly type: "bytes";
|
|
1124
|
-
readonly internalType: "bytes";
|
|
1125
|
-
}, {
|
|
1126
|
-
readonly name: "B";
|
|
1127
|
-
readonly type: "bytes";
|
|
1128
|
-
readonly internalType: "bytes";
|
|
1129
|
-
}, {
|
|
1130
|
-
readonly name: "C";
|
|
1131
|
-
readonly type: "bytes";
|
|
1132
|
-
readonly internalType: "bytes";
|
|
1133
|
-
}, {
|
|
1134
|
-
readonly name: "Z";
|
|
1135
|
-
readonly type: "bytes";
|
|
1136
|
-
readonly internalType: "bytes";
|
|
1137
|
-
}, {
|
|
1138
|
-
readonly name: "T1";
|
|
1139
|
-
readonly type: "bytes";
|
|
1140
|
-
readonly internalType: "bytes";
|
|
1141
|
-
}, {
|
|
1142
|
-
readonly name: "T2";
|
|
1143
|
-
readonly type: "bytes";
|
|
1144
|
-
readonly internalType: "bytes";
|
|
1145
|
-
}, {
|
|
1146
|
-
readonly name: "T3";
|
|
1147
|
-
readonly type: "bytes";
|
|
1148
|
-
readonly internalType: "bytes";
|
|
1149
|
-
}, {
|
|
1150
|
-
readonly name: "eval_a";
|
|
1151
|
-
readonly type: "uint256";
|
|
1152
|
-
readonly internalType: "uint256";
|
|
1153
|
-
}, {
|
|
1154
|
-
readonly name: "eval_b";
|
|
1155
|
-
readonly type: "uint256";
|
|
1156
|
-
readonly internalType: "uint256";
|
|
1157
|
-
}, {
|
|
1158
|
-
readonly name: "eval_c";
|
|
1159
|
-
readonly type: "uint256";
|
|
1160
|
-
readonly internalType: "uint256";
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly name: "eval_s1";
|
|
1163
|
-
readonly type: "uint256";
|
|
1164
|
-
readonly internalType: "uint256";
|
|
1165
|
-
}, {
|
|
1166
|
-
readonly name: "eval_s2";
|
|
1167
|
-
readonly type: "uint256";
|
|
1168
|
-
readonly internalType: "uint256";
|
|
1169
|
-
}, {
|
|
1170
|
-
readonly name: "eval_zw";
|
|
1171
|
-
readonly type: "uint256";
|
|
1172
|
-
readonly internalType: "uint256";
|
|
1173
|
-
}, {
|
|
1174
|
-
readonly name: "Wxi";
|
|
1175
|
-
readonly type: "bytes";
|
|
1176
|
-
readonly internalType: "bytes";
|
|
1177
|
-
}, {
|
|
1178
|
-
readonly name: "Wxiw";
|
|
1179
|
-
readonly type: "bytes";
|
|
1180
|
-
readonly internalType: "bytes";
|
|
1181
|
-
}];
|
|
1285
|
+
readonly type: "bytes";
|
|
1286
|
+
readonly internalType: "bytes";
|
|
1182
1287
|
}, {
|
|
1183
1288
|
readonly name: "nullifier";
|
|
1184
1289
|
readonly type: "bytes32";
|
|
@@ -1192,101 +1297,55 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1192
1297
|
readonly type: "uint256";
|
|
1193
1298
|
readonly internalType: "uint256";
|
|
1194
1299
|
}, {
|
|
1195
|
-
readonly name: "
|
|
1196
|
-
readonly type: "uint256";
|
|
1197
|
-
readonly internalType: "uint256";
|
|
1198
|
-
}, {
|
|
1199
|
-
readonly name: "sellToken";
|
|
1200
|
-
readonly type: "address";
|
|
1201
|
-
readonly internalType: "address";
|
|
1202
|
-
}, {
|
|
1203
|
-
readonly name: "sellAmount";
|
|
1204
|
-
readonly type: "uint256";
|
|
1205
|
-
readonly internalType: "uint256";
|
|
1206
|
-
}, {
|
|
1207
|
-
readonly name: "buyToken";
|
|
1300
|
+
readonly name: "token";
|
|
1208
1301
|
readonly type: "address";
|
|
1209
1302
|
readonly internalType: "address";
|
|
1210
1303
|
}, {
|
|
1211
|
-
readonly name: "
|
|
1212
|
-
readonly type: "
|
|
1213
|
-
readonly internalType: "
|
|
1214
|
-
}, {
|
|
1215
|
-
readonly name: "requiredFillerAspId";
|
|
1216
|
-
readonly type: "uint256";
|
|
1217
|
-
readonly internalType: "uint256";
|
|
1304
|
+
readonly name: "outputCommitment1";
|
|
1305
|
+
readonly type: "bytes32";
|
|
1306
|
+
readonly internalType: "bytes32";
|
|
1218
1307
|
}, {
|
|
1219
|
-
readonly name: "
|
|
1308
|
+
readonly name: "outputCommitment2";
|
|
1220
1309
|
readonly type: "bytes32";
|
|
1221
1310
|
readonly internalType: "bytes32";
|
|
1222
1311
|
}, {
|
|
1223
|
-
readonly name: "
|
|
1224
|
-
readonly type: "
|
|
1225
|
-
readonly internalType: "
|
|
1312
|
+
readonly name: "encryptedNote1";
|
|
1313
|
+
readonly type: "bytes";
|
|
1314
|
+
readonly internalType: "bytes";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "encryptedNote2";
|
|
1317
|
+
readonly type: "bytes";
|
|
1318
|
+
readonly internalType: "bytes";
|
|
1226
1319
|
}];
|
|
1227
1320
|
readonly outputs: readonly [];
|
|
1228
1321
|
readonly stateMutability: "nonpayable";
|
|
1229
1322
|
}, {
|
|
1230
1323
|
readonly type: "function";
|
|
1231
|
-
readonly name: "
|
|
1232
|
-
readonly inputs: readonly [
|
|
1233
|
-
readonly name: "";
|
|
1234
|
-
readonly type: "bytes32";
|
|
1235
|
-
readonly internalType: "bytes32";
|
|
1236
|
-
}];
|
|
1324
|
+
readonly name: "transferVerifier";
|
|
1325
|
+
readonly inputs: readonly [];
|
|
1237
1326
|
readonly outputs: readonly [{
|
|
1238
|
-
readonly name: "
|
|
1327
|
+
readonly name: "";
|
|
1239
1328
|
readonly type: "address";
|
|
1240
|
-
readonly internalType: "
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly internalType: "uint256";
|
|
1249
|
-
}, {
|
|
1250
|
-
readonly name: "buyToken";
|
|
1329
|
+
readonly internalType: "contract IUPPVerifier";
|
|
1330
|
+
}];
|
|
1331
|
+
readonly stateMutability: "view";
|
|
1332
|
+
}, {
|
|
1333
|
+
readonly type: "function";
|
|
1334
|
+
readonly name: "upgradeToAndCall";
|
|
1335
|
+
readonly inputs: readonly [{
|
|
1336
|
+
readonly name: "newImplementation";
|
|
1251
1337
|
readonly type: "address";
|
|
1252
1338
|
readonly internalType: "address";
|
|
1253
1339
|
}, {
|
|
1254
|
-
readonly name: "
|
|
1255
|
-
readonly type: "
|
|
1256
|
-
readonly internalType: "
|
|
1257
|
-
}, {
|
|
1258
|
-
readonly name: "accumulatedBuyAmount";
|
|
1259
|
-
readonly type: "uint256";
|
|
1260
|
-
readonly internalType: "uint256";
|
|
1261
|
-
}, {
|
|
1262
|
-
readonly name: "makerAspId";
|
|
1263
|
-
readonly type: "uint256";
|
|
1264
|
-
readonly internalType: "uint256";
|
|
1265
|
-
}, {
|
|
1266
|
-
readonly name: "requiredFillerAspId";
|
|
1267
|
-
readonly type: "uint256";
|
|
1268
|
-
readonly internalType: "uint256";
|
|
1269
|
-
}, {
|
|
1270
|
-
readonly name: "cancelKeyHash";
|
|
1271
|
-
readonly type: "bytes32";
|
|
1272
|
-
readonly internalType: "bytes32";
|
|
1273
|
-
}, {
|
|
1274
|
-
readonly name: "expiry";
|
|
1275
|
-
readonly type: "uint256";
|
|
1276
|
-
readonly internalType: "uint256";
|
|
1277
|
-
}, {
|
|
1278
|
-
readonly name: "claimed";
|
|
1279
|
-
readonly type: "bool";
|
|
1280
|
-
readonly internalType: "bool";
|
|
1281
|
-
}, {
|
|
1282
|
-
readonly name: "cancelled";
|
|
1283
|
-
readonly type: "bool";
|
|
1284
|
-
readonly internalType: "bool";
|
|
1340
|
+
readonly name: "data";
|
|
1341
|
+
readonly type: "bytes";
|
|
1342
|
+
readonly internalType: "bytes";
|
|
1285
1343
|
}];
|
|
1286
|
-
readonly
|
|
1344
|
+
readonly outputs: readonly [];
|
|
1345
|
+
readonly stateMutability: "payable";
|
|
1287
1346
|
}, {
|
|
1288
1347
|
readonly type: "function";
|
|
1289
|
-
readonly name: "
|
|
1348
|
+
readonly name: "withdraw";
|
|
1290
1349
|
readonly inputs: readonly [{
|
|
1291
1350
|
readonly name: "proof";
|
|
1292
1351
|
readonly type: "tuple";
|
|
@@ -1364,32 +1423,32 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1364
1423
|
readonly name: "aspRoot";
|
|
1365
1424
|
readonly type: "uint256";
|
|
1366
1425
|
readonly internalType: "uint256";
|
|
1426
|
+
}, {
|
|
1427
|
+
readonly name: "aspId";
|
|
1428
|
+
readonly type: "uint256";
|
|
1429
|
+
readonly internalType: "uint256";
|
|
1367
1430
|
}, {
|
|
1368
1431
|
readonly name: "token";
|
|
1369
1432
|
readonly type: "address";
|
|
1370
1433
|
readonly internalType: "address";
|
|
1371
1434
|
}, {
|
|
1372
|
-
readonly name: "
|
|
1373
|
-
readonly type: "
|
|
1374
|
-
readonly internalType: "
|
|
1375
|
-
}, {
|
|
1376
|
-
readonly name: "outputCommitment2";
|
|
1377
|
-
readonly type: "bytes32";
|
|
1378
|
-
readonly internalType: "bytes32";
|
|
1435
|
+
readonly name: "amount";
|
|
1436
|
+
readonly type: "uint256";
|
|
1437
|
+
readonly internalType: "uint256";
|
|
1379
1438
|
}, {
|
|
1380
|
-
readonly name: "
|
|
1381
|
-
readonly type: "
|
|
1382
|
-
readonly internalType: "
|
|
1439
|
+
readonly name: "recipient";
|
|
1440
|
+
readonly type: "address";
|
|
1441
|
+
readonly internalType: "address";
|
|
1383
1442
|
}, {
|
|
1384
|
-
readonly name: "
|
|
1385
|
-
readonly type: "
|
|
1386
|
-
readonly internalType: "
|
|
1443
|
+
readonly name: "isRagequit";
|
|
1444
|
+
readonly type: "bool";
|
|
1445
|
+
readonly internalType: "bool";
|
|
1387
1446
|
}];
|
|
1388
1447
|
readonly outputs: readonly [];
|
|
1389
1448
|
readonly stateMutability: "nonpayable";
|
|
1390
1449
|
}, {
|
|
1391
1450
|
readonly type: "function";
|
|
1392
|
-
readonly name: "
|
|
1451
|
+
readonly name: "withdrawSTARK";
|
|
1393
1452
|
readonly inputs: readonly [{
|
|
1394
1453
|
readonly name: "proof";
|
|
1395
1454
|
readonly type: "bytes";
|
|
@@ -1406,32 +1465,32 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1406
1465
|
readonly name: "aspRoot";
|
|
1407
1466
|
readonly type: "uint256";
|
|
1408
1467
|
readonly internalType: "uint256";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly name: "aspId";
|
|
1470
|
+
readonly type: "uint256";
|
|
1471
|
+
readonly internalType: "uint256";
|
|
1409
1472
|
}, {
|
|
1410
1473
|
readonly name: "token";
|
|
1411
1474
|
readonly type: "address";
|
|
1412
1475
|
readonly internalType: "address";
|
|
1413
1476
|
}, {
|
|
1414
|
-
readonly name: "
|
|
1415
|
-
readonly type: "
|
|
1416
|
-
readonly internalType: "
|
|
1417
|
-
}, {
|
|
1418
|
-
readonly name: "outputCommitment2";
|
|
1419
|
-
readonly type: "bytes32";
|
|
1420
|
-
readonly internalType: "bytes32";
|
|
1477
|
+
readonly name: "amount";
|
|
1478
|
+
readonly type: "uint256";
|
|
1479
|
+
readonly internalType: "uint256";
|
|
1421
1480
|
}, {
|
|
1422
|
-
readonly name: "
|
|
1423
|
-
readonly type: "
|
|
1424
|
-
readonly internalType: "
|
|
1481
|
+
readonly name: "recipient";
|
|
1482
|
+
readonly type: "address";
|
|
1483
|
+
readonly internalType: "address";
|
|
1425
1484
|
}, {
|
|
1426
|
-
readonly name: "
|
|
1427
|
-
readonly type: "
|
|
1428
|
-
readonly internalType: "
|
|
1485
|
+
readonly name: "isRagequit";
|
|
1486
|
+
readonly type: "bool";
|
|
1487
|
+
readonly internalType: "bool";
|
|
1429
1488
|
}];
|
|
1430
1489
|
readonly outputs: readonly [];
|
|
1431
1490
|
readonly stateMutability: "nonpayable";
|
|
1432
1491
|
}, {
|
|
1433
1492
|
readonly type: "function";
|
|
1434
|
-
readonly name: "
|
|
1493
|
+
readonly name: "withdrawVerifier";
|
|
1435
1494
|
readonly inputs: readonly [];
|
|
1436
1495
|
readonly outputs: readonly [{
|
|
1437
1496
|
readonly name: "";
|
|
@@ -1440,163 +1499,8 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1440
1499
|
}];
|
|
1441
1500
|
readonly stateMutability: "view";
|
|
1442
1501
|
}, {
|
|
1443
|
-
readonly type: "
|
|
1444
|
-
readonly name: "
|
|
1445
|
-
readonly inputs: readonly [{
|
|
1446
|
-
readonly name: "proof";
|
|
1447
|
-
readonly type: "tuple";
|
|
1448
|
-
readonly internalType: "struct PlonkVerifierBLS12381.Proof";
|
|
1449
|
-
readonly components: readonly [{
|
|
1450
|
-
readonly name: "A";
|
|
1451
|
-
readonly type: "bytes";
|
|
1452
|
-
readonly internalType: "bytes";
|
|
1453
|
-
}, {
|
|
1454
|
-
readonly name: "B";
|
|
1455
|
-
readonly type: "bytes";
|
|
1456
|
-
readonly internalType: "bytes";
|
|
1457
|
-
}, {
|
|
1458
|
-
readonly name: "C";
|
|
1459
|
-
readonly type: "bytes";
|
|
1460
|
-
readonly internalType: "bytes";
|
|
1461
|
-
}, {
|
|
1462
|
-
readonly name: "Z";
|
|
1463
|
-
readonly type: "bytes";
|
|
1464
|
-
readonly internalType: "bytes";
|
|
1465
|
-
}, {
|
|
1466
|
-
readonly name: "T1";
|
|
1467
|
-
readonly type: "bytes";
|
|
1468
|
-
readonly internalType: "bytes";
|
|
1469
|
-
}, {
|
|
1470
|
-
readonly name: "T2";
|
|
1471
|
-
readonly type: "bytes";
|
|
1472
|
-
readonly internalType: "bytes";
|
|
1473
|
-
}, {
|
|
1474
|
-
readonly name: "T3";
|
|
1475
|
-
readonly type: "bytes";
|
|
1476
|
-
readonly internalType: "bytes";
|
|
1477
|
-
}, {
|
|
1478
|
-
readonly name: "eval_a";
|
|
1479
|
-
readonly type: "uint256";
|
|
1480
|
-
readonly internalType: "uint256";
|
|
1481
|
-
}, {
|
|
1482
|
-
readonly name: "eval_b";
|
|
1483
|
-
readonly type: "uint256";
|
|
1484
|
-
readonly internalType: "uint256";
|
|
1485
|
-
}, {
|
|
1486
|
-
readonly name: "eval_c";
|
|
1487
|
-
readonly type: "uint256";
|
|
1488
|
-
readonly internalType: "uint256";
|
|
1489
|
-
}, {
|
|
1490
|
-
readonly name: "eval_s1";
|
|
1491
|
-
readonly type: "uint256";
|
|
1492
|
-
readonly internalType: "uint256";
|
|
1493
|
-
}, {
|
|
1494
|
-
readonly name: "eval_s2";
|
|
1495
|
-
readonly type: "uint256";
|
|
1496
|
-
readonly internalType: "uint256";
|
|
1497
|
-
}, {
|
|
1498
|
-
readonly name: "eval_zw";
|
|
1499
|
-
readonly type: "uint256";
|
|
1500
|
-
readonly internalType: "uint256";
|
|
1501
|
-
}, {
|
|
1502
|
-
readonly name: "Wxi";
|
|
1503
|
-
readonly type: "bytes";
|
|
1504
|
-
readonly internalType: "bytes";
|
|
1505
|
-
}, {
|
|
1506
|
-
readonly name: "Wxiw";
|
|
1507
|
-
readonly type: "bytes";
|
|
1508
|
-
readonly internalType: "bytes";
|
|
1509
|
-
}];
|
|
1510
|
-
}, {
|
|
1511
|
-
readonly name: "nullifier";
|
|
1512
|
-
readonly type: "bytes32";
|
|
1513
|
-
readonly internalType: "bytes32";
|
|
1514
|
-
}, {
|
|
1515
|
-
readonly name: "stateRoot";
|
|
1516
|
-
readonly type: "uint256";
|
|
1517
|
-
readonly internalType: "uint256";
|
|
1518
|
-
}, {
|
|
1519
|
-
readonly name: "aspRoot";
|
|
1520
|
-
readonly type: "uint256";
|
|
1521
|
-
readonly internalType: "uint256";
|
|
1522
|
-
}, {
|
|
1523
|
-
readonly name: "aspId";
|
|
1524
|
-
readonly type: "uint256";
|
|
1525
|
-
readonly internalType: "uint256";
|
|
1526
|
-
}, {
|
|
1527
|
-
readonly name: "token";
|
|
1528
|
-
readonly type: "address";
|
|
1529
|
-
readonly internalType: "address";
|
|
1530
|
-
}, {
|
|
1531
|
-
readonly name: "amount";
|
|
1532
|
-
readonly type: "uint256";
|
|
1533
|
-
readonly internalType: "uint256";
|
|
1534
|
-
}, {
|
|
1535
|
-
readonly name: "recipient";
|
|
1536
|
-
readonly type: "address";
|
|
1537
|
-
readonly internalType: "address";
|
|
1538
|
-
}, {
|
|
1539
|
-
readonly name: "isRagequit";
|
|
1540
|
-
readonly type: "bool";
|
|
1541
|
-
readonly internalType: "bool";
|
|
1542
|
-
}];
|
|
1543
|
-
readonly outputs: readonly [];
|
|
1544
|
-
readonly stateMutability: "nonpayable";
|
|
1545
|
-
}, {
|
|
1546
|
-
readonly type: "function";
|
|
1547
|
-
readonly name: "withdrawSTARK";
|
|
1548
|
-
readonly inputs: readonly [{
|
|
1549
|
-
readonly name: "proof";
|
|
1550
|
-
readonly type: "bytes";
|
|
1551
|
-
readonly internalType: "bytes";
|
|
1552
|
-
}, {
|
|
1553
|
-
readonly name: "nullifier";
|
|
1554
|
-
readonly type: "bytes32";
|
|
1555
|
-
readonly internalType: "bytes32";
|
|
1556
|
-
}, {
|
|
1557
|
-
readonly name: "stateRoot";
|
|
1558
|
-
readonly type: "uint256";
|
|
1559
|
-
readonly internalType: "uint256";
|
|
1560
|
-
}, {
|
|
1561
|
-
readonly name: "aspRoot";
|
|
1562
|
-
readonly type: "uint256";
|
|
1563
|
-
readonly internalType: "uint256";
|
|
1564
|
-
}, {
|
|
1565
|
-
readonly name: "aspId";
|
|
1566
|
-
readonly type: "uint256";
|
|
1567
|
-
readonly internalType: "uint256";
|
|
1568
|
-
}, {
|
|
1569
|
-
readonly name: "token";
|
|
1570
|
-
readonly type: "address";
|
|
1571
|
-
readonly internalType: "address";
|
|
1572
|
-
}, {
|
|
1573
|
-
readonly name: "amount";
|
|
1574
|
-
readonly type: "uint256";
|
|
1575
|
-
readonly internalType: "uint256";
|
|
1576
|
-
}, {
|
|
1577
|
-
readonly name: "recipient";
|
|
1578
|
-
readonly type: "address";
|
|
1579
|
-
readonly internalType: "address";
|
|
1580
|
-
}, {
|
|
1581
|
-
readonly name: "isRagequit";
|
|
1582
|
-
readonly type: "bool";
|
|
1583
|
-
readonly internalType: "bool";
|
|
1584
|
-
}];
|
|
1585
|
-
readonly outputs: readonly [];
|
|
1586
|
-
readonly stateMutability: "nonpayable";
|
|
1587
|
-
}, {
|
|
1588
|
-
readonly type: "function";
|
|
1589
|
-
readonly name: "withdrawVerifier";
|
|
1590
|
-
readonly inputs: readonly [];
|
|
1591
|
-
readonly outputs: readonly [{
|
|
1592
|
-
readonly name: "";
|
|
1593
|
-
readonly type: "address";
|
|
1594
|
-
readonly internalType: "contract IUPPVerifier";
|
|
1595
|
-
}];
|
|
1596
|
-
readonly stateMutability: "view";
|
|
1597
|
-
}, {
|
|
1598
|
-
readonly type: "event";
|
|
1599
|
-
readonly name: "CommitmentInserted";
|
|
1502
|
+
readonly type: "event";
|
|
1503
|
+
readonly name: "CommitmentInserted";
|
|
1600
1504
|
readonly inputs: readonly [{
|
|
1601
1505
|
readonly name: "commitment";
|
|
1602
1506
|
readonly type: "bytes32";
|
|
@@ -1614,6 +1518,16 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1614
1518
|
readonly internalType: "uint256";
|
|
1615
1519
|
}];
|
|
1616
1520
|
readonly anonymous: false;
|
|
1521
|
+
}, {
|
|
1522
|
+
readonly type: "event";
|
|
1523
|
+
readonly name: "Initialized";
|
|
1524
|
+
readonly inputs: readonly [{
|
|
1525
|
+
readonly name: "version";
|
|
1526
|
+
readonly type: "uint64";
|
|
1527
|
+
readonly indexed: false;
|
|
1528
|
+
readonly internalType: "uint64";
|
|
1529
|
+
}];
|
|
1530
|
+
readonly anonymous: false;
|
|
1617
1531
|
}, {
|
|
1618
1532
|
readonly type: "event";
|
|
1619
1533
|
readonly name: "JoinSplit";
|
|
@@ -1710,304 +1624,941 @@ declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
|
1710
1624
|
}, {
|
|
1711
1625
|
readonly name: "merger";
|
|
1712
1626
|
readonly type: "address";
|
|
1713
|
-
readonly indexed: false;
|
|
1627
|
+
readonly indexed: false;
|
|
1628
|
+
readonly internalType: "address";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly name: "token";
|
|
1631
|
+
readonly type: "address";
|
|
1632
|
+
readonly indexed: false;
|
|
1633
|
+
readonly internalType: "address";
|
|
1634
|
+
}];
|
|
1635
|
+
readonly anonymous: false;
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly type: "event";
|
|
1638
|
+
readonly name: "PermissionlessTokensUpdated";
|
|
1639
|
+
readonly inputs: readonly [{
|
|
1640
|
+
readonly name: "permissionless";
|
|
1641
|
+
readonly type: "bool";
|
|
1642
|
+
readonly indexed: false;
|
|
1643
|
+
readonly internalType: "bool";
|
|
1644
|
+
}];
|
|
1645
|
+
readonly anonymous: false;
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly type: "event";
|
|
1648
|
+
readonly name: "RoleAdminChanged";
|
|
1649
|
+
readonly inputs: readonly [{
|
|
1650
|
+
readonly name: "role";
|
|
1651
|
+
readonly type: "bytes32";
|
|
1652
|
+
readonly indexed: true;
|
|
1653
|
+
readonly internalType: "bytes32";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly name: "previousAdminRole";
|
|
1656
|
+
readonly type: "bytes32";
|
|
1657
|
+
readonly indexed: true;
|
|
1658
|
+
readonly internalType: "bytes32";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly name: "newAdminRole";
|
|
1661
|
+
readonly type: "bytes32";
|
|
1662
|
+
readonly indexed: true;
|
|
1663
|
+
readonly internalType: "bytes32";
|
|
1664
|
+
}];
|
|
1665
|
+
readonly anonymous: false;
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly type: "event";
|
|
1668
|
+
readonly name: "RoleGranted";
|
|
1669
|
+
readonly inputs: readonly [{
|
|
1670
|
+
readonly name: "role";
|
|
1671
|
+
readonly type: "bytes32";
|
|
1672
|
+
readonly indexed: true;
|
|
1673
|
+
readonly internalType: "bytes32";
|
|
1674
|
+
}, {
|
|
1675
|
+
readonly name: "account";
|
|
1676
|
+
readonly type: "address";
|
|
1677
|
+
readonly indexed: true;
|
|
1678
|
+
readonly internalType: "address";
|
|
1679
|
+
}, {
|
|
1680
|
+
readonly name: "sender";
|
|
1681
|
+
readonly type: "address";
|
|
1682
|
+
readonly indexed: true;
|
|
1683
|
+
readonly internalType: "address";
|
|
1684
|
+
}];
|
|
1685
|
+
readonly anonymous: false;
|
|
1686
|
+
}, {
|
|
1687
|
+
readonly type: "event";
|
|
1688
|
+
readonly name: "RoleRevoked";
|
|
1689
|
+
readonly inputs: readonly [{
|
|
1690
|
+
readonly name: "role";
|
|
1691
|
+
readonly type: "bytes32";
|
|
1692
|
+
readonly indexed: true;
|
|
1693
|
+
readonly internalType: "bytes32";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "account";
|
|
1696
|
+
readonly type: "address";
|
|
1697
|
+
readonly indexed: true;
|
|
1698
|
+
readonly internalType: "address";
|
|
1699
|
+
}, {
|
|
1700
|
+
readonly name: "sender";
|
|
1701
|
+
readonly type: "address";
|
|
1702
|
+
readonly indexed: true;
|
|
1703
|
+
readonly internalType: "address";
|
|
1704
|
+
}];
|
|
1705
|
+
readonly anonymous: false;
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly type: "event";
|
|
1708
|
+
readonly name: "Shielded";
|
|
1709
|
+
readonly inputs: readonly [{
|
|
1710
|
+
readonly name: "token";
|
|
1711
|
+
readonly type: "address";
|
|
1712
|
+
readonly indexed: true;
|
|
1713
|
+
readonly internalType: "address";
|
|
1714
|
+
}, {
|
|
1715
|
+
readonly name: "depositor";
|
|
1716
|
+
readonly type: "address";
|
|
1717
|
+
readonly indexed: true;
|
|
1718
|
+
readonly internalType: "address";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly name: "commitment";
|
|
1721
|
+
readonly type: "bytes32";
|
|
1722
|
+
readonly indexed: true;
|
|
1723
|
+
readonly internalType: "bytes32";
|
|
1724
|
+
}, {
|
|
1725
|
+
readonly name: "leafIndex";
|
|
1726
|
+
readonly type: "uint256";
|
|
1727
|
+
readonly indexed: false;
|
|
1728
|
+
readonly internalType: "uint256";
|
|
1729
|
+
}, {
|
|
1730
|
+
readonly name: "encryptedNote";
|
|
1731
|
+
readonly type: "bytes";
|
|
1732
|
+
readonly indexed: false;
|
|
1733
|
+
readonly internalType: "bytes";
|
|
1734
|
+
}];
|
|
1735
|
+
readonly anonymous: false;
|
|
1736
|
+
}, {
|
|
1737
|
+
readonly type: "event";
|
|
1738
|
+
readonly name: "StarkCommitmentInserted";
|
|
1739
|
+
readonly inputs: readonly [{
|
|
1740
|
+
readonly name: "commitment";
|
|
1741
|
+
readonly type: "uint128";
|
|
1742
|
+
readonly indexed: true;
|
|
1743
|
+
readonly internalType: "uint128";
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly name: "leafIndex";
|
|
1746
|
+
readonly type: "uint256";
|
|
1747
|
+
readonly indexed: false;
|
|
1748
|
+
readonly internalType: "uint256";
|
|
1749
|
+
}, {
|
|
1750
|
+
readonly name: "timestamp";
|
|
1751
|
+
readonly type: "uint256";
|
|
1752
|
+
readonly indexed: false;
|
|
1753
|
+
readonly internalType: "uint256";
|
|
1754
|
+
}];
|
|
1755
|
+
readonly anonymous: false;
|
|
1756
|
+
}, {
|
|
1757
|
+
readonly type: "event";
|
|
1758
|
+
readonly name: "StarkTransferVerifierSet";
|
|
1759
|
+
readonly inputs: readonly [{
|
|
1760
|
+
readonly name: "verifier";
|
|
1761
|
+
readonly type: "address";
|
|
1762
|
+
readonly indexed: true;
|
|
1763
|
+
readonly internalType: "address";
|
|
1764
|
+
}];
|
|
1765
|
+
readonly anonymous: false;
|
|
1766
|
+
}, {
|
|
1767
|
+
readonly type: "event";
|
|
1768
|
+
readonly name: "StarkTreeInitialized";
|
|
1769
|
+
readonly inputs: readonly [{
|
|
1770
|
+
readonly name: "depth";
|
|
1771
|
+
readonly type: "uint256";
|
|
1772
|
+
readonly indexed: false;
|
|
1773
|
+
readonly internalType: "uint256";
|
|
1774
|
+
}];
|
|
1775
|
+
readonly anonymous: false;
|
|
1776
|
+
}, {
|
|
1777
|
+
readonly type: "event";
|
|
1778
|
+
readonly name: "StarkWithdrawVerifierSet";
|
|
1779
|
+
readonly inputs: readonly [{
|
|
1780
|
+
readonly name: "verifier";
|
|
1781
|
+
readonly type: "address";
|
|
1782
|
+
readonly indexed: true;
|
|
1783
|
+
readonly internalType: "address";
|
|
1784
|
+
}];
|
|
1785
|
+
readonly anonymous: false;
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly type: "event";
|
|
1788
|
+
readonly name: "TokenSupportUpdated";
|
|
1789
|
+
readonly inputs: readonly [{
|
|
1790
|
+
readonly name: "token";
|
|
1791
|
+
readonly type: "address";
|
|
1792
|
+
readonly indexed: true;
|
|
1793
|
+
readonly internalType: "address";
|
|
1794
|
+
}, {
|
|
1795
|
+
readonly name: "supported";
|
|
1796
|
+
readonly type: "bool";
|
|
1797
|
+
readonly indexed: false;
|
|
1798
|
+
readonly internalType: "bool";
|
|
1799
|
+
}];
|
|
1800
|
+
readonly anonymous: false;
|
|
1801
|
+
}, {
|
|
1802
|
+
readonly type: "event";
|
|
1803
|
+
readonly name: "Transferred";
|
|
1804
|
+
readonly inputs: readonly [{
|
|
1805
|
+
readonly name: "nullifier";
|
|
1806
|
+
readonly type: "bytes32";
|
|
1807
|
+
readonly indexed: true;
|
|
1808
|
+
readonly internalType: "bytes32";
|
|
1809
|
+
}, {
|
|
1810
|
+
readonly name: "outputCommitment1";
|
|
1811
|
+
readonly type: "bytes32";
|
|
1812
|
+
readonly indexed: true;
|
|
1813
|
+
readonly internalType: "bytes32";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly name: "outputCommitment2";
|
|
1816
|
+
readonly type: "bytes32";
|
|
1817
|
+
readonly indexed: true;
|
|
1818
|
+
readonly internalType: "bytes32";
|
|
1819
|
+
}, {
|
|
1820
|
+
readonly name: "encryptedNote1";
|
|
1821
|
+
readonly type: "bytes";
|
|
1822
|
+
readonly indexed: false;
|
|
1823
|
+
readonly internalType: "bytes";
|
|
1824
|
+
}, {
|
|
1825
|
+
readonly name: "encryptedNote2";
|
|
1826
|
+
readonly type: "bytes";
|
|
1827
|
+
readonly indexed: false;
|
|
1828
|
+
readonly internalType: "bytes";
|
|
1829
|
+
}];
|
|
1830
|
+
readonly anonymous: false;
|
|
1831
|
+
}, {
|
|
1832
|
+
readonly type: "event";
|
|
1833
|
+
readonly name: "Upgraded";
|
|
1834
|
+
readonly inputs: readonly [{
|
|
1835
|
+
readonly name: "implementation";
|
|
1836
|
+
readonly type: "address";
|
|
1837
|
+
readonly indexed: true;
|
|
1838
|
+
readonly internalType: "address";
|
|
1839
|
+
}];
|
|
1840
|
+
readonly anonymous: false;
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly type: "event";
|
|
1843
|
+
readonly name: "Withdrawn";
|
|
1844
|
+
readonly inputs: readonly [{
|
|
1845
|
+
readonly name: "token";
|
|
1846
|
+
readonly type: "address";
|
|
1847
|
+
readonly indexed: true;
|
|
1848
|
+
readonly internalType: "address";
|
|
1849
|
+
}, {
|
|
1850
|
+
readonly name: "recipient";
|
|
1851
|
+
readonly type: "address";
|
|
1852
|
+
readonly indexed: true;
|
|
1853
|
+
readonly internalType: "address";
|
|
1854
|
+
}, {
|
|
1855
|
+
readonly name: "nullifier";
|
|
1856
|
+
readonly type: "bytes32";
|
|
1857
|
+
readonly indexed: true;
|
|
1858
|
+
readonly internalType: "bytes32";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly name: "amount";
|
|
1861
|
+
readonly type: "uint256";
|
|
1862
|
+
readonly indexed: false;
|
|
1863
|
+
readonly internalType: "uint256";
|
|
1864
|
+
}, {
|
|
1865
|
+
readonly name: "isRagequit";
|
|
1866
|
+
readonly type: "bool";
|
|
1867
|
+
readonly indexed: false;
|
|
1868
|
+
readonly internalType: "bool";
|
|
1869
|
+
}];
|
|
1870
|
+
readonly anonymous: false;
|
|
1871
|
+
}, {
|
|
1872
|
+
readonly type: "error";
|
|
1873
|
+
readonly name: "AccessControlBadConfirmation";
|
|
1874
|
+
readonly inputs: readonly [];
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly type: "error";
|
|
1877
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
1878
|
+
readonly inputs: readonly [{
|
|
1879
|
+
readonly name: "account";
|
|
1880
|
+
readonly type: "address";
|
|
1881
|
+
readonly internalType: "address";
|
|
1882
|
+
}, {
|
|
1883
|
+
readonly name: "neededRole";
|
|
1884
|
+
readonly type: "bytes32";
|
|
1885
|
+
readonly internalType: "bytes32";
|
|
1886
|
+
}];
|
|
1887
|
+
}, {
|
|
1888
|
+
readonly type: "error";
|
|
1889
|
+
readonly name: "AddressEmptyCode";
|
|
1890
|
+
readonly inputs: readonly [{
|
|
1891
|
+
readonly name: "target";
|
|
1892
|
+
readonly type: "address";
|
|
1893
|
+
readonly internalType: "address";
|
|
1894
|
+
}];
|
|
1895
|
+
}, {
|
|
1896
|
+
readonly type: "error";
|
|
1897
|
+
readonly name: "AmountExceedsM31";
|
|
1898
|
+
readonly inputs: readonly [];
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly type: "error";
|
|
1901
|
+
readonly name: "AmountNotAligned";
|
|
1902
|
+
readonly inputs: readonly [];
|
|
1903
|
+
}, {
|
|
1904
|
+
readonly type: "error";
|
|
1905
|
+
readonly name: "DuplicateNullifier";
|
|
1906
|
+
readonly inputs: readonly [];
|
|
1907
|
+
}, {
|
|
1908
|
+
readonly type: "error";
|
|
1909
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
1910
|
+
readonly inputs: readonly [{
|
|
1911
|
+
readonly name: "implementation";
|
|
1912
|
+
readonly type: "address";
|
|
1913
|
+
readonly internalType: "address";
|
|
1914
|
+
}];
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly type: "error";
|
|
1917
|
+
readonly name: "ERC1967NonPayable";
|
|
1918
|
+
readonly inputs: readonly [];
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly type: "error";
|
|
1921
|
+
readonly name: "FailedCall";
|
|
1922
|
+
readonly inputs: readonly [];
|
|
1923
|
+
}, {
|
|
1924
|
+
readonly type: "error";
|
|
1925
|
+
readonly name: "FeeOnTransferNotSupported";
|
|
1926
|
+
readonly inputs: readonly [];
|
|
1927
|
+
}, {
|
|
1928
|
+
readonly type: "error";
|
|
1929
|
+
readonly name: "InvalidASPRoot";
|
|
1930
|
+
readonly inputs: readonly [];
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly type: "error";
|
|
1933
|
+
readonly name: "InvalidInitialization";
|
|
1934
|
+
readonly inputs: readonly [];
|
|
1935
|
+
}, {
|
|
1936
|
+
readonly type: "error";
|
|
1937
|
+
readonly name: "InvalidProof";
|
|
1938
|
+
readonly inputs: readonly [];
|
|
1939
|
+
}, {
|
|
1940
|
+
readonly type: "error";
|
|
1941
|
+
readonly name: "LeafAlreadyExists";
|
|
1942
|
+
readonly inputs: readonly [];
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly type: "error";
|
|
1945
|
+
readonly name: "LeafCannotBeZero";
|
|
1946
|
+
readonly inputs: readonly [];
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly type: "error";
|
|
1949
|
+
readonly name: "LeafGreaterThanSnarkScalarField";
|
|
1950
|
+
readonly inputs: readonly [];
|
|
1951
|
+
}, {
|
|
1952
|
+
readonly type: "error";
|
|
1953
|
+
readonly name: "MaxTreeDepthReached";
|
|
1954
|
+
readonly inputs: readonly [];
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly type: "error";
|
|
1957
|
+
readonly name: "NotInitializing";
|
|
1958
|
+
readonly inputs: readonly [];
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly type: "error";
|
|
1961
|
+
readonly name: "NullifierSpent";
|
|
1962
|
+
readonly inputs: readonly [];
|
|
1963
|
+
}, {
|
|
1964
|
+
readonly type: "error";
|
|
1965
|
+
readonly name: "PermitFailed";
|
|
1966
|
+
readonly inputs: readonly [];
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly type: "error";
|
|
1969
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
1970
|
+
readonly inputs: readonly [];
|
|
1971
|
+
}, {
|
|
1972
|
+
readonly type: "error";
|
|
1973
|
+
readonly name: "SafeERC20FailedOperation";
|
|
1974
|
+
readonly inputs: readonly [{
|
|
1975
|
+
readonly name: "token";
|
|
1976
|
+
readonly type: "address";
|
|
1977
|
+
readonly internalType: "address";
|
|
1978
|
+
}];
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "error";
|
|
1981
|
+
readonly name: "SameNullifier";
|
|
1982
|
+
readonly inputs: readonly [];
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly type: "error";
|
|
1985
|
+
readonly name: "StarkTreeAlreadyInitialized";
|
|
1986
|
+
readonly inputs: readonly [];
|
|
1987
|
+
}, {
|
|
1988
|
+
readonly type: "error";
|
|
1989
|
+
readonly name: "StarkTreeNotInitialized";
|
|
1990
|
+
readonly inputs: readonly [];
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly type: "error";
|
|
1993
|
+
readonly name: "StarkVerifierAlreadySet";
|
|
1994
|
+
readonly inputs: readonly [];
|
|
1995
|
+
}, {
|
|
1996
|
+
readonly type: "error";
|
|
1997
|
+
readonly name: "StarkVerifierNotSet";
|
|
1998
|
+
readonly inputs: readonly [];
|
|
1999
|
+
}, {
|
|
2000
|
+
readonly type: "error";
|
|
2001
|
+
readonly name: "TokenNotSupported";
|
|
2002
|
+
readonly inputs: readonly [];
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly type: "error";
|
|
2005
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2006
|
+
readonly inputs: readonly [];
|
|
2007
|
+
}, {
|
|
2008
|
+
readonly type: "error";
|
|
2009
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2010
|
+
readonly inputs: readonly [{
|
|
2011
|
+
readonly name: "slot";
|
|
2012
|
+
readonly type: "bytes32";
|
|
2013
|
+
readonly internalType: "bytes32";
|
|
2014
|
+
}];
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly type: "error";
|
|
2017
|
+
readonly name: "UnknownStateRoot";
|
|
2018
|
+
readonly inputs: readonly [];
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly type: "error";
|
|
2021
|
+
readonly name: "ZeroAddress";
|
|
2022
|
+
readonly inputs: readonly [];
|
|
2023
|
+
}];
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* ASPRegistryHub Contract ABI
|
|
2027
|
+
*
|
|
2028
|
+
* Auto-generated from Foundry compiled artifacts.
|
|
2029
|
+
* DO NOT EDIT MANUALLY.
|
|
2030
|
+
*
|
|
2031
|
+
* Generated by: scripts/generate-abis.js
|
|
2032
|
+
*/
|
|
2033
|
+
declare const ASP_REGISTRY_HUB_ABI: readonly [{
|
|
2034
|
+
readonly type: "constructor";
|
|
2035
|
+
readonly inputs: readonly [];
|
|
2036
|
+
readonly stateMutability: "nonpayable";
|
|
2037
|
+
}, {
|
|
2038
|
+
readonly type: "function";
|
|
2039
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
2040
|
+
readonly inputs: readonly [];
|
|
2041
|
+
readonly outputs: readonly [{
|
|
2042
|
+
readonly name: "";
|
|
2043
|
+
readonly type: "bytes32";
|
|
2044
|
+
readonly internalType: "bytes32";
|
|
2045
|
+
}];
|
|
2046
|
+
readonly stateMutability: "view";
|
|
2047
|
+
}, {
|
|
2048
|
+
readonly type: "function";
|
|
2049
|
+
readonly name: "ROOT_HISTORY_SIZE";
|
|
2050
|
+
readonly inputs: readonly [];
|
|
2051
|
+
readonly outputs: readonly [{
|
|
2052
|
+
readonly name: "";
|
|
2053
|
+
readonly type: "uint256";
|
|
2054
|
+
readonly internalType: "uint256";
|
|
2055
|
+
}];
|
|
2056
|
+
readonly stateMutability: "view";
|
|
2057
|
+
}, {
|
|
2058
|
+
readonly type: "function";
|
|
2059
|
+
readonly name: "UPGRADER_ROLE";
|
|
2060
|
+
readonly inputs: readonly [];
|
|
2061
|
+
readonly outputs: readonly [{
|
|
2062
|
+
readonly name: "";
|
|
2063
|
+
readonly type: "bytes32";
|
|
2064
|
+
readonly internalType: "bytes32";
|
|
2065
|
+
}];
|
|
2066
|
+
readonly stateMutability: "view";
|
|
2067
|
+
}, {
|
|
2068
|
+
readonly type: "function";
|
|
2069
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
2070
|
+
readonly inputs: readonly [];
|
|
2071
|
+
readonly outputs: readonly [{
|
|
2072
|
+
readonly name: "";
|
|
2073
|
+
readonly type: "string";
|
|
2074
|
+
readonly internalType: "string";
|
|
2075
|
+
}];
|
|
2076
|
+
readonly stateMutability: "view";
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly type: "function";
|
|
2079
|
+
readonly name: "aspRootHistory";
|
|
2080
|
+
readonly inputs: readonly [{
|
|
2081
|
+
readonly name: "";
|
|
2082
|
+
readonly type: "uint256";
|
|
2083
|
+
readonly internalType: "uint256";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly name: "";
|
|
2086
|
+
readonly type: "uint256";
|
|
2087
|
+
readonly internalType: "uint256";
|
|
2088
|
+
}];
|
|
2089
|
+
readonly outputs: readonly [{
|
|
2090
|
+
readonly name: "";
|
|
2091
|
+
readonly type: "uint256";
|
|
2092
|
+
readonly internalType: "uint256";
|
|
2093
|
+
}];
|
|
2094
|
+
readonly stateMutability: "view";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly type: "function";
|
|
2097
|
+
readonly name: "aspRootIndex";
|
|
2098
|
+
readonly inputs: readonly [{
|
|
2099
|
+
readonly name: "";
|
|
2100
|
+
readonly type: "uint256";
|
|
2101
|
+
readonly internalType: "uint256";
|
|
2102
|
+
}];
|
|
2103
|
+
readonly outputs: readonly [{
|
|
2104
|
+
readonly name: "";
|
|
2105
|
+
readonly type: "uint256";
|
|
2106
|
+
readonly internalType: "uint256";
|
|
2107
|
+
}];
|
|
2108
|
+
readonly stateMutability: "view";
|
|
2109
|
+
}, {
|
|
2110
|
+
readonly type: "function";
|
|
2111
|
+
readonly name: "asps";
|
|
2112
|
+
readonly inputs: readonly [{
|
|
2113
|
+
readonly name: "";
|
|
2114
|
+
readonly type: "uint256";
|
|
2115
|
+
readonly internalType: "uint256";
|
|
2116
|
+
}];
|
|
2117
|
+
readonly outputs: readonly [{
|
|
2118
|
+
readonly name: "id";
|
|
2119
|
+
readonly type: "uint256";
|
|
2120
|
+
readonly internalType: "uint256";
|
|
2121
|
+
}, {
|
|
2122
|
+
readonly name: "operator";
|
|
2123
|
+
readonly type: "address";
|
|
2124
|
+
readonly internalType: "address";
|
|
2125
|
+
}, {
|
|
2126
|
+
readonly name: "name";
|
|
2127
|
+
readonly type: "string";
|
|
2128
|
+
readonly internalType: "string";
|
|
2129
|
+
}, {
|
|
2130
|
+
readonly name: "currentRoot";
|
|
2131
|
+
readonly type: "uint256";
|
|
2132
|
+
readonly internalType: "uint256";
|
|
2133
|
+
}, {
|
|
2134
|
+
readonly name: "lastUpdated";
|
|
2135
|
+
readonly type: "uint256";
|
|
2136
|
+
readonly internalType: "uint256";
|
|
2137
|
+
}];
|
|
2138
|
+
readonly stateMutability: "view";
|
|
2139
|
+
}, {
|
|
2140
|
+
readonly type: "function";
|
|
2141
|
+
readonly name: "getASP";
|
|
2142
|
+
readonly inputs: readonly [{
|
|
2143
|
+
readonly name: "aspId";
|
|
2144
|
+
readonly type: "uint256";
|
|
2145
|
+
readonly internalType: "uint256";
|
|
2146
|
+
}];
|
|
2147
|
+
readonly outputs: readonly [{
|
|
2148
|
+
readonly name: "";
|
|
2149
|
+
readonly type: "tuple";
|
|
2150
|
+
readonly internalType: "struct ASPInfo";
|
|
2151
|
+
readonly components: readonly [{
|
|
2152
|
+
readonly name: "id";
|
|
2153
|
+
readonly type: "uint256";
|
|
2154
|
+
readonly internalType: "uint256";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly name: "operator";
|
|
2157
|
+
readonly type: "address";
|
|
2158
|
+
readonly internalType: "address";
|
|
2159
|
+
}, {
|
|
2160
|
+
readonly name: "name";
|
|
2161
|
+
readonly type: "string";
|
|
2162
|
+
readonly internalType: "string";
|
|
2163
|
+
}, {
|
|
2164
|
+
readonly name: "currentRoot";
|
|
2165
|
+
readonly type: "uint256";
|
|
2166
|
+
readonly internalType: "uint256";
|
|
2167
|
+
}, {
|
|
2168
|
+
readonly name: "lastUpdated";
|
|
2169
|
+
readonly type: "uint256";
|
|
2170
|
+
readonly internalType: "uint256";
|
|
2171
|
+
}];
|
|
2172
|
+
}];
|
|
2173
|
+
readonly stateMutability: "view";
|
|
2174
|
+
}, {
|
|
2175
|
+
readonly type: "function";
|
|
2176
|
+
readonly name: "getCurrentRoot";
|
|
2177
|
+
readonly inputs: readonly [{
|
|
2178
|
+
readonly name: "aspId";
|
|
2179
|
+
readonly type: "uint256";
|
|
2180
|
+
readonly internalType: "uint256";
|
|
2181
|
+
}];
|
|
2182
|
+
readonly outputs: readonly [{
|
|
2183
|
+
readonly name: "";
|
|
2184
|
+
readonly type: "uint256";
|
|
2185
|
+
readonly internalType: "uint256";
|
|
2186
|
+
}];
|
|
2187
|
+
readonly stateMutability: "view";
|
|
2188
|
+
}, {
|
|
2189
|
+
readonly type: "function";
|
|
2190
|
+
readonly name: "getRoleAdmin";
|
|
2191
|
+
readonly inputs: readonly [{
|
|
2192
|
+
readonly name: "role";
|
|
2193
|
+
readonly type: "bytes32";
|
|
2194
|
+
readonly internalType: "bytes32";
|
|
2195
|
+
}];
|
|
2196
|
+
readonly outputs: readonly [{
|
|
2197
|
+
readonly name: "";
|
|
2198
|
+
readonly type: "bytes32";
|
|
2199
|
+
readonly internalType: "bytes32";
|
|
2200
|
+
}];
|
|
2201
|
+
readonly stateMutability: "view";
|
|
2202
|
+
}, {
|
|
2203
|
+
readonly type: "function";
|
|
2204
|
+
readonly name: "grantRole";
|
|
2205
|
+
readonly inputs: readonly [{
|
|
2206
|
+
readonly name: "role";
|
|
2207
|
+
readonly type: "bytes32";
|
|
2208
|
+
readonly internalType: "bytes32";
|
|
2209
|
+
}, {
|
|
2210
|
+
readonly name: "account";
|
|
2211
|
+
readonly type: "address";
|
|
2212
|
+
readonly internalType: "address";
|
|
2213
|
+
}];
|
|
2214
|
+
readonly outputs: readonly [];
|
|
2215
|
+
readonly stateMutability: "nonpayable";
|
|
2216
|
+
}, {
|
|
2217
|
+
readonly type: "function";
|
|
2218
|
+
readonly name: "hasRole";
|
|
2219
|
+
readonly inputs: readonly [{
|
|
2220
|
+
readonly name: "role";
|
|
2221
|
+
readonly type: "bytes32";
|
|
2222
|
+
readonly internalType: "bytes32";
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly name: "account";
|
|
2225
|
+
readonly type: "address";
|
|
2226
|
+
readonly internalType: "address";
|
|
2227
|
+
}];
|
|
2228
|
+
readonly outputs: readonly [{
|
|
2229
|
+
readonly name: "";
|
|
2230
|
+
readonly type: "bool";
|
|
2231
|
+
readonly internalType: "bool";
|
|
2232
|
+
}];
|
|
2233
|
+
readonly stateMutability: "view";
|
|
2234
|
+
}, {
|
|
2235
|
+
readonly type: "function";
|
|
2236
|
+
readonly name: "initialize";
|
|
2237
|
+
readonly inputs: readonly [{
|
|
2238
|
+
readonly name: "_admin";
|
|
2239
|
+
readonly type: "address";
|
|
2240
|
+
readonly internalType: "address";
|
|
2241
|
+
}];
|
|
2242
|
+
readonly outputs: readonly [];
|
|
2243
|
+
readonly stateMutability: "nonpayable";
|
|
2244
|
+
}, {
|
|
2245
|
+
readonly type: "function";
|
|
2246
|
+
readonly name: "isValidASPRoot";
|
|
2247
|
+
readonly inputs: readonly [{
|
|
2248
|
+
readonly name: "aspId";
|
|
2249
|
+
readonly type: "uint256";
|
|
2250
|
+
readonly internalType: "uint256";
|
|
2251
|
+
}, {
|
|
2252
|
+
readonly name: "root";
|
|
2253
|
+
readonly type: "uint256";
|
|
2254
|
+
readonly internalType: "uint256";
|
|
2255
|
+
}];
|
|
2256
|
+
readonly outputs: readonly [{
|
|
2257
|
+
readonly name: "";
|
|
2258
|
+
readonly type: "bool";
|
|
2259
|
+
readonly internalType: "bool";
|
|
2260
|
+
}];
|
|
2261
|
+
readonly stateMutability: "view";
|
|
2262
|
+
}, {
|
|
2263
|
+
readonly type: "function";
|
|
2264
|
+
readonly name: "nextASPId";
|
|
2265
|
+
readonly inputs: readonly [];
|
|
2266
|
+
readonly outputs: readonly [{
|
|
2267
|
+
readonly name: "";
|
|
2268
|
+
readonly type: "uint256";
|
|
2269
|
+
readonly internalType: "uint256";
|
|
2270
|
+
}];
|
|
2271
|
+
readonly stateMutability: "view";
|
|
2272
|
+
}, {
|
|
2273
|
+
readonly type: "function";
|
|
2274
|
+
readonly name: "proxiableUUID";
|
|
2275
|
+
readonly inputs: readonly [];
|
|
2276
|
+
readonly outputs: readonly [{
|
|
2277
|
+
readonly name: "";
|
|
2278
|
+
readonly type: "bytes32";
|
|
2279
|
+
readonly internalType: "bytes32";
|
|
2280
|
+
}];
|
|
2281
|
+
readonly stateMutability: "view";
|
|
2282
|
+
}, {
|
|
2283
|
+
readonly type: "function";
|
|
2284
|
+
readonly name: "registerASP";
|
|
2285
|
+
readonly inputs: readonly [{
|
|
2286
|
+
readonly name: "name";
|
|
2287
|
+
readonly type: "string";
|
|
2288
|
+
readonly internalType: "string";
|
|
2289
|
+
}];
|
|
2290
|
+
readonly outputs: readonly [{
|
|
2291
|
+
readonly name: "aspId";
|
|
2292
|
+
readonly type: "uint256";
|
|
2293
|
+
readonly internalType: "uint256";
|
|
2294
|
+
}];
|
|
2295
|
+
readonly stateMutability: "nonpayable";
|
|
2296
|
+
}, {
|
|
2297
|
+
readonly type: "function";
|
|
2298
|
+
readonly name: "renounceRole";
|
|
2299
|
+
readonly inputs: readonly [{
|
|
2300
|
+
readonly name: "role";
|
|
2301
|
+
readonly type: "bytes32";
|
|
2302
|
+
readonly internalType: "bytes32";
|
|
2303
|
+
}, {
|
|
2304
|
+
readonly name: "callerConfirmation";
|
|
2305
|
+
readonly type: "address";
|
|
2306
|
+
readonly internalType: "address";
|
|
2307
|
+
}];
|
|
2308
|
+
readonly outputs: readonly [];
|
|
2309
|
+
readonly stateMutability: "nonpayable";
|
|
2310
|
+
}, {
|
|
2311
|
+
readonly type: "function";
|
|
2312
|
+
readonly name: "revokeRole";
|
|
2313
|
+
readonly inputs: readonly [{
|
|
2314
|
+
readonly name: "role";
|
|
2315
|
+
readonly type: "bytes32";
|
|
2316
|
+
readonly internalType: "bytes32";
|
|
2317
|
+
}, {
|
|
2318
|
+
readonly name: "account";
|
|
2319
|
+
readonly type: "address";
|
|
2320
|
+
readonly internalType: "address";
|
|
2321
|
+
}];
|
|
2322
|
+
readonly outputs: readonly [];
|
|
2323
|
+
readonly stateMutability: "nonpayable";
|
|
2324
|
+
}, {
|
|
2325
|
+
readonly type: "function";
|
|
2326
|
+
readonly name: "supportsInterface";
|
|
2327
|
+
readonly inputs: readonly [{
|
|
2328
|
+
readonly name: "interfaceId";
|
|
2329
|
+
readonly type: "bytes4";
|
|
2330
|
+
readonly internalType: "bytes4";
|
|
2331
|
+
}];
|
|
2332
|
+
readonly outputs: readonly [{
|
|
2333
|
+
readonly name: "";
|
|
2334
|
+
readonly type: "bool";
|
|
2335
|
+
readonly internalType: "bool";
|
|
2336
|
+
}];
|
|
2337
|
+
readonly stateMutability: "view";
|
|
2338
|
+
}, {
|
|
2339
|
+
readonly type: "function";
|
|
2340
|
+
readonly name: "updateRoot";
|
|
2341
|
+
readonly inputs: readonly [{
|
|
2342
|
+
readonly name: "aspId";
|
|
2343
|
+
readonly type: "uint256";
|
|
2344
|
+
readonly internalType: "uint256";
|
|
2345
|
+
}, {
|
|
2346
|
+
readonly name: "newRoot";
|
|
2347
|
+
readonly type: "uint256";
|
|
2348
|
+
readonly internalType: "uint256";
|
|
2349
|
+
}];
|
|
2350
|
+
readonly outputs: readonly [];
|
|
2351
|
+
readonly stateMutability: "nonpayable";
|
|
2352
|
+
}, {
|
|
2353
|
+
readonly type: "function";
|
|
2354
|
+
readonly name: "upgradeToAndCall";
|
|
2355
|
+
readonly inputs: readonly [{
|
|
2356
|
+
readonly name: "newImplementation";
|
|
2357
|
+
readonly type: "address";
|
|
1714
2358
|
readonly internalType: "address";
|
|
1715
2359
|
}, {
|
|
1716
|
-
readonly name: "
|
|
1717
|
-
readonly type: "
|
|
1718
|
-
readonly
|
|
1719
|
-
readonly internalType: "address";
|
|
2360
|
+
readonly name: "data";
|
|
2361
|
+
readonly type: "bytes";
|
|
2362
|
+
readonly internalType: "bytes";
|
|
1720
2363
|
}];
|
|
1721
|
-
readonly
|
|
2364
|
+
readonly outputs: readonly [];
|
|
2365
|
+
readonly stateMutability: "payable";
|
|
1722
2366
|
}, {
|
|
1723
2367
|
readonly type: "event";
|
|
1724
|
-
readonly name: "
|
|
2368
|
+
readonly name: "ASPRegistered";
|
|
1725
2369
|
readonly inputs: readonly [{
|
|
1726
|
-
readonly name: "
|
|
1727
|
-
readonly type: "
|
|
2370
|
+
readonly name: "aspId";
|
|
2371
|
+
readonly type: "uint256";
|
|
1728
2372
|
readonly indexed: true;
|
|
1729
|
-
readonly internalType: "
|
|
2373
|
+
readonly internalType: "uint256";
|
|
1730
2374
|
}, {
|
|
1731
|
-
readonly name: "
|
|
2375
|
+
readonly name: "operator";
|
|
1732
2376
|
readonly type: "address";
|
|
1733
2377
|
readonly indexed: true;
|
|
1734
2378
|
readonly internalType: "address";
|
|
1735
2379
|
}, {
|
|
1736
|
-
readonly name: "
|
|
1737
|
-
readonly type: "
|
|
1738
|
-
readonly indexed: true;
|
|
1739
|
-
readonly internalType: "bytes32";
|
|
1740
|
-
}, {
|
|
1741
|
-
readonly name: "leafIndex";
|
|
1742
|
-
readonly type: "uint256";
|
|
1743
|
-
readonly indexed: false;
|
|
1744
|
-
readonly internalType: "uint256";
|
|
1745
|
-
}, {
|
|
1746
|
-
readonly name: "encryptedNote";
|
|
1747
|
-
readonly type: "bytes";
|
|
2380
|
+
readonly name: "name";
|
|
2381
|
+
readonly type: "string";
|
|
1748
2382
|
readonly indexed: false;
|
|
1749
|
-
readonly internalType: "
|
|
2383
|
+
readonly internalType: "string";
|
|
1750
2384
|
}];
|
|
1751
2385
|
readonly anonymous: false;
|
|
1752
2386
|
}, {
|
|
1753
2387
|
readonly type: "event";
|
|
1754
|
-
readonly name: "
|
|
2388
|
+
readonly name: "ASPRootUpdated";
|
|
1755
2389
|
readonly inputs: readonly [{
|
|
1756
|
-
readonly name: "
|
|
1757
|
-
readonly type: "uint128";
|
|
1758
|
-
readonly indexed: true;
|
|
1759
|
-
readonly internalType: "uint128";
|
|
1760
|
-
}, {
|
|
1761
|
-
readonly name: "leafIndex";
|
|
2390
|
+
readonly name: "aspId";
|
|
1762
2391
|
readonly type: "uint256";
|
|
1763
|
-
readonly indexed:
|
|
2392
|
+
readonly indexed: true;
|
|
1764
2393
|
readonly internalType: "uint256";
|
|
1765
2394
|
}, {
|
|
1766
|
-
readonly name: "
|
|
2395
|
+
readonly name: "oldRoot";
|
|
1767
2396
|
readonly type: "uint256";
|
|
1768
2397
|
readonly indexed: false;
|
|
1769
2398
|
readonly internalType: "uint256";
|
|
1770
|
-
}];
|
|
1771
|
-
readonly anonymous: false;
|
|
1772
|
-
}, {
|
|
1773
|
-
readonly type: "event";
|
|
1774
|
-
readonly name: "SwapOrderCancelled";
|
|
1775
|
-
readonly inputs: readonly [{
|
|
1776
|
-
readonly name: "orderId";
|
|
1777
|
-
readonly type: "bytes32";
|
|
1778
|
-
readonly indexed: true;
|
|
1779
|
-
readonly internalType: "bytes32";
|
|
1780
2399
|
}, {
|
|
1781
|
-
readonly name: "
|
|
2400
|
+
readonly name: "newRoot";
|
|
1782
2401
|
readonly type: "uint256";
|
|
1783
2402
|
readonly indexed: false;
|
|
1784
2403
|
readonly internalType: "uint256";
|
|
1785
|
-
}, {
|
|
1786
|
-
readonly name: "refundCommitment";
|
|
1787
|
-
readonly type: "bytes32";
|
|
1788
|
-
readonly indexed: false;
|
|
1789
|
-
readonly internalType: "bytes32";
|
|
1790
|
-
}, {
|
|
1791
|
-
readonly name: "encryptedRefundNote";
|
|
1792
|
-
readonly type: "bytes";
|
|
1793
|
-
readonly indexed: false;
|
|
1794
|
-
readonly internalType: "bytes";
|
|
1795
2404
|
}];
|
|
1796
2405
|
readonly anonymous: false;
|
|
1797
2406
|
}, {
|
|
1798
2407
|
readonly type: "event";
|
|
1799
|
-
readonly name: "
|
|
2408
|
+
readonly name: "Initialized";
|
|
1800
2409
|
readonly inputs: readonly [{
|
|
1801
|
-
readonly name: "
|
|
1802
|
-
readonly type: "
|
|
1803
|
-
readonly indexed: true;
|
|
1804
|
-
readonly internalType: "bytes32";
|
|
1805
|
-
}, {
|
|
1806
|
-
readonly name: "accumulatedBuyAmount";
|
|
1807
|
-
readonly type: "uint256";
|
|
1808
|
-
readonly indexed: false;
|
|
1809
|
-
readonly internalType: "uint256";
|
|
1810
|
-
}, {
|
|
1811
|
-
readonly name: "refundedSellAmount";
|
|
1812
|
-
readonly type: "uint256";
|
|
1813
|
-
readonly indexed: false;
|
|
1814
|
-
readonly internalType: "uint256";
|
|
1815
|
-
}, {
|
|
1816
|
-
readonly name: "buyOutputCommitment";
|
|
1817
|
-
readonly type: "bytes32";
|
|
1818
|
-
readonly indexed: false;
|
|
1819
|
-
readonly internalType: "bytes32";
|
|
1820
|
-
}, {
|
|
1821
|
-
readonly name: "encryptedBuyNote";
|
|
1822
|
-
readonly type: "bytes";
|
|
1823
|
-
readonly indexed: false;
|
|
1824
|
-
readonly internalType: "bytes";
|
|
1825
|
-
}, {
|
|
1826
|
-
readonly name: "refundCommitment";
|
|
1827
|
-
readonly type: "bytes32";
|
|
1828
|
-
readonly indexed: false;
|
|
1829
|
-
readonly internalType: "bytes32";
|
|
1830
|
-
}, {
|
|
1831
|
-
readonly name: "encryptedRefundNote";
|
|
1832
|
-
readonly type: "bytes";
|
|
2410
|
+
readonly name: "version";
|
|
2411
|
+
readonly type: "uint64";
|
|
1833
2412
|
readonly indexed: false;
|
|
1834
|
-
readonly internalType: "
|
|
2413
|
+
readonly internalType: "uint64";
|
|
1835
2414
|
}];
|
|
1836
2415
|
readonly anonymous: false;
|
|
1837
2416
|
}, {
|
|
1838
2417
|
readonly type: "event";
|
|
1839
|
-
readonly name: "
|
|
2418
|
+
readonly name: "RoleAdminChanged";
|
|
1840
2419
|
readonly inputs: readonly [{
|
|
1841
|
-
readonly name: "
|
|
2420
|
+
readonly name: "role";
|
|
1842
2421
|
readonly type: "bytes32";
|
|
1843
2422
|
readonly indexed: true;
|
|
1844
2423
|
readonly internalType: "bytes32";
|
|
1845
2424
|
}, {
|
|
1846
|
-
readonly name: "
|
|
2425
|
+
readonly name: "previousAdminRole";
|
|
1847
2426
|
readonly type: "bytes32";
|
|
1848
2427
|
readonly indexed: true;
|
|
1849
2428
|
readonly internalType: "bytes32";
|
|
1850
2429
|
}, {
|
|
1851
|
-
readonly name: "
|
|
2430
|
+
readonly name: "newAdminRole";
|
|
1852
2431
|
readonly type: "bytes32";
|
|
1853
2432
|
readonly indexed: true;
|
|
1854
2433
|
readonly internalType: "bytes32";
|
|
1855
|
-
}, {
|
|
1856
|
-
readonly name: "takeAmount";
|
|
1857
|
-
readonly type: "uint256";
|
|
1858
|
-
readonly indexed: false;
|
|
1859
|
-
readonly internalType: "uint256";
|
|
1860
|
-
}, {
|
|
1861
|
-
readonly name: "giveAmount";
|
|
1862
|
-
readonly type: "uint256";
|
|
1863
|
-
readonly indexed: false;
|
|
1864
|
-
readonly internalType: "uint256";
|
|
1865
|
-
}, {
|
|
1866
|
-
readonly name: "fillerAspId";
|
|
1867
|
-
readonly type: "uint256";
|
|
1868
|
-
readonly indexed: false;
|
|
1869
|
-
readonly internalType: "uint256";
|
|
1870
|
-
}, {
|
|
1871
|
-
readonly name: "remainingSellAmount";
|
|
1872
|
-
readonly type: "uint256";
|
|
1873
|
-
readonly indexed: false;
|
|
1874
|
-
readonly internalType: "uint256";
|
|
1875
|
-
}, {
|
|
1876
|
-
readonly name: "encryptedFillerNote";
|
|
1877
|
-
readonly type: "bytes";
|
|
1878
|
-
readonly indexed: false;
|
|
1879
|
-
readonly internalType: "bytes";
|
|
1880
2434
|
}];
|
|
1881
2435
|
readonly anonymous: false;
|
|
1882
2436
|
}, {
|
|
1883
2437
|
readonly type: "event";
|
|
1884
|
-
readonly name: "
|
|
2438
|
+
readonly name: "RoleGranted";
|
|
1885
2439
|
readonly inputs: readonly [{
|
|
1886
|
-
readonly name: "
|
|
2440
|
+
readonly name: "role";
|
|
1887
2441
|
readonly type: "bytes32";
|
|
1888
2442
|
readonly indexed: true;
|
|
1889
2443
|
readonly internalType: "bytes32";
|
|
1890
2444
|
}, {
|
|
1891
|
-
readonly name: "
|
|
2445
|
+
readonly name: "account";
|
|
1892
2446
|
readonly type: "address";
|
|
1893
2447
|
readonly indexed: true;
|
|
1894
2448
|
readonly internalType: "address";
|
|
1895
2449
|
}, {
|
|
1896
|
-
readonly name: "
|
|
2450
|
+
readonly name: "sender";
|
|
1897
2451
|
readonly type: "address";
|
|
1898
2452
|
readonly indexed: true;
|
|
1899
2453
|
readonly internalType: "address";
|
|
1900
|
-
}, {
|
|
1901
|
-
readonly name: "sellAmount";
|
|
1902
|
-
readonly type: "uint256";
|
|
1903
|
-
readonly indexed: false;
|
|
1904
|
-
readonly internalType: "uint256";
|
|
1905
|
-
}, {
|
|
1906
|
-
readonly name: "rate";
|
|
1907
|
-
readonly type: "uint256";
|
|
1908
|
-
readonly indexed: false;
|
|
1909
|
-
readonly internalType: "uint256";
|
|
1910
|
-
}, {
|
|
1911
|
-
readonly name: "makerAspId";
|
|
1912
|
-
readonly type: "uint256";
|
|
1913
|
-
readonly indexed: false;
|
|
1914
|
-
readonly internalType: "uint256";
|
|
1915
|
-
}, {
|
|
1916
|
-
readonly name: "requiredFillerAspId";
|
|
1917
|
-
readonly type: "uint256";
|
|
1918
|
-
readonly indexed: false;
|
|
1919
|
-
readonly internalType: "uint256";
|
|
1920
|
-
}, {
|
|
1921
|
-
readonly name: "expiry";
|
|
1922
|
-
readonly type: "uint256";
|
|
1923
|
-
readonly indexed: false;
|
|
1924
|
-
readonly internalType: "uint256";
|
|
1925
2454
|
}];
|
|
1926
2455
|
readonly anonymous: false;
|
|
1927
2456
|
}, {
|
|
1928
2457
|
readonly type: "event";
|
|
1929
|
-
readonly name: "
|
|
2458
|
+
readonly name: "RoleRevoked";
|
|
1930
2459
|
readonly inputs: readonly [{
|
|
1931
|
-
readonly name: "
|
|
2460
|
+
readonly name: "role";
|
|
1932
2461
|
readonly type: "bytes32";
|
|
1933
2462
|
readonly indexed: true;
|
|
1934
2463
|
readonly internalType: "bytes32";
|
|
1935
2464
|
}, {
|
|
1936
|
-
readonly name: "
|
|
1937
|
-
readonly type: "
|
|
2465
|
+
readonly name: "account";
|
|
2466
|
+
readonly type: "address";
|
|
1938
2467
|
readonly indexed: true;
|
|
1939
|
-
readonly internalType: "
|
|
2468
|
+
readonly internalType: "address";
|
|
1940
2469
|
}, {
|
|
1941
|
-
readonly name: "
|
|
1942
|
-
readonly type: "
|
|
2470
|
+
readonly name: "sender";
|
|
2471
|
+
readonly type: "address";
|
|
1943
2472
|
readonly indexed: true;
|
|
1944
|
-
readonly internalType: "
|
|
1945
|
-
}, {
|
|
1946
|
-
readonly name: "encryptedNote1";
|
|
1947
|
-
readonly type: "bytes";
|
|
1948
|
-
readonly indexed: false;
|
|
1949
|
-
readonly internalType: "bytes";
|
|
1950
|
-
}, {
|
|
1951
|
-
readonly name: "encryptedNote2";
|
|
1952
|
-
readonly type: "bytes";
|
|
1953
|
-
readonly indexed: false;
|
|
1954
|
-
readonly internalType: "bytes";
|
|
2473
|
+
readonly internalType: "address";
|
|
1955
2474
|
}];
|
|
1956
2475
|
readonly anonymous: false;
|
|
1957
2476
|
}, {
|
|
1958
2477
|
readonly type: "event";
|
|
1959
|
-
readonly name: "
|
|
2478
|
+
readonly name: "Upgraded";
|
|
1960
2479
|
readonly inputs: readonly [{
|
|
1961
|
-
readonly name: "
|
|
2480
|
+
readonly name: "implementation";
|
|
1962
2481
|
readonly type: "address";
|
|
1963
2482
|
readonly indexed: true;
|
|
1964
2483
|
readonly internalType: "address";
|
|
1965
|
-
}
|
|
1966
|
-
|
|
2484
|
+
}];
|
|
2485
|
+
readonly anonymous: false;
|
|
2486
|
+
}, {
|
|
2487
|
+
readonly type: "error";
|
|
2488
|
+
readonly name: "ASPNotFound";
|
|
2489
|
+
readonly inputs: readonly [];
|
|
2490
|
+
}, {
|
|
2491
|
+
readonly type: "error";
|
|
2492
|
+
readonly name: "AccessControlBadConfirmation";
|
|
2493
|
+
readonly inputs: readonly [];
|
|
2494
|
+
}, {
|
|
2495
|
+
readonly type: "error";
|
|
2496
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
2497
|
+
readonly inputs: readonly [{
|
|
2498
|
+
readonly name: "account";
|
|
1967
2499
|
readonly type: "address";
|
|
1968
|
-
readonly indexed: true;
|
|
1969
2500
|
readonly internalType: "address";
|
|
1970
2501
|
}, {
|
|
1971
|
-
readonly name: "
|
|
2502
|
+
readonly name: "neededRole";
|
|
1972
2503
|
readonly type: "bytes32";
|
|
1973
|
-
readonly indexed: true;
|
|
1974
2504
|
readonly internalType: "bytes32";
|
|
1975
|
-
}, {
|
|
1976
|
-
readonly name: "amount";
|
|
1977
|
-
readonly type: "uint256";
|
|
1978
|
-
readonly indexed: false;
|
|
1979
|
-
readonly internalType: "uint256";
|
|
1980
|
-
}, {
|
|
1981
|
-
readonly name: "isRagequit";
|
|
1982
|
-
readonly type: "bool";
|
|
1983
|
-
readonly indexed: false;
|
|
1984
|
-
readonly internalType: "bool";
|
|
1985
2505
|
}];
|
|
1986
|
-
readonly anonymous: false;
|
|
1987
2506
|
}, {
|
|
1988
2507
|
readonly type: "error";
|
|
1989
|
-
readonly name: "
|
|
2508
|
+
readonly name: "AddressEmptyCode";
|
|
2509
|
+
readonly inputs: readonly [{
|
|
2510
|
+
readonly name: "target";
|
|
2511
|
+
readonly type: "address";
|
|
2512
|
+
readonly internalType: "address";
|
|
2513
|
+
}];
|
|
2514
|
+
}, {
|
|
2515
|
+
readonly type: "error";
|
|
2516
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2517
|
+
readonly inputs: readonly [{
|
|
2518
|
+
readonly name: "implementation";
|
|
2519
|
+
readonly type: "address";
|
|
2520
|
+
readonly internalType: "address";
|
|
2521
|
+
}];
|
|
2522
|
+
}, {
|
|
2523
|
+
readonly type: "error";
|
|
2524
|
+
readonly name: "ERC1967NonPayable";
|
|
1990
2525
|
readonly inputs: readonly [];
|
|
1991
2526
|
}, {
|
|
1992
2527
|
readonly type: "error";
|
|
1993
|
-
readonly name: "
|
|
2528
|
+
readonly name: "FailedCall";
|
|
1994
2529
|
readonly inputs: readonly [];
|
|
1995
2530
|
}, {
|
|
1996
2531
|
readonly type: "error";
|
|
1997
|
-
readonly name: "
|
|
2532
|
+
readonly name: "InvalidInitialization";
|
|
1998
2533
|
readonly inputs: readonly [];
|
|
1999
2534
|
}, {
|
|
2000
2535
|
readonly type: "error";
|
|
2001
|
-
readonly name: "
|
|
2536
|
+
readonly name: "InvalidRoot";
|
|
2002
2537
|
readonly inputs: readonly [];
|
|
2003
2538
|
}, {
|
|
2004
2539
|
readonly type: "error";
|
|
2005
|
-
readonly name: "
|
|
2540
|
+
readonly name: "NotASPOperator";
|
|
2541
|
+
readonly inputs: readonly [];
|
|
2542
|
+
}, {
|
|
2543
|
+
readonly type: "error";
|
|
2544
|
+
readonly name: "NotInitializing";
|
|
2545
|
+
readonly inputs: readonly [];
|
|
2546
|
+
}, {
|
|
2547
|
+
readonly type: "error";
|
|
2548
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2549
|
+
readonly inputs: readonly [];
|
|
2550
|
+
}, {
|
|
2551
|
+
readonly type: "error";
|
|
2552
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2006
2553
|
readonly inputs: readonly [{
|
|
2007
|
-
readonly name: "
|
|
2008
|
-
readonly type: "
|
|
2009
|
-
readonly internalType: "
|
|
2554
|
+
readonly name: "slot";
|
|
2555
|
+
readonly type: "bytes32";
|
|
2556
|
+
readonly internalType: "bytes32";
|
|
2010
2557
|
}];
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly type: "error";
|
|
2560
|
+
readonly name: "ZeroAddress";
|
|
2561
|
+
readonly inputs: readonly [];
|
|
2011
2562
|
}];
|
|
2012
2563
|
|
|
2013
2564
|
/**
|
|
@@ -2999,108 +3550,6 @@ declare const TEST_STABLE_TOKEN_2_ABI: readonly [{
|
|
|
2999
3550
|
}];
|
|
3000
3551
|
}];
|
|
3001
3552
|
|
|
3002
|
-
/**
|
|
3003
|
-
* Deployment Configuration Loader
|
|
3004
|
-
*
|
|
3005
|
-
* Loads contract addresses based on chain ID.
|
|
3006
|
-
* Built-in: Anvil (31337) and Sepolia (11155111).
|
|
3007
|
-
* Custom chains can be registered at runtime via registerDeployment().
|
|
3008
|
-
*/
|
|
3009
|
-
|
|
3010
|
-
/**
|
|
3011
|
-
* Verifier contract addresses
|
|
3012
|
-
*/
|
|
3013
|
-
interface VerifierAddresses {
|
|
3014
|
-
TransferVerifier: Address;
|
|
3015
|
-
MergeVerifier: Address;
|
|
3016
|
-
WithdrawVerifier: Address;
|
|
3017
|
-
JoinSplitVerifier?: Address;
|
|
3018
|
-
MergeTransfer2x2Verifier?: Address;
|
|
3019
|
-
MergeTransfer4x2Verifier?: Address;
|
|
3020
|
-
}
|
|
3021
|
-
/**
|
|
3022
|
-
* STARK verifier contract addresses
|
|
3023
|
-
*/
|
|
3024
|
-
interface StarkVerifierAddresses {
|
|
3025
|
-
CircleStarkVerifier?: Address;
|
|
3026
|
-
}
|
|
3027
|
-
/**
|
|
3028
|
-
* Deployment configuration for a chain
|
|
3029
|
-
*/
|
|
3030
|
-
interface DeploymentConfig {
|
|
3031
|
-
/** Universal Private Pool contract address */
|
|
3032
|
-
UniversalPrivatePool: Address;
|
|
3033
|
-
/** ASP Registry Hub contract address */
|
|
3034
|
-
ASPRegistryHub: Address;
|
|
3035
|
-
/** Test token address (local/testnet) */
|
|
3036
|
-
TestToken?: Address;
|
|
3037
|
-
/** Test token 2 address — bonding curve token (local/testnet) */
|
|
3038
|
-
TestToken2?: Address;
|
|
3039
|
-
/** Verifier contract addresses */
|
|
3040
|
-
verifiers: VerifierAddresses;
|
|
3041
|
-
/** STARK verifier contract addresses */
|
|
3042
|
-
starkVerifiers?: StarkVerifierAddresses;
|
|
3043
|
-
/** Chain ID */
|
|
3044
|
-
chainId: number;
|
|
3045
|
-
/** Block number when contracts were deployed (for efficient scanning) */
|
|
3046
|
-
deployBlock: number;
|
|
3047
|
-
/** Timestamp when contracts were deployed */
|
|
3048
|
-
deployTimestamp?: number;
|
|
3049
|
-
}
|
|
3050
|
-
/**
|
|
3051
|
-
* Get deployment config for a chain
|
|
3052
|
-
*
|
|
3053
|
-
* @param chainId - Chain ID to get deployment for
|
|
3054
|
-
* @returns Deployment config or null if not found
|
|
3055
|
-
*
|
|
3056
|
-
* @example
|
|
3057
|
-
* ```ts
|
|
3058
|
-
* const deployment = getDeployment(31337)
|
|
3059
|
-
* if (deployment) {
|
|
3060
|
-
* console.log('Pool address:', deployment.UniversalPrivatePool)
|
|
3061
|
-
* }
|
|
3062
|
-
* ```
|
|
3063
|
-
*/
|
|
3064
|
-
declare function getDeployment(chainId: number): DeploymentConfig | null;
|
|
3065
|
-
/**
|
|
3066
|
-
* Get deployment config or throw if not found
|
|
3067
|
-
*
|
|
3068
|
-
* @param chainId - Chain ID to get deployment for
|
|
3069
|
-
* @returns Deployment config
|
|
3070
|
-
* @throws Error if deployment not found
|
|
3071
|
-
*/
|
|
3072
|
-
declare function getDeploymentOrThrow(chainId: number): DeploymentConfig;
|
|
3073
|
-
/**
|
|
3074
|
-
* Check if a chain has a deployment
|
|
3075
|
-
*/
|
|
3076
|
-
declare function hasDeployment(chainId: number): boolean;
|
|
3077
|
-
/**
|
|
3078
|
-
* Get all supported chain IDs
|
|
3079
|
-
*/
|
|
3080
|
-
declare function getSupportedChainIds(): number[];
|
|
3081
|
-
/**
|
|
3082
|
-
* Get the token address for a chain
|
|
3083
|
-
*/
|
|
3084
|
-
declare function getTokenAddress(chainId: number): Address | null;
|
|
3085
|
-
/**
|
|
3086
|
-
* Register a deployment for a custom chain at runtime.
|
|
3087
|
-
*
|
|
3088
|
-
* Use this when deploying your own pool on a chain not built into the SDK.
|
|
3089
|
-
* Overrides any existing deployment for the same chainId.
|
|
3090
|
-
*
|
|
3091
|
-
* @example
|
|
3092
|
-
* ```ts
|
|
3093
|
-
* registerDeployment(8453, {
|
|
3094
|
-
* UniversalPrivatePool: '0x...',
|
|
3095
|
-
* ASPRegistryHub: '0x...',
|
|
3096
|
-
* verifiers: { TransferVerifier: '0x...', MergeVerifier: '0x...', WithdrawVerifier: '0x...' },
|
|
3097
|
-
* chainId: 8453,
|
|
3098
|
-
* deployBlock: 12345678,
|
|
3099
|
-
* })
|
|
3100
|
-
* ```
|
|
3101
|
-
*/
|
|
3102
|
-
declare function registerDeployment(chainId: number, config: DeploymentConfig): void;
|
|
3103
|
-
|
|
3104
3553
|
/**
|
|
3105
3554
|
* Universal Private Pool (UPP) SDK
|
|
3106
3555
|
*
|
|
@@ -3128,7 +3577,7 @@ declare const ___index_js_DEFAULT_KEY_DERIVATION_CONFIG: typeof DEFAULT_KEY_DERI
|
|
|
3128
3577
|
declare const ___index_js_DEMO_ASP_ID: typeof DEMO_ASP_ID;
|
|
3129
3578
|
declare const ___index_js_DEMO_ASP_NAME: typeof DEMO_ASP_NAME;
|
|
3130
3579
|
declare const ___index_js_DIGEST_SIZE: typeof DIGEST_SIZE;
|
|
3131
|
-
|
|
3580
|
+
declare const ___index_js_DeploymentConfig: typeof DeploymentConfig;
|
|
3132
3581
|
declare const ___index_js_DirectAccountAdapter: typeof DirectAccountAdapter;
|
|
3133
3582
|
declare const ___index_js_DownloadProgress: typeof DownloadProgress;
|
|
3134
3583
|
declare const ___index_js_DualMasterKeys: typeof DualMasterKeys;
|
|
@@ -3222,7 +3671,9 @@ declare const ___index_js_UPPClient: typeof UPPClient;
|
|
|
3222
3671
|
declare const ___index_js_UPPClientConfig: typeof UPPClientConfig;
|
|
3223
3672
|
declare const ___index_js_UPPTransferCircuitInputs: typeof UPPTransferCircuitInputs;
|
|
3224
3673
|
declare const ___index_js_UPPWithdrawCircuitInputs: typeof UPPWithdrawCircuitInputs;
|
|
3225
|
-
|
|
3674
|
+
declare const ___index_js_VerificationCheck: typeof VerificationCheck;
|
|
3675
|
+
declare const ___index_js_VerificationResult: typeof VerificationResult;
|
|
3676
|
+
declare const ___index_js_VerifierAddresses: typeof VerifierAddresses;
|
|
3226
3677
|
declare const ___index_js_WithdrawParams: typeof WithdrawParams;
|
|
3227
3678
|
declare const ___index_js_addPoints: typeof addPoints;
|
|
3228
3679
|
declare const ___index_js_addressToField: typeof addressToField;
|
|
@@ -3236,6 +3687,7 @@ declare const ___index_js_buildTransfer: typeof buildTransfer;
|
|
|
3236
3687
|
declare const ___index_js_buildUPPTransferCircuitInputs: typeof buildUPPTransferCircuitInputs;
|
|
3237
3688
|
declare const ___index_js_bytesToBigint: typeof bytesToBigint;
|
|
3238
3689
|
declare const ___index_js_bytesToHex: typeof bytesToHex;
|
|
3690
|
+
declare const ___index_js_checkImplementation: typeof checkImplementation;
|
|
3239
3691
|
declare const ___index_js_computeCancelKeyHash: typeof computeCancelKeyHash;
|
|
3240
3692
|
declare const ___index_js_computeFillPercentage: typeof computeFillPercentage;
|
|
3241
3693
|
declare const ___index_js_computeGiveAmount: typeof computeGiveAmount;
|
|
@@ -3338,12 +3790,13 @@ declare const ___index_js_truncateToM31: typeof truncateToM31;
|
|
|
3338
3790
|
declare const ___index_js_tupleToPoint: typeof tupleToPoint;
|
|
3339
3791
|
declare const ___index_js_validateAuditKeyExport: typeof validateAuditKeyExport;
|
|
3340
3792
|
declare const ___index_js_verifyASPProof: typeof verifyASPProof;
|
|
3793
|
+
declare const ___index_js_verifyDeployment: typeof verifyDeployment;
|
|
3341
3794
|
declare const ___index_js_verifyKeysMatchSignature: typeof verifyKeysMatchSignature;
|
|
3342
3795
|
declare const ___index_js_verifyMerkleProof: typeof verifyMerkleProof;
|
|
3343
3796
|
declare const ___index_js_verifyOwnership: typeof verifyOwnership;
|
|
3344
3797
|
declare const ___index_js_verifyProof: typeof verifyProof;
|
|
3345
3798
|
declare namespace ___index_js {
|
|
3346
|
-
export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CIRCUIT_CDN_BASE as CIRCUIT_CDN_BASE, ___index_js_CIRCUIT_VERSION as CIRCUIT_VERSION, ___index_js_CircuitArtifactCache as CircuitArtifactCache, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitCacheStatus as CircuitCacheStatus, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, type ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DownloadProgress as DownloadProgress, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_PlonkProvingStage as PlonkProvingStage, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProofWorkerManager as ProofWorkerManager, ___index_js_ProofWorkerRequest as ProofWorkerRequest, ___index_js_ProofWorkerResponse as ProofWorkerResponse, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_ResolvedCircuitArtifacts as ResolvedCircuitArtifacts, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_ASP_TREE_DEPTH as STARK_ASP_TREE_DEPTH, ___index_js_STARK_STATE_TREE_DEPTH as STARK_STATE_TREE_DEPTH, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_StarkTransferWitness as StarkTransferWitness, ___index_js_StarkWithdrawWitness as StarkWithdrawWitness, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorableAccountAdapter as StorableAccountAdapter, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, type ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_addressToM31 as addressToM31, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildStarkTransferWitness as buildStarkTransferWitness, ___index_js_buildStarkWithdrawWitness as buildStarkWithdrawWitness, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_computeTransferPublicInputsSeed as computeTransferPublicInputsSeed, ___index_js_computeWithdrawPublicInputsSeed as computeWithdrawPublicInputsSeed, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_generateUPPProofAsync as generateUPPProofAsync, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isStarkAligned as isStarkAligned, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packM31Digest as packM31Digest, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_scaleAmountForStark as scaleAmountForStark, ___index_js_splitSecretToM31Limbs as splitSecretToM31Limbs, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_truncateToM31 as truncateToM31, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
|
|
3799
|
+
export { ___index_js_ADDRESS_VERSION as ADDRESS_VERSION, ___index_js_ASPMembershipProof as ASPMembershipProof, ___index_js_ASPProof as ASPProof, ___index_js_ASPRoot as ASPRoot, ___index_js_ASP_REGISTRY_HUB_ABI as ASP_REGISTRY_HUB_ABI, ___index_js_ASP_TREE_DEPTH as ASP_TREE_DEPTH, ___index_js_AuditKeyExport as AuditKeyExport, ___index_js_BABYJUBJUB_SUBORDER as BABYJUBJUB_SUBORDER, ___index_js_CIRCUIT_CDN_BASE as CIRCUIT_CDN_BASE, ___index_js_CIRCUIT_VERSION as CIRCUIT_VERSION, ___index_js_CircuitArtifactCache as CircuitArtifactCache, ___index_js_CircuitArtifacts as CircuitArtifacts, ___index_js_CircuitCacheStatus as CircuitCacheStatus, ___index_js_CircuitType as CircuitType, ___index_js_Commitment as Commitment, ___index_js_DEFAULT_KEY_DERIVATION_CONFIG as DEFAULT_KEY_DERIVATION_CONFIG, ___index_js_DEMO_ASP_ID as DEMO_ASP_ID, ___index_js_DEMO_ASP_NAME as DEMO_ASP_NAME, ___index_js_DIGEST_SIZE as DIGEST_SIZE, ___index_js_DeploymentConfig as DeploymentConfig, ___index_js_DirectAccountAdapter as DirectAccountAdapter, ___index_js_DownloadProgress as DownloadProgress, ___index_js_DualMasterKeys as DualMasterKeys, ___index_js_EncryptedNote as EncryptedNote, ___index_js_FIELD_PRIME as FIELD_PRIME, ___index_js_IASPProvider as IASPProvider, ___index_js_IAccountAdapter as IAccountAdapter, ___index_js_INoteStore as INoteStore, ___index_js_IndexedNote as IndexedNote, ___index_js_Indexer as Indexer, ___index_js_KeyDerivationConfig as KeyDerivationConfig, ___index_js_M31Digest as M31Digest, ___index_js_M31Secret as M31Secret, ___index_js_M31_P as M31_P, ___index_js_MAX_TREE_DEPTH as MAX_TREE_DEPTH, ___index_js_MasterKeys as MasterKeys, ___index_js_MergeParams as MergeParams, ___index_js_MergeRecord as MergeRecord, ___index_js_MerkleProof as MerkleProof, ___index_js_MerkleProofWithNote as MerkleProofWithNote, ___index_js_MerkleTree as MerkleTree, ___index_js_NOTE_VERSION as NOTE_VERSION, ___index_js_Note as Note, ___index_js_NoteReference as NoteReference, ___index_js_NoteStatus as NoteStatus, ___index_js_NoteStore as NoteStore, ___index_js_NoteWithAmount as NoteWithAmount, ___index_js_Nullifier as Nullifier, ___index_js_OneTimeKeys as OneTimeKeys, ___index_js_PlonkProvingStage as PlonkProvingStage, ___index_js_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProofWorkerManager as ProofWorkerManager, ___index_js_ProofWorkerRequest as ProofWorkerRequest, ___index_js_ProofWorkerResponse as ProofWorkerResponse, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___index_js_ResolvedCircuitArtifacts as ResolvedCircuitArtifacts, ___index_js_RpcIndexerConfig as RpcIndexerConfig, ___index_js_SECRET_LIMBS as SECRET_LIMBS, ___index_js_STARK_ADDRESS_VERSION as STARK_ADDRESS_VERSION, ___index_js_STARK_AMOUNT_SCALE as STARK_AMOUNT_SCALE, ___index_js_STARK_ASP_TREE_DEPTH as STARK_ASP_TREE_DEPTH, ___index_js_STARK_STATE_TREE_DEPTH as STARK_STATE_TREE_DEPTH, ___index_js_STARK_STEALTH_ADDRESS_PREFIX as STARK_STEALTH_ADDRESS_PREFIX, ___index_js_STATE_TREE_DEPTH as STATE_TREE_DEPTH, ___index_js_STEALTH_ADDRESS_PREFIX as STEALTH_ADDRESS_PREFIX, ___index_js_SWAP_EVENTS_ABI as SWAP_EVENTS_ABI, ___index_js_SWAP_ORDER_CANCELLED_EVENT as SWAP_ORDER_CANCELLED_EVENT, ___index_js_SWAP_ORDER_CLAIMED_EVENT as SWAP_ORDER_CLAIMED_EVENT, ___index_js_SWAP_ORDER_FILLED_EVENT as SWAP_ORDER_FILLED_EVENT, ___index_js_SWAP_ORDER_PLACED_EVENT as SWAP_ORDER_PLACED_EVENT, ___index_js_SerializedKeys as SerializedKeys, ___index_js_ShieldParams as ShieldParams, ___index_js_ShieldedNote as ShieldedNote, ___index_js_SpendableNote as SpendableNote, ___index_js_StarkMasterKeys as StarkMasterKeys, ___index_js_StarkNote as StarkNote, ___index_js_StarkProof as StarkProof, ___index_js_StarkStealthMetaAddress as StarkStealthMetaAddress, ___index_js_StarkTransferWitness as StarkTransferWitness, ___index_js_StarkWithdrawWitness as StarkWithdrawWitness, ___index_js_Stealth1x2CircuitInputs as Stealth1x2CircuitInputs, ___index_js_Stealth2x2CircuitInputs as Stealth2x2CircuitInputs, ___index_js_StealthAddress as StealthAddress, ___index_js_StealthAddressComponents as StealthAddressComponents, ___index_js_StealthCircuitInputs as StealthCircuitInputs, ___index_js_StealthCircuitType as StealthCircuitType, ___index_js_StealthMetaAddress as StealthMetaAddress, ___index_js_StorableAccountAdapter as StorableAccountAdapter, ___index_js_StorageAdapter as StorageAdapter, ___index_js_SwapFillEvent as SwapFillEvent, ___index_js_SwapFillParams as SwapFillParams, ___index_js_SwapOrder as SwapOrder, ___index_js_SwapOrderEvent as SwapOrderEvent, ___index_js_SwapOrderParams as SwapOrderParams, ___index_js_SyncResult as SyncResult, ___index_js_TEST_STABLE_TOKEN_2_ABI as TEST_STABLE_TOKEN_2_ABI, ___index_js_TEST_STABLE_TOKEN_ABI as TEST_STABLE_TOKEN_ABI, ___index_js_TransactionViewingKey as TransactionViewingKey, ___index_js_TransferBuildResult as TransferBuildResult, ___index_js_TransferContext as TransferContext, ___index_js_TransferParams as TransferParams, ___index_js_TransferStage as TransferStage, ___index_js_UNIVERSAL_PRIVATE_POOL_ABI as UNIVERSAL_PRIVATE_POOL_ABI, ___index_js_UPPCircuitInputs as UPPCircuitInputs, ___index_js_UPPCircuitType as UPPCircuitType, ___index_js_UPPClient as UPPClient, ___index_js_UPPClientConfig as UPPClientConfig, ___index_js_UPPTransferCircuitInputs as UPPTransferCircuitInputs, ___index_js_UPPWithdrawCircuitInputs as UPPWithdrawCircuitInputs, ___index_js_VerificationCheck as VerificationCheck, ___index_js_VerificationResult as VerificationResult, ___index_js_VerifierAddresses as VerifierAddresses, ___index_js_WithdrawParams as WithdrawParams, ___index_js_addPoints as addPoints, ___index_js_addressToField as addressToField, ___index_js_addressToM31 as addressToM31, ___index_js_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___index_js_buildStarkTransferWitness as buildStarkTransferWitness, ___index_js_buildStarkWithdrawWitness as buildStarkWithdrawWitness, ___index_js_buildTransfer as buildTransfer, ___index_js_buildUPPTransferCircuitInputs as buildUPPTransferCircuitInputs, ___index_js_bytesToBigint as bytesToBigint, ___index_js_bytesToHex as bytesToHex, ___index_js_checkImplementation as checkImplementation, ___index_js_computeCancelKeyHash as computeCancelKeyHash, ___index_js_computeFillPercentage as computeFillPercentage, ___index_js_computeGiveAmount as computeGiveAmount, ___index_js_computeMultiOriginASPRoot as computeMultiOriginASPRoot, ___index_js_computeNoteEncryptionKey as computeNoteEncryptionKey, ___index_js_computeNullifier as computeNullifier, ___index_js_computeRate as computeRate, ___index_js_computeSharedSecret as computeSharedSecret, ___index_js_computeSingleOriginASPRoot as computeSingleOriginASPRoot, ___index_js_computeStarkCommitment as computeStarkCommitment, ___index_js_computeStarkNullifier as computeStarkNullifier, ___index_js_computeStarkOwnerHash as computeStarkOwnerHash, ___index_js_computeTakeAmount as computeTakeAmount, ___index_js_computeTotalBuyAmount as computeTotalBuyAmount, ___index_js_computeTransferPublicInputsSeed as computeTransferPublicInputsSeed, ___index_js_computeWithdrawPublicInputsSeed as computeWithdrawPublicInputsSeed, ___index_js_createDemoASPRoot as createDemoASPRoot, ___index_js_createNote as createNote, ___index_js_createOneTimeKeys as createOneTimeKeys, ___index_js_createUPPClient as createUPPClient, ___index_js_decodeStarkStealthAddress as decodeStarkStealthAddress, ___index_js_decodeStealthAddress as decodeStealthAddress, ___index_js_decryptNote as decryptNote, ___index_js_deriveDecryptionViewingKey as deriveDecryptionViewingKey, ___index_js_deriveDualKeysFromSignature as deriveDualKeysFromSignature, ___index_js_deriveEncryptionViewingKey as deriveEncryptionViewingKey, ___index_js_deriveKeysFromSignature as deriveKeysFromSignature, ___index_js_deriveNullifierKey as deriveNullifierKey, ___index_js_derivePerNoteKey as derivePerNoteKey, ___index_js_derivePerNoteKeyFromKeys as derivePerNoteKeyFromKeys, ___index_js_deriveStarkKeysFromSignature as deriveStarkKeysFromSignature, ___index_js_deriveStarkPerNoteKey as deriveStarkPerNoteKey, ___index_js_deriveStarkPerNoteKeyFromKeys as deriveStarkPerNoteKeyFromKeys, ___index_js_detectAddressType as detectAddressType, ___index_js_encodeStarkStealthAddress as encodeStarkStealthAddress, ___index_js_encodeStealthAddress as encodeStealthAddress, ___index_js_encryptNote as encryptNote, ___index_js_exportViewingKeysForAudit as exportViewingKeysForAudit, ___index_js_fieldToAddress as fieldToAddress, ___index_js_filterOrdersByASP as filterOrdersByASP, ___index_js_filterOrdersByTokenPair as filterOrdersByTokenPair, ___index_js_formatOutputForContract as formatOutputForContract, ___index_js_formatProofForContract as formatProofForContract, ___index_js_formatRate as formatRate, ___index_js_generateASPProof as generateASPProof, ___index_js_generateCancelSecret as generateCancelSecret, ___index_js_generateMultiOriginASPProof as generateMultiOriginASPProof, ___index_js_generateProof as generateProof, ___index_js_generateSingleOriginASPProof as generateSingleOriginASPProof, ___index_js_generateStarkStealthAddress as generateStarkStealthAddress, ___index_js_generateStealthAddress as generateStealthAddress, ___index_js_generateStealthProof as generateStealthProof, ___index_js_generateUPPProof as generateUPPProof, ___index_js_generateUPPProofAsync as generateUPPProofAsync, ___index_js_getBasePoint as getBasePoint, ___index_js_getCancelSecret as getCancelSecret, ___index_js_getDeployment as getDeployment, ___index_js_getDeploymentOrThrow as getDeploymentOrThrow, ___index_js_getKeyDerivationMessage as getKeyDerivationMessage, ___index_js_getMerkleProof as getMerkleProof, ___index_js_getMerkleProofsForNotes as getMerkleProofsForNotes, ___index_js_getOwnOrderIds as getOwnOrderIds, ___index_js_getStealthCircuitArtifacts as getStealthCircuitArtifacts, ___index_js_getSubOrder as getSubOrder, ___index_js_getSupportedChainIds as getSupportedChainIds, ___index_js_getTokenAddress as getTokenAddress, ___index_js_getUPPCircuitArtifacts as getUPPCircuitArtifacts, ___index_js_getViewingKeyFromExport as getViewingKeyFromExport, ___index_js_hasDeployment as hasDeployment, ___index_js_hexToBytes as hexToBytes, ___index_js_isFillerASPAccepted as isFillerASPAccepted, ___index_js_isOnCurve as isOnCurve, ___index_js_isOrderActive as isOrderActive, ___index_js_isStarkAligned as isStarkAligned, ___index_js_isValidFieldElement as isValidFieldElement, ___index_js_isValidStarkStealthAddress as isValidStarkStealthAddress, ___index_js_isValidStealthAddress as isValidStealthAddress, ___index_js_keccakHashTwo as keccakHashTwo, ___index_js_keccakM31 as keccakM31, ___index_js_makeRpcIndexer as makeRpcIndexer, ___index_js_mulPointScalar as mulPointScalar, ___index_js_packM31Digest as packM31Digest, ___index_js_packPoint as packPoint, ___index_js_pointToTuple as pointToTuple, ___index_js_poseidon as poseidon, ___index_js_poseidonHash as poseidonHash, ___index_js_poseidonScalar as poseidonScalar, ___index_js_privateToPublic as privateToPublic, ___index_js_randomBytes as randomBytes, ___index_js_randomFieldElement as randomFieldElement, ___index_js_registerDeployment as registerDeployment, ___index_js_removeCancelSecret as removeCancelSecret, ___index_js_scaleAmountForStark as scaleAmountForStark, ___index_js_splitSecretToM31Limbs as splitSecretToM31Limbs, ___index_js_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___index_js_truncateToM31 as truncateToM31, ___index_js_tupleToPoint as tupleToPoint, ___index_js_validateAuditKeyExport as validateAuditKeyExport, ___index_js_verifyASPProof as verifyASPProof, ___index_js_verifyDeployment as verifyDeployment, ___index_js_verifyKeysMatchSignature as verifyKeysMatchSignature, ___index_js_verifyMerkleProof as verifyMerkleProof, ___index_js_verifyOwnership as verifyOwnership, ___index_js_verifyProof as verifyProof };
|
|
3347
3800
|
}
|
|
3348
3801
|
|
|
3349
|
-
export {
|
|
3802
|
+
export { ASP_REGISTRY_HUB_ABI as A, TEST_STABLE_TOKEN_ABI as T, UNIVERSAL_PRIVATE_POOL_ABI as U, ___index_js as _, TEST_STABLE_TOKEN_2_ABI as a, makeRpcIndexer as m };
|