@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
|
@@ -36,6 +36,32 @@
|
|
|
36
36
|
],
|
|
37
37
|
"stateMutability": "view"
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"type": "function",
|
|
41
|
+
"name": "contractName",
|
|
42
|
+
"inputs": [],
|
|
43
|
+
"outputs": [
|
|
44
|
+
{
|
|
45
|
+
"name": "",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"internalType": "string"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"stateMutability": "pure"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "function",
|
|
54
|
+
"name": "contractVersion",
|
|
55
|
+
"inputs": [],
|
|
56
|
+
"outputs": [
|
|
57
|
+
{
|
|
58
|
+
"name": "",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"internalType": "string"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"stateMutability": "pure"
|
|
64
|
+
},
|
|
39
65
|
{
|
|
40
66
|
"type": "function",
|
|
41
67
|
"name": "deploy",
|
|
@@ -159,6 +185,70 @@
|
|
|
159
185
|
],
|
|
160
186
|
"stateMutability": "payable"
|
|
161
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"type": "function",
|
|
190
|
+
"name": "deployWithHook",
|
|
191
|
+
"inputs": [
|
|
192
|
+
{
|
|
193
|
+
"name": "payoutRecipient",
|
|
194
|
+
"type": "address",
|
|
195
|
+
"internalType": "address"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "owners",
|
|
199
|
+
"type": "address[]",
|
|
200
|
+
"internalType": "address[]"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "uri",
|
|
204
|
+
"type": "string",
|
|
205
|
+
"internalType": "string"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "name",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"internalType": "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "symbol",
|
|
214
|
+
"type": "string",
|
|
215
|
+
"internalType": "string"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "poolConfig",
|
|
219
|
+
"type": "bytes",
|
|
220
|
+
"internalType": "bytes"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "platformReferrer",
|
|
224
|
+
"type": "address",
|
|
225
|
+
"internalType": "address"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "hook",
|
|
229
|
+
"type": "address",
|
|
230
|
+
"internalType": "address"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "hookData",
|
|
234
|
+
"type": "bytes",
|
|
235
|
+
"internalType": "bytes"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"outputs": [
|
|
239
|
+
{
|
|
240
|
+
"name": "coin",
|
|
241
|
+
"type": "address",
|
|
242
|
+
"internalType": "address"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "hookDataOut",
|
|
246
|
+
"type": "bytes",
|
|
247
|
+
"internalType": "bytes"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"stateMutability": "payable"
|
|
251
|
+
},
|
|
162
252
|
{
|
|
163
253
|
"type": "function",
|
|
164
254
|
"name": "implementation",
|
|
@@ -419,6 +509,11 @@
|
|
|
419
509
|
"name": "FailedInnerCall",
|
|
420
510
|
"inputs": []
|
|
421
511
|
},
|
|
512
|
+
{
|
|
513
|
+
"type": "error",
|
|
514
|
+
"name": "InvalidHook",
|
|
515
|
+
"inputs": []
|
|
516
|
+
},
|
|
422
517
|
{
|
|
423
518
|
"type": "error",
|
|
424
519
|
"name": "InvalidInitialization",
|
|
@@ -482,5 +577,21 @@
|
|
|
482
577
|
"internalType": "bytes32"
|
|
483
578
|
}
|
|
484
579
|
]
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"type": "error",
|
|
583
|
+
"name": "UpgradeToMismatchedContractName",
|
|
584
|
+
"inputs": [
|
|
585
|
+
{
|
|
586
|
+
"name": "currentName",
|
|
587
|
+
"type": "string",
|
|
588
|
+
"internalType": "string"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "newName",
|
|
592
|
+
"type": "string",
|
|
593
|
+
"internalType": "string"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
485
596
|
}
|
|
486
597
|
]
|