@permissionless-technologies/upp-sdk 0.1.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/LICENSE +661 -0
- package/README.md +194 -0
- package/dist/asp-TXSAFFD3.cjs +53 -0
- package/dist/asp-TXSAFFD3.cjs.map +1 -0
- package/dist/asp-ZA3RGN7G.js +4 -0
- package/dist/asp-ZA3RGN7G.js.map +1 -0
- package/dist/babyjubjub-2MGQVCKB.js +5 -0
- package/dist/babyjubjub-2MGQVCKB.js.map +1 -0
- package/dist/babyjubjub-MWZLJOVZ.cjs +66 -0
- package/dist/babyjubjub-MWZLJOVZ.cjs.map +1 -0
- package/dist/chunk-2JQISXBD.js +150 -0
- package/dist/chunk-2JQISXBD.js.map +1 -0
- package/dist/chunk-3HQ7A6ZM.cjs +61 -0
- package/dist/chunk-3HQ7A6ZM.cjs.map +1 -0
- package/dist/chunk-5AKBSMEQ.cjs +1008 -0
- package/dist/chunk-5AKBSMEQ.cjs.map +1 -0
- package/dist/chunk-5V5HSN6Y.js +81 -0
- package/dist/chunk-5V5HSN6Y.js.map +1 -0
- package/dist/chunk-BH24DZ5S.cjs +91 -0
- package/dist/chunk-BH24DZ5S.cjs.map +1 -0
- package/dist/chunk-C7QQOJ7T.cjs +67 -0
- package/dist/chunk-C7QQOJ7T.cjs.map +1 -0
- package/dist/chunk-ERQE57IA.cjs +404 -0
- package/dist/chunk-ERQE57IA.cjs.map +1 -0
- package/dist/chunk-EUP7MBAH.cjs +165 -0
- package/dist/chunk-EUP7MBAH.cjs.map +1 -0
- package/dist/chunk-G7VZBCD6.cjs +35 -0
- package/dist/chunk-G7VZBCD6.cjs.map +1 -0
- package/dist/chunk-GQV47S3N.cjs +10 -0
- package/dist/chunk-GQV47S3N.cjs.map +1 -0
- package/dist/chunk-GXZ3MTCQ.cjs +527 -0
- package/dist/chunk-GXZ3MTCQ.cjs.map +1 -0
- package/dist/chunk-JWNXBALH.cjs +57 -0
- package/dist/chunk-JWNXBALH.cjs.map +1 -0
- package/dist/chunk-KIKBPJXJ.cjs +348 -0
- package/dist/chunk-KIKBPJXJ.cjs.map +1 -0
- package/dist/chunk-NCW4AE7L.js +8 -0
- package/dist/chunk-NCW4AE7L.js.map +1 -0
- package/dist/chunk-NDM5EJEV.cjs +70 -0
- package/dist/chunk-NDM5EJEV.cjs.map +1 -0
- package/dist/chunk-NUIQHTSA.js +489 -0
- package/dist/chunk-NUIQHTSA.js.map +1 -0
- package/dist/chunk-OQDSHMXU.js +1002 -0
- package/dist/chunk-OQDSHMXU.js.map +1 -0
- package/dist/chunk-P37MRZ73.js +58 -0
- package/dist/chunk-P37MRZ73.js.map +1 -0
- package/dist/chunk-PWHOUQOZ.js +335 -0
- package/dist/chunk-PWHOUQOZ.js.map +1 -0
- package/dist/chunk-S4B7GYLN.js +112 -0
- package/dist/chunk-S4B7GYLN.js.map +1 -0
- package/dist/chunk-SGZZL5AC.js +59 -0
- package/dist/chunk-SGZZL5AC.js.map +1 -0
- package/dist/chunk-SQKBT2SH.cjs +122 -0
- package/dist/chunk-SQKBT2SH.cjs.map +1 -0
- package/dist/chunk-TSF6HEVS.cjs +201 -0
- package/dist/chunk-TSF6HEVS.cjs.map +1 -0
- package/dist/chunk-V23OSL25.js +48 -0
- package/dist/chunk-V23OSL25.js.map +1 -0
- package/dist/chunk-W77GRBO4.js +53 -0
- package/dist/chunk-W77GRBO4.js.map +1 -0
- package/dist/chunk-XV72HNHN.js +399 -0
- package/dist/chunk-XV72HNHN.js.map +1 -0
- package/dist/chunk-YOWDERVC.js +186 -0
- package/dist/chunk-YOWDERVC.js.map +1 -0
- package/dist/chunk-Z6ZWNWWR.js +30 -0
- package/dist/chunk-Z6ZWNWWR.js.map +1 -0
- package/dist/chunk-ZKZV6OI3.cjs +165 -0
- package/dist/chunk-ZKZV6OI3.cjs.map +1 -0
- package/dist/chunk-ZU6J7KMY.js +159 -0
- package/dist/chunk-ZU6J7KMY.js.map +1 -0
- package/dist/core/index.cjs +300 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +9 -0
- package/dist/core/index.d.ts +9 -0
- package/dist/core/index.js +11 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index-BBzvvrhG.d.ts +757 -0
- package/dist/index-BGvapsJy.d.cts +2811 -0
- package/dist/index-C-jSNw6j.d.cts +757 -0
- package/dist/index-ChGaGPzP.d.ts +2811 -0
- package/dist/index.cjs +3652 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +3112 -0
- package/dist/index.js.map +1 -0
- package/dist/indexer/index.cjs +58 -0
- package/dist/indexer/index.cjs.map +1 -0
- package/dist/indexer/index.d.cts +206 -0
- package/dist/indexer/index.d.ts +206 -0
- package/dist/indexer/index.js +5 -0
- package/dist/indexer/index.js.map +1 -0
- package/dist/keccak-m31-B_AqBbRF.d.cts +70 -0
- package/dist/keccak-m31-B_AqBbRF.d.ts +70 -0
- package/dist/keys/index.cjs +68 -0
- package/dist/keys/index.cjs.map +1 -0
- package/dist/keys/index.d.cts +158 -0
- package/dist/keys/index.d.ts +158 -0
- package/dist/keys/index.js +7 -0
- package/dist/keys/index.js.map +1 -0
- package/dist/merkle-7KS2EHRF.js +5 -0
- package/dist/merkle-7KS2EHRF.js.map +1 -0
- package/dist/merkle-HGDC6OB4.cjs +30 -0
- package/dist/merkle-HGDC6OB4.cjs.map +1 -0
- package/dist/merkle-mteVOlDf.d.cts +188 -0
- package/dist/merkle-mteVOlDf.d.ts +188 -0
- package/dist/poseidon-UHTJLWQM.js +7 -0
- package/dist/poseidon-UHTJLWQM.js.map +1 -0
- package/dist/poseidon-WHJSZSNP.cjs +45 -0
- package/dist/poseidon-WHJSZSNP.cjs.map +1 -0
- package/dist/proof-5OECB3RQ.cjs +45 -0
- package/dist/proof-5OECB3RQ.cjs.map +1 -0
- package/dist/proof-C4YBP6RY.js +4 -0
- package/dist/proof-C4YBP6RY.js.map +1 -0
- package/dist/react/index.cjs +2641 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +757 -0
- package/dist/react/index.d.ts +757 -0
- package/dist/react/index.js +2598 -0
- package/dist/react/index.js.map +1 -0
- package/dist/transfer-2UDHDS7Q.cjs +37 -0
- package/dist/transfer-2UDHDS7Q.cjs.map +1 -0
- package/dist/transfer-BlmbO-Rd.d.ts +1270 -0
- package/dist/transfer-DKZuJnRM.d.cts +1270 -0
- package/dist/transfer-KTCXKHS4.js +8 -0
- package/dist/transfer-KTCXKHS4.js.map +1 -0
- package/dist/types-CJSbxv4q.d.cts +143 -0
- package/dist/types-mLybMxNR.d.ts +143 -0
- package/dist/utils/index.cjs +178 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +88 -0
- package/dist/utils/index.d.ts +88 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +119 -0
- package/src/contracts/interfaces/IASPRegistry.sol +36 -0
- package/src/contracts/interfaces/IUniversalPrivatePool.sol +260 -0
- package/src/contracts/interfaces/IVerifiers.sol +68 -0
- package/src/deployments/11155111.json +19 -0
- package/src/deployments/31337.json +19 -0
|
@@ -0,0 +1,2811 @@
|
|
|
1
|
+
import { R as RpcIndexerConfig, I as Indexer, A as ADDRESS_VERSION, k as ASPMembershipProof, D as DirectAccountAdapter, l as IASPProvider, m as IAccountAdapter, n as INoteStore, a as IndexedNote, N as NoteStatus, o as NoteStore, P as ProofSystem, p as STARK_ADDRESS_VERSION, q as STARK_STEALTH_ADDRESS_PREFIX, r as STEALTH_ADDRESS_PREFIX, s as ShieldedNote, S as StorageAdapter, c as SyncResult, U as UPPClient, t as UPPClientConfig, u as computeNoteEncryptionKey, v as createNote, w as createOneTimeKeys, x as createUPPClient, y as decodeStarkStealthAddress, z as decodeStealthAddress, B as decryptNote, E as detectAddressType, F as encodeStarkStealthAddress, G as encodeStealthAddress, H as encryptNote, J as generateStarkStealthAddress, K as generateStealthAddress, M as isValidStarkStealthAddress, O as isValidStealthAddress, Q as verifyOwnership } from './index-BBzvvrhG.js';
|
|
2
|
+
import { A as ASPProof, a as ASPRoot, b as ASP_TREE_DEPTH, C as CircuitArtifacts, c as CircuitType, d as Commitment, D as DEMO_ASP_ID, e as DEMO_ASP_NAME, E as EncryptedNote, M as MergeParams, f as MergeRecord, g as MerkleProofWithNote, N as NOTE_VERSION, h as Note, i as NoteWithAmount, j as Nullifier, P as Proof, k as ProofResult, R as RATE_PRECISION, S as STARK_AMOUNT_SCALE, l as STATE_TREE_DEPTH, m as SWAP_EVENTS_ABI, n as SWAP_ORDER_CANCELLED_EVENT, o as SWAP_ORDER_CLAIMED_EVENT, p as SWAP_ORDER_FILLED_EVENT, q as SWAP_ORDER_PLACED_EVENT, r as ShieldParams, s as SpendableNote, t as StarkNote, u as StarkProof, v as StarkStealthMetaAddress, w as Stealth1x2CircuitInputs, x as Stealth2x2CircuitInputs, y as StealthAddress, z as StealthCircuitInputs, B as StealthCircuitType, F as StealthMetaAddress, G as SwapFillEvent, H as SwapFillParams, I as SwapOrder, J as SwapOrderEvent, K as SwapOrderParams, T as TransferBuildResult, L as TransferContext, O as TransferParams, Q as TransferStage, U as UPPCircuitInputs, V as UPPCircuitType, W as UPPTransferCircuitInputs, X as UPPWithdrawCircuitInputs, Y as WithdrawParams, Z as buildASPTree, _ as buildTransfer, $ as buildUPPTransferCircuitInputs, a0 as computeCancelKeyHash, a1 as computeFillPercentage, a2 as computeGiveAmount, a3 as computeMultiOriginASPRoot, a4 as computeNullifier, a5 as computeRate, a6 as computeSingleOriginASPRoot, a7 as computeTakeAmount, a8 as computeTotalBuyAmount, a9 as createDemoASPRoot, aa as filterOrdersByASP, ab as filterOrdersByTokenPair, ac as formatOutputForContract, ad as formatProofForContract, ae as formatRate, af as generateASPProof, ag as generateCancelSecret, ah as generateMultiOriginASPProof, ai as generateProof, aj as generateSingleOriginASPProof, ak as generateStealthProof, al as generateUPPProof, am as getCancelSecret, an as getMerkleProofsForNotes, ao as getOwnOrderIds, ap as getStealthCircuitArtifacts, aq as getUPPCircuitArtifacts, ar as isFillerASPAccepted, as as isOrderActive, at as removeCancelSecret, au as storeCancelSecret, av as syncMerkleTree, aw as verifyASPProof, ax as verifyProof } from './transfer-BlmbO-Rd.js';
|
|
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
|
+
import { NoteReference, deriveDualKeysFromSignature, deriveKeysFromSignature, deriveNullifierKey, derivePerNoteKey, derivePerNoteKeyFromKeys, deriveStarkKeysFromSignature, deriveStarkPerNoteKey, deriveStarkPerNoteKeyFromKeys, exportViewingKeysForAudit, getKeyDerivationMessage, getViewingKeyFromExport, validateAuditKeyExport, verifyKeysMatchSignature } from './keys/index.js';
|
|
5
|
+
import { BABYJUBJUB_SUBORDER, FIELD_PRIME, addressToField, bigintToBytes, bytesToBigint, bytesToHex, fieldToAddress, hexToBytes, isValidFieldElement, poseidon, poseidonHash, poseidonScalar, randomBytes, randomFieldElement, toFieldElement } from './utils/index.js';
|
|
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
|
+
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';
|
|
8
|
+
import { ASP_REGISTRY_HUB_ABI } from '@permissionless-technologies/upc-sdk';
|
|
9
|
+
import { Address } from 'viem';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* RPC Indexer
|
|
13
|
+
*
|
|
14
|
+
* Direct blockchain scanning using RPC getLogs() with adaptive batching.
|
|
15
|
+
* This is the default indexer that works with any RPC provider.
|
|
16
|
+
*
|
|
17
|
+
* Features:
|
|
18
|
+
* - Adaptive batch sizing (shrinks on rate limits, grows on success)
|
|
19
|
+
* - Incremental sync from last processed block
|
|
20
|
+
* - Trial decryption to find notes belonging to the account
|
|
21
|
+
* - Persistent state in pluggable storage
|
|
22
|
+
* - Live sync with configurable interval
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Create an RPC indexer
|
|
27
|
+
*
|
|
28
|
+
* @param config - Indexer configuration
|
|
29
|
+
* @returns Indexer instance
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { makeRpcIndexer } from '@upp/sdk/indexer'
|
|
34
|
+
* import { createPublicClient, http } from 'viem'
|
|
35
|
+
*
|
|
36
|
+
* const client = createPublicClient({ transport: http() })
|
|
37
|
+
*
|
|
38
|
+
* const indexer = makeRpcIndexer({
|
|
39
|
+
* client,
|
|
40
|
+
* contractAddress: '0x...',
|
|
41
|
+
* chainId: 1,
|
|
42
|
+
* spendingSecret: mySpendingSecret,
|
|
43
|
+
* spendingPubkey: mySpendingPubkey,
|
|
44
|
+
* })
|
|
45
|
+
*
|
|
46
|
+
* // Initial sync
|
|
47
|
+
* const result = await indexer.sync()
|
|
48
|
+
* console.log(`Found ${result.newNotesCount} new notes`)
|
|
49
|
+
*
|
|
50
|
+
* // Get balance
|
|
51
|
+
* const balance = indexer.getBalance()
|
|
52
|
+
*
|
|
53
|
+
* // Start live sync
|
|
54
|
+
* indexer.startLiveSync({
|
|
55
|
+
* intervalMs: 30000,
|
|
56
|
+
* onNewNotes: (notes) => console.log('New notes:', notes),
|
|
57
|
+
* })
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare function makeRpcIndexer(config: RpcIndexerConfig): Indexer;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* UniversalPrivatePool Contract ABI
|
|
64
|
+
*
|
|
65
|
+
* Auto-generated from Foundry compiled artifacts.
|
|
66
|
+
* DO NOT EDIT MANUALLY.
|
|
67
|
+
*
|
|
68
|
+
* Generated by: scripts/generate-abis.js
|
|
69
|
+
*/
|
|
70
|
+
declare const UNIVERSAL_PRIVATE_POOL_ABI: readonly [{
|
|
71
|
+
readonly type: "constructor";
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly name: "_aspHub";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "_shieldVerifier";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "_transferVerifier";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
readonly internalType: "address";
|
|
84
|
+
}, {
|
|
85
|
+
readonly name: "_mergeVerifier";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "_withdrawVerifier";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "_joinSplitVerifier";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "_mergeTransfer2x2Verifier";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "_mergeTransfer4x2Verifier";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
}];
|
|
105
|
+
readonly stateMutability: "nonpayable";
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "MAX_TREE_DEPTH";
|
|
109
|
+
readonly inputs: readonly [];
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly name: "";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
readonly name: "ROOT_HISTORY_SIZE";
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "view";
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "function";
|
|
128
|
+
readonly name: "STARK_AMOUNT_SCALE";
|
|
129
|
+
readonly inputs: readonly [];
|
|
130
|
+
readonly outputs: readonly [{
|
|
131
|
+
readonly name: "";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
readonly internalType: "uint256";
|
|
134
|
+
}];
|
|
135
|
+
readonly stateMutability: "view";
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
readonly name: "aspHub";
|
|
139
|
+
readonly inputs: readonly [];
|
|
140
|
+
readonly outputs: readonly [{
|
|
141
|
+
readonly name: "";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
readonly internalType: "contract IASPRegistryHub";
|
|
144
|
+
}];
|
|
145
|
+
readonly stateMutability: "view";
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "function";
|
|
148
|
+
readonly name: "currentRootIndex";
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
readonly outputs: readonly [{
|
|
151
|
+
readonly name: "";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
}];
|
|
155
|
+
readonly stateMutability: "view";
|
|
156
|
+
}, {
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
readonly name: "getMerkleDepth";
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly outputs: readonly [{
|
|
161
|
+
readonly name: "";
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
readonly internalType: "uint256";
|
|
164
|
+
}];
|
|
165
|
+
readonly stateMutability: "view";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
readonly name: "getMerkleRoot";
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
readonly internalType: "uint256";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
readonly name: "getMerkleSize";
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly name: "";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
}];
|
|
185
|
+
readonly stateMutability: "view";
|
|
186
|
+
}, {
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
readonly name: "getStarkMerkleRoot";
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly outputs: readonly [{
|
|
191
|
+
readonly name: "";
|
|
192
|
+
readonly type: "uint128";
|
|
193
|
+
readonly internalType: "uint128";
|
|
194
|
+
}];
|
|
195
|
+
readonly stateMutability: "view";
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
readonly name: "getStarkMerkleSize";
|
|
199
|
+
readonly inputs: readonly [];
|
|
200
|
+
readonly outputs: readonly [{
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly type: "uint256";
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
}];
|
|
205
|
+
readonly stateMutability: "view";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly name: "hasCommitment";
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly name: "commitment";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
readonly internalType: "uint256";
|
|
213
|
+
}];
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly type: "bool";
|
|
217
|
+
readonly internalType: "bool";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly name: "initStarkTree";
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly name: "depth";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
readonly internalType: "uint256";
|
|
227
|
+
}];
|
|
228
|
+
readonly outputs: readonly [];
|
|
229
|
+
readonly stateMutability: "nonpayable";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly name: "isKnownRoot";
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly name: "root";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "bool";
|
|
241
|
+
readonly internalType: "bool";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly name: "isKnownStarkRoot";
|
|
247
|
+
readonly inputs: readonly [{
|
|
248
|
+
readonly name: "root";
|
|
249
|
+
readonly type: "uint128";
|
|
250
|
+
readonly internalType: "uint128";
|
|
251
|
+
}];
|
|
252
|
+
readonly outputs: readonly [{
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "bool";
|
|
255
|
+
readonly internalType: "bool";
|
|
256
|
+
}];
|
|
257
|
+
readonly stateMutability: "view";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
readonly name: "joinSplit";
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "proof";
|
|
263
|
+
readonly type: "uint256[8]";
|
|
264
|
+
readonly internalType: "uint256[8]";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "nullifiers";
|
|
267
|
+
readonly type: "bytes32[4]";
|
|
268
|
+
readonly internalType: "bytes32[4]";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "stateRoot";
|
|
271
|
+
readonly type: "uint256";
|
|
272
|
+
readonly internalType: "uint256";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "aspRoot";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
readonly internalType: "uint256";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "aspId";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "token";
|
|
283
|
+
readonly type: "address";
|
|
284
|
+
readonly internalType: "address";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "outputCommitment1";
|
|
287
|
+
readonly type: "bytes32";
|
|
288
|
+
readonly internalType: "bytes32";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "outputCommitment2";
|
|
291
|
+
readonly type: "bytes32";
|
|
292
|
+
readonly internalType: "bytes32";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "encryptedNote1";
|
|
295
|
+
readonly type: "bytes";
|
|
296
|
+
readonly internalType: "bytes";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "encryptedNote2";
|
|
299
|
+
readonly type: "bytes";
|
|
300
|
+
readonly internalType: "bytes";
|
|
301
|
+
}];
|
|
302
|
+
readonly outputs: readonly [];
|
|
303
|
+
readonly stateMutability: "nonpayable";
|
|
304
|
+
}, {
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
readonly name: "joinSplitVerifier";
|
|
307
|
+
readonly inputs: readonly [];
|
|
308
|
+
readonly outputs: readonly [{
|
|
309
|
+
readonly name: "";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly internalType: "contract IJoinSplitVerifier";
|
|
312
|
+
}];
|
|
313
|
+
readonly stateMutability: "view";
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
readonly name: "merge";
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly name: "proof";
|
|
319
|
+
readonly type: "uint256[8]";
|
|
320
|
+
readonly internalType: "uint256[8]";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "nullifier1";
|
|
323
|
+
readonly type: "bytes32";
|
|
324
|
+
readonly internalType: "bytes32";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "nullifier2";
|
|
327
|
+
readonly type: "bytes32";
|
|
328
|
+
readonly internalType: "bytes32";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "stateRoot";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
readonly internalType: "uint256";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "token";
|
|
335
|
+
readonly type: "address";
|
|
336
|
+
readonly internalType: "address";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "outputCommitment";
|
|
339
|
+
readonly type: "bytes32";
|
|
340
|
+
readonly internalType: "bytes32";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "encryptedNote";
|
|
343
|
+
readonly type: "bytes";
|
|
344
|
+
readonly internalType: "bytes";
|
|
345
|
+
}];
|
|
346
|
+
readonly outputs: readonly [];
|
|
347
|
+
readonly stateMutability: "nonpayable";
|
|
348
|
+
}, {
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
readonly name: "mergeRecords";
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly name: "";
|
|
353
|
+
readonly type: "bytes32";
|
|
354
|
+
readonly internalType: "bytes32";
|
|
355
|
+
}];
|
|
356
|
+
readonly outputs: readonly [{
|
|
357
|
+
readonly name: "outputCommitment";
|
|
358
|
+
readonly type: "bytes32";
|
|
359
|
+
readonly internalType: "bytes32";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "nullifier1";
|
|
362
|
+
readonly type: "bytes32";
|
|
363
|
+
readonly internalType: "bytes32";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "nullifier2";
|
|
366
|
+
readonly type: "bytes32";
|
|
367
|
+
readonly internalType: "bytes32";
|
|
368
|
+
}, {
|
|
369
|
+
readonly name: "merger";
|
|
370
|
+
readonly type: "address";
|
|
371
|
+
readonly internalType: "address";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "token";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
readonly internalType: "address";
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "timestamp";
|
|
378
|
+
readonly type: "uint256";
|
|
379
|
+
readonly internalType: "uint256";
|
|
380
|
+
}];
|
|
381
|
+
readonly stateMutability: "view";
|
|
382
|
+
}, {
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
readonly name: "mergeTransfer2x2";
|
|
385
|
+
readonly inputs: readonly [{
|
|
386
|
+
readonly name: "proof";
|
|
387
|
+
readonly type: "uint256[8]";
|
|
388
|
+
readonly internalType: "uint256[8]";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "nullifier1";
|
|
391
|
+
readonly type: "bytes32";
|
|
392
|
+
readonly internalType: "bytes32";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "nullifier2";
|
|
395
|
+
readonly type: "bytes32";
|
|
396
|
+
readonly internalType: "bytes32";
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "stateRoot";
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "token";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "outputCommitment1";
|
|
407
|
+
readonly type: "bytes32";
|
|
408
|
+
readonly internalType: "bytes32";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "outputCommitment2";
|
|
411
|
+
readonly type: "bytes32";
|
|
412
|
+
readonly internalType: "bytes32";
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "encryptedNote1";
|
|
415
|
+
readonly type: "bytes";
|
|
416
|
+
readonly internalType: "bytes";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "encryptedNote2";
|
|
419
|
+
readonly type: "bytes";
|
|
420
|
+
readonly internalType: "bytes";
|
|
421
|
+
}];
|
|
422
|
+
readonly outputs: readonly [];
|
|
423
|
+
readonly stateMutability: "nonpayable";
|
|
424
|
+
}, {
|
|
425
|
+
readonly type: "function";
|
|
426
|
+
readonly name: "mergeTransfer2x2Verifier";
|
|
427
|
+
readonly inputs: readonly [];
|
|
428
|
+
readonly outputs: readonly [{
|
|
429
|
+
readonly name: "";
|
|
430
|
+
readonly type: "address";
|
|
431
|
+
readonly internalType: "contract IMergeTransfer2x2Verifier";
|
|
432
|
+
}];
|
|
433
|
+
readonly stateMutability: "view";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "function";
|
|
436
|
+
readonly name: "mergeTransfer4x2";
|
|
437
|
+
readonly inputs: readonly [{
|
|
438
|
+
readonly name: "proof";
|
|
439
|
+
readonly type: "uint256[8]";
|
|
440
|
+
readonly internalType: "uint256[8]";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "nullifiers";
|
|
443
|
+
readonly type: "bytes32[4]";
|
|
444
|
+
readonly internalType: "bytes32[4]";
|
|
445
|
+
}, {
|
|
446
|
+
readonly name: "stateRoot";
|
|
447
|
+
readonly type: "uint256";
|
|
448
|
+
readonly internalType: "uint256";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "token";
|
|
451
|
+
readonly type: "address";
|
|
452
|
+
readonly internalType: "address";
|
|
453
|
+
}, {
|
|
454
|
+
readonly name: "outputCommitment1";
|
|
455
|
+
readonly type: "bytes32";
|
|
456
|
+
readonly internalType: "bytes32";
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "outputCommitment2";
|
|
459
|
+
readonly type: "bytes32";
|
|
460
|
+
readonly internalType: "bytes32";
|
|
461
|
+
}, {
|
|
462
|
+
readonly name: "encryptedNote1";
|
|
463
|
+
readonly type: "bytes";
|
|
464
|
+
readonly internalType: "bytes";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "encryptedNote2";
|
|
467
|
+
readonly type: "bytes";
|
|
468
|
+
readonly internalType: "bytes";
|
|
469
|
+
}];
|
|
470
|
+
readonly outputs: readonly [];
|
|
471
|
+
readonly stateMutability: "nonpayable";
|
|
472
|
+
}, {
|
|
473
|
+
readonly type: "function";
|
|
474
|
+
readonly name: "mergeTransfer4x2Verifier";
|
|
475
|
+
readonly inputs: readonly [];
|
|
476
|
+
readonly outputs: readonly [{
|
|
477
|
+
readonly name: "";
|
|
478
|
+
readonly type: "address";
|
|
479
|
+
readonly internalType: "contract IMergeTransfer4x2Verifier";
|
|
480
|
+
}];
|
|
481
|
+
readonly stateMutability: "view";
|
|
482
|
+
}, {
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
readonly name: "mergeVerifier";
|
|
485
|
+
readonly inputs: readonly [];
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly name: "";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
readonly internalType: "contract IMergeVerifier";
|
|
490
|
+
}];
|
|
491
|
+
readonly stateMutability: "view";
|
|
492
|
+
}, {
|
|
493
|
+
readonly type: "function";
|
|
494
|
+
readonly name: "nullifierUsed";
|
|
495
|
+
readonly inputs: readonly [{
|
|
496
|
+
readonly name: "";
|
|
497
|
+
readonly type: "bytes32";
|
|
498
|
+
readonly internalType: "bytes32";
|
|
499
|
+
}];
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly name: "";
|
|
502
|
+
readonly type: "bool";
|
|
503
|
+
readonly internalType: "bool";
|
|
504
|
+
}];
|
|
505
|
+
readonly stateMutability: "view";
|
|
506
|
+
}, {
|
|
507
|
+
readonly type: "function";
|
|
508
|
+
readonly name: "permissionlessTokens";
|
|
509
|
+
readonly inputs: readonly [];
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly name: "";
|
|
512
|
+
readonly type: "bool";
|
|
513
|
+
readonly internalType: "bool";
|
|
514
|
+
}];
|
|
515
|
+
readonly stateMutability: "view";
|
|
516
|
+
}, {
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
readonly name: "roots";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly name: "";
|
|
521
|
+
readonly type: "uint256";
|
|
522
|
+
readonly internalType: "uint256";
|
|
523
|
+
}];
|
|
524
|
+
readonly outputs: readonly [{
|
|
525
|
+
readonly name: "";
|
|
526
|
+
readonly type: "uint256";
|
|
527
|
+
readonly internalType: "uint256";
|
|
528
|
+
}];
|
|
529
|
+
readonly stateMutability: "view";
|
|
530
|
+
}, {
|
|
531
|
+
readonly type: "function";
|
|
532
|
+
readonly name: "setStarkTransferVerifier";
|
|
533
|
+
readonly inputs: readonly [{
|
|
534
|
+
readonly name: "_verifier";
|
|
535
|
+
readonly type: "address";
|
|
536
|
+
readonly internalType: "address";
|
|
537
|
+
}];
|
|
538
|
+
readonly outputs: readonly [];
|
|
539
|
+
readonly stateMutability: "nonpayable";
|
|
540
|
+
}, {
|
|
541
|
+
readonly type: "function";
|
|
542
|
+
readonly name: "setStarkWithdrawVerifier";
|
|
543
|
+
readonly inputs: readonly [{
|
|
544
|
+
readonly name: "_verifier";
|
|
545
|
+
readonly type: "address";
|
|
546
|
+
readonly internalType: "address";
|
|
547
|
+
}];
|
|
548
|
+
readonly outputs: readonly [];
|
|
549
|
+
readonly stateMutability: "nonpayable";
|
|
550
|
+
}, {
|
|
551
|
+
readonly type: "function";
|
|
552
|
+
readonly name: "shield";
|
|
553
|
+
readonly inputs: readonly [{
|
|
554
|
+
readonly name: "token";
|
|
555
|
+
readonly type: "address";
|
|
556
|
+
readonly internalType: "address";
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "amount";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
readonly internalType: "uint256";
|
|
561
|
+
}, {
|
|
562
|
+
readonly name: "commitment";
|
|
563
|
+
readonly type: "bytes32";
|
|
564
|
+
readonly internalType: "bytes32";
|
|
565
|
+
}, {
|
|
566
|
+
readonly name: "encryptedNote";
|
|
567
|
+
readonly type: "bytes";
|
|
568
|
+
readonly internalType: "bytes";
|
|
569
|
+
}];
|
|
570
|
+
readonly outputs: readonly [];
|
|
571
|
+
readonly stateMutability: "nonpayable";
|
|
572
|
+
}, {
|
|
573
|
+
readonly type: "function";
|
|
574
|
+
readonly name: "shieldFor";
|
|
575
|
+
readonly inputs: readonly [{
|
|
576
|
+
readonly name: "depositor";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
readonly internalType: "address";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "token";
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
readonly internalType: "address";
|
|
583
|
+
}, {
|
|
584
|
+
readonly name: "amount";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
readonly internalType: "uint256";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "commitment";
|
|
589
|
+
readonly type: "bytes32";
|
|
590
|
+
readonly internalType: "bytes32";
|
|
591
|
+
}, {
|
|
592
|
+
readonly name: "encryptedNote";
|
|
593
|
+
readonly type: "bytes";
|
|
594
|
+
readonly internalType: "bytes";
|
|
595
|
+
}];
|
|
596
|
+
readonly outputs: readonly [];
|
|
597
|
+
readonly stateMutability: "nonpayable";
|
|
598
|
+
}, {
|
|
599
|
+
readonly type: "function";
|
|
600
|
+
readonly name: "shieldSTARK";
|
|
601
|
+
readonly inputs: readonly [{
|
|
602
|
+
readonly name: "token";
|
|
603
|
+
readonly type: "address";
|
|
604
|
+
readonly internalType: "address";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "amount";
|
|
607
|
+
readonly type: "uint256";
|
|
608
|
+
readonly internalType: "uint256";
|
|
609
|
+
}, {
|
|
610
|
+
readonly name: "commitment";
|
|
611
|
+
readonly type: "uint128";
|
|
612
|
+
readonly internalType: "uint128";
|
|
613
|
+
}, {
|
|
614
|
+
readonly name: "encryptedNote";
|
|
615
|
+
readonly type: "bytes";
|
|
616
|
+
readonly internalType: "bytes";
|
|
617
|
+
}];
|
|
618
|
+
readonly outputs: readonly [];
|
|
619
|
+
readonly stateMutability: "nonpayable";
|
|
620
|
+
}, {
|
|
621
|
+
readonly type: "function";
|
|
622
|
+
readonly name: "shieldVerifier";
|
|
623
|
+
readonly inputs: readonly [];
|
|
624
|
+
readonly outputs: readonly [{
|
|
625
|
+
readonly name: "";
|
|
626
|
+
readonly type: "address";
|
|
627
|
+
readonly internalType: "contract IShieldVerifier";
|
|
628
|
+
}];
|
|
629
|
+
readonly stateMutability: "view";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "function";
|
|
632
|
+
readonly name: "shieldWithPermit";
|
|
633
|
+
readonly inputs: readonly [{
|
|
634
|
+
readonly name: "token";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
readonly internalType: "address";
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "amount";
|
|
639
|
+
readonly type: "uint256";
|
|
640
|
+
readonly internalType: "uint256";
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "commitment";
|
|
643
|
+
readonly type: "bytes32";
|
|
644
|
+
readonly internalType: "bytes32";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "encryptedNote";
|
|
647
|
+
readonly type: "bytes";
|
|
648
|
+
readonly internalType: "bytes";
|
|
649
|
+
}, {
|
|
650
|
+
readonly name: "deadline";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
readonly internalType: "uint256";
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "v";
|
|
655
|
+
readonly type: "uint8";
|
|
656
|
+
readonly internalType: "uint8";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "r";
|
|
659
|
+
readonly type: "bytes32";
|
|
660
|
+
readonly internalType: "bytes32";
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "s";
|
|
663
|
+
readonly type: "bytes32";
|
|
664
|
+
readonly internalType: "bytes32";
|
|
665
|
+
}];
|
|
666
|
+
readonly outputs: readonly [];
|
|
667
|
+
readonly stateMutability: "nonpayable";
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "function";
|
|
670
|
+
readonly name: "starkCurrentRootIndex";
|
|
671
|
+
readonly inputs: readonly [];
|
|
672
|
+
readonly outputs: readonly [{
|
|
673
|
+
readonly name: "";
|
|
674
|
+
readonly type: "uint256";
|
|
675
|
+
readonly internalType: "uint256";
|
|
676
|
+
}];
|
|
677
|
+
readonly stateMutability: "view";
|
|
678
|
+
}, {
|
|
679
|
+
readonly type: "function";
|
|
680
|
+
readonly name: "starkRoots";
|
|
681
|
+
readonly inputs: readonly [{
|
|
682
|
+
readonly name: "";
|
|
683
|
+
readonly type: "uint256";
|
|
684
|
+
readonly internalType: "uint256";
|
|
685
|
+
}];
|
|
686
|
+
readonly outputs: readonly [{
|
|
687
|
+
readonly name: "";
|
|
688
|
+
readonly type: "uint128";
|
|
689
|
+
readonly internalType: "uint128";
|
|
690
|
+
}];
|
|
691
|
+
readonly stateMutability: "view";
|
|
692
|
+
}, {
|
|
693
|
+
readonly type: "function";
|
|
694
|
+
readonly name: "starkTransferVerifier";
|
|
695
|
+
readonly inputs: readonly [];
|
|
696
|
+
readonly outputs: readonly [{
|
|
697
|
+
readonly name: "";
|
|
698
|
+
readonly type: "address";
|
|
699
|
+
readonly internalType: "contract ICircleStarkTransferVerifier";
|
|
700
|
+
}];
|
|
701
|
+
readonly stateMutability: "view";
|
|
702
|
+
}, {
|
|
703
|
+
readonly type: "function";
|
|
704
|
+
readonly name: "starkTreeInitialized";
|
|
705
|
+
readonly inputs: readonly [];
|
|
706
|
+
readonly outputs: readonly [{
|
|
707
|
+
readonly name: "";
|
|
708
|
+
readonly type: "bool";
|
|
709
|
+
readonly internalType: "bool";
|
|
710
|
+
}];
|
|
711
|
+
readonly stateMutability: "view";
|
|
712
|
+
}, {
|
|
713
|
+
readonly type: "function";
|
|
714
|
+
readonly name: "starkWithdrawVerifier";
|
|
715
|
+
readonly inputs: readonly [];
|
|
716
|
+
readonly outputs: readonly [{
|
|
717
|
+
readonly name: "";
|
|
718
|
+
readonly type: "address";
|
|
719
|
+
readonly internalType: "contract ICircleStarkWithdrawVerifier";
|
|
720
|
+
}];
|
|
721
|
+
readonly stateMutability: "view";
|
|
722
|
+
}, {
|
|
723
|
+
readonly type: "function";
|
|
724
|
+
readonly name: "supportedTokens";
|
|
725
|
+
readonly inputs: readonly [{
|
|
726
|
+
readonly name: "";
|
|
727
|
+
readonly type: "address";
|
|
728
|
+
readonly internalType: "address";
|
|
729
|
+
}];
|
|
730
|
+
readonly outputs: readonly [{
|
|
731
|
+
readonly name: "";
|
|
732
|
+
readonly type: "bool";
|
|
733
|
+
readonly internalType: "bool";
|
|
734
|
+
}];
|
|
735
|
+
readonly stateMutability: "view";
|
|
736
|
+
}, {
|
|
737
|
+
readonly type: "function";
|
|
738
|
+
readonly name: "swapCancel";
|
|
739
|
+
readonly inputs: readonly [{
|
|
740
|
+
readonly name: "orderId";
|
|
741
|
+
readonly type: "bytes32";
|
|
742
|
+
readonly internalType: "bytes32";
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "cancelSecret";
|
|
745
|
+
readonly type: "bytes32";
|
|
746
|
+
readonly internalType: "bytes32";
|
|
747
|
+
}, {
|
|
748
|
+
readonly name: "refundCommitment";
|
|
749
|
+
readonly type: "bytes32";
|
|
750
|
+
readonly internalType: "bytes32";
|
|
751
|
+
}, {
|
|
752
|
+
readonly name: "encryptedRefundNote";
|
|
753
|
+
readonly type: "bytes";
|
|
754
|
+
readonly internalType: "bytes";
|
|
755
|
+
}];
|
|
756
|
+
readonly outputs: readonly [];
|
|
757
|
+
readonly stateMutability: "nonpayable";
|
|
758
|
+
}, {
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
readonly name: "swapClaim";
|
|
761
|
+
readonly inputs: readonly [{
|
|
762
|
+
readonly name: "orderId";
|
|
763
|
+
readonly type: "bytes32";
|
|
764
|
+
readonly internalType: "bytes32";
|
|
765
|
+
}, {
|
|
766
|
+
readonly name: "cancelSecret";
|
|
767
|
+
readonly type: "bytes32";
|
|
768
|
+
readonly internalType: "bytes32";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "buyOutputCommitment";
|
|
771
|
+
readonly type: "bytes32";
|
|
772
|
+
readonly internalType: "bytes32";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "encryptedBuyNote";
|
|
775
|
+
readonly type: "bytes";
|
|
776
|
+
readonly internalType: "bytes";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "refundCommitment";
|
|
779
|
+
readonly type: "bytes32";
|
|
780
|
+
readonly internalType: "bytes32";
|
|
781
|
+
}, {
|
|
782
|
+
readonly name: "encryptedRefundNote";
|
|
783
|
+
readonly type: "bytes";
|
|
784
|
+
readonly internalType: "bytes";
|
|
785
|
+
}];
|
|
786
|
+
readonly outputs: readonly [];
|
|
787
|
+
readonly stateMutability: "nonpayable";
|
|
788
|
+
}, {
|
|
789
|
+
readonly type: "function";
|
|
790
|
+
readonly name: "swapFill";
|
|
791
|
+
readonly inputs: readonly [{
|
|
792
|
+
readonly name: "orderId";
|
|
793
|
+
readonly type: "bytes32";
|
|
794
|
+
readonly internalType: "bytes32";
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "proof";
|
|
797
|
+
readonly type: "uint256[8]";
|
|
798
|
+
readonly internalType: "uint256[8]";
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "nullifier";
|
|
801
|
+
readonly type: "bytes32";
|
|
802
|
+
readonly internalType: "bytes32";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "stateRoot";
|
|
805
|
+
readonly type: "uint256";
|
|
806
|
+
readonly internalType: "uint256";
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "aspRoot";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
readonly internalType: "uint256";
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "aspId";
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
}, {
|
|
816
|
+
readonly name: "takeAmount";
|
|
817
|
+
readonly type: "uint256";
|
|
818
|
+
readonly internalType: "uint256";
|
|
819
|
+
}, {
|
|
820
|
+
readonly name: "fillerOutputCommitment";
|
|
821
|
+
readonly type: "bytes32";
|
|
822
|
+
readonly internalType: "bytes32";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "encryptedFillerNote";
|
|
825
|
+
readonly type: "bytes";
|
|
826
|
+
readonly internalType: "bytes";
|
|
827
|
+
}];
|
|
828
|
+
readonly outputs: readonly [];
|
|
829
|
+
readonly stateMutability: "nonpayable";
|
|
830
|
+
}, {
|
|
831
|
+
readonly type: "function";
|
|
832
|
+
readonly name: "swapOrder";
|
|
833
|
+
readonly inputs: readonly [{
|
|
834
|
+
readonly name: "proof";
|
|
835
|
+
readonly type: "uint256[8]";
|
|
836
|
+
readonly internalType: "uint256[8]";
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "nullifier";
|
|
839
|
+
readonly type: "bytes32";
|
|
840
|
+
readonly internalType: "bytes32";
|
|
841
|
+
}, {
|
|
842
|
+
readonly name: "stateRoot";
|
|
843
|
+
readonly type: "uint256";
|
|
844
|
+
readonly internalType: "uint256";
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "aspRoot";
|
|
847
|
+
readonly type: "uint256";
|
|
848
|
+
readonly internalType: "uint256";
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "aspId";
|
|
851
|
+
readonly type: "uint256";
|
|
852
|
+
readonly internalType: "uint256";
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "sellToken";
|
|
855
|
+
readonly type: "address";
|
|
856
|
+
readonly internalType: "address";
|
|
857
|
+
}, {
|
|
858
|
+
readonly name: "sellAmount";
|
|
859
|
+
readonly type: "uint256";
|
|
860
|
+
readonly internalType: "uint256";
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "buyToken";
|
|
863
|
+
readonly type: "address";
|
|
864
|
+
readonly internalType: "address";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "rate";
|
|
867
|
+
readonly type: "uint256";
|
|
868
|
+
readonly internalType: "uint256";
|
|
869
|
+
}, {
|
|
870
|
+
readonly name: "requiredFillerAspId";
|
|
871
|
+
readonly type: "uint256";
|
|
872
|
+
readonly internalType: "uint256";
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "cancelKeyHash";
|
|
875
|
+
readonly type: "bytes32";
|
|
876
|
+
readonly internalType: "bytes32";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "expiry";
|
|
879
|
+
readonly type: "uint256";
|
|
880
|
+
readonly internalType: "uint256";
|
|
881
|
+
}];
|
|
882
|
+
readonly outputs: readonly [];
|
|
883
|
+
readonly stateMutability: "nonpayable";
|
|
884
|
+
}, {
|
|
885
|
+
readonly type: "function";
|
|
886
|
+
readonly name: "swapOrders";
|
|
887
|
+
readonly inputs: readonly [{
|
|
888
|
+
readonly name: "";
|
|
889
|
+
readonly type: "bytes32";
|
|
890
|
+
readonly internalType: "bytes32";
|
|
891
|
+
}];
|
|
892
|
+
readonly outputs: readonly [{
|
|
893
|
+
readonly name: "sellToken";
|
|
894
|
+
readonly type: "address";
|
|
895
|
+
readonly internalType: "address";
|
|
896
|
+
}, {
|
|
897
|
+
readonly name: "sellAmount";
|
|
898
|
+
readonly type: "uint256";
|
|
899
|
+
readonly internalType: "uint256";
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "remainingSellAmount";
|
|
902
|
+
readonly type: "uint256";
|
|
903
|
+
readonly internalType: "uint256";
|
|
904
|
+
}, {
|
|
905
|
+
readonly name: "buyToken";
|
|
906
|
+
readonly type: "address";
|
|
907
|
+
readonly internalType: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly name: "rate";
|
|
910
|
+
readonly type: "uint256";
|
|
911
|
+
readonly internalType: "uint256";
|
|
912
|
+
}, {
|
|
913
|
+
readonly name: "accumulatedBuyAmount";
|
|
914
|
+
readonly type: "uint256";
|
|
915
|
+
readonly internalType: "uint256";
|
|
916
|
+
}, {
|
|
917
|
+
readonly name: "makerAspId";
|
|
918
|
+
readonly type: "uint256";
|
|
919
|
+
readonly internalType: "uint256";
|
|
920
|
+
}, {
|
|
921
|
+
readonly name: "requiredFillerAspId";
|
|
922
|
+
readonly type: "uint256";
|
|
923
|
+
readonly internalType: "uint256";
|
|
924
|
+
}, {
|
|
925
|
+
readonly name: "cancelKeyHash";
|
|
926
|
+
readonly type: "bytes32";
|
|
927
|
+
readonly internalType: "bytes32";
|
|
928
|
+
}, {
|
|
929
|
+
readonly name: "expiry";
|
|
930
|
+
readonly type: "uint256";
|
|
931
|
+
readonly internalType: "uint256";
|
|
932
|
+
}, {
|
|
933
|
+
readonly name: "claimed";
|
|
934
|
+
readonly type: "bool";
|
|
935
|
+
readonly internalType: "bool";
|
|
936
|
+
}, {
|
|
937
|
+
readonly name: "cancelled";
|
|
938
|
+
readonly type: "bool";
|
|
939
|
+
readonly internalType: "bool";
|
|
940
|
+
}];
|
|
941
|
+
readonly stateMutability: "view";
|
|
942
|
+
}, {
|
|
943
|
+
readonly type: "function";
|
|
944
|
+
readonly name: "transfer";
|
|
945
|
+
readonly inputs: readonly [{
|
|
946
|
+
readonly name: "proof";
|
|
947
|
+
readonly type: "uint256[8]";
|
|
948
|
+
readonly internalType: "uint256[8]";
|
|
949
|
+
}, {
|
|
950
|
+
readonly name: "nullifier";
|
|
951
|
+
readonly type: "bytes32";
|
|
952
|
+
readonly internalType: "bytes32";
|
|
953
|
+
}, {
|
|
954
|
+
readonly name: "stateRoot";
|
|
955
|
+
readonly type: "uint256";
|
|
956
|
+
readonly internalType: "uint256";
|
|
957
|
+
}, {
|
|
958
|
+
readonly name: "aspRoot";
|
|
959
|
+
readonly type: "uint256";
|
|
960
|
+
readonly internalType: "uint256";
|
|
961
|
+
}, {
|
|
962
|
+
readonly name: "token";
|
|
963
|
+
readonly type: "address";
|
|
964
|
+
readonly internalType: "address";
|
|
965
|
+
}, {
|
|
966
|
+
readonly name: "outputCommitment1";
|
|
967
|
+
readonly type: "bytes32";
|
|
968
|
+
readonly internalType: "bytes32";
|
|
969
|
+
}, {
|
|
970
|
+
readonly name: "outputCommitment2";
|
|
971
|
+
readonly type: "bytes32";
|
|
972
|
+
readonly internalType: "bytes32";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "encryptedNote1";
|
|
975
|
+
readonly type: "bytes";
|
|
976
|
+
readonly internalType: "bytes";
|
|
977
|
+
}, {
|
|
978
|
+
readonly name: "encryptedNote2";
|
|
979
|
+
readonly type: "bytes";
|
|
980
|
+
readonly internalType: "bytes";
|
|
981
|
+
}];
|
|
982
|
+
readonly outputs: readonly [];
|
|
983
|
+
readonly stateMutability: "nonpayable";
|
|
984
|
+
}, {
|
|
985
|
+
readonly type: "function";
|
|
986
|
+
readonly name: "transferSTARK";
|
|
987
|
+
readonly inputs: readonly [{
|
|
988
|
+
readonly name: "proof";
|
|
989
|
+
readonly type: "bytes";
|
|
990
|
+
readonly internalType: "bytes";
|
|
991
|
+
}, {
|
|
992
|
+
readonly name: "nullifier";
|
|
993
|
+
readonly type: "bytes32";
|
|
994
|
+
readonly internalType: "bytes32";
|
|
995
|
+
}, {
|
|
996
|
+
readonly name: "stateRoot";
|
|
997
|
+
readonly type: "uint256";
|
|
998
|
+
readonly internalType: "uint256";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly name: "aspRoot";
|
|
1001
|
+
readonly type: "uint256";
|
|
1002
|
+
readonly internalType: "uint256";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly name: "token";
|
|
1005
|
+
readonly type: "address";
|
|
1006
|
+
readonly internalType: "address";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly name: "outputCommitment1";
|
|
1009
|
+
readonly type: "bytes32";
|
|
1010
|
+
readonly internalType: "bytes32";
|
|
1011
|
+
}, {
|
|
1012
|
+
readonly name: "outputCommitment2";
|
|
1013
|
+
readonly type: "bytes32";
|
|
1014
|
+
readonly internalType: "bytes32";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly name: "encryptedNote1";
|
|
1017
|
+
readonly type: "bytes";
|
|
1018
|
+
readonly internalType: "bytes";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly name: "encryptedNote2";
|
|
1021
|
+
readonly type: "bytes";
|
|
1022
|
+
readonly internalType: "bytes";
|
|
1023
|
+
}];
|
|
1024
|
+
readonly outputs: readonly [];
|
|
1025
|
+
readonly stateMutability: "nonpayable";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly type: "function";
|
|
1028
|
+
readonly name: "transferVerifier";
|
|
1029
|
+
readonly inputs: readonly [];
|
|
1030
|
+
readonly outputs: readonly [{
|
|
1031
|
+
readonly name: "";
|
|
1032
|
+
readonly type: "address";
|
|
1033
|
+
readonly internalType: "contract ITransferVerifier";
|
|
1034
|
+
}];
|
|
1035
|
+
readonly stateMutability: "view";
|
|
1036
|
+
}, {
|
|
1037
|
+
readonly type: "function";
|
|
1038
|
+
readonly name: "withdraw";
|
|
1039
|
+
readonly inputs: readonly [{
|
|
1040
|
+
readonly name: "proof";
|
|
1041
|
+
readonly type: "uint256[8]";
|
|
1042
|
+
readonly internalType: "uint256[8]";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly name: "nullifier";
|
|
1045
|
+
readonly type: "bytes32";
|
|
1046
|
+
readonly internalType: "bytes32";
|
|
1047
|
+
}, {
|
|
1048
|
+
readonly name: "stateRoot";
|
|
1049
|
+
readonly type: "uint256";
|
|
1050
|
+
readonly internalType: "uint256";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly name: "aspRoot";
|
|
1053
|
+
readonly type: "uint256";
|
|
1054
|
+
readonly internalType: "uint256";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly name: "aspId";
|
|
1057
|
+
readonly type: "uint256";
|
|
1058
|
+
readonly internalType: "uint256";
|
|
1059
|
+
}, {
|
|
1060
|
+
readonly name: "token";
|
|
1061
|
+
readonly type: "address";
|
|
1062
|
+
readonly internalType: "address";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly name: "amount";
|
|
1065
|
+
readonly type: "uint256";
|
|
1066
|
+
readonly internalType: "uint256";
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly name: "recipient";
|
|
1069
|
+
readonly type: "address";
|
|
1070
|
+
readonly internalType: "address";
|
|
1071
|
+
}, {
|
|
1072
|
+
readonly name: "isRagequit";
|
|
1073
|
+
readonly type: "bool";
|
|
1074
|
+
readonly internalType: "bool";
|
|
1075
|
+
}];
|
|
1076
|
+
readonly outputs: readonly [];
|
|
1077
|
+
readonly stateMutability: "nonpayable";
|
|
1078
|
+
}, {
|
|
1079
|
+
readonly type: "function";
|
|
1080
|
+
readonly name: "withdrawSTARK";
|
|
1081
|
+
readonly inputs: readonly [{
|
|
1082
|
+
readonly name: "proof";
|
|
1083
|
+
readonly type: "bytes";
|
|
1084
|
+
readonly internalType: "bytes";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "nullifier";
|
|
1087
|
+
readonly type: "bytes32";
|
|
1088
|
+
readonly internalType: "bytes32";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly name: "stateRoot";
|
|
1091
|
+
readonly type: "uint256";
|
|
1092
|
+
readonly internalType: "uint256";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly name: "aspRoot";
|
|
1095
|
+
readonly type: "uint256";
|
|
1096
|
+
readonly internalType: "uint256";
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "aspId";
|
|
1099
|
+
readonly type: "uint256";
|
|
1100
|
+
readonly internalType: "uint256";
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly name: "token";
|
|
1103
|
+
readonly type: "address";
|
|
1104
|
+
readonly internalType: "address";
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly name: "amount";
|
|
1107
|
+
readonly type: "uint256";
|
|
1108
|
+
readonly internalType: "uint256";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly name: "recipient";
|
|
1111
|
+
readonly type: "address";
|
|
1112
|
+
readonly internalType: "address";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly name: "isRagequit";
|
|
1115
|
+
readonly type: "bool";
|
|
1116
|
+
readonly internalType: "bool";
|
|
1117
|
+
}];
|
|
1118
|
+
readonly outputs: readonly [];
|
|
1119
|
+
readonly stateMutability: "nonpayable";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly type: "function";
|
|
1122
|
+
readonly name: "withdrawVerifier";
|
|
1123
|
+
readonly inputs: readonly [];
|
|
1124
|
+
readonly outputs: readonly [{
|
|
1125
|
+
readonly name: "";
|
|
1126
|
+
readonly type: "address";
|
|
1127
|
+
readonly internalType: "contract IWithdrawVerifier";
|
|
1128
|
+
}];
|
|
1129
|
+
readonly stateMutability: "view";
|
|
1130
|
+
}, {
|
|
1131
|
+
readonly type: "event";
|
|
1132
|
+
readonly name: "CommitmentInserted";
|
|
1133
|
+
readonly inputs: readonly [{
|
|
1134
|
+
readonly name: "commitment";
|
|
1135
|
+
readonly type: "bytes32";
|
|
1136
|
+
readonly indexed: true;
|
|
1137
|
+
readonly internalType: "bytes32";
|
|
1138
|
+
}, {
|
|
1139
|
+
readonly name: "leafIndex";
|
|
1140
|
+
readonly type: "uint256";
|
|
1141
|
+
readonly indexed: false;
|
|
1142
|
+
readonly internalType: "uint256";
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly name: "timestamp";
|
|
1145
|
+
readonly type: "uint256";
|
|
1146
|
+
readonly indexed: false;
|
|
1147
|
+
readonly internalType: "uint256";
|
|
1148
|
+
}];
|
|
1149
|
+
readonly anonymous: false;
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly type: "event";
|
|
1152
|
+
readonly name: "JoinSplit";
|
|
1153
|
+
readonly inputs: readonly [{
|
|
1154
|
+
readonly name: "nullifiers";
|
|
1155
|
+
readonly type: "bytes32[4]";
|
|
1156
|
+
readonly indexed: false;
|
|
1157
|
+
readonly internalType: "bytes32[4]";
|
|
1158
|
+
}, {
|
|
1159
|
+
readonly name: "outputCommitment1";
|
|
1160
|
+
readonly type: "bytes32";
|
|
1161
|
+
readonly indexed: true;
|
|
1162
|
+
readonly internalType: "bytes32";
|
|
1163
|
+
}, {
|
|
1164
|
+
readonly name: "outputCommitment2";
|
|
1165
|
+
readonly type: "bytes32";
|
|
1166
|
+
readonly indexed: true;
|
|
1167
|
+
readonly internalType: "bytes32";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "encryptedNote1";
|
|
1170
|
+
readonly type: "bytes";
|
|
1171
|
+
readonly indexed: false;
|
|
1172
|
+
readonly internalType: "bytes";
|
|
1173
|
+
}, {
|
|
1174
|
+
readonly name: "encryptedNote2";
|
|
1175
|
+
readonly type: "bytes";
|
|
1176
|
+
readonly indexed: false;
|
|
1177
|
+
readonly internalType: "bytes";
|
|
1178
|
+
}];
|
|
1179
|
+
readonly anonymous: false;
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly type: "event";
|
|
1182
|
+
readonly name: "MergeTransfer";
|
|
1183
|
+
readonly inputs: readonly [{
|
|
1184
|
+
readonly name: "nullifier1";
|
|
1185
|
+
readonly type: "bytes32";
|
|
1186
|
+
readonly indexed: true;
|
|
1187
|
+
readonly internalType: "bytes32";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly name: "nullifier2";
|
|
1190
|
+
readonly type: "bytes32";
|
|
1191
|
+
readonly indexed: true;
|
|
1192
|
+
readonly internalType: "bytes32";
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly name: "nullifier3";
|
|
1195
|
+
readonly type: "bytes32";
|
|
1196
|
+
readonly indexed: false;
|
|
1197
|
+
readonly internalType: "bytes32";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly name: "nullifier4";
|
|
1200
|
+
readonly type: "bytes32";
|
|
1201
|
+
readonly indexed: false;
|
|
1202
|
+
readonly internalType: "bytes32";
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly name: "outputCommitment1";
|
|
1205
|
+
readonly type: "bytes32";
|
|
1206
|
+
readonly indexed: false;
|
|
1207
|
+
readonly internalType: "bytes32";
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly name: "outputCommitment2";
|
|
1210
|
+
readonly type: "bytes32";
|
|
1211
|
+
readonly indexed: false;
|
|
1212
|
+
readonly internalType: "bytes32";
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly name: "merger";
|
|
1215
|
+
readonly type: "address";
|
|
1216
|
+
readonly indexed: false;
|
|
1217
|
+
readonly internalType: "address";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly name: "token";
|
|
1220
|
+
readonly type: "address";
|
|
1221
|
+
readonly indexed: false;
|
|
1222
|
+
readonly internalType: "address";
|
|
1223
|
+
}];
|
|
1224
|
+
readonly anonymous: false;
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly type: "event";
|
|
1227
|
+
readonly name: "Merged";
|
|
1228
|
+
readonly inputs: readonly [{
|
|
1229
|
+
readonly name: "outputCommitment";
|
|
1230
|
+
readonly type: "bytes32";
|
|
1231
|
+
readonly indexed: true;
|
|
1232
|
+
readonly internalType: "bytes32";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly name: "nullifier1";
|
|
1235
|
+
readonly type: "bytes32";
|
|
1236
|
+
readonly indexed: true;
|
|
1237
|
+
readonly internalType: "bytes32";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly name: "nullifier2";
|
|
1240
|
+
readonly type: "bytes32";
|
|
1241
|
+
readonly indexed: true;
|
|
1242
|
+
readonly internalType: "bytes32";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly name: "merger";
|
|
1245
|
+
readonly type: "address";
|
|
1246
|
+
readonly indexed: false;
|
|
1247
|
+
readonly internalType: "address";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "token";
|
|
1250
|
+
readonly type: "address";
|
|
1251
|
+
readonly indexed: false;
|
|
1252
|
+
readonly internalType: "address";
|
|
1253
|
+
}];
|
|
1254
|
+
readonly anonymous: false;
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly type: "event";
|
|
1257
|
+
readonly name: "Shielded";
|
|
1258
|
+
readonly inputs: readonly [{
|
|
1259
|
+
readonly name: "token";
|
|
1260
|
+
readonly type: "address";
|
|
1261
|
+
readonly indexed: true;
|
|
1262
|
+
readonly internalType: "address";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly name: "depositor";
|
|
1265
|
+
readonly type: "address";
|
|
1266
|
+
readonly indexed: true;
|
|
1267
|
+
readonly internalType: "address";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly name: "commitment";
|
|
1270
|
+
readonly type: "bytes32";
|
|
1271
|
+
readonly indexed: true;
|
|
1272
|
+
readonly internalType: "bytes32";
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly name: "leafIndex";
|
|
1275
|
+
readonly type: "uint256";
|
|
1276
|
+
readonly indexed: false;
|
|
1277
|
+
readonly internalType: "uint256";
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly name: "encryptedNote";
|
|
1280
|
+
readonly type: "bytes";
|
|
1281
|
+
readonly indexed: false;
|
|
1282
|
+
readonly internalType: "bytes";
|
|
1283
|
+
}];
|
|
1284
|
+
readonly anonymous: false;
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly type: "event";
|
|
1287
|
+
readonly name: "StarkCommitmentInserted";
|
|
1288
|
+
readonly inputs: readonly [{
|
|
1289
|
+
readonly name: "commitment";
|
|
1290
|
+
readonly type: "uint128";
|
|
1291
|
+
readonly indexed: true;
|
|
1292
|
+
readonly internalType: "uint128";
|
|
1293
|
+
}, {
|
|
1294
|
+
readonly name: "leafIndex";
|
|
1295
|
+
readonly type: "uint256";
|
|
1296
|
+
readonly indexed: false;
|
|
1297
|
+
readonly internalType: "uint256";
|
|
1298
|
+
}, {
|
|
1299
|
+
readonly name: "timestamp";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
readonly indexed: false;
|
|
1302
|
+
readonly internalType: "uint256";
|
|
1303
|
+
}];
|
|
1304
|
+
readonly anonymous: false;
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly type: "event";
|
|
1307
|
+
readonly name: "SwapOrderCancelled";
|
|
1308
|
+
readonly inputs: readonly [{
|
|
1309
|
+
readonly name: "orderId";
|
|
1310
|
+
readonly type: "bytes32";
|
|
1311
|
+
readonly indexed: true;
|
|
1312
|
+
readonly internalType: "bytes32";
|
|
1313
|
+
}, {
|
|
1314
|
+
readonly name: "refundedSellAmount";
|
|
1315
|
+
readonly type: "uint256";
|
|
1316
|
+
readonly indexed: false;
|
|
1317
|
+
readonly internalType: "uint256";
|
|
1318
|
+
}];
|
|
1319
|
+
readonly anonymous: false;
|
|
1320
|
+
}, {
|
|
1321
|
+
readonly type: "event";
|
|
1322
|
+
readonly name: "SwapOrderClaimed";
|
|
1323
|
+
readonly inputs: readonly [{
|
|
1324
|
+
readonly name: "orderId";
|
|
1325
|
+
readonly type: "bytes32";
|
|
1326
|
+
readonly indexed: true;
|
|
1327
|
+
readonly internalType: "bytes32";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly name: "accumulatedBuyAmount";
|
|
1330
|
+
readonly type: "uint256";
|
|
1331
|
+
readonly indexed: false;
|
|
1332
|
+
readonly internalType: "uint256";
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly name: "refundedSellAmount";
|
|
1335
|
+
readonly type: "uint256";
|
|
1336
|
+
readonly indexed: false;
|
|
1337
|
+
readonly internalType: "uint256";
|
|
1338
|
+
}];
|
|
1339
|
+
readonly anonymous: false;
|
|
1340
|
+
}, {
|
|
1341
|
+
readonly type: "event";
|
|
1342
|
+
readonly name: "SwapOrderFilled";
|
|
1343
|
+
readonly inputs: readonly [{
|
|
1344
|
+
readonly name: "orderId";
|
|
1345
|
+
readonly type: "bytes32";
|
|
1346
|
+
readonly indexed: true;
|
|
1347
|
+
readonly internalType: "bytes32";
|
|
1348
|
+
}, {
|
|
1349
|
+
readonly name: "fillerNullifier";
|
|
1350
|
+
readonly type: "bytes32";
|
|
1351
|
+
readonly indexed: true;
|
|
1352
|
+
readonly internalType: "bytes32";
|
|
1353
|
+
}, {
|
|
1354
|
+
readonly name: "takeAmount";
|
|
1355
|
+
readonly type: "uint256";
|
|
1356
|
+
readonly indexed: false;
|
|
1357
|
+
readonly internalType: "uint256";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly name: "giveAmount";
|
|
1360
|
+
readonly type: "uint256";
|
|
1361
|
+
readonly indexed: false;
|
|
1362
|
+
readonly internalType: "uint256";
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly name: "fillerAspId";
|
|
1365
|
+
readonly type: "uint256";
|
|
1366
|
+
readonly indexed: false;
|
|
1367
|
+
readonly internalType: "uint256";
|
|
1368
|
+
}];
|
|
1369
|
+
readonly anonymous: false;
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly type: "event";
|
|
1372
|
+
readonly name: "SwapOrderPlaced";
|
|
1373
|
+
readonly inputs: readonly [{
|
|
1374
|
+
readonly name: "orderId";
|
|
1375
|
+
readonly type: "bytes32";
|
|
1376
|
+
readonly indexed: true;
|
|
1377
|
+
readonly internalType: "bytes32";
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly name: "sellToken";
|
|
1380
|
+
readonly type: "address";
|
|
1381
|
+
readonly indexed: true;
|
|
1382
|
+
readonly internalType: "address";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly name: "buyToken";
|
|
1385
|
+
readonly type: "address";
|
|
1386
|
+
readonly indexed: true;
|
|
1387
|
+
readonly internalType: "address";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "sellAmount";
|
|
1390
|
+
readonly type: "uint256";
|
|
1391
|
+
readonly indexed: false;
|
|
1392
|
+
readonly internalType: "uint256";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly name: "rate";
|
|
1395
|
+
readonly type: "uint256";
|
|
1396
|
+
readonly indexed: false;
|
|
1397
|
+
readonly internalType: "uint256";
|
|
1398
|
+
}, {
|
|
1399
|
+
readonly name: "makerAspId";
|
|
1400
|
+
readonly type: "uint256";
|
|
1401
|
+
readonly indexed: false;
|
|
1402
|
+
readonly internalType: "uint256";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly name: "requiredFillerAspId";
|
|
1405
|
+
readonly type: "uint256";
|
|
1406
|
+
readonly indexed: false;
|
|
1407
|
+
readonly internalType: "uint256";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly name: "expiry";
|
|
1410
|
+
readonly type: "uint256";
|
|
1411
|
+
readonly indexed: false;
|
|
1412
|
+
readonly internalType: "uint256";
|
|
1413
|
+
}];
|
|
1414
|
+
readonly anonymous: false;
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly type: "event";
|
|
1417
|
+
readonly name: "Transferred";
|
|
1418
|
+
readonly inputs: readonly [{
|
|
1419
|
+
readonly name: "nullifier";
|
|
1420
|
+
readonly type: "bytes32";
|
|
1421
|
+
readonly indexed: true;
|
|
1422
|
+
readonly internalType: "bytes32";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly name: "outputCommitment1";
|
|
1425
|
+
readonly type: "bytes32";
|
|
1426
|
+
readonly indexed: true;
|
|
1427
|
+
readonly internalType: "bytes32";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "outputCommitment2";
|
|
1430
|
+
readonly type: "bytes32";
|
|
1431
|
+
readonly indexed: true;
|
|
1432
|
+
readonly internalType: "bytes32";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly name: "encryptedNote1";
|
|
1435
|
+
readonly type: "bytes";
|
|
1436
|
+
readonly indexed: false;
|
|
1437
|
+
readonly internalType: "bytes";
|
|
1438
|
+
}, {
|
|
1439
|
+
readonly name: "encryptedNote2";
|
|
1440
|
+
readonly type: "bytes";
|
|
1441
|
+
readonly indexed: false;
|
|
1442
|
+
readonly internalType: "bytes";
|
|
1443
|
+
}];
|
|
1444
|
+
readonly anonymous: false;
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly type: "event";
|
|
1447
|
+
readonly name: "Withdrawn";
|
|
1448
|
+
readonly inputs: readonly [{
|
|
1449
|
+
readonly name: "token";
|
|
1450
|
+
readonly type: "address";
|
|
1451
|
+
readonly indexed: true;
|
|
1452
|
+
readonly internalType: "address";
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly name: "recipient";
|
|
1455
|
+
readonly type: "address";
|
|
1456
|
+
readonly indexed: true;
|
|
1457
|
+
readonly internalType: "address";
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly name: "nullifier";
|
|
1460
|
+
readonly type: "bytes32";
|
|
1461
|
+
readonly indexed: true;
|
|
1462
|
+
readonly internalType: "bytes32";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "amount";
|
|
1465
|
+
readonly type: "uint256";
|
|
1466
|
+
readonly indexed: false;
|
|
1467
|
+
readonly internalType: "uint256";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly name: "isRagequit";
|
|
1470
|
+
readonly type: "bool";
|
|
1471
|
+
readonly indexed: false;
|
|
1472
|
+
readonly internalType: "bool";
|
|
1473
|
+
}];
|
|
1474
|
+
readonly anonymous: false;
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly type: "error";
|
|
1477
|
+
readonly name: "LeafAlreadyExists";
|
|
1478
|
+
readonly inputs: readonly [];
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly type: "error";
|
|
1481
|
+
readonly name: "LeafCannotBeZero";
|
|
1482
|
+
readonly inputs: readonly [];
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly type: "error";
|
|
1485
|
+
readonly name: "LeafGreaterThanSnarkScalarField";
|
|
1486
|
+
readonly inputs: readonly [];
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly type: "error";
|
|
1489
|
+
readonly name: "MaxTreeDepthReached";
|
|
1490
|
+
readonly inputs: readonly [];
|
|
1491
|
+
}, {
|
|
1492
|
+
readonly type: "error";
|
|
1493
|
+
readonly name: "SafeERC20FailedOperation";
|
|
1494
|
+
readonly inputs: readonly [{
|
|
1495
|
+
readonly name: "token";
|
|
1496
|
+
readonly type: "address";
|
|
1497
|
+
readonly internalType: "address";
|
|
1498
|
+
}];
|
|
1499
|
+
}];
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* TestStableToken Contract ABI
|
|
1503
|
+
*
|
|
1504
|
+
* Auto-generated from Foundry compiled artifacts.
|
|
1505
|
+
* DO NOT EDIT MANUALLY.
|
|
1506
|
+
*
|
|
1507
|
+
* Generated by: scripts/generate-abis.js
|
|
1508
|
+
*/
|
|
1509
|
+
declare const TEST_STABLE_TOKEN_ABI: readonly [{
|
|
1510
|
+
readonly type: "constructor";
|
|
1511
|
+
readonly inputs: readonly [];
|
|
1512
|
+
readonly stateMutability: "nonpayable";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly type: "receive";
|
|
1515
|
+
readonly stateMutability: "payable";
|
|
1516
|
+
}, {
|
|
1517
|
+
readonly type: "function";
|
|
1518
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
1519
|
+
readonly inputs: readonly [];
|
|
1520
|
+
readonly outputs: readonly [{
|
|
1521
|
+
readonly name: "";
|
|
1522
|
+
readonly type: "bytes32";
|
|
1523
|
+
readonly internalType: "bytes32";
|
|
1524
|
+
}];
|
|
1525
|
+
readonly stateMutability: "view";
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly type: "function";
|
|
1528
|
+
readonly name: "RATE";
|
|
1529
|
+
readonly inputs: readonly [];
|
|
1530
|
+
readonly outputs: readonly [{
|
|
1531
|
+
readonly name: "";
|
|
1532
|
+
readonly type: "uint256";
|
|
1533
|
+
readonly internalType: "uint256";
|
|
1534
|
+
}];
|
|
1535
|
+
readonly stateMutability: "view";
|
|
1536
|
+
}, {
|
|
1537
|
+
readonly type: "function";
|
|
1538
|
+
readonly name: "allowance";
|
|
1539
|
+
readonly inputs: readonly [{
|
|
1540
|
+
readonly name: "owner";
|
|
1541
|
+
readonly type: "address";
|
|
1542
|
+
readonly internalType: "address";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly name: "spender";
|
|
1545
|
+
readonly type: "address";
|
|
1546
|
+
readonly internalType: "address";
|
|
1547
|
+
}];
|
|
1548
|
+
readonly outputs: readonly [{
|
|
1549
|
+
readonly name: "";
|
|
1550
|
+
readonly type: "uint256";
|
|
1551
|
+
readonly internalType: "uint256";
|
|
1552
|
+
}];
|
|
1553
|
+
readonly stateMutability: "view";
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly type: "function";
|
|
1556
|
+
readonly name: "approve";
|
|
1557
|
+
readonly inputs: readonly [{
|
|
1558
|
+
readonly name: "spender";
|
|
1559
|
+
readonly type: "address";
|
|
1560
|
+
readonly internalType: "address";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "value";
|
|
1563
|
+
readonly type: "uint256";
|
|
1564
|
+
readonly internalType: "uint256";
|
|
1565
|
+
}];
|
|
1566
|
+
readonly outputs: readonly [{
|
|
1567
|
+
readonly name: "";
|
|
1568
|
+
readonly type: "bool";
|
|
1569
|
+
readonly internalType: "bool";
|
|
1570
|
+
}];
|
|
1571
|
+
readonly stateMutability: "nonpayable";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly type: "function";
|
|
1574
|
+
readonly name: "balanceOf";
|
|
1575
|
+
readonly inputs: readonly [{
|
|
1576
|
+
readonly name: "account";
|
|
1577
|
+
readonly type: "address";
|
|
1578
|
+
readonly internalType: "address";
|
|
1579
|
+
}];
|
|
1580
|
+
readonly outputs: readonly [{
|
|
1581
|
+
readonly name: "";
|
|
1582
|
+
readonly type: "uint256";
|
|
1583
|
+
readonly internalType: "uint256";
|
|
1584
|
+
}];
|
|
1585
|
+
readonly stateMutability: "view";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly type: "function";
|
|
1588
|
+
readonly name: "burnForEth";
|
|
1589
|
+
readonly inputs: readonly [{
|
|
1590
|
+
readonly name: "amount";
|
|
1591
|
+
readonly type: "uint256";
|
|
1592
|
+
readonly internalType: "uint256";
|
|
1593
|
+
}];
|
|
1594
|
+
readonly outputs: readonly [];
|
|
1595
|
+
readonly stateMutability: "nonpayable";
|
|
1596
|
+
}, {
|
|
1597
|
+
readonly type: "function";
|
|
1598
|
+
readonly name: "decimals";
|
|
1599
|
+
readonly inputs: readonly [];
|
|
1600
|
+
readonly outputs: readonly [{
|
|
1601
|
+
readonly name: "";
|
|
1602
|
+
readonly type: "uint8";
|
|
1603
|
+
readonly internalType: "uint8";
|
|
1604
|
+
}];
|
|
1605
|
+
readonly stateMutability: "view";
|
|
1606
|
+
}, {
|
|
1607
|
+
readonly type: "function";
|
|
1608
|
+
readonly name: "eip712Domain";
|
|
1609
|
+
readonly inputs: readonly [];
|
|
1610
|
+
readonly outputs: readonly [{
|
|
1611
|
+
readonly name: "fields";
|
|
1612
|
+
readonly type: "bytes1";
|
|
1613
|
+
readonly internalType: "bytes1";
|
|
1614
|
+
}, {
|
|
1615
|
+
readonly name: "name";
|
|
1616
|
+
readonly type: "string";
|
|
1617
|
+
readonly internalType: "string";
|
|
1618
|
+
}, {
|
|
1619
|
+
readonly name: "version";
|
|
1620
|
+
readonly type: "string";
|
|
1621
|
+
readonly internalType: "string";
|
|
1622
|
+
}, {
|
|
1623
|
+
readonly name: "chainId";
|
|
1624
|
+
readonly type: "uint256";
|
|
1625
|
+
readonly internalType: "uint256";
|
|
1626
|
+
}, {
|
|
1627
|
+
readonly name: "verifyingContract";
|
|
1628
|
+
readonly type: "address";
|
|
1629
|
+
readonly internalType: "address";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "salt";
|
|
1632
|
+
readonly type: "bytes32";
|
|
1633
|
+
readonly internalType: "bytes32";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly name: "extensions";
|
|
1636
|
+
readonly type: "uint256[]";
|
|
1637
|
+
readonly internalType: "uint256[]";
|
|
1638
|
+
}];
|
|
1639
|
+
readonly stateMutability: "view";
|
|
1640
|
+
}, {
|
|
1641
|
+
readonly type: "function";
|
|
1642
|
+
readonly name: "mint";
|
|
1643
|
+
readonly inputs: readonly [{
|
|
1644
|
+
readonly name: "to";
|
|
1645
|
+
readonly type: "address";
|
|
1646
|
+
readonly internalType: "address";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly name: "amount";
|
|
1649
|
+
readonly type: "uint256";
|
|
1650
|
+
readonly internalType: "uint256";
|
|
1651
|
+
}];
|
|
1652
|
+
readonly outputs: readonly [];
|
|
1653
|
+
readonly stateMutability: "nonpayable";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly type: "function";
|
|
1656
|
+
readonly name: "mintWithEth";
|
|
1657
|
+
readonly inputs: readonly [];
|
|
1658
|
+
readonly outputs: readonly [];
|
|
1659
|
+
readonly stateMutability: "payable";
|
|
1660
|
+
}, {
|
|
1661
|
+
readonly type: "function";
|
|
1662
|
+
readonly name: "name";
|
|
1663
|
+
readonly inputs: readonly [];
|
|
1664
|
+
readonly outputs: readonly [{
|
|
1665
|
+
readonly name: "";
|
|
1666
|
+
readonly type: "string";
|
|
1667
|
+
readonly internalType: "string";
|
|
1668
|
+
}];
|
|
1669
|
+
readonly stateMutability: "view";
|
|
1670
|
+
}, {
|
|
1671
|
+
readonly type: "function";
|
|
1672
|
+
readonly name: "nonces";
|
|
1673
|
+
readonly inputs: readonly [{
|
|
1674
|
+
readonly name: "owner";
|
|
1675
|
+
readonly type: "address";
|
|
1676
|
+
readonly internalType: "address";
|
|
1677
|
+
}];
|
|
1678
|
+
readonly outputs: readonly [{
|
|
1679
|
+
readonly name: "";
|
|
1680
|
+
readonly type: "uint256";
|
|
1681
|
+
readonly internalType: "uint256";
|
|
1682
|
+
}];
|
|
1683
|
+
readonly stateMutability: "view";
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly type: "function";
|
|
1686
|
+
readonly name: "permit";
|
|
1687
|
+
readonly inputs: readonly [{
|
|
1688
|
+
readonly name: "owner";
|
|
1689
|
+
readonly type: "address";
|
|
1690
|
+
readonly internalType: "address";
|
|
1691
|
+
}, {
|
|
1692
|
+
readonly name: "spender";
|
|
1693
|
+
readonly type: "address";
|
|
1694
|
+
readonly internalType: "address";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly name: "value";
|
|
1697
|
+
readonly type: "uint256";
|
|
1698
|
+
readonly internalType: "uint256";
|
|
1699
|
+
}, {
|
|
1700
|
+
readonly name: "deadline";
|
|
1701
|
+
readonly type: "uint256";
|
|
1702
|
+
readonly internalType: "uint256";
|
|
1703
|
+
}, {
|
|
1704
|
+
readonly name: "v";
|
|
1705
|
+
readonly type: "uint8";
|
|
1706
|
+
readonly internalType: "uint8";
|
|
1707
|
+
}, {
|
|
1708
|
+
readonly name: "r";
|
|
1709
|
+
readonly type: "bytes32";
|
|
1710
|
+
readonly internalType: "bytes32";
|
|
1711
|
+
}, {
|
|
1712
|
+
readonly name: "s";
|
|
1713
|
+
readonly type: "bytes32";
|
|
1714
|
+
readonly internalType: "bytes32";
|
|
1715
|
+
}];
|
|
1716
|
+
readonly outputs: readonly [];
|
|
1717
|
+
readonly stateMutability: "nonpayable";
|
|
1718
|
+
}, {
|
|
1719
|
+
readonly type: "function";
|
|
1720
|
+
readonly name: "symbol";
|
|
1721
|
+
readonly inputs: readonly [];
|
|
1722
|
+
readonly outputs: readonly [{
|
|
1723
|
+
readonly name: "";
|
|
1724
|
+
readonly type: "string";
|
|
1725
|
+
readonly internalType: "string";
|
|
1726
|
+
}];
|
|
1727
|
+
readonly stateMutability: "view";
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly type: "function";
|
|
1730
|
+
readonly name: "totalSupply";
|
|
1731
|
+
readonly inputs: readonly [];
|
|
1732
|
+
readonly outputs: readonly [{
|
|
1733
|
+
readonly name: "";
|
|
1734
|
+
readonly type: "uint256";
|
|
1735
|
+
readonly internalType: "uint256";
|
|
1736
|
+
}];
|
|
1737
|
+
readonly stateMutability: "view";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly type: "function";
|
|
1740
|
+
readonly name: "transfer";
|
|
1741
|
+
readonly inputs: readonly [{
|
|
1742
|
+
readonly name: "to";
|
|
1743
|
+
readonly type: "address";
|
|
1744
|
+
readonly internalType: "address";
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly name: "value";
|
|
1747
|
+
readonly type: "uint256";
|
|
1748
|
+
readonly internalType: "uint256";
|
|
1749
|
+
}];
|
|
1750
|
+
readonly outputs: readonly [{
|
|
1751
|
+
readonly name: "";
|
|
1752
|
+
readonly type: "bool";
|
|
1753
|
+
readonly internalType: "bool";
|
|
1754
|
+
}];
|
|
1755
|
+
readonly stateMutability: "nonpayable";
|
|
1756
|
+
}, {
|
|
1757
|
+
readonly type: "function";
|
|
1758
|
+
readonly name: "transferFrom";
|
|
1759
|
+
readonly inputs: readonly [{
|
|
1760
|
+
readonly name: "from";
|
|
1761
|
+
readonly type: "address";
|
|
1762
|
+
readonly internalType: "address";
|
|
1763
|
+
}, {
|
|
1764
|
+
readonly name: "to";
|
|
1765
|
+
readonly type: "address";
|
|
1766
|
+
readonly internalType: "address";
|
|
1767
|
+
}, {
|
|
1768
|
+
readonly name: "value";
|
|
1769
|
+
readonly type: "uint256";
|
|
1770
|
+
readonly internalType: "uint256";
|
|
1771
|
+
}];
|
|
1772
|
+
readonly outputs: readonly [{
|
|
1773
|
+
readonly name: "";
|
|
1774
|
+
readonly type: "bool";
|
|
1775
|
+
readonly internalType: "bool";
|
|
1776
|
+
}];
|
|
1777
|
+
readonly stateMutability: "nonpayable";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly type: "event";
|
|
1780
|
+
readonly name: "Approval";
|
|
1781
|
+
readonly inputs: readonly [{
|
|
1782
|
+
readonly name: "owner";
|
|
1783
|
+
readonly type: "address";
|
|
1784
|
+
readonly indexed: true;
|
|
1785
|
+
readonly internalType: "address";
|
|
1786
|
+
}, {
|
|
1787
|
+
readonly name: "spender";
|
|
1788
|
+
readonly type: "address";
|
|
1789
|
+
readonly indexed: true;
|
|
1790
|
+
readonly internalType: "address";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly name: "value";
|
|
1793
|
+
readonly type: "uint256";
|
|
1794
|
+
readonly indexed: false;
|
|
1795
|
+
readonly internalType: "uint256";
|
|
1796
|
+
}];
|
|
1797
|
+
readonly anonymous: false;
|
|
1798
|
+
}, {
|
|
1799
|
+
readonly type: "event";
|
|
1800
|
+
readonly name: "BurnedForEth";
|
|
1801
|
+
readonly inputs: readonly [{
|
|
1802
|
+
readonly name: "from";
|
|
1803
|
+
readonly type: "address";
|
|
1804
|
+
readonly indexed: true;
|
|
1805
|
+
readonly internalType: "address";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly name: "tokenAmount";
|
|
1808
|
+
readonly type: "uint256";
|
|
1809
|
+
readonly indexed: false;
|
|
1810
|
+
readonly internalType: "uint256";
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly name: "ethAmount";
|
|
1813
|
+
readonly type: "uint256";
|
|
1814
|
+
readonly indexed: false;
|
|
1815
|
+
readonly internalType: "uint256";
|
|
1816
|
+
}];
|
|
1817
|
+
readonly anonymous: false;
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly type: "event";
|
|
1820
|
+
readonly name: "EIP712DomainChanged";
|
|
1821
|
+
readonly inputs: readonly [];
|
|
1822
|
+
readonly anonymous: false;
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly type: "event";
|
|
1825
|
+
readonly name: "MintedWithEth";
|
|
1826
|
+
readonly inputs: readonly [{
|
|
1827
|
+
readonly name: "to";
|
|
1828
|
+
readonly type: "address";
|
|
1829
|
+
readonly indexed: true;
|
|
1830
|
+
readonly internalType: "address";
|
|
1831
|
+
}, {
|
|
1832
|
+
readonly name: "ethAmount";
|
|
1833
|
+
readonly type: "uint256";
|
|
1834
|
+
readonly indexed: false;
|
|
1835
|
+
readonly internalType: "uint256";
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly name: "tokenAmount";
|
|
1838
|
+
readonly type: "uint256";
|
|
1839
|
+
readonly indexed: false;
|
|
1840
|
+
readonly internalType: "uint256";
|
|
1841
|
+
}];
|
|
1842
|
+
readonly anonymous: false;
|
|
1843
|
+
}, {
|
|
1844
|
+
readonly type: "event";
|
|
1845
|
+
readonly name: "Transfer";
|
|
1846
|
+
readonly inputs: readonly [{
|
|
1847
|
+
readonly name: "from";
|
|
1848
|
+
readonly type: "address";
|
|
1849
|
+
readonly indexed: true;
|
|
1850
|
+
readonly internalType: "address";
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly name: "to";
|
|
1853
|
+
readonly type: "address";
|
|
1854
|
+
readonly indexed: true;
|
|
1855
|
+
readonly internalType: "address";
|
|
1856
|
+
}, {
|
|
1857
|
+
readonly name: "value";
|
|
1858
|
+
readonly type: "uint256";
|
|
1859
|
+
readonly indexed: false;
|
|
1860
|
+
readonly internalType: "uint256";
|
|
1861
|
+
}];
|
|
1862
|
+
readonly anonymous: false;
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly type: "error";
|
|
1865
|
+
readonly name: "ECDSAInvalidSignature";
|
|
1866
|
+
readonly inputs: readonly [];
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly type: "error";
|
|
1869
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
1870
|
+
readonly inputs: readonly [{
|
|
1871
|
+
readonly name: "length";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
readonly internalType: "uint256";
|
|
1874
|
+
}];
|
|
1875
|
+
}, {
|
|
1876
|
+
readonly type: "error";
|
|
1877
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
1878
|
+
readonly inputs: readonly [{
|
|
1879
|
+
readonly name: "s";
|
|
1880
|
+
readonly type: "bytes32";
|
|
1881
|
+
readonly internalType: "bytes32";
|
|
1882
|
+
}];
|
|
1883
|
+
}, {
|
|
1884
|
+
readonly type: "error";
|
|
1885
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
1886
|
+
readonly inputs: readonly [{
|
|
1887
|
+
readonly name: "spender";
|
|
1888
|
+
readonly type: "address";
|
|
1889
|
+
readonly internalType: "address";
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly name: "allowance";
|
|
1892
|
+
readonly type: "uint256";
|
|
1893
|
+
readonly internalType: "uint256";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly name: "needed";
|
|
1896
|
+
readonly type: "uint256";
|
|
1897
|
+
readonly internalType: "uint256";
|
|
1898
|
+
}];
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly type: "error";
|
|
1901
|
+
readonly name: "ERC20InsufficientBalance";
|
|
1902
|
+
readonly inputs: readonly [{
|
|
1903
|
+
readonly name: "sender";
|
|
1904
|
+
readonly type: "address";
|
|
1905
|
+
readonly internalType: "address";
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly name: "balance";
|
|
1908
|
+
readonly type: "uint256";
|
|
1909
|
+
readonly internalType: "uint256";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly name: "needed";
|
|
1912
|
+
readonly type: "uint256";
|
|
1913
|
+
readonly internalType: "uint256";
|
|
1914
|
+
}];
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly type: "error";
|
|
1917
|
+
readonly name: "ERC20InvalidApprover";
|
|
1918
|
+
readonly inputs: readonly [{
|
|
1919
|
+
readonly name: "approver";
|
|
1920
|
+
readonly type: "address";
|
|
1921
|
+
readonly internalType: "address";
|
|
1922
|
+
}];
|
|
1923
|
+
}, {
|
|
1924
|
+
readonly type: "error";
|
|
1925
|
+
readonly name: "ERC20InvalidReceiver";
|
|
1926
|
+
readonly inputs: readonly [{
|
|
1927
|
+
readonly name: "receiver";
|
|
1928
|
+
readonly type: "address";
|
|
1929
|
+
readonly internalType: "address";
|
|
1930
|
+
}];
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly type: "error";
|
|
1933
|
+
readonly name: "ERC20InvalidSender";
|
|
1934
|
+
readonly inputs: readonly [{
|
|
1935
|
+
readonly name: "sender";
|
|
1936
|
+
readonly type: "address";
|
|
1937
|
+
readonly internalType: "address";
|
|
1938
|
+
}];
|
|
1939
|
+
}, {
|
|
1940
|
+
readonly type: "error";
|
|
1941
|
+
readonly name: "ERC20InvalidSpender";
|
|
1942
|
+
readonly inputs: readonly [{
|
|
1943
|
+
readonly name: "spender";
|
|
1944
|
+
readonly type: "address";
|
|
1945
|
+
readonly internalType: "address";
|
|
1946
|
+
}];
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly type: "error";
|
|
1949
|
+
readonly name: "ERC2612ExpiredSignature";
|
|
1950
|
+
readonly inputs: readonly [{
|
|
1951
|
+
readonly name: "deadline";
|
|
1952
|
+
readonly type: "uint256";
|
|
1953
|
+
readonly internalType: "uint256";
|
|
1954
|
+
}];
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly type: "error";
|
|
1957
|
+
readonly name: "ERC2612InvalidSigner";
|
|
1958
|
+
readonly inputs: readonly [{
|
|
1959
|
+
readonly name: "signer";
|
|
1960
|
+
readonly type: "address";
|
|
1961
|
+
readonly internalType: "address";
|
|
1962
|
+
}, {
|
|
1963
|
+
readonly name: "owner";
|
|
1964
|
+
readonly type: "address";
|
|
1965
|
+
readonly internalType: "address";
|
|
1966
|
+
}];
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly type: "error";
|
|
1969
|
+
readonly name: "InvalidAccountNonce";
|
|
1970
|
+
readonly inputs: readonly [{
|
|
1971
|
+
readonly name: "account";
|
|
1972
|
+
readonly type: "address";
|
|
1973
|
+
readonly internalType: "address";
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly name: "currentNonce";
|
|
1976
|
+
readonly type: "uint256";
|
|
1977
|
+
readonly internalType: "uint256";
|
|
1978
|
+
}];
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "error";
|
|
1981
|
+
readonly name: "InvalidShortString";
|
|
1982
|
+
readonly inputs: readonly [];
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly type: "error";
|
|
1985
|
+
readonly name: "StringTooLong";
|
|
1986
|
+
readonly inputs: readonly [{
|
|
1987
|
+
readonly name: "str";
|
|
1988
|
+
readonly type: "string";
|
|
1989
|
+
readonly internalType: "string";
|
|
1990
|
+
}];
|
|
1991
|
+
}];
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* TestStableToken2 Contract ABI
|
|
1995
|
+
*
|
|
1996
|
+
* Auto-generated from Foundry compiled artifacts.
|
|
1997
|
+
* DO NOT EDIT MANUALLY.
|
|
1998
|
+
*
|
|
1999
|
+
* Generated by: scripts/generate-abis.js
|
|
2000
|
+
*/
|
|
2001
|
+
declare const TEST_STABLE_TOKEN_2_ABI: readonly [{
|
|
2002
|
+
readonly type: "constructor";
|
|
2003
|
+
readonly inputs: readonly [];
|
|
2004
|
+
readonly stateMutability: "nonpayable";
|
|
2005
|
+
}, {
|
|
2006
|
+
readonly type: "receive";
|
|
2007
|
+
readonly stateMutability: "payable";
|
|
2008
|
+
}, {
|
|
2009
|
+
readonly type: "function";
|
|
2010
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
2011
|
+
readonly inputs: readonly [];
|
|
2012
|
+
readonly outputs: readonly [{
|
|
2013
|
+
readonly name: "";
|
|
2014
|
+
readonly type: "bytes32";
|
|
2015
|
+
readonly internalType: "bytes32";
|
|
2016
|
+
}];
|
|
2017
|
+
readonly stateMutability: "view";
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly type: "function";
|
|
2020
|
+
readonly name: "END_RATE";
|
|
2021
|
+
readonly inputs: readonly [];
|
|
2022
|
+
readonly outputs: readonly [{
|
|
2023
|
+
readonly name: "";
|
|
2024
|
+
readonly type: "uint256";
|
|
2025
|
+
readonly internalType: "uint256";
|
|
2026
|
+
}];
|
|
2027
|
+
readonly stateMutability: "view";
|
|
2028
|
+
}, {
|
|
2029
|
+
readonly type: "function";
|
|
2030
|
+
readonly name: "START_RATE";
|
|
2031
|
+
readonly inputs: readonly [];
|
|
2032
|
+
readonly outputs: readonly [{
|
|
2033
|
+
readonly name: "";
|
|
2034
|
+
readonly type: "uint256";
|
|
2035
|
+
readonly internalType: "uint256";
|
|
2036
|
+
}];
|
|
2037
|
+
readonly stateMutability: "view";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly type: "function";
|
|
2040
|
+
readonly name: "SUPPLY_CAP";
|
|
2041
|
+
readonly inputs: readonly [];
|
|
2042
|
+
readonly outputs: readonly [{
|
|
2043
|
+
readonly name: "";
|
|
2044
|
+
readonly type: "uint256";
|
|
2045
|
+
readonly internalType: "uint256";
|
|
2046
|
+
}];
|
|
2047
|
+
readonly stateMutability: "view";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly type: "function";
|
|
2050
|
+
readonly name: "allowance";
|
|
2051
|
+
readonly inputs: readonly [{
|
|
2052
|
+
readonly name: "owner";
|
|
2053
|
+
readonly type: "address";
|
|
2054
|
+
readonly internalType: "address";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "spender";
|
|
2057
|
+
readonly type: "address";
|
|
2058
|
+
readonly internalType: "address";
|
|
2059
|
+
}];
|
|
2060
|
+
readonly outputs: readonly [{
|
|
2061
|
+
readonly name: "";
|
|
2062
|
+
readonly type: "uint256";
|
|
2063
|
+
readonly internalType: "uint256";
|
|
2064
|
+
}];
|
|
2065
|
+
readonly stateMutability: "view";
|
|
2066
|
+
}, {
|
|
2067
|
+
readonly type: "function";
|
|
2068
|
+
readonly name: "approve";
|
|
2069
|
+
readonly inputs: readonly [{
|
|
2070
|
+
readonly name: "spender";
|
|
2071
|
+
readonly type: "address";
|
|
2072
|
+
readonly internalType: "address";
|
|
2073
|
+
}, {
|
|
2074
|
+
readonly name: "value";
|
|
2075
|
+
readonly type: "uint256";
|
|
2076
|
+
readonly internalType: "uint256";
|
|
2077
|
+
}];
|
|
2078
|
+
readonly outputs: readonly [{
|
|
2079
|
+
readonly name: "";
|
|
2080
|
+
readonly type: "bool";
|
|
2081
|
+
readonly internalType: "bool";
|
|
2082
|
+
}];
|
|
2083
|
+
readonly stateMutability: "nonpayable";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly type: "function";
|
|
2086
|
+
readonly name: "balanceOf";
|
|
2087
|
+
readonly inputs: readonly [{
|
|
2088
|
+
readonly name: "account";
|
|
2089
|
+
readonly type: "address";
|
|
2090
|
+
readonly internalType: "address";
|
|
2091
|
+
}];
|
|
2092
|
+
readonly outputs: readonly [{
|
|
2093
|
+
readonly name: "";
|
|
2094
|
+
readonly type: "uint256";
|
|
2095
|
+
readonly internalType: "uint256";
|
|
2096
|
+
}];
|
|
2097
|
+
readonly stateMutability: "view";
|
|
2098
|
+
}, {
|
|
2099
|
+
readonly type: "function";
|
|
2100
|
+
readonly name: "currentRate";
|
|
2101
|
+
readonly inputs: readonly [];
|
|
2102
|
+
readonly outputs: readonly [{
|
|
2103
|
+
readonly name: "";
|
|
2104
|
+
readonly type: "uint256";
|
|
2105
|
+
readonly internalType: "uint256";
|
|
2106
|
+
}];
|
|
2107
|
+
readonly stateMutability: "view";
|
|
2108
|
+
}, {
|
|
2109
|
+
readonly type: "function";
|
|
2110
|
+
readonly name: "decimals";
|
|
2111
|
+
readonly inputs: readonly [];
|
|
2112
|
+
readonly outputs: readonly [{
|
|
2113
|
+
readonly name: "";
|
|
2114
|
+
readonly type: "uint8";
|
|
2115
|
+
readonly internalType: "uint8";
|
|
2116
|
+
}];
|
|
2117
|
+
readonly stateMutability: "view";
|
|
2118
|
+
}, {
|
|
2119
|
+
readonly type: "function";
|
|
2120
|
+
readonly name: "eip712Domain";
|
|
2121
|
+
readonly inputs: readonly [];
|
|
2122
|
+
readonly outputs: readonly [{
|
|
2123
|
+
readonly name: "fields";
|
|
2124
|
+
readonly type: "bytes1";
|
|
2125
|
+
readonly internalType: "bytes1";
|
|
2126
|
+
}, {
|
|
2127
|
+
readonly name: "name";
|
|
2128
|
+
readonly type: "string";
|
|
2129
|
+
readonly internalType: "string";
|
|
2130
|
+
}, {
|
|
2131
|
+
readonly name: "version";
|
|
2132
|
+
readonly type: "string";
|
|
2133
|
+
readonly internalType: "string";
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly name: "chainId";
|
|
2136
|
+
readonly type: "uint256";
|
|
2137
|
+
readonly internalType: "uint256";
|
|
2138
|
+
}, {
|
|
2139
|
+
readonly name: "verifyingContract";
|
|
2140
|
+
readonly type: "address";
|
|
2141
|
+
readonly internalType: "address";
|
|
2142
|
+
}, {
|
|
2143
|
+
readonly name: "salt";
|
|
2144
|
+
readonly type: "bytes32";
|
|
2145
|
+
readonly internalType: "bytes32";
|
|
2146
|
+
}, {
|
|
2147
|
+
readonly name: "extensions";
|
|
2148
|
+
readonly type: "uint256[]";
|
|
2149
|
+
readonly internalType: "uint256[]";
|
|
2150
|
+
}];
|
|
2151
|
+
readonly stateMutability: "view";
|
|
2152
|
+
}, {
|
|
2153
|
+
readonly type: "function";
|
|
2154
|
+
readonly name: "mint";
|
|
2155
|
+
readonly inputs: readonly [{
|
|
2156
|
+
readonly name: "to";
|
|
2157
|
+
readonly type: "address";
|
|
2158
|
+
readonly internalType: "address";
|
|
2159
|
+
}, {
|
|
2160
|
+
readonly name: "amount";
|
|
2161
|
+
readonly type: "uint256";
|
|
2162
|
+
readonly internalType: "uint256";
|
|
2163
|
+
}];
|
|
2164
|
+
readonly outputs: readonly [];
|
|
2165
|
+
readonly stateMutability: "nonpayable";
|
|
2166
|
+
}, {
|
|
2167
|
+
readonly type: "function";
|
|
2168
|
+
readonly name: "mintWithEth";
|
|
2169
|
+
readonly inputs: readonly [];
|
|
2170
|
+
readonly outputs: readonly [];
|
|
2171
|
+
readonly stateMutability: "payable";
|
|
2172
|
+
}, {
|
|
2173
|
+
readonly type: "function";
|
|
2174
|
+
readonly name: "name";
|
|
2175
|
+
readonly inputs: readonly [];
|
|
2176
|
+
readonly outputs: readonly [{
|
|
2177
|
+
readonly name: "";
|
|
2178
|
+
readonly type: "string";
|
|
2179
|
+
readonly internalType: "string";
|
|
2180
|
+
}];
|
|
2181
|
+
readonly stateMutability: "view";
|
|
2182
|
+
}, {
|
|
2183
|
+
readonly type: "function";
|
|
2184
|
+
readonly name: "nonces";
|
|
2185
|
+
readonly inputs: readonly [{
|
|
2186
|
+
readonly name: "owner";
|
|
2187
|
+
readonly type: "address";
|
|
2188
|
+
readonly internalType: "address";
|
|
2189
|
+
}];
|
|
2190
|
+
readonly outputs: readonly [{
|
|
2191
|
+
readonly name: "";
|
|
2192
|
+
readonly type: "uint256";
|
|
2193
|
+
readonly internalType: "uint256";
|
|
2194
|
+
}];
|
|
2195
|
+
readonly stateMutability: "view";
|
|
2196
|
+
}, {
|
|
2197
|
+
readonly type: "function";
|
|
2198
|
+
readonly name: "permit";
|
|
2199
|
+
readonly inputs: readonly [{
|
|
2200
|
+
readonly name: "owner";
|
|
2201
|
+
readonly type: "address";
|
|
2202
|
+
readonly internalType: "address";
|
|
2203
|
+
}, {
|
|
2204
|
+
readonly name: "spender";
|
|
2205
|
+
readonly type: "address";
|
|
2206
|
+
readonly internalType: "address";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly name: "value";
|
|
2209
|
+
readonly type: "uint256";
|
|
2210
|
+
readonly internalType: "uint256";
|
|
2211
|
+
}, {
|
|
2212
|
+
readonly name: "deadline";
|
|
2213
|
+
readonly type: "uint256";
|
|
2214
|
+
readonly internalType: "uint256";
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly name: "v";
|
|
2217
|
+
readonly type: "uint8";
|
|
2218
|
+
readonly internalType: "uint8";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly name: "r";
|
|
2221
|
+
readonly type: "bytes32";
|
|
2222
|
+
readonly internalType: "bytes32";
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly name: "s";
|
|
2225
|
+
readonly type: "bytes32";
|
|
2226
|
+
readonly internalType: "bytes32";
|
|
2227
|
+
}];
|
|
2228
|
+
readonly outputs: readonly [];
|
|
2229
|
+
readonly stateMutability: "nonpayable";
|
|
2230
|
+
}, {
|
|
2231
|
+
readonly type: "function";
|
|
2232
|
+
readonly name: "symbol";
|
|
2233
|
+
readonly inputs: readonly [];
|
|
2234
|
+
readonly outputs: readonly [{
|
|
2235
|
+
readonly name: "";
|
|
2236
|
+
readonly type: "string";
|
|
2237
|
+
readonly internalType: "string";
|
|
2238
|
+
}];
|
|
2239
|
+
readonly stateMutability: "view";
|
|
2240
|
+
}, {
|
|
2241
|
+
readonly type: "function";
|
|
2242
|
+
readonly name: "totalSupply";
|
|
2243
|
+
readonly inputs: readonly [];
|
|
2244
|
+
readonly outputs: readonly [{
|
|
2245
|
+
readonly name: "";
|
|
2246
|
+
readonly type: "uint256";
|
|
2247
|
+
readonly internalType: "uint256";
|
|
2248
|
+
}];
|
|
2249
|
+
readonly stateMutability: "view";
|
|
2250
|
+
}, {
|
|
2251
|
+
readonly type: "function";
|
|
2252
|
+
readonly name: "transfer";
|
|
2253
|
+
readonly inputs: readonly [{
|
|
2254
|
+
readonly name: "to";
|
|
2255
|
+
readonly type: "address";
|
|
2256
|
+
readonly internalType: "address";
|
|
2257
|
+
}, {
|
|
2258
|
+
readonly name: "value";
|
|
2259
|
+
readonly type: "uint256";
|
|
2260
|
+
readonly internalType: "uint256";
|
|
2261
|
+
}];
|
|
2262
|
+
readonly outputs: readonly [{
|
|
2263
|
+
readonly name: "";
|
|
2264
|
+
readonly type: "bool";
|
|
2265
|
+
readonly internalType: "bool";
|
|
2266
|
+
}];
|
|
2267
|
+
readonly stateMutability: "nonpayable";
|
|
2268
|
+
}, {
|
|
2269
|
+
readonly type: "function";
|
|
2270
|
+
readonly name: "transferFrom";
|
|
2271
|
+
readonly inputs: readonly [{
|
|
2272
|
+
readonly name: "from";
|
|
2273
|
+
readonly type: "address";
|
|
2274
|
+
readonly internalType: "address";
|
|
2275
|
+
}, {
|
|
2276
|
+
readonly name: "to";
|
|
2277
|
+
readonly type: "address";
|
|
2278
|
+
readonly internalType: "address";
|
|
2279
|
+
}, {
|
|
2280
|
+
readonly name: "value";
|
|
2281
|
+
readonly type: "uint256";
|
|
2282
|
+
readonly internalType: "uint256";
|
|
2283
|
+
}];
|
|
2284
|
+
readonly outputs: readonly [{
|
|
2285
|
+
readonly name: "";
|
|
2286
|
+
readonly type: "bool";
|
|
2287
|
+
readonly internalType: "bool";
|
|
2288
|
+
}];
|
|
2289
|
+
readonly stateMutability: "nonpayable";
|
|
2290
|
+
}, {
|
|
2291
|
+
readonly type: "event";
|
|
2292
|
+
readonly name: "Approval";
|
|
2293
|
+
readonly inputs: readonly [{
|
|
2294
|
+
readonly name: "owner";
|
|
2295
|
+
readonly type: "address";
|
|
2296
|
+
readonly indexed: true;
|
|
2297
|
+
readonly internalType: "address";
|
|
2298
|
+
}, {
|
|
2299
|
+
readonly name: "spender";
|
|
2300
|
+
readonly type: "address";
|
|
2301
|
+
readonly indexed: true;
|
|
2302
|
+
readonly internalType: "address";
|
|
2303
|
+
}, {
|
|
2304
|
+
readonly name: "value";
|
|
2305
|
+
readonly type: "uint256";
|
|
2306
|
+
readonly indexed: false;
|
|
2307
|
+
readonly internalType: "uint256";
|
|
2308
|
+
}];
|
|
2309
|
+
readonly anonymous: false;
|
|
2310
|
+
}, {
|
|
2311
|
+
readonly type: "event";
|
|
2312
|
+
readonly name: "EIP712DomainChanged";
|
|
2313
|
+
readonly inputs: readonly [];
|
|
2314
|
+
readonly anonymous: false;
|
|
2315
|
+
}, {
|
|
2316
|
+
readonly type: "event";
|
|
2317
|
+
readonly name: "MintedWithEth";
|
|
2318
|
+
readonly inputs: readonly [{
|
|
2319
|
+
readonly name: "to";
|
|
2320
|
+
readonly type: "address";
|
|
2321
|
+
readonly indexed: true;
|
|
2322
|
+
readonly internalType: "address";
|
|
2323
|
+
}, {
|
|
2324
|
+
readonly name: "ethAmount";
|
|
2325
|
+
readonly type: "uint256";
|
|
2326
|
+
readonly indexed: false;
|
|
2327
|
+
readonly internalType: "uint256";
|
|
2328
|
+
}, {
|
|
2329
|
+
readonly name: "tokenAmount";
|
|
2330
|
+
readonly type: "uint256";
|
|
2331
|
+
readonly indexed: false;
|
|
2332
|
+
readonly internalType: "uint256";
|
|
2333
|
+
}, {
|
|
2334
|
+
readonly name: "rateAtMint";
|
|
2335
|
+
readonly type: "uint256";
|
|
2336
|
+
readonly indexed: false;
|
|
2337
|
+
readonly internalType: "uint256";
|
|
2338
|
+
}];
|
|
2339
|
+
readonly anonymous: false;
|
|
2340
|
+
}, {
|
|
2341
|
+
readonly type: "event";
|
|
2342
|
+
readonly name: "Transfer";
|
|
2343
|
+
readonly inputs: readonly [{
|
|
2344
|
+
readonly name: "from";
|
|
2345
|
+
readonly type: "address";
|
|
2346
|
+
readonly indexed: true;
|
|
2347
|
+
readonly internalType: "address";
|
|
2348
|
+
}, {
|
|
2349
|
+
readonly name: "to";
|
|
2350
|
+
readonly type: "address";
|
|
2351
|
+
readonly indexed: true;
|
|
2352
|
+
readonly internalType: "address";
|
|
2353
|
+
}, {
|
|
2354
|
+
readonly name: "value";
|
|
2355
|
+
readonly type: "uint256";
|
|
2356
|
+
readonly indexed: false;
|
|
2357
|
+
readonly internalType: "uint256";
|
|
2358
|
+
}];
|
|
2359
|
+
readonly anonymous: false;
|
|
2360
|
+
}, {
|
|
2361
|
+
readonly type: "error";
|
|
2362
|
+
readonly name: "ECDSAInvalidSignature";
|
|
2363
|
+
readonly inputs: readonly [];
|
|
2364
|
+
}, {
|
|
2365
|
+
readonly type: "error";
|
|
2366
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
2367
|
+
readonly inputs: readonly [{
|
|
2368
|
+
readonly name: "length";
|
|
2369
|
+
readonly type: "uint256";
|
|
2370
|
+
readonly internalType: "uint256";
|
|
2371
|
+
}];
|
|
2372
|
+
}, {
|
|
2373
|
+
readonly type: "error";
|
|
2374
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
2375
|
+
readonly inputs: readonly [{
|
|
2376
|
+
readonly name: "s";
|
|
2377
|
+
readonly type: "bytes32";
|
|
2378
|
+
readonly internalType: "bytes32";
|
|
2379
|
+
}];
|
|
2380
|
+
}, {
|
|
2381
|
+
readonly type: "error";
|
|
2382
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
2383
|
+
readonly inputs: readonly [{
|
|
2384
|
+
readonly name: "spender";
|
|
2385
|
+
readonly type: "address";
|
|
2386
|
+
readonly internalType: "address";
|
|
2387
|
+
}, {
|
|
2388
|
+
readonly name: "allowance";
|
|
2389
|
+
readonly type: "uint256";
|
|
2390
|
+
readonly internalType: "uint256";
|
|
2391
|
+
}, {
|
|
2392
|
+
readonly name: "needed";
|
|
2393
|
+
readonly type: "uint256";
|
|
2394
|
+
readonly internalType: "uint256";
|
|
2395
|
+
}];
|
|
2396
|
+
}, {
|
|
2397
|
+
readonly type: "error";
|
|
2398
|
+
readonly name: "ERC20InsufficientBalance";
|
|
2399
|
+
readonly inputs: readonly [{
|
|
2400
|
+
readonly name: "sender";
|
|
2401
|
+
readonly type: "address";
|
|
2402
|
+
readonly internalType: "address";
|
|
2403
|
+
}, {
|
|
2404
|
+
readonly name: "balance";
|
|
2405
|
+
readonly type: "uint256";
|
|
2406
|
+
readonly internalType: "uint256";
|
|
2407
|
+
}, {
|
|
2408
|
+
readonly name: "needed";
|
|
2409
|
+
readonly type: "uint256";
|
|
2410
|
+
readonly internalType: "uint256";
|
|
2411
|
+
}];
|
|
2412
|
+
}, {
|
|
2413
|
+
readonly type: "error";
|
|
2414
|
+
readonly name: "ERC20InvalidApprover";
|
|
2415
|
+
readonly inputs: readonly [{
|
|
2416
|
+
readonly name: "approver";
|
|
2417
|
+
readonly type: "address";
|
|
2418
|
+
readonly internalType: "address";
|
|
2419
|
+
}];
|
|
2420
|
+
}, {
|
|
2421
|
+
readonly type: "error";
|
|
2422
|
+
readonly name: "ERC20InvalidReceiver";
|
|
2423
|
+
readonly inputs: readonly [{
|
|
2424
|
+
readonly name: "receiver";
|
|
2425
|
+
readonly type: "address";
|
|
2426
|
+
readonly internalType: "address";
|
|
2427
|
+
}];
|
|
2428
|
+
}, {
|
|
2429
|
+
readonly type: "error";
|
|
2430
|
+
readonly name: "ERC20InvalidSender";
|
|
2431
|
+
readonly inputs: readonly [{
|
|
2432
|
+
readonly name: "sender";
|
|
2433
|
+
readonly type: "address";
|
|
2434
|
+
readonly internalType: "address";
|
|
2435
|
+
}];
|
|
2436
|
+
}, {
|
|
2437
|
+
readonly type: "error";
|
|
2438
|
+
readonly name: "ERC20InvalidSpender";
|
|
2439
|
+
readonly inputs: readonly [{
|
|
2440
|
+
readonly name: "spender";
|
|
2441
|
+
readonly type: "address";
|
|
2442
|
+
readonly internalType: "address";
|
|
2443
|
+
}];
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly type: "error";
|
|
2446
|
+
readonly name: "ERC2612ExpiredSignature";
|
|
2447
|
+
readonly inputs: readonly [{
|
|
2448
|
+
readonly name: "deadline";
|
|
2449
|
+
readonly type: "uint256";
|
|
2450
|
+
readonly internalType: "uint256";
|
|
2451
|
+
}];
|
|
2452
|
+
}, {
|
|
2453
|
+
readonly type: "error";
|
|
2454
|
+
readonly name: "ERC2612InvalidSigner";
|
|
2455
|
+
readonly inputs: readonly [{
|
|
2456
|
+
readonly name: "signer";
|
|
2457
|
+
readonly type: "address";
|
|
2458
|
+
readonly internalType: "address";
|
|
2459
|
+
}, {
|
|
2460
|
+
readonly name: "owner";
|
|
2461
|
+
readonly type: "address";
|
|
2462
|
+
readonly internalType: "address";
|
|
2463
|
+
}];
|
|
2464
|
+
}, {
|
|
2465
|
+
readonly type: "error";
|
|
2466
|
+
readonly name: "InvalidAccountNonce";
|
|
2467
|
+
readonly inputs: readonly [{
|
|
2468
|
+
readonly name: "account";
|
|
2469
|
+
readonly type: "address";
|
|
2470
|
+
readonly internalType: "address";
|
|
2471
|
+
}, {
|
|
2472
|
+
readonly name: "currentNonce";
|
|
2473
|
+
readonly type: "uint256";
|
|
2474
|
+
readonly internalType: "uint256";
|
|
2475
|
+
}];
|
|
2476
|
+
}, {
|
|
2477
|
+
readonly type: "error";
|
|
2478
|
+
readonly name: "InvalidShortString";
|
|
2479
|
+
readonly inputs: readonly [];
|
|
2480
|
+
}, {
|
|
2481
|
+
readonly type: "error";
|
|
2482
|
+
readonly name: "StringTooLong";
|
|
2483
|
+
readonly inputs: readonly [{
|
|
2484
|
+
readonly name: "str";
|
|
2485
|
+
readonly type: "string";
|
|
2486
|
+
readonly internalType: "string";
|
|
2487
|
+
}];
|
|
2488
|
+
}];
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* Deployment Configuration Loader
|
|
2492
|
+
*
|
|
2493
|
+
* Loads contract addresses based on chain ID.
|
|
2494
|
+
* Built-in: Anvil (31337) and Sepolia (11155111).
|
|
2495
|
+
* Custom chains can be registered at runtime via registerDeployment().
|
|
2496
|
+
*/
|
|
2497
|
+
|
|
2498
|
+
/**
|
|
2499
|
+
* Verifier contract addresses
|
|
2500
|
+
*/
|
|
2501
|
+
interface VerifierAddresses {
|
|
2502
|
+
TransferVerifier: Address;
|
|
2503
|
+
MergeVerifier: Address;
|
|
2504
|
+
WithdrawVerifier: Address;
|
|
2505
|
+
JoinSplitVerifier?: Address;
|
|
2506
|
+
MergeTransfer2x2Verifier?: Address;
|
|
2507
|
+
MergeTransfer4x2Verifier?: Address;
|
|
2508
|
+
}
|
|
2509
|
+
/**
|
|
2510
|
+
* STARK verifier contract addresses
|
|
2511
|
+
*/
|
|
2512
|
+
interface StarkVerifierAddresses {
|
|
2513
|
+
CircleStarkVerifier?: Address;
|
|
2514
|
+
}
|
|
2515
|
+
/**
|
|
2516
|
+
* Deployment configuration for a chain
|
|
2517
|
+
*/
|
|
2518
|
+
interface DeploymentConfig {
|
|
2519
|
+
/** Universal Private Pool contract address */
|
|
2520
|
+
UniversalPrivatePool: Address;
|
|
2521
|
+
/** ASP Registry Hub contract address */
|
|
2522
|
+
ASPRegistryHub: Address;
|
|
2523
|
+
/** Test token address (local/testnet) */
|
|
2524
|
+
TestToken?: Address;
|
|
2525
|
+
/** Test token 2 address — bonding curve token (local/testnet) */
|
|
2526
|
+
TestToken2?: Address;
|
|
2527
|
+
/** Verifier contract addresses */
|
|
2528
|
+
verifiers: VerifierAddresses;
|
|
2529
|
+
/** STARK verifier contract addresses */
|
|
2530
|
+
starkVerifiers?: StarkVerifierAddresses;
|
|
2531
|
+
/** Chain ID */
|
|
2532
|
+
chainId: number;
|
|
2533
|
+
/** Block number when contracts were deployed (for efficient scanning) */
|
|
2534
|
+
deployBlock: number;
|
|
2535
|
+
/** Timestamp when contracts were deployed */
|
|
2536
|
+
deployTimestamp?: number;
|
|
2537
|
+
}
|
|
2538
|
+
/**
|
|
2539
|
+
* Get deployment config for a chain
|
|
2540
|
+
*
|
|
2541
|
+
* @param chainId - Chain ID to get deployment for
|
|
2542
|
+
* @returns Deployment config or null if not found
|
|
2543
|
+
*
|
|
2544
|
+
* @example
|
|
2545
|
+
* ```ts
|
|
2546
|
+
* const deployment = getDeployment(31337)
|
|
2547
|
+
* if (deployment) {
|
|
2548
|
+
* console.log('Pool address:', deployment.UniversalPrivatePool)
|
|
2549
|
+
* }
|
|
2550
|
+
* ```
|
|
2551
|
+
*/
|
|
2552
|
+
declare function getDeployment(chainId: number): DeploymentConfig | null;
|
|
2553
|
+
/**
|
|
2554
|
+
* Get deployment config or throw if not found
|
|
2555
|
+
*
|
|
2556
|
+
* @param chainId - Chain ID to get deployment for
|
|
2557
|
+
* @returns Deployment config
|
|
2558
|
+
* @throws Error if deployment not found
|
|
2559
|
+
*/
|
|
2560
|
+
declare function getDeploymentOrThrow(chainId: number): DeploymentConfig;
|
|
2561
|
+
/**
|
|
2562
|
+
* Check if a chain has a deployment
|
|
2563
|
+
*/
|
|
2564
|
+
declare function hasDeployment(chainId: number): boolean;
|
|
2565
|
+
/**
|
|
2566
|
+
* Get all supported chain IDs
|
|
2567
|
+
*/
|
|
2568
|
+
declare function getSupportedChainIds(): number[];
|
|
2569
|
+
/**
|
|
2570
|
+
* Get the token address for a chain
|
|
2571
|
+
*/
|
|
2572
|
+
declare function getTokenAddress(chainId: number): Address | null;
|
|
2573
|
+
/**
|
|
2574
|
+
* Register a deployment for a custom chain at runtime.
|
|
2575
|
+
*
|
|
2576
|
+
* Use this when deploying your own pool on a chain not built into the SDK.
|
|
2577
|
+
* Overrides any existing deployment for the same chainId.
|
|
2578
|
+
*
|
|
2579
|
+
* @example
|
|
2580
|
+
* ```ts
|
|
2581
|
+
* registerDeployment(8453, {
|
|
2582
|
+
* UniversalPrivatePool: '0x...',
|
|
2583
|
+
* ASPRegistryHub: '0x...',
|
|
2584
|
+
* verifiers: { TransferVerifier: '0x...', MergeVerifier: '0x...', WithdrawVerifier: '0x...' },
|
|
2585
|
+
* chainId: 8453,
|
|
2586
|
+
* deployBlock: 12345678,
|
|
2587
|
+
* })
|
|
2588
|
+
* ```
|
|
2589
|
+
*/
|
|
2590
|
+
declare function registerDeployment(chainId: number, config: DeploymentConfig): void;
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* Universal Private Pool (UPP) SDK
|
|
2594
|
+
*
|
|
2595
|
+
* Privacy-preserving token operations for any ERC20 token.
|
|
2596
|
+
*
|
|
2597
|
+
* @packageDocumentation
|
|
2598
|
+
*/
|
|
2599
|
+
|
|
2600
|
+
declare const ___index_js_ADDRESS_VERSION: typeof ADDRESS_VERSION;
|
|
2601
|
+
declare const ___index_js_ASPMembershipProof: typeof ASPMembershipProof;
|
|
2602
|
+
declare const ___index_js_ASPProof: typeof ASPProof;
|
|
2603
|
+
declare const ___index_js_ASPRoot: typeof ASPRoot;
|
|
2604
|
+
declare const ___index_js_ASP_REGISTRY_HUB_ABI: typeof ASP_REGISTRY_HUB_ABI;
|
|
2605
|
+
declare const ___index_js_ASP_TREE_DEPTH: typeof ASP_TREE_DEPTH;
|
|
2606
|
+
declare const ___index_js_AuditKeyExport: typeof AuditKeyExport;
|
|
2607
|
+
declare const ___index_js_BABYJUBJUB_SUBORDER: typeof BABYJUBJUB_SUBORDER;
|
|
2608
|
+
declare const ___index_js_CircuitArtifacts: typeof CircuitArtifacts;
|
|
2609
|
+
declare const ___index_js_CircuitType: typeof CircuitType;
|
|
2610
|
+
declare const ___index_js_Commitment: typeof Commitment;
|
|
2611
|
+
declare const ___index_js_DEFAULT_KEY_DERIVATION_CONFIG: typeof DEFAULT_KEY_DERIVATION_CONFIG;
|
|
2612
|
+
declare const ___index_js_DEMO_ASP_ID: typeof DEMO_ASP_ID;
|
|
2613
|
+
declare const ___index_js_DEMO_ASP_NAME: typeof DEMO_ASP_NAME;
|
|
2614
|
+
declare const ___index_js_DIGEST_SIZE: typeof DIGEST_SIZE;
|
|
2615
|
+
type ___index_js_DeploymentConfig = DeploymentConfig;
|
|
2616
|
+
declare const ___index_js_DirectAccountAdapter: typeof DirectAccountAdapter;
|
|
2617
|
+
declare const ___index_js_DualMasterKeys: typeof DualMasterKeys;
|
|
2618
|
+
declare const ___index_js_EncryptedNote: typeof EncryptedNote;
|
|
2619
|
+
declare const ___index_js_FIELD_PRIME: typeof FIELD_PRIME;
|
|
2620
|
+
declare const ___index_js_IASPProvider: typeof IASPProvider;
|
|
2621
|
+
declare const ___index_js_IAccountAdapter: typeof IAccountAdapter;
|
|
2622
|
+
declare const ___index_js_INoteStore: typeof INoteStore;
|
|
2623
|
+
declare const ___index_js_IndexedNote: typeof IndexedNote;
|
|
2624
|
+
declare const ___index_js_Indexer: typeof Indexer;
|
|
2625
|
+
declare const ___index_js_KeyDerivationConfig: typeof KeyDerivationConfig;
|
|
2626
|
+
declare const ___index_js_M31Digest: typeof M31Digest;
|
|
2627
|
+
declare const ___index_js_M31Secret: typeof M31Secret;
|
|
2628
|
+
declare const ___index_js_M31_P: typeof M31_P;
|
|
2629
|
+
declare const ___index_js_MAX_TREE_DEPTH: typeof MAX_TREE_DEPTH;
|
|
2630
|
+
declare const ___index_js_MasterKeys: typeof MasterKeys;
|
|
2631
|
+
declare const ___index_js_MergeParams: typeof MergeParams;
|
|
2632
|
+
declare const ___index_js_MergeRecord: typeof MergeRecord;
|
|
2633
|
+
declare const ___index_js_MerkleProof: typeof MerkleProof;
|
|
2634
|
+
declare const ___index_js_MerkleProofWithNote: typeof MerkleProofWithNote;
|
|
2635
|
+
declare const ___index_js_MerkleTree: typeof MerkleTree;
|
|
2636
|
+
declare const ___index_js_NOTE_VERSION: typeof NOTE_VERSION;
|
|
2637
|
+
declare const ___index_js_Note: typeof Note;
|
|
2638
|
+
declare const ___index_js_NoteReference: typeof NoteReference;
|
|
2639
|
+
declare const ___index_js_NoteStatus: typeof NoteStatus;
|
|
2640
|
+
declare const ___index_js_NoteStore: typeof NoteStore;
|
|
2641
|
+
declare const ___index_js_NoteWithAmount: typeof NoteWithAmount;
|
|
2642
|
+
declare const ___index_js_Nullifier: typeof Nullifier;
|
|
2643
|
+
declare const ___index_js_OneTimeKeys: typeof OneTimeKeys;
|
|
2644
|
+
declare const ___index_js_Point: typeof Point;
|
|
2645
|
+
declare const ___index_js_Proof: typeof Proof;
|
|
2646
|
+
declare const ___index_js_ProofResult: typeof ProofResult;
|
|
2647
|
+
declare const ___index_js_ProofSystem: typeof ProofSystem;
|
|
2648
|
+
declare const ___index_js_ProvingSystem: typeof ProvingSystem;
|
|
2649
|
+
declare const ___index_js_RATE_PRECISION: typeof RATE_PRECISION;
|
|
2650
|
+
declare const ___index_js_RpcIndexerConfig: typeof RpcIndexerConfig;
|
|
2651
|
+
declare const ___index_js_SECRET_LIMBS: typeof SECRET_LIMBS;
|
|
2652
|
+
declare const ___index_js_STARK_ADDRESS_VERSION: typeof STARK_ADDRESS_VERSION;
|
|
2653
|
+
declare const ___index_js_STARK_AMOUNT_SCALE: typeof STARK_AMOUNT_SCALE;
|
|
2654
|
+
declare const ___index_js_STARK_STEALTH_ADDRESS_PREFIX: typeof STARK_STEALTH_ADDRESS_PREFIX;
|
|
2655
|
+
declare const ___index_js_STATE_TREE_DEPTH: typeof STATE_TREE_DEPTH;
|
|
2656
|
+
declare const ___index_js_STEALTH_ADDRESS_PREFIX: typeof STEALTH_ADDRESS_PREFIX;
|
|
2657
|
+
declare const ___index_js_SWAP_EVENTS_ABI: typeof SWAP_EVENTS_ABI;
|
|
2658
|
+
declare const ___index_js_SWAP_ORDER_CANCELLED_EVENT: typeof SWAP_ORDER_CANCELLED_EVENT;
|
|
2659
|
+
declare const ___index_js_SWAP_ORDER_CLAIMED_EVENT: typeof SWAP_ORDER_CLAIMED_EVENT;
|
|
2660
|
+
declare const ___index_js_SWAP_ORDER_FILLED_EVENT: typeof SWAP_ORDER_FILLED_EVENT;
|
|
2661
|
+
declare const ___index_js_SWAP_ORDER_PLACED_EVENT: typeof SWAP_ORDER_PLACED_EVENT;
|
|
2662
|
+
declare const ___index_js_SerializedKeys: typeof SerializedKeys;
|
|
2663
|
+
declare const ___index_js_ShieldParams: typeof ShieldParams;
|
|
2664
|
+
declare const ___index_js_ShieldedNote: typeof ShieldedNote;
|
|
2665
|
+
declare const ___index_js_SpendableNote: typeof SpendableNote;
|
|
2666
|
+
declare const ___index_js_StarkMasterKeys: typeof StarkMasterKeys;
|
|
2667
|
+
declare const ___index_js_StarkNote: typeof StarkNote;
|
|
2668
|
+
declare const ___index_js_StarkProof: typeof StarkProof;
|
|
2669
|
+
declare const ___index_js_StarkStealthMetaAddress: typeof StarkStealthMetaAddress;
|
|
2670
|
+
declare const ___index_js_Stealth1x2CircuitInputs: typeof Stealth1x2CircuitInputs;
|
|
2671
|
+
declare const ___index_js_Stealth2x2CircuitInputs: typeof Stealth2x2CircuitInputs;
|
|
2672
|
+
declare const ___index_js_StealthAddress: typeof StealthAddress;
|
|
2673
|
+
declare const ___index_js_StealthAddressComponents: typeof StealthAddressComponents;
|
|
2674
|
+
declare const ___index_js_StealthCircuitInputs: typeof StealthCircuitInputs;
|
|
2675
|
+
declare const ___index_js_StealthCircuitType: typeof StealthCircuitType;
|
|
2676
|
+
declare const ___index_js_StealthMetaAddress: typeof StealthMetaAddress;
|
|
2677
|
+
declare const ___index_js_StorageAdapter: typeof StorageAdapter;
|
|
2678
|
+
declare const ___index_js_SwapFillEvent: typeof SwapFillEvent;
|
|
2679
|
+
declare const ___index_js_SwapFillParams: typeof SwapFillParams;
|
|
2680
|
+
declare const ___index_js_SwapOrder: typeof SwapOrder;
|
|
2681
|
+
declare const ___index_js_SwapOrderEvent: typeof SwapOrderEvent;
|
|
2682
|
+
declare const ___index_js_SwapOrderParams: typeof SwapOrderParams;
|
|
2683
|
+
declare const ___index_js_SyncResult: typeof SyncResult;
|
|
2684
|
+
declare const ___index_js_TEST_STABLE_TOKEN_2_ABI: typeof TEST_STABLE_TOKEN_2_ABI;
|
|
2685
|
+
declare const ___index_js_TEST_STABLE_TOKEN_ABI: typeof TEST_STABLE_TOKEN_ABI;
|
|
2686
|
+
declare const ___index_js_TransactionViewingKey: typeof TransactionViewingKey;
|
|
2687
|
+
declare const ___index_js_TransferBuildResult: typeof TransferBuildResult;
|
|
2688
|
+
declare const ___index_js_TransferContext: typeof TransferContext;
|
|
2689
|
+
declare const ___index_js_TransferParams: typeof TransferParams;
|
|
2690
|
+
declare const ___index_js_TransferStage: typeof TransferStage;
|
|
2691
|
+
declare const ___index_js_UNIVERSAL_PRIVATE_POOL_ABI: typeof UNIVERSAL_PRIVATE_POOL_ABI;
|
|
2692
|
+
declare const ___index_js_UPPCircuitInputs: typeof UPPCircuitInputs;
|
|
2693
|
+
declare const ___index_js_UPPCircuitType: typeof UPPCircuitType;
|
|
2694
|
+
declare const ___index_js_UPPClient: typeof UPPClient;
|
|
2695
|
+
declare const ___index_js_UPPClientConfig: typeof UPPClientConfig;
|
|
2696
|
+
declare const ___index_js_UPPTransferCircuitInputs: typeof UPPTransferCircuitInputs;
|
|
2697
|
+
declare const ___index_js_UPPWithdrawCircuitInputs: typeof UPPWithdrawCircuitInputs;
|
|
2698
|
+
type ___index_js_VerifierAddresses = VerifierAddresses;
|
|
2699
|
+
declare const ___index_js_WithdrawParams: typeof WithdrawParams;
|
|
2700
|
+
declare const ___index_js_addPoints: typeof addPoints;
|
|
2701
|
+
declare const ___index_js_addressToField: typeof addressToField;
|
|
2702
|
+
declare const ___index_js_bigintToBytes: typeof bigintToBytes;
|
|
2703
|
+
declare const ___index_js_buildASPTree: typeof buildASPTree;
|
|
2704
|
+
declare const ___index_js_buildMerkleTree: typeof buildMerkleTree;
|
|
2705
|
+
declare const ___index_js_buildTransfer: typeof buildTransfer;
|
|
2706
|
+
declare const ___index_js_buildUPPTransferCircuitInputs: typeof buildUPPTransferCircuitInputs;
|
|
2707
|
+
declare const ___index_js_bytesToBigint: typeof bytesToBigint;
|
|
2708
|
+
declare const ___index_js_bytesToHex: typeof bytesToHex;
|
|
2709
|
+
declare const ___index_js_computeCancelKeyHash: typeof computeCancelKeyHash;
|
|
2710
|
+
declare const ___index_js_computeFillPercentage: typeof computeFillPercentage;
|
|
2711
|
+
declare const ___index_js_computeGiveAmount: typeof computeGiveAmount;
|
|
2712
|
+
declare const ___index_js_computeMultiOriginASPRoot: typeof computeMultiOriginASPRoot;
|
|
2713
|
+
declare const ___index_js_computeNoteEncryptionKey: typeof computeNoteEncryptionKey;
|
|
2714
|
+
declare const ___index_js_computeNullifier: typeof computeNullifier;
|
|
2715
|
+
declare const ___index_js_computeRate: typeof computeRate;
|
|
2716
|
+
declare const ___index_js_computeSharedSecret: typeof computeSharedSecret;
|
|
2717
|
+
declare const ___index_js_computeSingleOriginASPRoot: typeof computeSingleOriginASPRoot;
|
|
2718
|
+
declare const ___index_js_computeStarkCommitment: typeof computeStarkCommitment;
|
|
2719
|
+
declare const ___index_js_computeStarkNullifier: typeof computeStarkNullifier;
|
|
2720
|
+
declare const ___index_js_computeStarkOwnerHash: typeof computeStarkOwnerHash;
|
|
2721
|
+
declare const ___index_js_computeTakeAmount: typeof computeTakeAmount;
|
|
2722
|
+
declare const ___index_js_computeTotalBuyAmount: typeof computeTotalBuyAmount;
|
|
2723
|
+
declare const ___index_js_createDemoASPRoot: typeof createDemoASPRoot;
|
|
2724
|
+
declare const ___index_js_createNote: typeof createNote;
|
|
2725
|
+
declare const ___index_js_createOneTimeKeys: typeof createOneTimeKeys;
|
|
2726
|
+
declare const ___index_js_createUPPClient: typeof createUPPClient;
|
|
2727
|
+
declare const ___index_js_decodeStarkStealthAddress: typeof decodeStarkStealthAddress;
|
|
2728
|
+
declare const ___index_js_decodeStealthAddress: typeof decodeStealthAddress;
|
|
2729
|
+
declare const ___index_js_decryptNote: typeof decryptNote;
|
|
2730
|
+
declare const ___index_js_deriveDecryptionViewingKey: typeof deriveDecryptionViewingKey;
|
|
2731
|
+
declare const ___index_js_deriveDualKeysFromSignature: typeof deriveDualKeysFromSignature;
|
|
2732
|
+
declare const ___index_js_deriveEncryptionViewingKey: typeof deriveEncryptionViewingKey;
|
|
2733
|
+
declare const ___index_js_deriveKeysFromSignature: typeof deriveKeysFromSignature;
|
|
2734
|
+
declare const ___index_js_deriveNullifierKey: typeof deriveNullifierKey;
|
|
2735
|
+
declare const ___index_js_derivePerNoteKey: typeof derivePerNoteKey;
|
|
2736
|
+
declare const ___index_js_derivePerNoteKeyFromKeys: typeof derivePerNoteKeyFromKeys;
|
|
2737
|
+
declare const ___index_js_deriveStarkKeysFromSignature: typeof deriveStarkKeysFromSignature;
|
|
2738
|
+
declare const ___index_js_deriveStarkPerNoteKey: typeof deriveStarkPerNoteKey;
|
|
2739
|
+
declare const ___index_js_deriveStarkPerNoteKeyFromKeys: typeof deriveStarkPerNoteKeyFromKeys;
|
|
2740
|
+
declare const ___index_js_detectAddressType: typeof detectAddressType;
|
|
2741
|
+
declare const ___index_js_encodeStarkStealthAddress: typeof encodeStarkStealthAddress;
|
|
2742
|
+
declare const ___index_js_encodeStealthAddress: typeof encodeStealthAddress;
|
|
2743
|
+
declare const ___index_js_encryptNote: typeof encryptNote;
|
|
2744
|
+
declare const ___index_js_exportViewingKeysForAudit: typeof exportViewingKeysForAudit;
|
|
2745
|
+
declare const ___index_js_fieldToAddress: typeof fieldToAddress;
|
|
2746
|
+
declare const ___index_js_filterOrdersByASP: typeof filterOrdersByASP;
|
|
2747
|
+
declare const ___index_js_filterOrdersByTokenPair: typeof filterOrdersByTokenPair;
|
|
2748
|
+
declare const ___index_js_formatOutputForContract: typeof formatOutputForContract;
|
|
2749
|
+
declare const ___index_js_formatProofForContract: typeof formatProofForContract;
|
|
2750
|
+
declare const ___index_js_formatRate: typeof formatRate;
|
|
2751
|
+
declare const ___index_js_generateASPProof: typeof generateASPProof;
|
|
2752
|
+
declare const ___index_js_generateCancelSecret: typeof generateCancelSecret;
|
|
2753
|
+
declare const ___index_js_generateMultiOriginASPProof: typeof generateMultiOriginASPProof;
|
|
2754
|
+
declare const ___index_js_generateProof: typeof generateProof;
|
|
2755
|
+
declare const ___index_js_generateSingleOriginASPProof: typeof generateSingleOriginASPProof;
|
|
2756
|
+
declare const ___index_js_generateStarkStealthAddress: typeof generateStarkStealthAddress;
|
|
2757
|
+
declare const ___index_js_generateStealthAddress: typeof generateStealthAddress;
|
|
2758
|
+
declare const ___index_js_generateStealthProof: typeof generateStealthProof;
|
|
2759
|
+
declare const ___index_js_generateUPPProof: typeof generateUPPProof;
|
|
2760
|
+
declare const ___index_js_getBasePoint: typeof getBasePoint;
|
|
2761
|
+
declare const ___index_js_getCancelSecret: typeof getCancelSecret;
|
|
2762
|
+
declare const ___index_js_getDeployment: typeof getDeployment;
|
|
2763
|
+
declare const ___index_js_getDeploymentOrThrow: typeof getDeploymentOrThrow;
|
|
2764
|
+
declare const ___index_js_getKeyDerivationMessage: typeof getKeyDerivationMessage;
|
|
2765
|
+
declare const ___index_js_getMerkleProof: typeof getMerkleProof;
|
|
2766
|
+
declare const ___index_js_getMerkleProofsForNotes: typeof getMerkleProofsForNotes;
|
|
2767
|
+
declare const ___index_js_getOwnOrderIds: typeof getOwnOrderIds;
|
|
2768
|
+
declare const ___index_js_getStealthCircuitArtifacts: typeof getStealthCircuitArtifacts;
|
|
2769
|
+
declare const ___index_js_getSubOrder: typeof getSubOrder;
|
|
2770
|
+
declare const ___index_js_getSupportedChainIds: typeof getSupportedChainIds;
|
|
2771
|
+
declare const ___index_js_getTokenAddress: typeof getTokenAddress;
|
|
2772
|
+
declare const ___index_js_getUPPCircuitArtifacts: typeof getUPPCircuitArtifacts;
|
|
2773
|
+
declare const ___index_js_getViewingKeyFromExport: typeof getViewingKeyFromExport;
|
|
2774
|
+
declare const ___index_js_hasDeployment: typeof hasDeployment;
|
|
2775
|
+
declare const ___index_js_hexToBytes: typeof hexToBytes;
|
|
2776
|
+
declare const ___index_js_isFillerASPAccepted: typeof isFillerASPAccepted;
|
|
2777
|
+
declare const ___index_js_isOnCurve: typeof isOnCurve;
|
|
2778
|
+
declare const ___index_js_isOrderActive: typeof isOrderActive;
|
|
2779
|
+
declare const ___index_js_isValidFieldElement: typeof isValidFieldElement;
|
|
2780
|
+
declare const ___index_js_isValidStarkStealthAddress: typeof isValidStarkStealthAddress;
|
|
2781
|
+
declare const ___index_js_isValidStealthAddress: typeof isValidStealthAddress;
|
|
2782
|
+
declare const ___index_js_keccakHashTwo: typeof keccakHashTwo;
|
|
2783
|
+
declare const ___index_js_keccakM31: typeof keccakM31;
|
|
2784
|
+
declare const ___index_js_makeRpcIndexer: typeof makeRpcIndexer;
|
|
2785
|
+
declare const ___index_js_mulPointScalar: typeof mulPointScalar;
|
|
2786
|
+
declare const ___index_js_packPoint: typeof packPoint;
|
|
2787
|
+
declare const ___index_js_pointToTuple: typeof pointToTuple;
|
|
2788
|
+
declare const ___index_js_poseidon: typeof poseidon;
|
|
2789
|
+
declare const ___index_js_poseidonHash: typeof poseidonHash;
|
|
2790
|
+
declare const ___index_js_poseidonScalar: typeof poseidonScalar;
|
|
2791
|
+
declare const ___index_js_privateToPublic: typeof privateToPublic;
|
|
2792
|
+
declare const ___index_js_randomBytes: typeof randomBytes;
|
|
2793
|
+
declare const ___index_js_randomFieldElement: typeof randomFieldElement;
|
|
2794
|
+
declare const ___index_js_registerDeployment: typeof registerDeployment;
|
|
2795
|
+
declare const ___index_js_removeCancelSecret: typeof removeCancelSecret;
|
|
2796
|
+
declare const ___index_js_splitToM31Limbs: typeof splitToM31Limbs;
|
|
2797
|
+
declare const ___index_js_storeCancelSecret: typeof storeCancelSecret;
|
|
2798
|
+
declare const ___index_js_syncMerkleTree: typeof syncMerkleTree;
|
|
2799
|
+
declare const ___index_js_toFieldElement: typeof toFieldElement;
|
|
2800
|
+
declare const ___index_js_tupleToPoint: typeof tupleToPoint;
|
|
2801
|
+
declare const ___index_js_validateAuditKeyExport: typeof validateAuditKeyExport;
|
|
2802
|
+
declare const ___index_js_verifyASPProof: typeof verifyASPProof;
|
|
2803
|
+
declare const ___index_js_verifyKeysMatchSignature: typeof verifyKeysMatchSignature;
|
|
2804
|
+
declare const ___index_js_verifyMerkleProof: typeof verifyMerkleProof;
|
|
2805
|
+
declare const ___index_js_verifyOwnership: typeof verifyOwnership;
|
|
2806
|
+
declare const ___index_js_verifyProof: typeof verifyProof;
|
|
2807
|
+
declare namespace ___index_js {
|
|
2808
|
+
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_CircuitArtifacts as CircuitArtifacts, ___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_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_Point as Point, ___index_js_Proof as Proof, ___index_js_ProofResult as ProofResult, ___index_js_ProofSystem as ProofSystem, ___index_js_ProvingSystem as ProvingSystem, ___index_js_RATE_PRECISION as RATE_PRECISION, ___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_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_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_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_bigintToBytes as bigintToBytes, ___index_js_buildASPTree as buildASPTree, ___index_js_buildMerkleTree as buildMerkleTree, ___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_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_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_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_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_splitToM31Limbs as splitToM31Limbs, ___index_js_storeCancelSecret as storeCancelSecret, ___index_js_syncMerkleTree as syncMerkleTree, ___index_js_toFieldElement as toFieldElement, ___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 };
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
export { type DeploymentConfig as D, TEST_STABLE_TOKEN_ABI as T, UNIVERSAL_PRIVATE_POOL_ABI as U, type VerifierAddresses as V, ___index_js as _, TEST_STABLE_TOKEN_2_ABI as a, getDeploymentOrThrow as b, getSupportedChainIds as c, getTokenAddress as d, getDeployment as g, hasDeployment as h, makeRpcIndexer as m, registerDeployment as r };
|