@zoralabs/coins 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +102 -97
- package/CHANGELOG.md +14 -0
- package/LICENSE +90 -21
- package/abis/BaseCoin.json +6 -1
- package/abis/BaseZoraV4CoinHook.json +119 -0
- package/abis/Coin.json +6 -1
- package/abis/CoinTest.json +14 -0
- package/abis/CoinV4.json +6 -1
- package/abis/ContentCoinHook.json +119 -0
- package/abis/CreatorCoin.json +6 -1
- package/abis/CreatorCoinHook.json +119 -0
- package/abis/ERC165.json +21 -0
- package/abis/ERC165Upgradeable.json +44 -0
- package/abis/FeeEstimatorHook.json +119 -0
- package/abis/ICoin.json +5 -0
- package/abis/ICoinV3.json +5 -0
- package/abis/ICoinV4.json +5 -0
- package/abis/ICreatorCoin.json +5 -0
- package/abis/LiquidityMigrationTest.json +7 -0
- package/abis/UpgradeHooks.json +35 -0
- package/abis/UpgradesTest.json +21 -0
- package/addresses/8453.json +11 -7
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +15 -3
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +6 -3
- package/package.json +1 -1
- package/script/DeployUpgradeGate.s.sol +1 -1
- package/script/PrintRegisterUpgradePath.s.sol +35 -0
- package/script/UpgradeCoinImpl.sol +1 -1
- package/script/UpgradeHooks.s.sol +23 -0
- package/src/BaseCoin.sol +32 -10
- package/src/Coin.sol +7 -1
- package/src/CoinV4.sol +9 -3
- package/src/CreatorCoin.sol +7 -1
- package/src/ZoraFactoryImpl.sol +7 -1
- package/src/deployment/CoinsDeployerBase.sol +29 -9
- package/src/hooks/BaseZoraV4CoinHook.sol +124 -4
- package/src/hooks/ContentCoinHook.sol +7 -1
- package/src/hooks/CreatorCoinHook.sol +7 -1
- package/src/hooks/HookUpgradeGate.sol +7 -1
- package/src/interfaces/ICoin.sol +3 -0
- package/src/libs/CoinCommon.sol +7 -1
- package/src/libs/CoinConfigurationVersions.sol +7 -1
- package/src/libs/CoinConstants.sol +7 -1
- package/src/libs/CoinDopplerMultiCurve.sol +7 -1
- package/src/libs/CoinRewards.sol +7 -1
- package/src/libs/CoinRewardsV4.sol +25 -5
- package/src/libs/CoinSetup.sol +7 -1
- package/src/libs/CreatorCoinConstants.sol +7 -1
- package/src/libs/CreatorCoinRewards.sol +7 -1
- package/src/libs/DopplerMath.sol +7 -1
- package/src/libs/HooksDeployment.sol +20 -1
- package/src/libs/PoolStateReader.sol +7 -1
- package/src/libs/UniV4SwapHelper.sol +7 -1
- package/src/libs/UniV4SwapToCurrency.sol +7 -1
- package/src/libs/V4Liquidity.sol +34 -1
- package/src/types/PoolConfiguration.sol +7 -1
- package/src/utils/AutoSwapper.sol +7 -1
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +23 -0
- package/test/LiquidityMigration.t.sol +27 -0
- package/test/Upgrades.t.sol +180 -1
- package/test/utils/BaseTest.sol +5 -1
- /package/script/{DeployHooks.s.sol → DeployPostDeploymentHooks.s.sol} +0 -0
|
@@ -812,6 +812,19 @@
|
|
|
812
812
|
],
|
|
813
813
|
"stateMutability": "nonpayable"
|
|
814
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"type": "function",
|
|
817
|
+
"name": "contractVersion",
|
|
818
|
+
"inputs": [],
|
|
819
|
+
"outputs": [
|
|
820
|
+
{
|
|
821
|
+
"name": "",
|
|
822
|
+
"type": "string",
|
|
823
|
+
"internalType": "string"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"stateMutability": "pure"
|
|
827
|
+
},
|
|
815
828
|
{
|
|
816
829
|
"type": "function",
|
|
817
830
|
"name": "getHookPermissions",
|
|
@@ -1020,6 +1033,88 @@
|
|
|
1020
1033
|
],
|
|
1021
1034
|
"stateMutability": "view"
|
|
1022
1035
|
},
|
|
1036
|
+
{
|
|
1037
|
+
"type": "function",
|
|
1038
|
+
"name": "initializeFromMigration",
|
|
1039
|
+
"inputs": [
|
|
1040
|
+
{
|
|
1041
|
+
"name": "poolKey",
|
|
1042
|
+
"type": "tuple",
|
|
1043
|
+
"internalType": "struct PoolKey",
|
|
1044
|
+
"components": [
|
|
1045
|
+
{
|
|
1046
|
+
"name": "currency0",
|
|
1047
|
+
"type": "address",
|
|
1048
|
+
"internalType": "Currency"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "currency1",
|
|
1052
|
+
"type": "address",
|
|
1053
|
+
"internalType": "Currency"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "fee",
|
|
1057
|
+
"type": "uint24",
|
|
1058
|
+
"internalType": "uint24"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "tickSpacing",
|
|
1062
|
+
"type": "int24",
|
|
1063
|
+
"internalType": "int24"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "hooks",
|
|
1067
|
+
"type": "address",
|
|
1068
|
+
"internalType": "contract IHooks"
|
|
1069
|
+
}
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "coin",
|
|
1074
|
+
"type": "address",
|
|
1075
|
+
"internalType": "address"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "sqrtPriceX96",
|
|
1079
|
+
"type": "uint160",
|
|
1080
|
+
"internalType": "uint160"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "migratedLiquidity",
|
|
1084
|
+
"type": "tuple[]",
|
|
1085
|
+
"internalType": "struct BurnedPosition[]",
|
|
1086
|
+
"components": [
|
|
1087
|
+
{
|
|
1088
|
+
"name": "tickLower",
|
|
1089
|
+
"type": "int24",
|
|
1090
|
+
"internalType": "int24"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "tickUpper",
|
|
1094
|
+
"type": "int24",
|
|
1095
|
+
"internalType": "int24"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "amount0Received",
|
|
1099
|
+
"type": "uint128",
|
|
1100
|
+
"internalType": "uint128"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "amount1Received",
|
|
1104
|
+
"type": "uint128",
|
|
1105
|
+
"internalType": "uint128"
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "",
|
|
1111
|
+
"type": "bytes",
|
|
1112
|
+
"internalType": "bytes"
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"outputs": [],
|
|
1116
|
+
"stateMutability": "nonpayable"
|
|
1117
|
+
},
|
|
1023
1118
|
{
|
|
1024
1119
|
"type": "function",
|
|
1025
1120
|
"name": "isTrustedMessageSender",
|
|
@@ -1135,6 +1230,25 @@
|
|
|
1135
1230
|
],
|
|
1136
1231
|
"stateMutability": "view"
|
|
1137
1232
|
},
|
|
1233
|
+
{
|
|
1234
|
+
"type": "function",
|
|
1235
|
+
"name": "supportsInterface",
|
|
1236
|
+
"inputs": [
|
|
1237
|
+
{
|
|
1238
|
+
"name": "interfaceId",
|
|
1239
|
+
"type": "bytes4",
|
|
1240
|
+
"internalType": "bytes4"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"outputs": [
|
|
1244
|
+
{
|
|
1245
|
+
"name": "",
|
|
1246
|
+
"type": "bool",
|
|
1247
|
+
"internalType": "bool"
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
"stateMutability": "view"
|
|
1251
|
+
},
|
|
1138
1252
|
{
|
|
1139
1253
|
"type": "function",
|
|
1140
1254
|
"name": "unlockCallback",
|
|
@@ -1575,6 +1689,11 @@
|
|
|
1575
1689
|
"name": "PathMustHaveAtLeastOneStep",
|
|
1576
1690
|
"inputs": []
|
|
1577
1691
|
},
|
|
1692
|
+
{
|
|
1693
|
+
"type": "error",
|
|
1694
|
+
"name": "SafeCastOverflow",
|
|
1695
|
+
"inputs": []
|
|
1696
|
+
},
|
|
1578
1697
|
{
|
|
1579
1698
|
"type": "error",
|
|
1580
1699
|
"name": "SafeERC20FailedOperation",
|
package/abis/CreatorCoin.json
CHANGED
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
"internalType": "bool"
|
|
902
902
|
}
|
|
903
903
|
],
|
|
904
|
-
"stateMutability": "
|
|
904
|
+
"stateMutability": "view"
|
|
905
905
|
},
|
|
906
906
|
{
|
|
907
907
|
"type": "function",
|
|
@@ -1899,6 +1899,11 @@
|
|
|
1899
1899
|
}
|
|
1900
1900
|
]
|
|
1901
1901
|
},
|
|
1902
|
+
{
|
|
1903
|
+
"type": "error",
|
|
1904
|
+
"name": "NameIsRequired",
|
|
1905
|
+
"inputs": []
|
|
1906
|
+
},
|
|
1902
1907
|
{
|
|
1903
1908
|
"type": "error",
|
|
1904
1909
|
"name": "NotInitializing",
|
|
@@ -812,6 +812,19 @@
|
|
|
812
812
|
],
|
|
813
813
|
"stateMutability": "nonpayable"
|
|
814
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"type": "function",
|
|
817
|
+
"name": "contractVersion",
|
|
818
|
+
"inputs": [],
|
|
819
|
+
"outputs": [
|
|
820
|
+
{
|
|
821
|
+
"name": "",
|
|
822
|
+
"type": "string",
|
|
823
|
+
"internalType": "string"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"stateMutability": "pure"
|
|
827
|
+
},
|
|
815
828
|
{
|
|
816
829
|
"type": "function",
|
|
817
830
|
"name": "getHookPermissions",
|
|
@@ -1020,6 +1033,88 @@
|
|
|
1020
1033
|
],
|
|
1021
1034
|
"stateMutability": "view"
|
|
1022
1035
|
},
|
|
1036
|
+
{
|
|
1037
|
+
"type": "function",
|
|
1038
|
+
"name": "initializeFromMigration",
|
|
1039
|
+
"inputs": [
|
|
1040
|
+
{
|
|
1041
|
+
"name": "poolKey",
|
|
1042
|
+
"type": "tuple",
|
|
1043
|
+
"internalType": "struct PoolKey",
|
|
1044
|
+
"components": [
|
|
1045
|
+
{
|
|
1046
|
+
"name": "currency0",
|
|
1047
|
+
"type": "address",
|
|
1048
|
+
"internalType": "Currency"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "currency1",
|
|
1052
|
+
"type": "address",
|
|
1053
|
+
"internalType": "Currency"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "fee",
|
|
1057
|
+
"type": "uint24",
|
|
1058
|
+
"internalType": "uint24"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "tickSpacing",
|
|
1062
|
+
"type": "int24",
|
|
1063
|
+
"internalType": "int24"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "hooks",
|
|
1067
|
+
"type": "address",
|
|
1068
|
+
"internalType": "contract IHooks"
|
|
1069
|
+
}
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "coin",
|
|
1074
|
+
"type": "address",
|
|
1075
|
+
"internalType": "address"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "sqrtPriceX96",
|
|
1079
|
+
"type": "uint160",
|
|
1080
|
+
"internalType": "uint160"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "migratedLiquidity",
|
|
1084
|
+
"type": "tuple[]",
|
|
1085
|
+
"internalType": "struct BurnedPosition[]",
|
|
1086
|
+
"components": [
|
|
1087
|
+
{
|
|
1088
|
+
"name": "tickLower",
|
|
1089
|
+
"type": "int24",
|
|
1090
|
+
"internalType": "int24"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "tickUpper",
|
|
1094
|
+
"type": "int24",
|
|
1095
|
+
"internalType": "int24"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "amount0Received",
|
|
1099
|
+
"type": "uint128",
|
|
1100
|
+
"internalType": "uint128"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "amount1Received",
|
|
1104
|
+
"type": "uint128",
|
|
1105
|
+
"internalType": "uint128"
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "",
|
|
1111
|
+
"type": "bytes",
|
|
1112
|
+
"internalType": "bytes"
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"outputs": [],
|
|
1116
|
+
"stateMutability": "nonpayable"
|
|
1117
|
+
},
|
|
1023
1118
|
{
|
|
1024
1119
|
"type": "function",
|
|
1025
1120
|
"name": "isTrustedMessageSender",
|
|
@@ -1135,6 +1230,25 @@
|
|
|
1135
1230
|
],
|
|
1136
1231
|
"stateMutability": "view"
|
|
1137
1232
|
},
|
|
1233
|
+
{
|
|
1234
|
+
"type": "function",
|
|
1235
|
+
"name": "supportsInterface",
|
|
1236
|
+
"inputs": [
|
|
1237
|
+
{
|
|
1238
|
+
"name": "interfaceId",
|
|
1239
|
+
"type": "bytes4",
|
|
1240
|
+
"internalType": "bytes4"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"outputs": [
|
|
1244
|
+
{
|
|
1245
|
+
"name": "",
|
|
1246
|
+
"type": "bool",
|
|
1247
|
+
"internalType": "bool"
|
|
1248
|
+
}
|
|
1249
|
+
],
|
|
1250
|
+
"stateMutability": "view"
|
|
1251
|
+
},
|
|
1138
1252
|
{
|
|
1139
1253
|
"type": "function",
|
|
1140
1254
|
"name": "unlockCallback",
|
|
@@ -1618,6 +1732,11 @@
|
|
|
1618
1732
|
"name": "PathMustHaveAtLeastOneStep",
|
|
1619
1733
|
"inputs": []
|
|
1620
1734
|
},
|
|
1735
|
+
{
|
|
1736
|
+
"type": "error",
|
|
1737
|
+
"name": "SafeCastOverflow",
|
|
1738
|
+
"inputs": []
|
|
1739
|
+
},
|
|
1621
1740
|
{
|
|
1622
1741
|
"type": "error",
|
|
1623
1742
|
"name": "SafeERC20FailedOperation",
|
package/abis/ERC165.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "supportsInterface",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "interfaceId",
|
|
8
|
+
"type": "bytes4",
|
|
9
|
+
"internalType": "bytes4"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "bool",
|
|
16
|
+
"internalType": "bool"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "view"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "supportsInterface",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "interfaceId",
|
|
8
|
+
"type": "bytes4",
|
|
9
|
+
"internalType": "bytes4"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"outputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "",
|
|
15
|
+
"type": "bool",
|
|
16
|
+
"internalType": "bool"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"stateMutability": "view"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "event",
|
|
23
|
+
"name": "Initialized",
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "version",
|
|
27
|
+
"type": "uint64",
|
|
28
|
+
"indexed": false,
|
|
29
|
+
"internalType": "uint64"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"anonymous": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "error",
|
|
36
|
+
"name": "InvalidInitialization",
|
|
37
|
+
"inputs": []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "error",
|
|
41
|
+
"name": "NotInitializing",
|
|
42
|
+
"inputs": []
|
|
43
|
+
}
|
|
44
|
+
]
|
|
@@ -812,6 +812,19 @@
|
|
|
812
812
|
],
|
|
813
813
|
"stateMutability": "nonpayable"
|
|
814
814
|
},
|
|
815
|
+
{
|
|
816
|
+
"type": "function",
|
|
817
|
+
"name": "contractVersion",
|
|
818
|
+
"inputs": [],
|
|
819
|
+
"outputs": [
|
|
820
|
+
{
|
|
821
|
+
"name": "",
|
|
822
|
+
"type": "string",
|
|
823
|
+
"internalType": "string"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"stateMutability": "pure"
|
|
827
|
+
},
|
|
815
828
|
{
|
|
816
829
|
"type": "function",
|
|
817
830
|
"name": "feeState",
|
|
@@ -1157,6 +1170,88 @@
|
|
|
1157
1170
|
],
|
|
1158
1171
|
"stateMutability": "view"
|
|
1159
1172
|
},
|
|
1173
|
+
{
|
|
1174
|
+
"type": "function",
|
|
1175
|
+
"name": "initializeFromMigration",
|
|
1176
|
+
"inputs": [
|
|
1177
|
+
{
|
|
1178
|
+
"name": "poolKey",
|
|
1179
|
+
"type": "tuple",
|
|
1180
|
+
"internalType": "struct PoolKey",
|
|
1181
|
+
"components": [
|
|
1182
|
+
{
|
|
1183
|
+
"name": "currency0",
|
|
1184
|
+
"type": "address",
|
|
1185
|
+
"internalType": "Currency"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "currency1",
|
|
1189
|
+
"type": "address",
|
|
1190
|
+
"internalType": "Currency"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "fee",
|
|
1194
|
+
"type": "uint24",
|
|
1195
|
+
"internalType": "uint24"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"name": "tickSpacing",
|
|
1199
|
+
"type": "int24",
|
|
1200
|
+
"internalType": "int24"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "hooks",
|
|
1204
|
+
"type": "address",
|
|
1205
|
+
"internalType": "contract IHooks"
|
|
1206
|
+
}
|
|
1207
|
+
]
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"name": "coin",
|
|
1211
|
+
"type": "address",
|
|
1212
|
+
"internalType": "address"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "sqrtPriceX96",
|
|
1216
|
+
"type": "uint160",
|
|
1217
|
+
"internalType": "uint160"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "migratedLiquidity",
|
|
1221
|
+
"type": "tuple[]",
|
|
1222
|
+
"internalType": "struct BurnedPosition[]",
|
|
1223
|
+
"components": [
|
|
1224
|
+
{
|
|
1225
|
+
"name": "tickLower",
|
|
1226
|
+
"type": "int24",
|
|
1227
|
+
"internalType": "int24"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "tickUpper",
|
|
1231
|
+
"type": "int24",
|
|
1232
|
+
"internalType": "int24"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "amount0Received",
|
|
1236
|
+
"type": "uint128",
|
|
1237
|
+
"internalType": "uint128"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"name": "amount1Received",
|
|
1241
|
+
"type": "uint128",
|
|
1242
|
+
"internalType": "uint128"
|
|
1243
|
+
}
|
|
1244
|
+
]
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "",
|
|
1248
|
+
"type": "bytes",
|
|
1249
|
+
"internalType": "bytes"
|
|
1250
|
+
}
|
|
1251
|
+
],
|
|
1252
|
+
"outputs": [],
|
|
1253
|
+
"stateMutability": "nonpayable"
|
|
1254
|
+
},
|
|
1160
1255
|
{
|
|
1161
1256
|
"type": "function",
|
|
1162
1257
|
"name": "isTrustedMessageSender",
|
|
@@ -1272,6 +1367,25 @@
|
|
|
1272
1367
|
],
|
|
1273
1368
|
"stateMutability": "view"
|
|
1274
1369
|
},
|
|
1370
|
+
{
|
|
1371
|
+
"type": "function",
|
|
1372
|
+
"name": "supportsInterface",
|
|
1373
|
+
"inputs": [
|
|
1374
|
+
{
|
|
1375
|
+
"name": "interfaceId",
|
|
1376
|
+
"type": "bytes4",
|
|
1377
|
+
"internalType": "bytes4"
|
|
1378
|
+
}
|
|
1379
|
+
],
|
|
1380
|
+
"outputs": [
|
|
1381
|
+
{
|
|
1382
|
+
"name": "",
|
|
1383
|
+
"type": "bool",
|
|
1384
|
+
"internalType": "bool"
|
|
1385
|
+
}
|
|
1386
|
+
],
|
|
1387
|
+
"stateMutability": "view"
|
|
1388
|
+
},
|
|
1275
1389
|
{
|
|
1276
1390
|
"type": "function",
|
|
1277
1391
|
"name": "unlockCallback",
|
|
@@ -1680,6 +1794,11 @@
|
|
|
1680
1794
|
"name": "PathMustHaveAtLeastOneStep",
|
|
1681
1795
|
"inputs": []
|
|
1682
1796
|
},
|
|
1797
|
+
{
|
|
1798
|
+
"type": "error",
|
|
1799
|
+
"name": "SafeCastOverflow",
|
|
1800
|
+
"inputs": []
|
|
1801
|
+
},
|
|
1683
1802
|
{
|
|
1684
1803
|
"type": "error",
|
|
1685
1804
|
"name": "UpgradeGateCannotBeZeroAddress",
|
package/abis/ICoin.json
CHANGED
package/abis/ICoinV3.json
CHANGED
package/abis/ICoinV4.json
CHANGED
package/abis/ICreatorCoin.json
CHANGED
|
@@ -254,6 +254,13 @@
|
|
|
254
254
|
"outputs": [],
|
|
255
255
|
"stateMutability": "nonpayable"
|
|
256
256
|
},
|
|
257
|
+
{
|
|
258
|
+
"type": "function",
|
|
259
|
+
"name": "test_migrateLiquidity_enablesSwapsOnOldPoolKey",
|
|
260
|
+
"inputs": [],
|
|
261
|
+
"outputs": [],
|
|
262
|
+
"stateMutability": "nonpayable"
|
|
263
|
+
},
|
|
257
264
|
{
|
|
258
265
|
"type": "function",
|
|
259
266
|
"name": "test_migrateLiquidity_migratesLiquidityToNewHook",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "run",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [],
|
|
7
|
+
"stateMutability": "nonpayable"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "error",
|
|
11
|
+
"name": "Create2EmptyBytecode",
|
|
12
|
+
"inputs": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "error",
|
|
16
|
+
"name": "Create2FailedDeployment",
|
|
17
|
+
"inputs": []
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "error",
|
|
21
|
+
"name": "Create2InsufficientBalance",
|
|
22
|
+
"inputs": [
|
|
23
|
+
{
|
|
24
|
+
"name": "balance",
|
|
25
|
+
"type": "uint256",
|
|
26
|
+
"internalType": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "needed",
|
|
30
|
+
"type": "uint256",
|
|
31
|
+
"internalType": "uint256"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
package/abis/UpgradesTest.json
CHANGED
|
@@ -260,6 +260,13 @@
|
|
|
260
260
|
],
|
|
261
261
|
"stateMutability": "view"
|
|
262
262
|
},
|
|
263
|
+
{
|
|
264
|
+
"type": "function",
|
|
265
|
+
"name": "test_canCanFixBrokenContentCoinAndSwap",
|
|
266
|
+
"inputs": [],
|
|
267
|
+
"outputs": [],
|
|
268
|
+
"stateMutability": "nonpayable"
|
|
269
|
+
},
|
|
263
270
|
{
|
|
264
271
|
"type": "function",
|
|
265
272
|
"name": "test_canUpgradeAndSwap",
|
|
@@ -267,6 +274,20 @@
|
|
|
267
274
|
"outputs": [],
|
|
268
275
|
"stateMutability": "nonpayable"
|
|
269
276
|
},
|
|
277
|
+
{
|
|
278
|
+
"type": "function",
|
|
279
|
+
"name": "test_canUpgradeBrokenContentCoinAndSwap",
|
|
280
|
+
"inputs": [],
|
|
281
|
+
"outputs": [],
|
|
282
|
+
"stateMutability": "nonpayable"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "function",
|
|
286
|
+
"name": "test_canUpgradeBrokenCreatorCoinAndSwap",
|
|
287
|
+
"inputs": [],
|
|
288
|
+
"outputs": [],
|
|
289
|
+
"stateMutability": "nonpayable"
|
|
290
|
+
},
|
|
270
291
|
{
|
|
271
292
|
"type": "function",
|
|
272
293
|
"name": "test_canUpgradeFromVersionWithoutContractName",
|
package/addresses/8453.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"BUY_SUPPLY_WITH_SWAP_ROUTER_HOOK": "
|
|
3
|
-
"COIN_V3_IMPL": "
|
|
4
|
-
"COIN_V4_IMPL": "
|
|
5
|
-
"COIN_VERSION": "1.
|
|
2
|
+
"BUY_SUPPLY_WITH_SWAP_ROUTER_HOOK": "0xc90e349360C43a0217CEF289f231C66D4748960F",
|
|
3
|
+
"COIN_V3_IMPL": "0x45Bf86430af7CD071Ea23aE52325A78C8d12aD5a",
|
|
4
|
+
"COIN_V4_IMPL": "0xca72309AaF706d290E08608b1Af47943902f69b2",
|
|
5
|
+
"COIN_VERSION": "1.1.0",
|
|
6
|
+
"CREATOR_COIN_HOOK": "0x5e5D19d22c85A4aef7C1FdF25fB22A5a38f71040",
|
|
7
|
+
"CREATOR_COIN_HOOK_SALT": "0x0000000000000000000000000000000000000000000000000000000000002989",
|
|
8
|
+
"CREATOR_COIN_IMPL": "0x88CC4E08C7608723f3E44e17aC669Fb43b6A8313",
|
|
9
|
+
"HOOK_UPGRADE_GATE": "0xD88f6BdD765313CaFA5888C177c325E2C3AbF2D2",
|
|
6
10
|
"ZORA_FACTORY": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
7
|
-
"ZORA_FACTORY_IMPL": "
|
|
8
|
-
"ZORA_V4_COIN_HOOK": "
|
|
9
|
-
"ZORA_V4_COIN_HOOK_SALT": "
|
|
11
|
+
"ZORA_FACTORY_IMPL": "0x2dF69e41e848caA24aC3Dd1112C9DDC4F9E728F8",
|
|
12
|
+
"ZORA_V4_COIN_HOOK": "0x5bF219b3Cc11E3f6Dd8dc8fC89D7d1deB0431040",
|
|
13
|
+
"ZORA_V4_COIN_HOOK_SALT": "0x00000000000000000000000000000000000000000000000000000000000003c3"
|
|
10
14
|
}
|