@zoralabs/coins 0.9.0 → 1.0.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/.turbo/turbo-build.log +131 -114
- package/CHANGELOG.md +40 -0
- package/abis/BaseCoin.json +26 -118
- package/abis/BaseTest.json +47 -0
- package/abis/Coin.json +171 -63
- package/abis/CoinDopplerMultiCurve.json +38 -0
- package/abis/CoinRewardsV4.json +54 -0
- package/abis/CoinTest.json +53 -20
- package/abis/CoinUniV4Test.json +1053 -0
- package/abis/CoinV4.json +234 -211
- package/abis/DeployScript.json +47 -0
- package/abis/DeployedCoinVersionLookup.json +21 -0
- package/abis/DeployedCoinVersionLookupTest.json +716 -0
- package/abis/DifferentNamespaceVersionLookup.json +39 -0
- package/abis/DopplerUniswapV3Test.json +49 -93
- package/abis/ERC20.json +310 -0
- package/abis/FactoryTest.json +85 -7
- package/abis/FeeEstimatorHook.json +1528 -0
- package/abis/HooksDeployment.json +23 -0
- package/abis/HooksTest.json +47 -0
- package/abis/ICoin.json +40 -71
- package/abis/ICoinV3.json +879 -0
- package/abis/ICoinV4.json +915 -0
- package/abis/IDeployedCoinVersionLookup.json +21 -0
- package/abis/IERC721.json +36 -36
- package/abis/IHasPoolKey.json +42 -0
- package/abis/IHasRewardsRecipients.json +54 -0
- package/abis/IHasSwapPath.json +60 -0
- package/abis/IMsgSender.json +15 -0
- package/abis/IPoolConfigEncoding.json +46 -0
- package/abis/ISwapPathRouter.json +92 -0
- package/abis/IUniversalRouter.json +61 -0
- package/abis/IUnlockCallback.json +21 -0
- package/abis/IV4Quoter.json +310 -0
- package/abis/IZoraFactory.json +191 -11
- package/abis/IZoraV4CoinHook.json +348 -4
- package/abis/MockERC20.json +21 -0
- package/abis/MultiOwnableTest.json +47 -0
- package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
- package/abis/PrintUpgradeCommand.json +9 -0
- package/abis/ProxyShim.json +24 -0
- package/abis/StateLibrary.json +80 -0
- package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
- package/abis/TestV4Swap.json +9 -0
- package/abis/UpgradeCoinImpl.json +47 -0
- package/abis/UpgradesTest.json +67 -0
- package/abis/Vm.json +1482 -111
- package/abis/VmSafe.json +856 -32
- package/abis/ZoraFactoryImpl.json +339 -1
- package/abis/ZoraV4CoinHook.json +455 -5
- package/addresses/8453.json +8 -4
- package/addresses/84532.json +8 -4
- package/dist/index.cjs +1920 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1916 -169
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +2599 -183
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +1928 -165
- package/package.json +8 -3
- package/remappings.txt +6 -1
- package/script/CoinsDeployerBase.sol +74 -11
- package/script/DeployDevFactory.s.sol +21 -0
- package/script/PrintUpgradeCommand.s.sol +13 -0
- package/script/Simulate.s.sol +1 -10
- package/script/TestBackingCoinSwap.s.sol +146 -0
- package/script/TestV4Swap.s.sol +136 -0
- package/script/UpgradeFactoryImpl.s.sol +1 -1
- package/src/BaseCoin.sol +176 -0
- package/src/Coin.sol +87 -202
- package/src/CoinV4.sol +121 -0
- package/src/ZoraFactoryImpl.sol +208 -36
- package/src/hooks/ZoraV4CoinHook.sol +195 -0
- package/src/hooks/{BaseCoinDeployHook.sol → deployment/BaseCoinDeployHook.sol} +3 -3
- package/src/hooks/{BuySupplyWithSwapRouterHook.sol → deployment/BuySupplyWithSwapRouterHook.sol} +7 -5
- package/src/interfaces/ICoin.sol +31 -39
- package/src/interfaces/ICoinV3.sol +71 -0
- package/src/interfaces/ICoinV4.sol +69 -0
- package/src/interfaces/IDeployedCoinVersionLookup.sol +11 -0
- package/src/interfaces/IMsgSender.sol +9 -0
- package/src/interfaces/IPoolConfigEncoding.sol +14 -0
- package/src/interfaces/ISwapPathRouter.sol +14 -0
- package/src/interfaces/IZoraFactory.sol +65 -27
- package/src/interfaces/IZoraV4CoinHook.sol +116 -0
- package/src/libs/CoinCommon.sol +15 -0
- package/src/libs/CoinConfigurationVersions.sol +116 -1
- package/src/libs/CoinConstants.sol +5 -0
- package/src/libs/CoinDopplerMultiCurve.sol +134 -0
- package/src/libs/CoinDopplerUniV3.sol +19 -171
- package/src/libs/CoinRewards.sol +195 -0
- package/src/libs/CoinRewardsV4.sol +180 -0
- package/src/libs/CoinSetup.sol +57 -0
- package/src/libs/CoinSetupV3.sol +6 -67
- package/src/libs/DopplerMath.sol +156 -0
- package/src/libs/HooksDeployment.sol +84 -0
- package/src/libs/MarketConstants.sol +4 -0
- package/src/libs/PoolStateReader.sol +22 -0
- package/src/libs/UniV3BuySell.sol +74 -292
- package/src/libs/UniV4SwapHelper.sol +65 -0
- package/src/libs/UniV4SwapToCurrency.sol +109 -0
- package/src/libs/V4Liquidity.sol +129 -0
- package/src/types/PoolConfiguration.sol +15 -0
- package/src/utils/DeployedCoinVersionLookup.sol +52 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +78 -88
- package/test/CoinDopplerUniV3.t.sol +32 -171
- package/test/CoinUniV4.t.sol +752 -0
- package/test/{Hooks.t.sol → DeploymentHooks.t.sol} +2 -6
- package/test/Factory.t.sol +80 -47
- package/test/MultiOwnable.t.sol +6 -3
- package/test/Upgrades.t.sol +6 -5
- package/test/mocks/MockERC20.sol +12 -0
- package/test/utils/BaseTest.sol +106 -56
- package/test/utils/DeployedCoinVersionLookup.t.sol +127 -0
- package/test/utils/FeeEstimatorHook.sol +84 -0
- package/test/utils/ProxyShim.sol +17 -0
- package/wagmi.config.ts +4 -0
- package/.env +0 -1
- package/.turbo/turbo-update-contract-version.log +0 -22
- package/abis/CoinSetupV3.json +0 -7
- package/abis/HookDeployer.json +0 -68
- package/abis/IHookDeployer.json +0 -42
- package/src/libs/CoinLegacy.sol +0 -48
- package/src/libs/CoinLegacyMarket.sol +0 -182
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "getVersionForDeployedCoin",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "coin",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "uint8",
|
|
16
|
+
"internalType": "uint8"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "view"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "function",
|
|
23
|
+
"name": "setVersionForTesting",
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "coin",
|
|
27
|
+
"type": "address",
|
|
28
|
+
"internalType": "address"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "version",
|
|
32
|
+
"type": "uint8",
|
|
33
|
+
"internalType": "uint8"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"outputs": [],
|
|
37
|
+
"stateMutability": "nonpayable"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
@@ -307,13 +307,6 @@
|
|
|
307
307
|
"outputs": [],
|
|
308
308
|
"stateMutability": "pure"
|
|
309
309
|
},
|
|
310
|
-
{
|
|
311
|
-
"type": "function",
|
|
312
|
-
"name": "test_deploy_doppler_eth",
|
|
313
|
-
"inputs": [],
|
|
314
|
-
"outputs": [],
|
|
315
|
-
"stateMutability": "nonpayable"
|
|
316
|
-
},
|
|
317
310
|
{
|
|
318
311
|
"type": "function",
|
|
319
312
|
"name": "test_deploy_doppler_eth_with_prebuy",
|
|
@@ -327,33 +320,6 @@
|
|
|
327
320
|
"outputs": [],
|
|
328
321
|
"stateMutability": "nonpayable"
|
|
329
322
|
},
|
|
330
|
-
{
|
|
331
|
-
"type": "function",
|
|
332
|
-
"name": "test_deploy_legacy_eth_config",
|
|
333
|
-
"inputs": [],
|
|
334
|
-
"outputs": [],
|
|
335
|
-
"stateMutability": "nonpayable"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"type": "function",
|
|
339
|
-
"name": "test_deploy_legacy_eth_config_with_prebuy",
|
|
340
|
-
"inputs": [
|
|
341
|
-
{
|
|
342
|
-
"name": "initialOrderSize",
|
|
343
|
-
"type": "uint256",
|
|
344
|
-
"internalType": "uint256"
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"outputs": [],
|
|
348
|
-
"stateMutability": "nonpayable"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"type": "function",
|
|
352
|
-
"name": "test_deploy_legacy_usdc_config_with_prebuy",
|
|
353
|
-
"inputs": [],
|
|
354
|
-
"outputs": [],
|
|
355
|
-
"stateMutability": "nonpayable"
|
|
356
|
-
},
|
|
357
323
|
{
|
|
358
324
|
"type": "function",
|
|
359
325
|
"name": "test_invalid_pool_config",
|
|
@@ -363,75 +329,18 @@
|
|
|
363
329
|
},
|
|
364
330
|
{
|
|
365
331
|
"type": "function",
|
|
366
|
-
"name": "
|
|
332
|
+
"name": "test_revert_deploy_invalid_discovery_supply_share",
|
|
367
333
|
"inputs": [],
|
|
368
334
|
"outputs": [],
|
|
369
335
|
"stateMutability": "nonpayable"
|
|
370
336
|
},
|
|
371
337
|
{
|
|
372
338
|
"type": "function",
|
|
373
|
-
"name": "
|
|
339
|
+
"name": "test_supply_constants",
|
|
374
340
|
"inputs": [],
|
|
375
341
|
"outputs": [],
|
|
376
342
|
"stateMutability": "nonpayable"
|
|
377
343
|
},
|
|
378
|
-
{
|
|
379
|
-
"type": "function",
|
|
380
|
-
"name": "test_revert_deploy_invalid_discovery_supply_share",
|
|
381
|
-
"inputs": [],
|
|
382
|
-
"outputs": [],
|
|
383
|
-
"stateMutability": "nonpayable"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"type": "event",
|
|
387
|
-
"name": "SlotFound",
|
|
388
|
-
"inputs": [
|
|
389
|
-
{
|
|
390
|
-
"name": "who",
|
|
391
|
-
"type": "address",
|
|
392
|
-
"indexed": false,
|
|
393
|
-
"internalType": "address"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "fsig",
|
|
397
|
-
"type": "bytes4",
|
|
398
|
-
"indexed": false,
|
|
399
|
-
"internalType": "bytes4"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
"name": "keysHash",
|
|
403
|
-
"type": "bytes32",
|
|
404
|
-
"indexed": false,
|
|
405
|
-
"internalType": "bytes32"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"name": "slot",
|
|
409
|
-
"type": "uint256",
|
|
410
|
-
"indexed": false,
|
|
411
|
-
"internalType": "uint256"
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"anonymous": false
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"type": "event",
|
|
418
|
-
"name": "WARNING_UninitedSlot",
|
|
419
|
-
"inputs": [
|
|
420
|
-
{
|
|
421
|
-
"name": "who",
|
|
422
|
-
"type": "address",
|
|
423
|
-
"indexed": false,
|
|
424
|
-
"internalType": "address"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "slot",
|
|
428
|
-
"type": "uint256",
|
|
429
|
-
"indexed": false,
|
|
430
|
-
"internalType": "uint256"
|
|
431
|
-
}
|
|
432
|
-
],
|
|
433
|
-
"anonymous": false
|
|
434
|
-
},
|
|
435
344
|
{
|
|
436
345
|
"type": "event",
|
|
437
346
|
"name": "log",
|
|
@@ -801,6 +710,53 @@
|
|
|
801
710
|
"name": "CannotMintZeroLiquidity",
|
|
802
711
|
"inputs": []
|
|
803
712
|
},
|
|
713
|
+
{
|
|
714
|
+
"type": "error",
|
|
715
|
+
"name": "Create2EmptyBytecode",
|
|
716
|
+
"inputs": []
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"type": "error",
|
|
720
|
+
"name": "Create2FailedDeployment",
|
|
721
|
+
"inputs": []
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"type": "error",
|
|
725
|
+
"name": "Create2InsufficientBalance",
|
|
726
|
+
"inputs": [
|
|
727
|
+
{
|
|
728
|
+
"name": "balance",
|
|
729
|
+
"type": "uint256",
|
|
730
|
+
"internalType": "uint256"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "needed",
|
|
734
|
+
"type": "uint256",
|
|
735
|
+
"internalType": "uint256"
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"type": "error",
|
|
741
|
+
"name": "HookNotDeployed",
|
|
742
|
+
"inputs": []
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"type": "error",
|
|
746
|
+
"name": "InvalidHookAddress",
|
|
747
|
+
"inputs": [
|
|
748
|
+
{
|
|
749
|
+
"name": "expected",
|
|
750
|
+
"type": "address",
|
|
751
|
+
"internalType": "address"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "actual",
|
|
755
|
+
"type": "address",
|
|
756
|
+
"internalType": "address"
|
|
757
|
+
}
|
|
758
|
+
]
|
|
759
|
+
},
|
|
804
760
|
{
|
|
805
761
|
"type": "error",
|
|
806
762
|
"name": "InvalidTickRangeMisordered",
|
package/abis/ERC20.json
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "allowance",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "owner",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "spender",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "",
|
|
20
|
+
"type": "uint256",
|
|
21
|
+
"internalType": "uint256"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "view"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "function",
|
|
28
|
+
"name": "approve",
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "spender",
|
|
32
|
+
"type": "address",
|
|
33
|
+
"internalType": "address"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "value",
|
|
37
|
+
"type": "uint256",
|
|
38
|
+
"internalType": "uint256"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"outputs": [
|
|
42
|
+
{
|
|
43
|
+
"name": "",
|
|
44
|
+
"type": "bool",
|
|
45
|
+
"internalType": "bool"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"stateMutability": "nonpayable"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "function",
|
|
52
|
+
"name": "balanceOf",
|
|
53
|
+
"inputs": [
|
|
54
|
+
{
|
|
55
|
+
"name": "account",
|
|
56
|
+
"type": "address",
|
|
57
|
+
"internalType": "address"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"outputs": [
|
|
61
|
+
{
|
|
62
|
+
"name": "",
|
|
63
|
+
"type": "uint256",
|
|
64
|
+
"internalType": "uint256"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"stateMutability": "view"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "function",
|
|
71
|
+
"name": "decimals",
|
|
72
|
+
"inputs": [],
|
|
73
|
+
"outputs": [
|
|
74
|
+
{
|
|
75
|
+
"name": "",
|
|
76
|
+
"type": "uint8",
|
|
77
|
+
"internalType": "uint8"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"stateMutability": "view"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "function",
|
|
84
|
+
"name": "name",
|
|
85
|
+
"inputs": [],
|
|
86
|
+
"outputs": [
|
|
87
|
+
{
|
|
88
|
+
"name": "",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"internalType": "string"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"stateMutability": "view"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "function",
|
|
97
|
+
"name": "symbol",
|
|
98
|
+
"inputs": [],
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"name": "",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"internalType": "string"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "view"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "function",
|
|
110
|
+
"name": "totalSupply",
|
|
111
|
+
"inputs": [],
|
|
112
|
+
"outputs": [
|
|
113
|
+
{
|
|
114
|
+
"name": "",
|
|
115
|
+
"type": "uint256",
|
|
116
|
+
"internalType": "uint256"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"stateMutability": "view"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "function",
|
|
123
|
+
"name": "transfer",
|
|
124
|
+
"inputs": [
|
|
125
|
+
{
|
|
126
|
+
"name": "to",
|
|
127
|
+
"type": "address",
|
|
128
|
+
"internalType": "address"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "value",
|
|
132
|
+
"type": "uint256",
|
|
133
|
+
"internalType": "uint256"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"outputs": [
|
|
137
|
+
{
|
|
138
|
+
"name": "",
|
|
139
|
+
"type": "bool",
|
|
140
|
+
"internalType": "bool"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"stateMutability": "nonpayable"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "function",
|
|
147
|
+
"name": "transferFrom",
|
|
148
|
+
"inputs": [
|
|
149
|
+
{
|
|
150
|
+
"name": "from",
|
|
151
|
+
"type": "address",
|
|
152
|
+
"internalType": "address"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "to",
|
|
156
|
+
"type": "address",
|
|
157
|
+
"internalType": "address"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "value",
|
|
161
|
+
"type": "uint256",
|
|
162
|
+
"internalType": "uint256"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"outputs": [
|
|
166
|
+
{
|
|
167
|
+
"name": "",
|
|
168
|
+
"type": "bool",
|
|
169
|
+
"internalType": "bool"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"stateMutability": "nonpayable"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "event",
|
|
176
|
+
"name": "Approval",
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"name": "owner",
|
|
180
|
+
"type": "address",
|
|
181
|
+
"indexed": true,
|
|
182
|
+
"internalType": "address"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "spender",
|
|
186
|
+
"type": "address",
|
|
187
|
+
"indexed": true,
|
|
188
|
+
"internalType": "address"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "value",
|
|
192
|
+
"type": "uint256",
|
|
193
|
+
"indexed": false,
|
|
194
|
+
"internalType": "uint256"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"anonymous": false
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "event",
|
|
201
|
+
"name": "Transfer",
|
|
202
|
+
"inputs": [
|
|
203
|
+
{
|
|
204
|
+
"name": "from",
|
|
205
|
+
"type": "address",
|
|
206
|
+
"indexed": true,
|
|
207
|
+
"internalType": "address"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "to",
|
|
211
|
+
"type": "address",
|
|
212
|
+
"indexed": true,
|
|
213
|
+
"internalType": "address"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "value",
|
|
217
|
+
"type": "uint256",
|
|
218
|
+
"indexed": false,
|
|
219
|
+
"internalType": "uint256"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"anonymous": false
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "error",
|
|
226
|
+
"name": "ERC20InsufficientAllowance",
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"name": "spender",
|
|
230
|
+
"type": "address",
|
|
231
|
+
"internalType": "address"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "allowance",
|
|
235
|
+
"type": "uint256",
|
|
236
|
+
"internalType": "uint256"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "needed",
|
|
240
|
+
"type": "uint256",
|
|
241
|
+
"internalType": "uint256"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "error",
|
|
247
|
+
"name": "ERC20InsufficientBalance",
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"name": "sender",
|
|
251
|
+
"type": "address",
|
|
252
|
+
"internalType": "address"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "balance",
|
|
256
|
+
"type": "uint256",
|
|
257
|
+
"internalType": "uint256"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "needed",
|
|
261
|
+
"type": "uint256",
|
|
262
|
+
"internalType": "uint256"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "error",
|
|
268
|
+
"name": "ERC20InvalidApprover",
|
|
269
|
+
"inputs": [
|
|
270
|
+
{
|
|
271
|
+
"name": "approver",
|
|
272
|
+
"type": "address",
|
|
273
|
+
"internalType": "address"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "error",
|
|
279
|
+
"name": "ERC20InvalidReceiver",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "receiver",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"internalType": "address"
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "error",
|
|
290
|
+
"name": "ERC20InvalidSender",
|
|
291
|
+
"inputs": [
|
|
292
|
+
{
|
|
293
|
+
"name": "sender",
|
|
294
|
+
"type": "address",
|
|
295
|
+
"internalType": "address"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "error",
|
|
301
|
+
"name": "ERC20InvalidSpender",
|
|
302
|
+
"inputs": [
|
|
303
|
+
{
|
|
304
|
+
"name": "spender",
|
|
305
|
+
"type": "address",
|
|
306
|
+
"internalType": "address"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
]
|
package/abis/FactoryTest.json
CHANGED
|
@@ -223,6 +223,44 @@
|
|
|
223
223
|
],
|
|
224
224
|
"stateMutability": "view"
|
|
225
225
|
},
|
|
226
|
+
{
|
|
227
|
+
"type": "function",
|
|
228
|
+
"name": "test_coinAddress_canBePredicted",
|
|
229
|
+
"inputs": [
|
|
230
|
+
{
|
|
231
|
+
"name": "msgSenderChanged",
|
|
232
|
+
"type": "bool",
|
|
233
|
+
"internalType": "bool"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "saltChanged",
|
|
237
|
+
"type": "bool",
|
|
238
|
+
"internalType": "bool"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "poolConfigChanged",
|
|
242
|
+
"type": "bool",
|
|
243
|
+
"internalType": "bool"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "platformReferrerChanged",
|
|
247
|
+
"type": "bool",
|
|
248
|
+
"internalType": "bool"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "nameChanged",
|
|
252
|
+
"type": "bool",
|
|
253
|
+
"internalType": "bool"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "symbolChanged",
|
|
257
|
+
"type": "bool",
|
|
258
|
+
"internalType": "bool"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"outputs": [],
|
|
262
|
+
"stateMutability": "nonpayable"
|
|
263
|
+
},
|
|
226
264
|
{
|
|
227
265
|
"type": "function",
|
|
228
266
|
"name": "test_constructor",
|
|
@@ -326,13 +364,6 @@
|
|
|
326
364
|
"outputs": [],
|
|
327
365
|
"stateMutability": "view"
|
|
328
366
|
},
|
|
329
|
-
{
|
|
330
|
-
"type": "function",
|
|
331
|
-
"name": "test_revert_deploy_with_invalid_currency_tick",
|
|
332
|
-
"inputs": [],
|
|
333
|
-
"outputs": [],
|
|
334
|
-
"stateMutability": "nonpayable"
|
|
335
|
-
},
|
|
336
367
|
{
|
|
337
368
|
"type": "function",
|
|
338
369
|
"name": "test_revert_invalid_owner",
|
|
@@ -767,5 +798,52 @@
|
|
|
767
798
|
}
|
|
768
799
|
],
|
|
769
800
|
"anonymous": false
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "error",
|
|
804
|
+
"name": "Create2EmptyBytecode",
|
|
805
|
+
"inputs": []
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"type": "error",
|
|
809
|
+
"name": "Create2FailedDeployment",
|
|
810
|
+
"inputs": []
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"type": "error",
|
|
814
|
+
"name": "Create2InsufficientBalance",
|
|
815
|
+
"inputs": [
|
|
816
|
+
{
|
|
817
|
+
"name": "balance",
|
|
818
|
+
"type": "uint256",
|
|
819
|
+
"internalType": "uint256"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "needed",
|
|
823
|
+
"type": "uint256",
|
|
824
|
+
"internalType": "uint256"
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"type": "error",
|
|
830
|
+
"name": "HookNotDeployed",
|
|
831
|
+
"inputs": []
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"type": "error",
|
|
835
|
+
"name": "InvalidHookAddress",
|
|
836
|
+
"inputs": [
|
|
837
|
+
{
|
|
838
|
+
"name": "expected",
|
|
839
|
+
"type": "address",
|
|
840
|
+
"internalType": "address"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"name": "actual",
|
|
844
|
+
"type": "address",
|
|
845
|
+
"internalType": "address"
|
|
846
|
+
}
|
|
847
|
+
]
|
|
770
848
|
}
|
|
771
849
|
]
|