@zoralabs/coins 0.7.1 → 0.9.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/.env +1 -0
- package/.turbo/turbo-build.log +114 -109
- package/.turbo/turbo-update-contract-version.log +22 -0
- package/CHANGELOG.md +28 -0
- package/abis/BadImpl.json +15 -0
- package/abis/BalanceDeltaLibrary.json +15 -0
- package/abis/BaseCoin.json +1442 -0
- package/abis/BaseCoinDeployHook.json +78 -0
- package/abis/BaseHook.json +897 -0
- package/abis/BaseTest.json +13 -91
- package/abis/BeforeSwapDeltaLibrary.json +15 -0
- package/abis/BuySupplyWithSwapRouterHook.json +126 -0
- package/abis/Coin.json +48 -92
- package/abis/CoinConstants.json +65 -0
- package/abis/CoinTest.json +13 -91
- package/abis/CoinV4.json +1664 -0
- package/abis/CurrencyLibrary.json +25 -0
- package/abis/DeployHooks.json +9 -0
- package/abis/DopplerUniswapV3Test.json +13 -91
- package/abis/FactoryTest.json +13 -91
- package/abis/FakeHookNoInterface.json +21 -0
- package/abis/HookDeployer.json +68 -0
- package/abis/Hooks.json +28 -0
- package/abis/HooksTest.json +651 -0
- package/abis/IAllowanceTransfer.json +486 -0
- package/abis/ICoin.json +25 -1
- package/abis/ICoinDeployHook.json +31 -0
- package/abis/IContractMetadata.json +28 -0
- package/abis/IEIP712.json +15 -0
- package/abis/IEIP712_v4.json +15 -0
- package/abis/IERC20Minimal.json +172 -0
- package/abis/IERC6909Claims.json +288 -0
- package/abis/IERC721Permit_v4.json +88 -0
- package/abis/IExtsload.json +64 -0
- package/abis/IExttload.json +40 -0
- package/abis/IHasAfterCoinDeploy.json +31 -0
- package/abis/IHasContractName.json +15 -0
- package/abis/IHookDeployer.json +42 -0
- package/abis/IHooks.json +789 -0
- package/abis/IImmutableState.json +15 -0
- package/abis/IMulticall_v4.json +21 -0
- package/abis/INotifier.json +187 -0
- package/abis/IPermit2.json +865 -0
- package/abis/IPermit2Forwarder.json +138 -0
- package/abis/IPoolInitializer_v4.json +53 -0
- package/abis/IPoolManager.json +1286 -0
- package/abis/IPositionManager.json +712 -0
- package/abis/IProtocolFees.json +174 -0
- package/abis/ISignatureTransfer.json +394 -0
- package/abis/ISubscriber.json +89 -0
- package/abis/ISwapRouter.json +82 -0
- package/abis/IUnorderedNonce.json +44 -0
- package/abis/IV4Router.json +47 -0
- package/abis/IZoraFactory.json +144 -0
- package/abis/IZoraV4CoinHook.json +83 -0
- package/abis/ImmutableState.json +36 -0
- package/abis/LPFeeLibrary.json +65 -0
- package/abis/MultiOwnableTest.json +13 -91
- package/abis/Simulate.json +0 -91
- package/abis/UniV3BuySell.json +12 -0
- package/abis/UniV3Errors.json +32 -0
- package/abis/UpgradeFactoryImpl.json +9 -0
- package/abis/UpgradesTest.json +604 -0
- package/abis/ZoraFactoryImpl.json +111 -0
- package/abis/ZoraV4CoinHook.json +989 -0
- package/addresses/8453.json +2 -1
- package/addresses/84532.json +4 -3
- package/dist/index.cjs +125 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -56
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +212 -464
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +122 -66
- package/package.json +4 -4
- package/script/CoinsDeployerBase.sol +32 -0
- package/script/DeployHooks.s.sol +22 -0
- package/script/Simulate.s.sol +3 -2
- package/script/UpgradeCoinImpl.sol +2 -2
- package/script/UpgradeFactoryImpl.s.sol +23 -0
- package/src/Coin.sol +35 -342
- package/src/ZoraFactoryImpl.sol +73 -45
- package/src/hooks/BaseCoinDeployHook.sol +62 -0
- package/src/hooks/BuySupplyWithSwapRouterHook.sol +78 -0
- package/src/interfaces/ICoin.sol +5 -1
- package/src/interfaces/ICoinDeployHook.sol +8 -0
- package/src/interfaces/ISwapRouter.sol +1 -35
- package/src/interfaces/IZoraFactory.sol +52 -0
- package/src/{utils → libs}/CoinConstants.sol +6 -6
- package/src/libs/CoinLegacy.sol +4 -4
- package/src/libs/CoinLegacyMarket.sol +182 -0
- package/src/libs/CoinSetupV3.sol +111 -0
- package/src/libs/UniV3BuySell.sol +449 -0
- package/src/libs/UniV3Errors.sol +11 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +20 -17
- package/test/CoinDopplerUniV3.t.sol +7 -17
- package/test/Factory.t.sol +4 -3
- package/test/Hooks.t.sol +274 -0
- package/test/Upgrades.t.sol +67 -0
- package/test/utils/BaseTest.sol +18 -3
- package/wagmi.config.ts +6 -9
- package/src/libs/CoinSetup.sol +0 -37
- /package/abis/{CoinSetup.json → CoinSetupV3.json} +0 -0
package/abis/ISwapRouter.json
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "exactInput",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "params",
|
|
8
|
+
"type": "tuple",
|
|
9
|
+
"internalType": "struct ISwapRouter.ExactInputParams",
|
|
10
|
+
"components": [
|
|
11
|
+
{
|
|
12
|
+
"name": "path",
|
|
13
|
+
"type": "bytes",
|
|
14
|
+
"internalType": "bytes"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "recipient",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountIn",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "amountOutMinimum",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"outputs": [
|
|
35
|
+
{
|
|
36
|
+
"name": "amountOut",
|
|
37
|
+
"type": "uint256",
|
|
38
|
+
"internalType": "uint256"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"stateMutability": "payable"
|
|
42
|
+
},
|
|
2
43
|
{
|
|
3
44
|
"type": "function",
|
|
4
45
|
"name": "exactInputSingle",
|
|
@@ -55,6 +96,47 @@
|
|
|
55
96
|
],
|
|
56
97
|
"stateMutability": "payable"
|
|
57
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"type": "function",
|
|
101
|
+
"name": "exactOutput",
|
|
102
|
+
"inputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "params",
|
|
105
|
+
"type": "tuple",
|
|
106
|
+
"internalType": "struct ISwapRouter.ExactOutputParams",
|
|
107
|
+
"components": [
|
|
108
|
+
{
|
|
109
|
+
"name": "path",
|
|
110
|
+
"type": "bytes",
|
|
111
|
+
"internalType": "bytes"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "recipient",
|
|
115
|
+
"type": "address",
|
|
116
|
+
"internalType": "address"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "amountOut",
|
|
120
|
+
"type": "uint256",
|
|
121
|
+
"internalType": "uint256"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "amountInMaximum",
|
|
125
|
+
"type": "uint256",
|
|
126
|
+
"internalType": "uint256"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"outputs": [
|
|
132
|
+
{
|
|
133
|
+
"name": "amountIn",
|
|
134
|
+
"type": "uint256",
|
|
135
|
+
"internalType": "uint256"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"stateMutability": "payable"
|
|
139
|
+
},
|
|
58
140
|
{
|
|
59
141
|
"type": "function",
|
|
60
142
|
"name": "exactOutputSingle",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "nonces",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "owner",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "word",
|
|
13
|
+
"type": "uint256",
|
|
14
|
+
"internalType": "uint256"
|
|
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": "revokeNonce",
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"name": "nonce",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"internalType": "uint256"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"outputs": [],
|
|
37
|
+
"stateMutability": "payable"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "error",
|
|
41
|
+
"name": "NonceAlreadyUsed",
|
|
42
|
+
"inputs": []
|
|
43
|
+
}
|
|
44
|
+
]
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "poolManager",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "address",
|
|
10
|
+
"internalType": "contract IPoolManager"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "error",
|
|
17
|
+
"name": "V4TooLittleReceived",
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"name": "minAmountOutReceived",
|
|
21
|
+
"type": "uint256",
|
|
22
|
+
"internalType": "uint256"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "amountReceived",
|
|
26
|
+
"type": "uint256",
|
|
27
|
+
"internalType": "uint256"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "error",
|
|
33
|
+
"name": "V4TooMuchRequested",
|
|
34
|
+
"inputs": [
|
|
35
|
+
{
|
|
36
|
+
"name": "maxAmountInRequested",
|
|
37
|
+
"type": "uint256",
|
|
38
|
+
"internalType": "uint256"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "amountRequested",
|
|
42
|
+
"type": "uint256",
|
|
43
|
+
"internalType": "uint256"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
package/abis/IZoraFactory.json
CHANGED
|
@@ -63,6 +63,129 @@
|
|
|
63
63
|
],
|
|
64
64
|
"stateMutability": "payable"
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
"type": "function",
|
|
68
|
+
"name": "deploy",
|
|
69
|
+
"inputs": [
|
|
70
|
+
{
|
|
71
|
+
"name": "payoutRecipient",
|
|
72
|
+
"type": "address",
|
|
73
|
+
"internalType": "address"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "owners",
|
|
77
|
+
"type": "address[]",
|
|
78
|
+
"internalType": "address[]"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "uri",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"internalType": "string"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "name",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"internalType": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "symbol",
|
|
92
|
+
"type": "string",
|
|
93
|
+
"internalType": "string"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "poolConfig",
|
|
97
|
+
"type": "bytes",
|
|
98
|
+
"internalType": "bytes"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "platformReferrer",
|
|
102
|
+
"type": "address",
|
|
103
|
+
"internalType": "address"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "orderSize",
|
|
107
|
+
"type": "uint256",
|
|
108
|
+
"internalType": "uint256"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"outputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "",
|
|
114
|
+
"type": "address",
|
|
115
|
+
"internalType": "address"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "",
|
|
119
|
+
"type": "uint256",
|
|
120
|
+
"internalType": "uint256"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"stateMutability": "payable"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "function",
|
|
127
|
+
"name": "deployWithHook",
|
|
128
|
+
"inputs": [
|
|
129
|
+
{
|
|
130
|
+
"name": "payoutRecipient",
|
|
131
|
+
"type": "address",
|
|
132
|
+
"internalType": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "owners",
|
|
136
|
+
"type": "address[]",
|
|
137
|
+
"internalType": "address[]"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "uri",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"internalType": "string"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "name",
|
|
146
|
+
"type": "string",
|
|
147
|
+
"internalType": "string"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "symbol",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"internalType": "string"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "poolConfig",
|
|
156
|
+
"type": "bytes",
|
|
157
|
+
"internalType": "bytes"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "platformReferrer",
|
|
161
|
+
"type": "address",
|
|
162
|
+
"internalType": "address"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "hook",
|
|
166
|
+
"type": "address",
|
|
167
|
+
"internalType": "address"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "hookData",
|
|
171
|
+
"type": "bytes",
|
|
172
|
+
"internalType": "bytes"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"outputs": [
|
|
176
|
+
{
|
|
177
|
+
"name": "coin",
|
|
178
|
+
"type": "address",
|
|
179
|
+
"internalType": "address"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "hookDataOut",
|
|
183
|
+
"type": "bytes",
|
|
184
|
+
"internalType": "bytes"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"stateMutability": "payable"
|
|
188
|
+
},
|
|
66
189
|
{
|
|
67
190
|
"type": "event",
|
|
68
191
|
"name": "CoinCreated",
|
|
@@ -139,5 +262,26 @@
|
|
|
139
262
|
"type": "error",
|
|
140
263
|
"name": "EthTransferInvalid",
|
|
141
264
|
"inputs": []
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "error",
|
|
268
|
+
"name": "InvalidHook",
|
|
269
|
+
"inputs": []
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "error",
|
|
273
|
+
"name": "UpgradeToMismatchedContractName",
|
|
274
|
+
"inputs": [
|
|
275
|
+
{
|
|
276
|
+
"name": "currentName",
|
|
277
|
+
"type": "string",
|
|
278
|
+
"internalType": "string"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "newName",
|
|
282
|
+
"type": "string",
|
|
283
|
+
"internalType": "string"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
142
286
|
}
|
|
143
287
|
]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "Swapped",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "sender",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": false,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "key",
|
|
14
|
+
"type": "tuple",
|
|
15
|
+
"indexed": false,
|
|
16
|
+
"internalType": "struct PoolKey",
|
|
17
|
+
"components": [
|
|
18
|
+
{
|
|
19
|
+
"name": "currency0",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"internalType": "Currency"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "currency1",
|
|
25
|
+
"type": "address",
|
|
26
|
+
"internalType": "Currency"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "fee",
|
|
30
|
+
"type": "uint24",
|
|
31
|
+
"internalType": "uint24"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "tickSpacing",
|
|
35
|
+
"type": "int24",
|
|
36
|
+
"internalType": "int24"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "hooks",
|
|
40
|
+
"type": "address",
|
|
41
|
+
"internalType": "contract IHooks"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "params",
|
|
47
|
+
"type": "tuple",
|
|
48
|
+
"indexed": false,
|
|
49
|
+
"internalType": "struct SwapParams",
|
|
50
|
+
"components": [
|
|
51
|
+
{
|
|
52
|
+
"name": "zeroForOne",
|
|
53
|
+
"type": "bool",
|
|
54
|
+
"internalType": "bool"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "amountSpecified",
|
|
58
|
+
"type": "int256",
|
|
59
|
+
"internalType": "int256"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "sqrtPriceLimitX96",
|
|
63
|
+
"type": "uint160",
|
|
64
|
+
"internalType": "uint160"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "delta",
|
|
70
|
+
"type": "int256",
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "BalanceDelta"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "hookData",
|
|
76
|
+
"type": "bytes",
|
|
77
|
+
"indexed": false,
|
|
78
|
+
"internalType": "bytes"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"anonymous": false
|
|
82
|
+
}
|
|
83
|
+
]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "_factory",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "contract IZoraFactory"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"stateMutability": "nonpayable"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "function",
|
|
15
|
+
"name": "factory",
|
|
16
|
+
"inputs": [],
|
|
17
|
+
"outputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"internalType": "contract IZoraFactory"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "view"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "error",
|
|
28
|
+
"name": "AddressZero",
|
|
29
|
+
"inputs": []
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "error",
|
|
33
|
+
"name": "NotFactory",
|
|
34
|
+
"inputs": []
|
|
35
|
+
}
|
|
36
|
+
]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "DYNAMIC_FEE_FLAG",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "uint24",
|
|
10
|
+
"internalType": "uint24"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "MAX_LP_FEE",
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "",
|
|
22
|
+
"type": "uint24",
|
|
23
|
+
"internalType": "uint24"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "view"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "OVERRIDE_FEE_FLAG",
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"outputs": [
|
|
33
|
+
{
|
|
34
|
+
"name": "",
|
|
35
|
+
"type": "uint24",
|
|
36
|
+
"internalType": "uint24"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"stateMutability": "view"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "function",
|
|
43
|
+
"name": "REMOVE_OVERRIDE_MASK",
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "",
|
|
48
|
+
"type": "uint24",
|
|
49
|
+
"internalType": "uint24"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"stateMutability": "view"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "error",
|
|
56
|
+
"name": "LPFeeTooLarge",
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"name": "fee",
|
|
60
|
+
"type": "uint24",
|
|
61
|
+
"internalType": "uint24"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
@@ -12,97 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"stateMutability": "view"
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
"type": "function",
|
|
17
|
-
"name": "MAX_TOTAL_SUPPLY",
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"outputs": [
|
|
20
|
-
{
|
|
21
|
-
"name": "",
|
|
22
|
-
"type": "uint256",
|
|
23
|
-
"internalType": "uint256"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"stateMutability": "view"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "function",
|
|
30
|
-
"name": "MIN_ORDER_SIZE",
|
|
31
|
-
"inputs": [],
|
|
32
|
-
"outputs": [
|
|
33
|
-
{
|
|
34
|
-
"name": "",
|
|
35
|
-
"type": "uint256",
|
|
36
|
-
"internalType": "uint256"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"stateMutability": "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "function",
|
|
43
|
-
"name": "PLATFORM_REFERRER_FEE_BPS",
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"outputs": [
|
|
46
|
-
{
|
|
47
|
-
"name": "",
|
|
48
|
-
"type": "uint256",
|
|
49
|
-
"internalType": "uint256"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"stateMutability": "view"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "function",
|
|
56
|
-
"name": "PROTOCOL_FEE_BPS",
|
|
57
|
-
"inputs": [],
|
|
58
|
-
"outputs": [
|
|
59
|
-
{
|
|
60
|
-
"name": "",
|
|
61
|
-
"type": "uint256",
|
|
62
|
-
"internalType": "uint256"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"stateMutability": "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "function",
|
|
69
|
-
"name": "TOKEN_CREATOR_FEE_BPS",
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"name": "",
|
|
74
|
-
"type": "uint256",
|
|
75
|
-
"internalType": "uint256"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"stateMutability": "view"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "function",
|
|
82
|
-
"name": "TOTAL_FEE_BPS",
|
|
83
|
-
"inputs": [],
|
|
84
|
-
"outputs": [
|
|
85
|
-
{
|
|
86
|
-
"name": "",
|
|
87
|
-
"type": "uint256",
|
|
88
|
-
"internalType": "uint256"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"stateMutability": "view"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "function",
|
|
95
|
-
"name": "TRADE_REFERRER_FEE_BPS",
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"outputs": [
|
|
98
|
-
{
|
|
99
|
-
"name": "",
|
|
100
|
-
"type": "uint256",
|
|
101
|
-
"internalType": "uint256"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"stateMutability": "view"
|
|
105
|
-
},
|
|
106
15
|
{
|
|
107
16
|
"type": "function",
|
|
108
17
|
"name": "excludeArtifacts",
|
|
@@ -187,6 +96,19 @@
|
|
|
187
96
|
"outputs": [],
|
|
188
97
|
"stateMutability": "nonpayable"
|
|
189
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"type": "function",
|
|
101
|
+
"name": "setUpWithBlockNumber",
|
|
102
|
+
"inputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "forkBlockNumber",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"outputs": [],
|
|
110
|
+
"stateMutability": "nonpayable"
|
|
111
|
+
},
|
|
190
112
|
{
|
|
191
113
|
"type": "function",
|
|
192
114
|
"name": "targetArtifactSelectors",
|