@cloakely/sdk 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abis.d.ts +498 -135
- package/dist/abis.js +636 -158
- package/dist/bytecode.d.ts +8 -7
- package/dist/bytecode.js +1 -1
- package/dist/cloak.d.ts +33 -0
- package/dist/cloak.js +2 -2
- package/dist/deployments.d.ts +20 -5
- package/dist/deployments.js +71 -13
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/private/client.d.ts +28 -4
- package/dist/private/client.js +88 -22
- package/dist/private/crypto.d.ts +23 -5
- package/dist/private/crypto.js +14 -5
- package/dist/registry.d.ts +46 -0
- package/dist/registry.js +53 -0
- package/package.json +1 -1
package/dist/abis.js
CHANGED
|
@@ -75,6 +75,51 @@ export const cloakConfigAbi = [
|
|
|
75
75
|
"outputs": [],
|
|
76
76
|
"stateMutability": "nonpayable"
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"type": "function",
|
|
80
|
+
"name": "addLaunchFactory",
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"name": "factory",
|
|
84
|
+
"type": "address",
|
|
85
|
+
"internalType": "address"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"outputs": [],
|
|
89
|
+
"stateMutability": "nonpayable"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "function",
|
|
93
|
+
"name": "approveAsset",
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"name": "token",
|
|
97
|
+
"type": "address",
|
|
98
|
+
"internalType": "address"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"outputs": [],
|
|
102
|
+
"stateMutability": "nonpayable"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "function",
|
|
106
|
+
"name": "approvedAsset",
|
|
107
|
+
"inputs": [
|
|
108
|
+
{
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "address",
|
|
111
|
+
"internalType": "address"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"outputs": [
|
|
115
|
+
{
|
|
116
|
+
"name": "",
|
|
117
|
+
"type": "bool",
|
|
118
|
+
"internalType": "bool"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"stateMutability": "view"
|
|
122
|
+
},
|
|
78
123
|
{
|
|
79
124
|
"type": "function",
|
|
80
125
|
"name": "auctionLimit",
|
|
@@ -144,6 +189,25 @@ export const cloakConfigAbi = [
|
|
|
144
189
|
],
|
|
145
190
|
"stateMutability": "view"
|
|
146
191
|
},
|
|
192
|
+
{
|
|
193
|
+
"type": "function",
|
|
194
|
+
"name": "current",
|
|
195
|
+
"inputs": [
|
|
196
|
+
{
|
|
197
|
+
"name": "kind",
|
|
198
|
+
"type": "bytes32",
|
|
199
|
+
"internalType": "bytes32"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"outputs": [
|
|
203
|
+
{
|
|
204
|
+
"name": "",
|
|
205
|
+
"type": "address",
|
|
206
|
+
"internalType": "address"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"stateMutability": "view"
|
|
210
|
+
},
|
|
147
211
|
{
|
|
148
212
|
"type": "function",
|
|
149
213
|
"name": "defaultLimitBps",
|
|
@@ -227,6 +291,57 @@ export const cloakConfigAbi = [
|
|
|
227
291
|
],
|
|
228
292
|
"stateMutability": "view"
|
|
229
293
|
},
|
|
294
|
+
{
|
|
295
|
+
"type": "function",
|
|
296
|
+
"name": "isLaunchFactory",
|
|
297
|
+
"inputs": [
|
|
298
|
+
{
|
|
299
|
+
"name": "",
|
|
300
|
+
"type": "address",
|
|
301
|
+
"internalType": "address"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"outputs": [
|
|
305
|
+
{
|
|
306
|
+
"name": "",
|
|
307
|
+
"type": "bool",
|
|
308
|
+
"internalType": "bool"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"stateMutability": "view"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "function",
|
|
315
|
+
"name": "launchFactories",
|
|
316
|
+
"inputs": [
|
|
317
|
+
{
|
|
318
|
+
"name": "",
|
|
319
|
+
"type": "uint256",
|
|
320
|
+
"internalType": "uint256"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"outputs": [
|
|
324
|
+
{
|
|
325
|
+
"name": "",
|
|
326
|
+
"type": "address",
|
|
327
|
+
"internalType": "address"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"stateMutability": "view"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "function",
|
|
334
|
+
"name": "launchFactoriesCount",
|
|
335
|
+
"inputs": [],
|
|
336
|
+
"outputs": [
|
|
337
|
+
{
|
|
338
|
+
"name": "",
|
|
339
|
+
"type": "uint256",
|
|
340
|
+
"internalType": "uint256"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"stateMutability": "view"
|
|
344
|
+
},
|
|
230
345
|
{
|
|
231
346
|
"type": "function",
|
|
232
347
|
"name": "launchFeeBps",
|
|
@@ -396,6 +511,94 @@ export const cloakConfigAbi = [
|
|
|
396
511
|
],
|
|
397
512
|
"stateMutability": "nonpayable"
|
|
398
513
|
},
|
|
514
|
+
{
|
|
515
|
+
"type": "function",
|
|
516
|
+
"name": "register",
|
|
517
|
+
"inputs": [
|
|
518
|
+
{
|
|
519
|
+
"name": "kind",
|
|
520
|
+
"type": "bytes32",
|
|
521
|
+
"internalType": "bytes32"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "addr",
|
|
525
|
+
"type": "address",
|
|
526
|
+
"internalType": "address"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "version",
|
|
530
|
+
"type": "uint16",
|
|
531
|
+
"internalType": "uint16"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "startBlock",
|
|
535
|
+
"type": "uint64",
|
|
536
|
+
"internalType": "uint64"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"outputs": [],
|
|
540
|
+
"stateMutability": "nonpayable"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"type": "function",
|
|
544
|
+
"name": "registry",
|
|
545
|
+
"inputs": [
|
|
546
|
+
{
|
|
547
|
+
"name": "",
|
|
548
|
+
"type": "uint256",
|
|
549
|
+
"internalType": "uint256"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"outputs": [
|
|
553
|
+
{
|
|
554
|
+
"name": "kind",
|
|
555
|
+
"type": "bytes32",
|
|
556
|
+
"internalType": "bytes32"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "addr",
|
|
560
|
+
"type": "address",
|
|
561
|
+
"internalType": "address"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "version",
|
|
565
|
+
"type": "uint16",
|
|
566
|
+
"internalType": "uint16"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "startBlock",
|
|
570
|
+
"type": "uint64",
|
|
571
|
+
"internalType": "uint64"
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
"stateMutability": "view"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "function",
|
|
578
|
+
"name": "registryCount",
|
|
579
|
+
"inputs": [],
|
|
580
|
+
"outputs": [
|
|
581
|
+
{
|
|
582
|
+
"name": "",
|
|
583
|
+
"type": "uint256",
|
|
584
|
+
"internalType": "uint256"
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"stateMutability": "view"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "function",
|
|
591
|
+
"name": "removeLaunchFactory",
|
|
592
|
+
"inputs": [
|
|
593
|
+
{
|
|
594
|
+
"name": "factory",
|
|
595
|
+
"type": "address",
|
|
596
|
+
"internalType": "address"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"outputs": [],
|
|
600
|
+
"stateMutability": "nonpayable"
|
|
601
|
+
},
|
|
399
602
|
{
|
|
400
603
|
"type": "function",
|
|
401
604
|
"name": "setAuctionLimit",
|
|
@@ -587,6 +790,19 @@ export const cloakConfigAbi = [
|
|
|
587
790
|
],
|
|
588
791
|
"stateMutability": "view"
|
|
589
792
|
},
|
|
793
|
+
{
|
|
794
|
+
"type": "event",
|
|
795
|
+
"name": "AssetApproved",
|
|
796
|
+
"inputs": [
|
|
797
|
+
{
|
|
798
|
+
"name": "token",
|
|
799
|
+
"type": "address",
|
|
800
|
+
"indexed": true,
|
|
801
|
+
"internalType": "address"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"anonymous": false
|
|
805
|
+
},
|
|
590
806
|
{
|
|
591
807
|
"type": "event",
|
|
592
808
|
"name": "AuctionLimitSet",
|
|
@@ -726,6 +942,32 @@ export const cloakConfigAbi = [
|
|
|
726
942
|
],
|
|
727
943
|
"anonymous": false
|
|
728
944
|
},
|
|
945
|
+
{
|
|
946
|
+
"type": "event",
|
|
947
|
+
"name": "LaunchFactoryAdded",
|
|
948
|
+
"inputs": [
|
|
949
|
+
{
|
|
950
|
+
"name": "factory",
|
|
951
|
+
"type": "address",
|
|
952
|
+
"indexed": true,
|
|
953
|
+
"internalType": "address"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"anonymous": false
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"type": "event",
|
|
960
|
+
"name": "LaunchFactoryRemoved",
|
|
961
|
+
"inputs": [
|
|
962
|
+
{
|
|
963
|
+
"name": "factory",
|
|
964
|
+
"type": "address",
|
|
965
|
+
"indexed": true,
|
|
966
|
+
"internalType": "address"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"anonymous": false
|
|
970
|
+
},
|
|
729
971
|
{
|
|
730
972
|
"type": "event",
|
|
731
973
|
"name": "LimitSet",
|
|
@@ -789,6 +1031,31 @@ export const cloakConfigAbi = [
|
|
|
789
1031
|
],
|
|
790
1032
|
"anonymous": false
|
|
791
1033
|
},
|
|
1034
|
+
{
|
|
1035
|
+
"type": "event",
|
|
1036
|
+
"name": "Registered",
|
|
1037
|
+
"inputs": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "kind",
|
|
1040
|
+
"type": "bytes32",
|
|
1041
|
+
"indexed": true,
|
|
1042
|
+
"internalType": "bytes32"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"name": "addr",
|
|
1046
|
+
"type": "address",
|
|
1047
|
+
"indexed": true,
|
|
1048
|
+
"internalType": "address"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "index",
|
|
1052
|
+
"type": "uint256",
|
|
1053
|
+
"indexed": false,
|
|
1054
|
+
"internalType": "uint256"
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
|
+
"anonymous": false
|
|
1058
|
+
},
|
|
792
1059
|
{
|
|
793
1060
|
"type": "event",
|
|
794
1061
|
"name": "SetupEnded",
|
|
@@ -808,6 +1075,11 @@ export const cloakConfigAbi = [
|
|
|
808
1075
|
],
|
|
809
1076
|
"anonymous": false
|
|
810
1077
|
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": "error",
|
|
1080
|
+
"name": "AlreadyAdded",
|
|
1081
|
+
"inputs": []
|
|
1082
|
+
},
|
|
811
1083
|
{
|
|
812
1084
|
"type": "error",
|
|
813
1085
|
"name": "AlreadyEnded",
|
|
@@ -818,6 +1090,11 @@ export const cloakConfigAbi = [
|
|
|
818
1090
|
"name": "AlreadyQueued",
|
|
819
1091
|
"inputs": []
|
|
820
1092
|
},
|
|
1093
|
+
{
|
|
1094
|
+
"type": "error",
|
|
1095
|
+
"name": "BadBlock",
|
|
1096
|
+
"inputs": []
|
|
1097
|
+
},
|
|
821
1098
|
{
|
|
822
1099
|
"type": "error",
|
|
823
1100
|
"name": "BadBps",
|
|
@@ -833,6 +1110,11 @@ export const cloakConfigAbi = [
|
|
|
833
1110
|
"name": "FeeTooHigh",
|
|
834
1111
|
"inputs": []
|
|
835
1112
|
},
|
|
1113
|
+
{
|
|
1114
|
+
"type": "error",
|
|
1115
|
+
"name": "NotAdded",
|
|
1116
|
+
"inputs": []
|
|
1117
|
+
},
|
|
836
1118
|
{
|
|
837
1119
|
"type": "error",
|
|
838
1120
|
"name": "NotLower",
|
|
@@ -1430,14 +1712,42 @@ export const cloakAuctionAbi = [
|
|
|
1430
1712
|
},
|
|
1431
1713
|
{
|
|
1432
1714
|
"type": "function",
|
|
1433
|
-
"name": "
|
|
1434
|
-
"inputs": [
|
|
1435
|
-
"outputs": [
|
|
1715
|
+
"name": "claimPrivate",
|
|
1716
|
+
"inputs": [
|
|
1436
1717
|
{
|
|
1437
|
-
"name": "",
|
|
1718
|
+
"name": "id",
|
|
1438
1719
|
"type": "uint256",
|
|
1439
1720
|
"internalType": "uint256"
|
|
1440
|
-
}
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "pubKey",
|
|
1724
|
+
"type": "uint256",
|
|
1725
|
+
"internalType": "uint256"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "blinding",
|
|
1729
|
+
"type": "uint256",
|
|
1730
|
+
"internalType": "uint256"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"name": "memo",
|
|
1734
|
+
"type": "bytes",
|
|
1735
|
+
"internalType": "bytes"
|
|
1736
|
+
}
|
|
1737
|
+
],
|
|
1738
|
+
"outputs": [],
|
|
1739
|
+
"stateMutability": "nonpayable"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"type": "function",
|
|
1743
|
+
"name": "claimedCount",
|
|
1744
|
+
"inputs": [],
|
|
1745
|
+
"outputs": [
|
|
1746
|
+
{
|
|
1747
|
+
"name": "",
|
|
1748
|
+
"type": "uint256",
|
|
1749
|
+
"internalType": "uint256"
|
|
1750
|
+
}
|
|
1441
1751
|
],
|
|
1442
1752
|
"stateMutability": "view"
|
|
1443
1753
|
},
|
|
@@ -2170,6 +2480,19 @@ export const cloakAuctionAbi = [
|
|
|
2170
2480
|
],
|
|
2171
2481
|
"anonymous": false
|
|
2172
2482
|
},
|
|
2483
|
+
{
|
|
2484
|
+
"type": "event",
|
|
2485
|
+
"name": "ClaimedPrivately",
|
|
2486
|
+
"inputs": [
|
|
2487
|
+
{
|
|
2488
|
+
"name": "id",
|
|
2489
|
+
"type": "uint256",
|
|
2490
|
+
"indexed": true,
|
|
2491
|
+
"internalType": "uint256"
|
|
2492
|
+
}
|
|
2493
|
+
],
|
|
2494
|
+
"anonymous": false
|
|
2495
|
+
},
|
|
2173
2496
|
{
|
|
2174
2497
|
"type": "event",
|
|
2175
2498
|
"name": "Committed",
|
|
@@ -4164,29 +4487,9 @@ export const privateRouterAbi = [
|
|
|
4164
4487
|
"type": "constructor",
|
|
4165
4488
|
"inputs": [
|
|
4166
4489
|
{
|
|
4167
|
-
"name": "
|
|
4168
|
-
"type": "address",
|
|
4169
|
-
"internalType": "contract CloakConfig"
|
|
4170
|
-
},
|
|
4171
|
-
{
|
|
4172
|
-
"name": "hasher2_",
|
|
4173
|
-
"type": "address",
|
|
4174
|
-
"internalType": "contract IPoseidon2"
|
|
4175
|
-
},
|
|
4176
|
-
{
|
|
4177
|
-
"name": "hasher3_",
|
|
4178
|
-
"type": "address",
|
|
4179
|
-
"internalType": "contract IPoseidon3"
|
|
4180
|
-
},
|
|
4181
|
-
{
|
|
4182
|
-
"name": "cloakFactory_",
|
|
4183
|
-
"type": "address",
|
|
4184
|
-
"internalType": "contract ICloakFactory"
|
|
4185
|
-
},
|
|
4186
|
-
{
|
|
4187
|
-
"name": "legacyFactory_",
|
|
4490
|
+
"name": "vaults_",
|
|
4188
4491
|
"type": "address",
|
|
4189
|
-
"internalType": "contract
|
|
4492
|
+
"internalType": "contract CloakVaults"
|
|
4190
4493
|
},
|
|
4191
4494
|
{
|
|
4192
4495
|
"name": "whype_",
|
|
@@ -4213,19 +4516,6 @@ export const privateRouterAbi = [
|
|
|
4213
4516
|
],
|
|
4214
4517
|
"stateMutability": "view"
|
|
4215
4518
|
},
|
|
4216
|
-
{
|
|
4217
|
-
"type": "function",
|
|
4218
|
-
"name": "cloakFactory",
|
|
4219
|
-
"inputs": [],
|
|
4220
|
-
"outputs": [
|
|
4221
|
-
{
|
|
4222
|
-
"name": "",
|
|
4223
|
-
"type": "address",
|
|
4224
|
-
"internalType": "contract ICloakFactory"
|
|
4225
|
-
}
|
|
4226
|
-
],
|
|
4227
|
-
"stateMutability": "view"
|
|
4228
|
-
},
|
|
4229
4519
|
{
|
|
4230
4520
|
"type": "function",
|
|
4231
4521
|
"name": "config",
|
|
@@ -4239,70 +4529,6 @@ export const privateRouterAbi = [
|
|
|
4239
4529
|
],
|
|
4240
4530
|
"stateMutability": "view"
|
|
4241
4531
|
},
|
|
4242
|
-
{
|
|
4243
|
-
"type": "function",
|
|
4244
|
-
"name": "createLegacyPool",
|
|
4245
|
-
"inputs": [
|
|
4246
|
-
{
|
|
4247
|
-
"name": "launchIndex",
|
|
4248
|
-
"type": "uint256",
|
|
4249
|
-
"internalType": "uint256"
|
|
4250
|
-
}
|
|
4251
|
-
],
|
|
4252
|
-
"outputs": [
|
|
4253
|
-
{
|
|
4254
|
-
"name": "pool",
|
|
4255
|
-
"type": "address",
|
|
4256
|
-
"internalType": "contract ShieldedPool"
|
|
4257
|
-
}
|
|
4258
|
-
],
|
|
4259
|
-
"stateMutability": "nonpayable"
|
|
4260
|
-
},
|
|
4261
|
-
{
|
|
4262
|
-
"type": "function",
|
|
4263
|
-
"name": "createPool",
|
|
4264
|
-
"inputs": [
|
|
4265
|
-
{
|
|
4266
|
-
"name": "launchIndex",
|
|
4267
|
-
"type": "uint256",
|
|
4268
|
-
"internalType": "uint256"
|
|
4269
|
-
}
|
|
4270
|
-
],
|
|
4271
|
-
"outputs": [
|
|
4272
|
-
{
|
|
4273
|
-
"name": "pool",
|
|
4274
|
-
"type": "address",
|
|
4275
|
-
"internalType": "contract ShieldedPool"
|
|
4276
|
-
}
|
|
4277
|
-
],
|
|
4278
|
-
"stateMutability": "nonpayable"
|
|
4279
|
-
},
|
|
4280
|
-
{
|
|
4281
|
-
"type": "function",
|
|
4282
|
-
"name": "hasher2",
|
|
4283
|
-
"inputs": [],
|
|
4284
|
-
"outputs": [
|
|
4285
|
-
{
|
|
4286
|
-
"name": "",
|
|
4287
|
-
"type": "address",
|
|
4288
|
-
"internalType": "contract IPoseidon2"
|
|
4289
|
-
}
|
|
4290
|
-
],
|
|
4291
|
-
"stateMutability": "view"
|
|
4292
|
-
},
|
|
4293
|
-
{
|
|
4294
|
-
"type": "function",
|
|
4295
|
-
"name": "hasher3",
|
|
4296
|
-
"inputs": [],
|
|
4297
|
-
"outputs": [
|
|
4298
|
-
{
|
|
4299
|
-
"name": "",
|
|
4300
|
-
"type": "address",
|
|
4301
|
-
"internalType": "contract IPoseidon3"
|
|
4302
|
-
}
|
|
4303
|
-
],
|
|
4304
|
-
"stateMutability": "view"
|
|
4305
|
-
},
|
|
4306
4532
|
{
|
|
4307
4533
|
"type": "function",
|
|
4308
4534
|
"name": "hypePool",
|
|
@@ -4321,7 +4547,7 @@ export const privateRouterAbi = [
|
|
|
4321
4547
|
"name": "isPool",
|
|
4322
4548
|
"inputs": [
|
|
4323
4549
|
{
|
|
4324
|
-
"name": "",
|
|
4550
|
+
"name": "pool",
|
|
4325
4551
|
"type": "address",
|
|
4326
4552
|
"internalType": "address"
|
|
4327
4553
|
}
|
|
@@ -4335,25 +4561,12 @@ export const privateRouterAbi = [
|
|
|
4335
4561
|
],
|
|
4336
4562
|
"stateMutability": "view"
|
|
4337
4563
|
},
|
|
4338
|
-
{
|
|
4339
|
-
"type": "function",
|
|
4340
|
-
"name": "legacyFactory",
|
|
4341
|
-
"inputs": [],
|
|
4342
|
-
"outputs": [
|
|
4343
|
-
{
|
|
4344
|
-
"name": "",
|
|
4345
|
-
"type": "address",
|
|
4346
|
-
"internalType": "contract ICloakFactory"
|
|
4347
|
-
}
|
|
4348
|
-
],
|
|
4349
|
-
"stateMutability": "view"
|
|
4350
|
-
},
|
|
4351
4564
|
{
|
|
4352
4565
|
"type": "function",
|
|
4353
4566
|
"name": "pairOf",
|
|
4354
4567
|
"inputs": [
|
|
4355
4568
|
{
|
|
4356
|
-
"name": "",
|
|
4569
|
+
"name": "token",
|
|
4357
4570
|
"type": "address",
|
|
4358
4571
|
"internalType": "address"
|
|
4359
4572
|
}
|
|
@@ -4372,7 +4585,7 @@ export const privateRouterAbi = [
|
|
|
4372
4585
|
"name": "poolOf",
|
|
4373
4586
|
"inputs": [
|
|
4374
4587
|
{
|
|
4375
|
-
"name": "",
|
|
4588
|
+
"name": "token",
|
|
4376
4589
|
"type": "address",
|
|
4377
4590
|
"internalType": "address"
|
|
4378
4591
|
}
|
|
@@ -4522,7 +4735,7 @@ export const privateRouterAbi = [
|
|
|
4522
4735
|
"name": "tokens",
|
|
4523
4736
|
"inputs": [
|
|
4524
4737
|
{
|
|
4525
|
-
"name": "",
|
|
4738
|
+
"name": "i",
|
|
4526
4739
|
"type": "uint256",
|
|
4527
4740
|
"internalType": "uint256"
|
|
4528
4741
|
}
|
|
@@ -4646,6 +4859,19 @@ export const privateRouterAbi = [
|
|
|
4646
4859
|
"outputs": [],
|
|
4647
4860
|
"stateMutability": "nonpayable"
|
|
4648
4861
|
},
|
|
4862
|
+
{
|
|
4863
|
+
"type": "function",
|
|
4864
|
+
"name": "vaults",
|
|
4865
|
+
"inputs": [],
|
|
4866
|
+
"outputs": [
|
|
4867
|
+
{
|
|
4868
|
+
"name": "",
|
|
4869
|
+
"type": "address",
|
|
4870
|
+
"internalType": "contract CloakVaults"
|
|
4871
|
+
}
|
|
4872
|
+
],
|
|
4873
|
+
"stateMutability": "view"
|
|
4874
|
+
},
|
|
4649
4875
|
{
|
|
4650
4876
|
"type": "function",
|
|
4651
4877
|
"name": "whype",
|
|
@@ -4678,31 +4904,6 @@ export const privateRouterAbi = [
|
|
|
4678
4904
|
],
|
|
4679
4905
|
"anonymous": false
|
|
4680
4906
|
},
|
|
4681
|
-
{
|
|
4682
|
-
"type": "event",
|
|
4683
|
-
"name": "PoolCreated",
|
|
4684
|
-
"inputs": [
|
|
4685
|
-
{
|
|
4686
|
-
"name": "token",
|
|
4687
|
-
"type": "address",
|
|
4688
|
-
"indexed": true,
|
|
4689
|
-
"internalType": "address"
|
|
4690
|
-
},
|
|
4691
|
-
{
|
|
4692
|
-
"name": "pool",
|
|
4693
|
-
"type": "address",
|
|
4694
|
-
"indexed": false,
|
|
4695
|
-
"internalType": "address"
|
|
4696
|
-
},
|
|
4697
|
-
{
|
|
4698
|
-
"name": "pair",
|
|
4699
|
-
"type": "address",
|
|
4700
|
-
"indexed": false,
|
|
4701
|
-
"internalType": "address"
|
|
4702
|
-
}
|
|
4703
|
-
],
|
|
4704
|
-
"anonymous": false
|
|
4705
|
-
},
|
|
4706
4907
|
{
|
|
4707
4908
|
"type": "event",
|
|
4708
4909
|
"name": "PrivateSwap",
|
|
@@ -4789,7 +4990,7 @@ export const privateRouterAbi = [
|
|
|
4789
4990
|
},
|
|
4790
4991
|
{
|
|
4791
4992
|
"type": "error",
|
|
4792
|
-
"name": "
|
|
4993
|
+
"name": "NoHypeVault",
|
|
4793
4994
|
"inputs": []
|
|
4794
4995
|
},
|
|
4795
4996
|
{
|
|
@@ -4797,11 +4998,6 @@ export const privateRouterAbi = [
|
|
|
4797
4998
|
"name": "OverDepositLimit",
|
|
4798
4999
|
"inputs": []
|
|
4799
5000
|
},
|
|
4800
|
-
{
|
|
4801
|
-
"type": "error",
|
|
4802
|
-
"name": "PoolExists",
|
|
4803
|
-
"inputs": []
|
|
4804
|
-
},
|
|
4805
5001
|
{
|
|
4806
5002
|
"type": "error",
|
|
4807
5003
|
"name": "Reentrancy",
|
|
@@ -5546,9 +5742,14 @@ export const cloakMigratorAbi = [
|
|
|
5546
5742
|
"type": "constructor",
|
|
5547
5743
|
"inputs": [
|
|
5548
5744
|
{
|
|
5549
|
-
"name": "
|
|
5550
|
-
"type": "address",
|
|
5551
|
-
"internalType": "contract ILegacyRouter"
|
|
5745
|
+
"name": "legacyRouters_",
|
|
5746
|
+
"type": "address[]",
|
|
5747
|
+
"internalType": "contract ILegacyRouter[]"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"name": "legacyPools_",
|
|
5751
|
+
"type": "address[]",
|
|
5752
|
+
"internalType": "address[]"
|
|
5552
5753
|
},
|
|
5553
5754
|
{
|
|
5554
5755
|
"name": "router_",
|
|
@@ -5560,13 +5761,51 @@ export const cloakMigratorAbi = [
|
|
|
5560
5761
|
},
|
|
5561
5762
|
{
|
|
5562
5763
|
"type": "function",
|
|
5563
|
-
"name": "
|
|
5564
|
-
"inputs": [
|
|
5764
|
+
"name": "isLegacyPool",
|
|
5765
|
+
"inputs": [
|
|
5766
|
+
{
|
|
5767
|
+
"name": "",
|
|
5768
|
+
"type": "address",
|
|
5769
|
+
"internalType": "address"
|
|
5770
|
+
}
|
|
5771
|
+
],
|
|
5565
5772
|
"outputs": [
|
|
5566
5773
|
{
|
|
5567
5774
|
"name": "",
|
|
5775
|
+
"type": "bool",
|
|
5776
|
+
"internalType": "bool"
|
|
5777
|
+
}
|
|
5778
|
+
],
|
|
5779
|
+
"stateMutability": "view"
|
|
5780
|
+
},
|
|
5781
|
+
{
|
|
5782
|
+
"type": "function",
|
|
5783
|
+
"name": "isOldPool",
|
|
5784
|
+
"inputs": [
|
|
5785
|
+
{
|
|
5786
|
+
"name": "pool",
|
|
5568
5787
|
"type": "address",
|
|
5569
|
-
"internalType": "
|
|
5788
|
+
"internalType": "address"
|
|
5789
|
+
}
|
|
5790
|
+
],
|
|
5791
|
+
"outputs": [
|
|
5792
|
+
{
|
|
5793
|
+
"name": "",
|
|
5794
|
+
"type": "bool",
|
|
5795
|
+
"internalType": "bool"
|
|
5796
|
+
}
|
|
5797
|
+
],
|
|
5798
|
+
"stateMutability": "view"
|
|
5799
|
+
},
|
|
5800
|
+
{
|
|
5801
|
+
"type": "function",
|
|
5802
|
+
"name": "legacyRouters",
|
|
5803
|
+
"inputs": [],
|
|
5804
|
+
"outputs": [
|
|
5805
|
+
{
|
|
5806
|
+
"name": "",
|
|
5807
|
+
"type": "address[]",
|
|
5808
|
+
"internalType": "contract ILegacyRouter[]"
|
|
5570
5809
|
}
|
|
5571
5810
|
],
|
|
5572
5811
|
"stateMutability": "view"
|
|
@@ -5816,6 +6055,245 @@ export const cloakFactoryListAbi = [
|
|
|
5816
6055
|
"stateMutability": "view"
|
|
5817
6056
|
}
|
|
5818
6057
|
];
|
|
6058
|
+
export const cloakVaultsAbi = [
|
|
6059
|
+
{
|
|
6060
|
+
"type": "constructor",
|
|
6061
|
+
"inputs": [
|
|
6062
|
+
{
|
|
6063
|
+
"name": "config_",
|
|
6064
|
+
"type": "address",
|
|
6065
|
+
"internalType": "contract CloakConfig"
|
|
6066
|
+
},
|
|
6067
|
+
{
|
|
6068
|
+
"name": "hasher2_",
|
|
6069
|
+
"type": "address",
|
|
6070
|
+
"internalType": "contract IPoseidon2"
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
"name": "hasher3_",
|
|
6074
|
+
"type": "address",
|
|
6075
|
+
"internalType": "contract IPoseidon3"
|
|
6076
|
+
}
|
|
6077
|
+
],
|
|
6078
|
+
"stateMutability": "nonpayable"
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"type": "function",
|
|
6082
|
+
"name": "config",
|
|
6083
|
+
"inputs": [],
|
|
6084
|
+
"outputs": [
|
|
6085
|
+
{
|
|
6086
|
+
"name": "",
|
|
6087
|
+
"type": "address",
|
|
6088
|
+
"internalType": "contract CloakConfig"
|
|
6089
|
+
}
|
|
6090
|
+
],
|
|
6091
|
+
"stateMutability": "view"
|
|
6092
|
+
},
|
|
6093
|
+
{
|
|
6094
|
+
"type": "function",
|
|
6095
|
+
"name": "createAssetPool",
|
|
6096
|
+
"inputs": [
|
|
6097
|
+
{
|
|
6098
|
+
"name": "token",
|
|
6099
|
+
"type": "address",
|
|
6100
|
+
"internalType": "address"
|
|
6101
|
+
}
|
|
6102
|
+
],
|
|
6103
|
+
"outputs": [
|
|
6104
|
+
{
|
|
6105
|
+
"name": "pool",
|
|
6106
|
+
"type": "address",
|
|
6107
|
+
"internalType": "contract ShieldedPool"
|
|
6108
|
+
}
|
|
6109
|
+
],
|
|
6110
|
+
"stateMutability": "nonpayable"
|
|
6111
|
+
},
|
|
6112
|
+
{
|
|
6113
|
+
"type": "function",
|
|
6114
|
+
"name": "createPool",
|
|
6115
|
+
"inputs": [
|
|
6116
|
+
{
|
|
6117
|
+
"name": "factory",
|
|
6118
|
+
"type": "address",
|
|
6119
|
+
"internalType": "contract ILaunchFactory"
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"name": "launchIndex",
|
|
6123
|
+
"type": "uint256",
|
|
6124
|
+
"internalType": "uint256"
|
|
6125
|
+
}
|
|
6126
|
+
],
|
|
6127
|
+
"outputs": [
|
|
6128
|
+
{
|
|
6129
|
+
"name": "pool",
|
|
6130
|
+
"type": "address",
|
|
6131
|
+
"internalType": "contract ShieldedPool"
|
|
6132
|
+
}
|
|
6133
|
+
],
|
|
6134
|
+
"stateMutability": "nonpayable"
|
|
6135
|
+
},
|
|
6136
|
+
{
|
|
6137
|
+
"type": "function",
|
|
6138
|
+
"name": "hasher2",
|
|
6139
|
+
"inputs": [],
|
|
6140
|
+
"outputs": [
|
|
6141
|
+
{
|
|
6142
|
+
"name": "",
|
|
6143
|
+
"type": "address",
|
|
6144
|
+
"internalType": "contract IPoseidon2"
|
|
6145
|
+
}
|
|
6146
|
+
],
|
|
6147
|
+
"stateMutability": "view"
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
"type": "function",
|
|
6151
|
+
"name": "hasher3",
|
|
6152
|
+
"inputs": [],
|
|
6153
|
+
"outputs": [
|
|
6154
|
+
{
|
|
6155
|
+
"name": "",
|
|
6156
|
+
"type": "address",
|
|
6157
|
+
"internalType": "contract IPoseidon3"
|
|
6158
|
+
}
|
|
6159
|
+
],
|
|
6160
|
+
"stateMutability": "view"
|
|
6161
|
+
},
|
|
6162
|
+
{
|
|
6163
|
+
"type": "function",
|
|
6164
|
+
"name": "isPool",
|
|
6165
|
+
"inputs": [
|
|
6166
|
+
{
|
|
6167
|
+
"name": "",
|
|
6168
|
+
"type": "address",
|
|
6169
|
+
"internalType": "address"
|
|
6170
|
+
}
|
|
6171
|
+
],
|
|
6172
|
+
"outputs": [
|
|
6173
|
+
{
|
|
6174
|
+
"name": "",
|
|
6175
|
+
"type": "bool",
|
|
6176
|
+
"internalType": "bool"
|
|
6177
|
+
}
|
|
6178
|
+
],
|
|
6179
|
+
"stateMutability": "view"
|
|
6180
|
+
},
|
|
6181
|
+
{
|
|
6182
|
+
"type": "function",
|
|
6183
|
+
"name": "pairOf",
|
|
6184
|
+
"inputs": [
|
|
6185
|
+
{
|
|
6186
|
+
"name": "",
|
|
6187
|
+
"type": "address",
|
|
6188
|
+
"internalType": "address"
|
|
6189
|
+
}
|
|
6190
|
+
],
|
|
6191
|
+
"outputs": [
|
|
6192
|
+
{
|
|
6193
|
+
"name": "",
|
|
6194
|
+
"type": "address",
|
|
6195
|
+
"internalType": "contract CloakPair"
|
|
6196
|
+
}
|
|
6197
|
+
],
|
|
6198
|
+
"stateMutability": "view"
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
"type": "function",
|
|
6202
|
+
"name": "poolOf",
|
|
6203
|
+
"inputs": [
|
|
6204
|
+
{
|
|
6205
|
+
"name": "",
|
|
6206
|
+
"type": "address",
|
|
6207
|
+
"internalType": "address"
|
|
6208
|
+
}
|
|
6209
|
+
],
|
|
6210
|
+
"outputs": [
|
|
6211
|
+
{
|
|
6212
|
+
"name": "",
|
|
6213
|
+
"type": "address",
|
|
6214
|
+
"internalType": "contract ShieldedPool"
|
|
6215
|
+
}
|
|
6216
|
+
],
|
|
6217
|
+
"stateMutability": "view"
|
|
6218
|
+
},
|
|
6219
|
+
{
|
|
6220
|
+
"type": "function",
|
|
6221
|
+
"name": "tokens",
|
|
6222
|
+
"inputs": [
|
|
6223
|
+
{
|
|
6224
|
+
"name": "",
|
|
6225
|
+
"type": "uint256",
|
|
6226
|
+
"internalType": "uint256"
|
|
6227
|
+
}
|
|
6228
|
+
],
|
|
6229
|
+
"outputs": [
|
|
6230
|
+
{
|
|
6231
|
+
"name": "",
|
|
6232
|
+
"type": "address",
|
|
6233
|
+
"internalType": "address"
|
|
6234
|
+
}
|
|
6235
|
+
],
|
|
6236
|
+
"stateMutability": "view"
|
|
6237
|
+
},
|
|
6238
|
+
{
|
|
6239
|
+
"type": "function",
|
|
6240
|
+
"name": "tokensCount",
|
|
6241
|
+
"inputs": [],
|
|
6242
|
+
"outputs": [
|
|
6243
|
+
{
|
|
6244
|
+
"name": "",
|
|
6245
|
+
"type": "uint256",
|
|
6246
|
+
"internalType": "uint256"
|
|
6247
|
+
}
|
|
6248
|
+
],
|
|
6249
|
+
"stateMutability": "view"
|
|
6250
|
+
},
|
|
6251
|
+
{
|
|
6252
|
+
"type": "event",
|
|
6253
|
+
"name": "PoolCreated",
|
|
6254
|
+
"inputs": [
|
|
6255
|
+
{
|
|
6256
|
+
"name": "token",
|
|
6257
|
+
"type": "address",
|
|
6258
|
+
"indexed": true,
|
|
6259
|
+
"internalType": "address"
|
|
6260
|
+
},
|
|
6261
|
+
{
|
|
6262
|
+
"name": "pool",
|
|
6263
|
+
"type": "address",
|
|
6264
|
+
"indexed": false,
|
|
6265
|
+
"internalType": "address"
|
|
6266
|
+
},
|
|
6267
|
+
{
|
|
6268
|
+
"name": "pair",
|
|
6269
|
+
"type": "address",
|
|
6270
|
+
"indexed": false,
|
|
6271
|
+
"internalType": "address"
|
|
6272
|
+
}
|
|
6273
|
+
],
|
|
6274
|
+
"anonymous": false
|
|
6275
|
+
},
|
|
6276
|
+
{
|
|
6277
|
+
"type": "error",
|
|
6278
|
+
"name": "NotApproved",
|
|
6279
|
+
"inputs": []
|
|
6280
|
+
},
|
|
6281
|
+
{
|
|
6282
|
+
"type": "error",
|
|
6283
|
+
"name": "NotLaunched",
|
|
6284
|
+
"inputs": []
|
|
6285
|
+
},
|
|
6286
|
+
{
|
|
6287
|
+
"type": "error",
|
|
6288
|
+
"name": "PoolExists",
|
|
6289
|
+
"inputs": []
|
|
6290
|
+
},
|
|
6291
|
+
{
|
|
6292
|
+
"type": "error",
|
|
6293
|
+
"name": "UnknownFactory",
|
|
6294
|
+
"inputs": []
|
|
6295
|
+
}
|
|
6296
|
+
];
|
|
5819
6297
|
export const whypeAbi = [
|
|
5820
6298
|
{
|
|
5821
6299
|
"type": "receive",
|