@zoralabs/coins 0.7.1 → 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 +106 -84
- package/CHANGELOG.md +68 -0
- package/abis/BadImpl.json +15 -0
- package/abis/BalanceDeltaLibrary.json +15 -0
- package/abis/BaseCoin.json +1350 -0
- package/abis/BaseCoinDeployHook.json +78 -0
- package/abis/BaseHook.json +897 -0
- package/abis/BaseTest.json +60 -91
- package/abis/BeforeSwapDeltaLibrary.json +15 -0
- package/abis/BuySupplyWithSwapRouterHook.json +126 -0
- package/abis/Coin.json +214 -150
- package/abis/CoinConstants.json +65 -0
- package/abis/CoinDopplerMultiCurve.json +38 -0
- package/abis/CoinRewardsV4.json +54 -0
- package/abis/CoinTest.json +66 -111
- package/abis/CoinUniV4Test.json +1053 -0
- package/abis/CoinV4.json +1687 -0
- package/abis/CurrencyLibrary.json +25 -0
- package/abis/DeployHooks.json +9 -0
- 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 +62 -184
- package/abis/ERC20.json +310 -0
- package/abis/FactoryTest.json +98 -98
- package/abis/FakeHookNoInterface.json +21 -0
- package/abis/FeeEstimatorHook.json +1528 -0
- package/abis/Hooks.json +28 -0
- package/abis/HooksDeployment.json +23 -0
- package/abis/HooksTest.json +698 -0
- package/abis/IAllowanceTransfer.json +486 -0
- package/abis/ICoin.json +62 -69
- package/abis/ICoinDeployHook.json +31 -0
- package/abis/ICoinV3.json +879 -0
- package/abis/ICoinV4.json +915 -0
- package/abis/IContractMetadata.json +28 -0
- package/abis/IDeployedCoinVersionLookup.json +21 -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/IERC721.json +36 -36
- 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/IHasPoolKey.json +42 -0
- package/abis/IHasRewardsRecipients.json +54 -0
- package/abis/IHasSwapPath.json +60 -0
- package/abis/IHooks.json +789 -0
- package/abis/IImmutableState.json +15 -0
- package/abis/IMsgSender.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/IPoolConfigEncoding.json +46 -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/ISwapPathRouter.json +92 -0
- package/abis/ISwapRouter.json +82 -0
- package/abis/IUniversalRouter.json +61 -0
- package/abis/IUnlockCallback.json +21 -0
- package/abis/IUnorderedNonce.json +44 -0
- package/abis/IV4Quoter.json +310 -0
- package/abis/IV4Router.json +47 -0
- package/abis/IZoraFactory.json +328 -4
- package/abis/IZoraV4CoinHook.json +427 -0
- package/abis/ImmutableState.json +36 -0
- package/abis/LPFeeLibrary.json +65 -0
- package/abis/MockERC20.json +21 -0
- package/abis/MultiOwnableTest.json +60 -91
- package/abis/{CoinConfigurationVersions.json → Position.json} +1 -1
- package/abis/PrintUpgradeCommand.json +9 -0
- package/abis/ProxyShim.json +24 -0
- package/abis/Simulate.json +0 -91
- package/abis/StateLibrary.json +80 -0
- package/abis/TestDeployedCoinVersionLookupImplementation.json +39 -0
- package/abis/TestV4Swap.json +9 -0
- package/abis/{CoinSetup.json → UniV3BuySell.json} +5 -0
- package/abis/UniV3Errors.json +32 -0
- package/abis/UpgradeCoinImpl.json +47 -0
- package/abis/UpgradeFactoryImpl.json +9 -0
- package/abis/UpgradesTest.json +671 -0
- package/abis/Vm.json +1482 -111
- package/abis/VmSafe.json +856 -32
- package/abis/ZoraFactoryImpl.json +450 -1
- package/abis/ZoraV4CoinHook.json +1439 -0
- package/addresses/8453.json +8 -3
- package/addresses/84532.json +8 -3
- package/dist/index.cjs +1998 -184
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1989 -178
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +2852 -688
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +1992 -173
- package/package.json +7 -2
- package/remappings.txt +6 -1
- package/script/CoinsDeployerBase.sol +105 -10
- package/script/DeployDevFactory.s.sol +21 -0
- package/script/DeployHooks.s.sol +22 -0
- package/script/PrintUpgradeCommand.s.sol +13 -0
- package/script/Simulate.s.sol +4 -12
- package/script/TestBackingCoinSwap.s.sol +146 -0
- package/script/TestV4Swap.s.sol +136 -0
- package/script/UpgradeCoinImpl.sol +2 -2
- package/script/UpgradeFactoryImpl.s.sol +23 -0
- package/src/BaseCoin.sol +176 -0
- package/src/Coin.sol +93 -515
- package/src/CoinV4.sol +121 -0
- package/src/ZoraFactoryImpl.sol +257 -57
- package/src/hooks/ZoraV4CoinHook.sol +195 -0
- package/src/hooks/deployment/BaseCoinDeployHook.sol +62 -0
- package/src/hooks/deployment/BuySupplyWithSwapRouterHook.sol +80 -0
- package/src/interfaces/ICoin.sol +35 -39
- package/src/interfaces/ICoinDeployHook.sol +8 -0
- 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/ISwapRouter.sol +1 -35
- package/src/interfaces/IZoraFactory.sol +97 -7
- package/src/interfaces/IZoraV4CoinHook.sol +116 -0
- package/src/libs/CoinCommon.sol +15 -0
- package/src/libs/CoinConfigurationVersions.sol +116 -1
- package/src/{utils → libs}/CoinConstants.sol +11 -6
- 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 +40 -20
- package/src/libs/CoinSetupV3.sol +50 -0
- 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 +231 -0
- package/src/libs/UniV3Errors.sol +11 -0
- 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 +94 -101
- package/test/CoinDopplerUniV3.t.sol +35 -184
- package/test/CoinUniV4.t.sol +752 -0
- package/test/DeploymentHooks.t.sol +270 -0
- package/test/Factory.t.sol +84 -50
- package/test/MultiOwnable.t.sol +6 -3
- package/test/Upgrades.t.sol +68 -0
- package/test/mocks/MockERC20.sol +12 -0
- package/test/utils/BaseTest.sol +124 -59
- 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 +10 -9
- package/src/libs/CoinLegacy.sol +0 -48
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/coins@0.
|
|
2
|
+
> @zoralabs/coins@1.0.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
3
3
|
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @zoralabs/coins@0.
|
|
6
|
+
> @zoralabs/coins@1.0.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
7
7
|
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
8
|
|
|
9
|
-
Compiling
|
|
10
|
-
Solc 0.8.28 finished in
|
|
11
|
-
Compiler run successful
|
|
12
|
-
Warning (2072): Unused local variable.
|
|
13
|
-
--> script/Simulate.s.sol:44:10:
|
|
14
|
-
|
|
|
15
|
-
44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
|
|
16
|
-
| ^^^^^^^^^^^^^^^^^^^
|
|
17
|
-
|
|
18
|
-
Warning (2072): Unused local variable.
|
|
19
|
-
--> script/Simulate.s.sol:44:31:
|
|
20
|
-
|
|
|
21
|
-
44 | (address coinAddress, uint256 coinsPurchased) = factory.deploy{value: orderSize}(
|
|
22
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
23
|
-
|
|
24
|
-
Warning (2072): Unused local variable.
|
|
25
|
-
--> script/UpgradeCoinImpl.sol:14:9:
|
|
26
|
-
|
|
|
27
|
-
14 | DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
|
|
28
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
29
|
-
|
|
9
|
+
Compiling 217 files with Solc 0.8.28
|
|
10
|
+
Solc 0.8.28 finished in 165.31s
|
|
11
|
+
Compiler run successful!
|
|
30
12
|
[33m-[39m Validating plugins
|
|
31
13
|
[32m✔[39m Validating plugins
|
|
32
14
|
[33m-[39m Resolving contracts
|
|
@@ -37,73 +19,113 @@ Warning (2072): Unused local variable.
|
|
|
37
19
|
[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
38
20
|
🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
|
|
39
21
|
📝 Processing ./package/wagmiGenerated.ts...
|
|
40
|
-
✅ Updated ./package/wagmiGenerated.ts (
|
|
22
|
+
✅ Updated ./package/wagmiGenerated.ts (8 replacements)
|
|
41
23
|
✨ All files processed successfully!
|
|
42
24
|
|
|
43
|
-
> @zoralabs/coins@0.
|
|
25
|
+
> @zoralabs/coins@1.0.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
44
26
|
> pnpm exec bundle-abis
|
|
45
27
|
|
|
46
28
|
|
|
47
|
-
> @zoralabs/coins@0.
|
|
29
|
+
> @zoralabs/coins@1.0.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
48
30
|
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
49
31
|
|
|
50
|
-
src/
|
|
51
|
-
src/
|
|
52
|
-
src/
|
|
53
|
-
src/
|
|
54
|
-
src/
|
|
55
|
-
src/
|
|
56
|
-
src/interfaces/
|
|
57
|
-
src/interfaces/
|
|
58
|
-
src/interfaces/
|
|
59
|
-
src/interfaces/
|
|
60
|
-
src/interfaces/
|
|
32
|
+
src/BaseCoin.sol 310ms (unchanged)
|
|
33
|
+
src/Coin.sol 140ms (unchanged)
|
|
34
|
+
src/CoinV4.sol 91ms (unchanged)
|
|
35
|
+
src/hooks/deployment/BaseCoinDeployHook.sol 20ms (unchanged)
|
|
36
|
+
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 77ms (unchanged)
|
|
37
|
+
src/hooks/ZoraV4CoinHook.sol 117ms (unchanged)
|
|
38
|
+
src/interfaces/IAirlock.sol 1ms (unchanged)
|
|
39
|
+
src/interfaces/ICoin.sol 24ms (unchanged)
|
|
40
|
+
src/interfaces/ICoinComments.sol 4ms (unchanged)
|
|
41
|
+
src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
|
|
42
|
+
src/interfaces/ICoinV3.sol 3ms (unchanged)
|
|
43
|
+
src/interfaces/ICoinV4.sol 3ms (unchanged)
|
|
44
|
+
src/interfaces/IDeployedCoinVersionLookup.sol 2ms (unchanged)
|
|
45
|
+
src/interfaces/IDopplerErrors.sol 1ms (unchanged)
|
|
46
|
+
src/interfaces/IERC7572.sol 1ms (unchanged)
|
|
47
|
+
src/interfaces/IMsgSender.sol 2ms (unchanged)
|
|
48
|
+
src/interfaces/INonfungiblePositionManager.sol 6ms (unchanged)
|
|
49
|
+
src/interfaces/IPoolConfigEncoding.sol 1ms (unchanged)
|
|
50
|
+
src/interfaces/IProtocolRewards.sol 3ms (unchanged)
|
|
51
|
+
src/interfaces/ISwapPathRouter.sol 1ms (unchanged)
|
|
52
|
+
src/interfaces/ISwapRouter.sol 1ms (unchanged)
|
|
53
|
+
src/interfaces/IUniswapV3Factory.sol 3ms (unchanged)
|
|
54
|
+
src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
|
|
61
55
|
src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
|
|
62
|
-
src/interfaces/IWETH.sol
|
|
63
|
-
src/interfaces/IZoraFactory.sol
|
|
64
|
-
src/
|
|
65
|
-
src/libs/
|
|
66
|
-
src/libs/
|
|
67
|
-
src/libs/
|
|
68
|
-
src/libs/
|
|
69
|
-
src/
|
|
56
|
+
src/interfaces/IWETH.sol 3ms (unchanged)
|
|
57
|
+
src/interfaces/IZoraFactory.sol 7ms (unchanged)
|
|
58
|
+
src/interfaces/IZoraV4CoinHook.sol 10ms (unchanged)
|
|
59
|
+
src/libs/CoinCommon.sol 4ms (unchanged)
|
|
60
|
+
src/libs/CoinConfigurationVersions.sol 62ms (unchanged)
|
|
61
|
+
src/libs/CoinConstants.sol 7ms (unchanged)
|
|
62
|
+
src/libs/CoinDopplerMultiCurve.sol 125ms (unchanged)
|
|
63
|
+
src/libs/CoinDopplerUniV3.sol 30ms (unchanged)
|
|
64
|
+
src/libs/CoinRewards.sol 118ms (unchanged)
|
|
65
|
+
src/libs/CoinRewardsV4.sol 85ms (unchanged)
|
|
66
|
+
src/libs/CoinSetup.sol 19ms (unchanged)
|
|
67
|
+
src/libs/CoinSetupV3.sol 11ms (unchanged)
|
|
68
|
+
src/libs/DopplerMath.sol 89ms (unchanged)
|
|
69
|
+
src/libs/HooksDeployment.sol 36ms (unchanged)
|
|
70
|
+
src/libs/MarketConstants.sol 2ms (unchanged)
|
|
71
|
+
src/libs/PoolStateReader.sol 3ms (unchanged)
|
|
72
|
+
src/libs/UniV3BuySell.sol 78ms (unchanged)
|
|
73
|
+
src/libs/UniV3Errors.sol 1ms (unchanged)
|
|
74
|
+
src/libs/UniV4SwapHelper.sol 36ms (unchanged)
|
|
75
|
+
src/libs/UniV4SwapToCurrency.sol 52ms (unchanged)
|
|
76
|
+
src/libs/V4Liquidity.sol 57ms (unchanged)
|
|
77
|
+
src/proxy/ZoraFactory.sol 11ms (unchanged)
|
|
70
78
|
src/types/LpPosition.sol 1ms (unchanged)
|
|
71
|
-
src/types/
|
|
72
|
-
src/
|
|
73
|
-
src/utils/
|
|
74
|
-
src/utils/
|
|
75
|
-
src/utils/uniswap/
|
|
76
|
-
src/utils/uniswap/
|
|
77
|
-
src/utils/uniswap/
|
|
78
|
-
src/utils/uniswap/
|
|
79
|
-
src/utils/uniswap/
|
|
80
|
-
src/utils/uniswap/
|
|
81
|
-
src/utils/uniswap/
|
|
82
|
-
src/utils/uniswap/
|
|
83
|
-
src/
|
|
84
|
-
src/
|
|
85
|
-
|
|
86
|
-
test/
|
|
87
|
-
test/
|
|
88
|
-
test/
|
|
89
|
-
test/
|
|
90
|
-
test/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
79
|
+
src/types/PoolConfiguration.sol 1ms (unchanged)
|
|
80
|
+
src/types/PoolState.sol 1ms (unchanged)
|
|
81
|
+
src/utils/DeployedCoinVersionLookup.sol 8ms (unchanged)
|
|
82
|
+
src/utils/MultiOwnable.sol 42ms (unchanged)
|
|
83
|
+
src/utils/uniswap/BitMath.sol 11ms (unchanged)
|
|
84
|
+
src/utils/uniswap/CustomRevert.sol 51ms (unchanged)
|
|
85
|
+
src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
|
|
86
|
+
src/utils/uniswap/FullMath.sol 21ms (unchanged)
|
|
87
|
+
src/utils/uniswap/LiquidityAmounts.sol 42ms (unchanged)
|
|
88
|
+
src/utils/uniswap/SafeCast.sol 16ms (unchanged)
|
|
89
|
+
src/utils/uniswap/SqrtPriceMath.sol 58ms (unchanged)
|
|
90
|
+
src/utils/uniswap/TickMath.sol 58ms (unchanged)
|
|
91
|
+
src/utils/uniswap/UnsafeMath.sol 2ms (unchanged)
|
|
92
|
+
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
93
|
+
src/ZoraFactoryImpl.sol 129ms (unchanged)
|
|
94
|
+
test/Coin.t.sol 306ms (unchanged)
|
|
95
|
+
test/CoinDopplerUniV3.t.sol 109ms (unchanged)
|
|
96
|
+
test/CoinUniV4.t.sol 336ms (unchanged)
|
|
97
|
+
test/DeploymentHooks.t.sol 81ms (unchanged)
|
|
98
|
+
test/Factory.t.sol 155ms (unchanged)
|
|
99
|
+
test/mocks/MockERC20.sol 3ms (unchanged)
|
|
100
|
+
test/MultiOwnable.t.sol 85ms (unchanged)
|
|
101
|
+
test/Upgrades.t.sol 21ms (unchanged)
|
|
102
|
+
test/utils/BaseTest.sol 108ms (unchanged)
|
|
103
|
+
test/utils/DeployedCoinVersionLookup.t.sol 36ms (unchanged)
|
|
104
|
+
test/utils/FeeEstimatorHook.sol 21ms (unchanged)
|
|
105
|
+
test/utils/ProtocolRewards.sol 271ms (unchanged)
|
|
106
|
+
test/utils/ProxyShim.sol 3ms (unchanged)
|
|
107
|
+
script/CoinsDeployerBase.sol 69ms (unchanged)
|
|
108
|
+
script/Deploy.s.sol 3ms (unchanged)
|
|
109
|
+
script/DeployDevFactory.s.sol 3ms (unchanged)
|
|
110
|
+
script/DeployHooks.s.sol 4ms (unchanged)
|
|
111
|
+
script/GenerateDeterministicParams.s.sol 10ms (unchanged)
|
|
112
|
+
script/PrintUpgradeCommand.s.sol 9ms (unchanged)
|
|
113
|
+
script/Simulate.s.sol 14ms (unchanged)
|
|
114
|
+
script/TestBackingCoinSwap.s.sol 35ms (unchanged)
|
|
115
|
+
script/TestV4Swap.s.sol 31ms (unchanged)
|
|
116
|
+
script/UpgradeCoinImpl.sol 4ms (unchanged)
|
|
117
|
+
script/UpgradeFactoryImpl.s.sol 4ms (unchanged)
|
|
118
|
+
[34mCLI[39m Building entry: package/index.ts
|
|
119
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
120
|
+
[34mCLI[39m tsup v8.4.0
|
|
121
|
+
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins/tsup.config.ts
|
|
122
|
+
[34mCLI[39m Target: es2021
|
|
123
|
+
[34mCLI[39m Cleaning output folder
|
|
124
|
+
[34mCJS[39m Build start
|
|
125
|
+
[34mESM[39m Build start
|
|
126
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m89.57 KB[39m
|
|
127
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m158.74 KB[39m
|
|
128
|
+
[32mCJS[39m ⚡️ Build success in 33ms
|
|
129
|
+
[32mESM[39m [1mdist/index.js [22m[32m88.24 KB[39m
|
|
130
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m158.60 KB[39m
|
|
131
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# @zoralabs/coins
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 73e95f69: Upgraded coins to use Uniswap V4:
|
|
8
|
+
|
|
9
|
+
**New CoinV4 Implementation:**
|
|
10
|
+
|
|
11
|
+
- Migrated from Uniswap V3 to Uniswap V4, with logic moved into a hook.
|
|
12
|
+
- Automatic LP fee collection and multi-hop reward distribution on every swap
|
|
13
|
+
- New `ZoraV4CoinHook` handles afterSwap operations
|
|
14
|
+
- Support for complex multi-position liquidity curves and discovery positions
|
|
15
|
+
- Multi-hop fee swapping through intermediate currencies (e.g., ContentCoin → BackingCoin → Zora)
|
|
16
|
+
|
|
17
|
+
**Factory Updates:**
|
|
18
|
+
|
|
19
|
+
- Updated `deploy()` function signature with new `poolConfig`, `message`, and `salt` parameters
|
|
20
|
+
- Automatic V3/V4 version selection based on pool configuration
|
|
21
|
+
- Deterministic coin deployment with salt support
|
|
22
|
+
- New `CoinCreatedV4` event for V4 coin deployments
|
|
23
|
+
|
|
24
|
+
**Reward System Changes:**
|
|
25
|
+
|
|
26
|
+
- Increased trade referral rewards from 10% to 15% (1500 basis points)
|
|
27
|
+
- Automatic reward distribution in single backing currency
|
|
28
|
+
|
|
29
|
+
**New Interfaces and Events:**
|
|
30
|
+
|
|
31
|
+
- Added `IHasPoolKey` and `IHasSwapPath` interfaces for V4 functionality
|
|
32
|
+
- New `Swapped` event with detailed swap and price information
|
|
33
|
+
- New `CoinMarketRewardsV4` event for reward distribution tracking
|
|
34
|
+
|
|
35
|
+
**Breaking Changes:**
|
|
36
|
+
|
|
37
|
+
- New deterministic factory deploy function with salt
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- 6b8bdd9d: Remove ability to create coin with legacy pool config
|
|
42
|
+
|
|
43
|
+
## 0.9.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 9ed0ce76: - Publishing new coins hooks in `@zoralabs/protocol-deployments`
|
|
48
|
+
- In coins, pulling ISwapRouter from `@zoralabs/shared-contracts`, and updated the shared interface to match the full interface of the ISwapRouter. This new interface is published in `@zoralabs/protocol-deployments`.
|
|
49
|
+
- Removed publishing of the factory addresses directly in the wagmi config of the coins package, as that's inconsistent with the rest of the packages.
|
|
50
|
+
- Updated the `@zoralabs/coins-sdk` to use `@zoralabs/protocol-deployments` for abis and addresses, which significantly reduces the dependency tree of it and has it follow the patterns of the other sdk packages.
|
|
51
|
+
- 9ed0ce76: added deployWithHook to the coin factory
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- 9ed0ce76: Refactored some reusable code into helper functions for the Coin factory
|
|
56
|
+
|
|
57
|
+
## 0.8.0
|
|
58
|
+
|
|
59
|
+
### Minor Changes
|
|
60
|
+
|
|
61
|
+
- 9ed0ce76: - Publishing new coins hooks in `@zoralabs/protocol-deployments`
|
|
62
|
+
- In coins, pulling ISwapRouter from `@zoralabs/shared-contracts`, and updated the shared interface to match the full interface of the ISwapRouter. This new interface is published in `@zoralabs/protocol-deployments`.
|
|
63
|
+
- Removed publishing of the factory addresses directly in the wagmi config of the coins package, as that's inconsistent with the rest of the packages.
|
|
64
|
+
- Updated the `@zoralabs/coins-sdk` to use `@zoralabs/protocol-deployments` for abis and addresses, which significantly reduces the dependency tree of it and has it follow the patterns of the other sdk packages.
|
|
65
|
+
- 9ed0ce76: added deployWithHook to the coin factory
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- 9ed0ce76: Refactored some reusable code into helper functions for the Coin factory
|
|
70
|
+
|
|
3
71
|
## 0.7.1
|
|
4
72
|
|
|
5
73
|
### Patch Changes
|