@zoralabs/coins 2.1.2 → 2.2.1
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$colon$js.log +152 -0
- package/CHANGELOG.md +54 -0
- package/abis/BaseCoin.json +26 -0
- package/abis/BaseTest.json +2 -7
- package/abis/CoinConstants.json +0 -104
- package/abis/ContentCoin.json +26 -0
- package/abis/CreatorCoin.json +30 -4
- package/abis/FeeEstimatorHook.json +0 -5
- package/abis/ICoin.json +26 -0
- package/abis/ICoinV3.json +26 -0
- package/abis/ICreatorCoin.json +39 -0
- package/abis/IERC721.json +36 -36
- package/abis/IHasCoinType.json +15 -0
- package/abis/IHasTotalSupplyForPositions.json +15 -0
- package/abis/IZoraFactory.json +52 -0
- package/abis/IZoraHookRegistry.json +188 -0
- package/abis/VmContractHelper227.json +233 -0
- package/abis/ZoraFactoryImpl.json +32 -6
- package/abis/ZoraHookRegistry.json +375 -0
- package/abis/{CreatorCoinHook.json → ZoraV4CoinHook.json} +1 -1
- package/addresses/8453.json +2 -1
- package/dist/index.cjs +72 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +72 -10
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +90 -10
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +4 -1
- package/package/wagmiGenerated.ts +72 -10
- package/package.json +6 -4
- package/script/PrintRegisterUpgradePath.s.sol +0 -7
- package/script/TestBackingCoinSwap.s.sol +0 -1
- package/script/TestV4Swap.s.sol +0 -1
- package/script/UpgradeFactoryImpl.s.sol +1 -1
- package/src/BaseCoin.sol +15 -12
- package/src/ContentCoin.sol +10 -0
- package/src/CreatorCoin.sol +28 -7
- package/src/ZoraFactoryImpl.sol +62 -23
- package/src/deployment/CoinsDeployerBase.sol +24 -58
- package/src/hook-registry/ZoraHookRegistry.sol +93 -0
- package/src/hooks/{BaseZoraV4CoinHook.sol → ZoraV4CoinHook.sol} +13 -8
- package/src/interfaces/ICoin.sol +19 -1
- package/src/interfaces/ICreatorCoin.sol +4 -0
- package/src/interfaces/IZoraFactory.sol +32 -10
- package/src/interfaces/IZoraHookRegistry.sol +47 -0
- package/src/libs/CoinConstants.sol +0 -32
- package/src/libs/CoinRewardsV4.sol +53 -15
- package/src/libs/CreatorCoinConstants.sol +0 -1
- package/src/libs/HooksDeployment.sol +13 -65
- package/src/libs/MarketConstants.sol +11 -3
- package/src/libs/V4Liquidity.sol +30 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/CoinUniV4.t.sol +33 -30
- package/test/ContentCoinRewards.t.sol +320 -0
- package/test/CreatorCoin.t.sol +1 -1
- package/test/CreatorCoinRewards.t.sol +375 -0
- package/test/DeploymentHooks.t.sol +10 -10
- package/test/Factory.t.sol +24 -7
- package/test/HooksDeployment.t.sol +4 -4
- package/test/LiquidityMigration.t.sol +4 -9
- package/test/Upgrades.t.sol +44 -48
- package/test/ZoraHookRegistry.t.sol +266 -0
- package/test/utils/BaseTest.sol +25 -42
- package/test/utils/FeeEstimatorHook.sol +4 -6
- package/test/utils/RewardTestHelpers.sol +106 -0
- package/.turbo/turbo-build.log +0 -199
- package/abis/AutoSwapperTest.json +0 -618
- package/abis/BadImpl.json +0 -15
- package/abis/BaseZoraV4CoinHook.json +0 -1664
- package/abis/CoinTest.json +0 -819
- package/abis/CoinUniV4Test.json +0 -1128
- package/abis/ContentCoinHook.json +0 -1733
- package/abis/CreatorCoinTest.json +0 -887
- package/abis/Deploy.json +0 -9
- package/abis/DeployHooks.json +0 -9
- package/abis/DeployScript.json +0 -35
- package/abis/DeployedCoinVersionLookupTest.json +0 -740
- package/abis/DifferentNamespaceVersionLookup.json +0 -39
- package/abis/FactoryTest.json +0 -748
- package/abis/FakeHookNoInterface.json +0 -21
- package/abis/GenerateDeterministicParams.json +0 -9
- package/abis/HooksDeploymentTest.json +0 -645
- package/abis/HooksTest.json +0 -709
- package/abis/InvalidLiquidityMigrationReceiver.json +0 -21
- package/abis/LiquidityMigrationReceiver.json +0 -103
- package/abis/LiquidityMigrationTest.json +0 -889
- package/abis/MockBadFactory.json +0 -15
- package/abis/MultiOwnableTest.json +0 -766
- package/abis/PrintUpgradeCommand.json +0 -9
- package/abis/TestDeployedCoinVersionLookupImplementation.json +0 -39
- package/abis/TestV4Swap.json +0 -9
- package/abis/UpgradeFactoryImpl.json +0 -9
- package/abis/UpgradeHooks.json +0 -35
- package/abis/UpgradesTest.json +0 -723
- package/src/hooks/ContentCoinHook.sol +0 -27
- package/src/hooks/CreatorCoinHook.sol +0 -27
- package/src/libs/CreatorCoinRewards.sol +0 -34
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.13;
|
|
3
|
+
|
|
4
|
+
import {CoinRewardsV4} from "../../src/libs/CoinRewardsV4.sol";
|
|
5
|
+
import {FeeEstimatorHook} from "./FeeEstimatorHook.sol";
|
|
6
|
+
import {CoinConstants} from "../../src/libs/CoinConstants.sol";
|
|
7
|
+
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
8
|
+
import {Vm} from "forge-std/Vm.sol";
|
|
9
|
+
|
|
10
|
+
// Shared struct to track balance changes for reward recipients
|
|
11
|
+
struct RewardBalances {
|
|
12
|
+
uint256 creator;
|
|
13
|
+
uint256 platformReferrer;
|
|
14
|
+
uint256 tradeReferrer;
|
|
15
|
+
uint256 protocol;
|
|
16
|
+
uint256 doppler;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
library RewardTestHelpers {
|
|
20
|
+
Vm private constant vm = Vm(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
|
|
21
|
+
|
|
22
|
+
// Helper function to calculate reward based on BPS
|
|
23
|
+
function calculateReward(uint256 total, uint256 bps) internal pure returns (uint256) {
|
|
24
|
+
return (total * bps) / 10_000;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function calculateExpectedRewards(
|
|
28
|
+
uint256 marketRewards,
|
|
29
|
+
bool hasPlatformReferrer,
|
|
30
|
+
bool hasTradeReferrer
|
|
31
|
+
) internal pure returns (RewardBalances memory rewards) {
|
|
32
|
+
rewards.creator = calculateReward(marketRewards, CoinRewardsV4.CREATOR_REWARD_BPS);
|
|
33
|
+
rewards.platformReferrer = hasPlatformReferrer ? calculateReward(marketRewards, CoinRewardsV4.CREATE_REFERRAL_REWARD_BPS) : 0;
|
|
34
|
+
rewards.tradeReferrer = hasTradeReferrer ? calculateReward(marketRewards, CoinRewardsV4.TRADE_REFERRAL_REWARD_BPS) : 0;
|
|
35
|
+
rewards.doppler = calculateReward(marketRewards, CoinRewardsV4.DOPPLER_REWARD_BPS);
|
|
36
|
+
rewards.protocol = marketRewards - rewards.creator - rewards.platformReferrer - rewards.tradeReferrer - rewards.doppler;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Helper function to assert reward distributions match expected RewardBalances
|
|
40
|
+
function assertRewardsApproxEqRel(RewardBalances memory actual, RewardBalances memory expected) internal pure {
|
|
41
|
+
vm.assertApproxEqRel(actual.creator, expected.creator, 0.25e18, "Creator reward amount");
|
|
42
|
+
vm.assertApproxEqRel(actual.platformReferrer, expected.platformReferrer, 0.25e18, "Platform referrer reward amount");
|
|
43
|
+
vm.assertApproxEqRel(actual.tradeReferrer, expected.tradeReferrer, 0.25e18, "Trade referrer reward amount");
|
|
44
|
+
vm.assertApproxEqRel(actual.doppler, expected.doppler, 0.25e18, "Doppler reward amount");
|
|
45
|
+
vm.assertApproxEqRel(actual.protocol, expected.protocol, 0.25e18, "Protocol reward amount");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Helper function to assert with higher tolerance for complex conversions
|
|
49
|
+
function assertRewardsApproxEqRelWithTolerance(RewardBalances memory actual, RewardBalances memory expected, uint256 tolerance) internal pure {
|
|
50
|
+
vm.assertApproxEqRel(actual.creator, expected.creator, tolerance, "Creator reward amount");
|
|
51
|
+
vm.assertApproxEqRel(actual.platformReferrer, expected.platformReferrer, tolerance, "Platform referrer reward amount");
|
|
52
|
+
vm.assertApproxEqRel(actual.tradeReferrer, expected.tradeReferrer, tolerance, "Trade referrer reward amount");
|
|
53
|
+
vm.assertApproxEqRel(actual.doppler, expected.doppler, tolerance, "Doppler reward amount");
|
|
54
|
+
vm.assertApproxEqRel(actual.protocol, expected.protocol, tolerance, "Protocol reward amount");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Generic function to record token balances for all reward recipients
|
|
58
|
+
function recordBalances(
|
|
59
|
+
IERC20 token,
|
|
60
|
+
address creator,
|
|
61
|
+
address platformReferrer,
|
|
62
|
+
address tradeReferrer,
|
|
63
|
+
address protocolRecipient,
|
|
64
|
+
address dopplerRecipient
|
|
65
|
+
) internal view returns (RewardBalances memory balances) {
|
|
66
|
+
balances.creator = token.balanceOf(creator);
|
|
67
|
+
balances.platformReferrer = token.balanceOf(platformReferrer);
|
|
68
|
+
balances.tradeReferrer = token.balanceOf(tradeReferrer);
|
|
69
|
+
balances.protocol = token.balanceOf(protocolRecipient);
|
|
70
|
+
balances.doppler = token.balanceOf(dopplerRecipient);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Helper function to calculate reward deltas between two balance snapshots
|
|
74
|
+
function calculateRewardDeltas(
|
|
75
|
+
RewardBalances memory initialBalances,
|
|
76
|
+
RewardBalances memory finalBalances
|
|
77
|
+
) internal pure returns (RewardBalances memory deltas) {
|
|
78
|
+
deltas.creator = finalBalances.creator - initialBalances.creator;
|
|
79
|
+
deltas.platformReferrer = finalBalances.platformReferrer - initialBalances.platformReferrer;
|
|
80
|
+
deltas.tradeReferrer = finalBalances.tradeReferrer - initialBalances.tradeReferrer;
|
|
81
|
+
deltas.protocol = finalBalances.protocol - initialBalances.protocol;
|
|
82
|
+
deltas.doppler = finalBalances.doppler - initialBalances.doppler;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Helper function to sum total rewards
|
|
86
|
+
function getTotalRewards(RewardBalances memory rewards) internal pure returns (uint256) {
|
|
87
|
+
return rewards.creator + rewards.platformReferrer + rewards.tradeReferrer + rewards.protocol + rewards.doppler;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Helper function to calculate reward deltas after trade for any token
|
|
91
|
+
function calculateTokenRewardDeltas(
|
|
92
|
+
RewardBalances memory initialBalances,
|
|
93
|
+
IERC20 token,
|
|
94
|
+
address creator,
|
|
95
|
+
address platformReferrer,
|
|
96
|
+
address tradeReferrer,
|
|
97
|
+
address protocolRecipient,
|
|
98
|
+
address dopplerRecipient
|
|
99
|
+
) internal view returns (RewardBalances memory deltas) {
|
|
100
|
+
deltas.creator = token.balanceOf(creator) - initialBalances.creator;
|
|
101
|
+
deltas.platformReferrer = token.balanceOf(platformReferrer) - initialBalances.platformReferrer;
|
|
102
|
+
deltas.tradeReferrer = token.balanceOf(tradeReferrer) - initialBalances.tradeReferrer;
|
|
103
|
+
deltas.protocol = token.balanceOf(protocolRecipient) - initialBalances.protocol;
|
|
104
|
+
deltas.doppler = token.balanceOf(dopplerRecipient) - initialBalances.doppler;
|
|
105
|
+
}
|
|
106
|
+
}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @zoralabs/coins@2.1.2 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
3
|
-
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @zoralabs/coins@2.1.2 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
7
|
-
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
|
-
|
|
9
|
-
Compiling 236 files with Solc 0.8.28
|
|
10
|
-
Solc 0.8.28 finished in 195.15s
|
|
11
|
-
Compiler run successful with warnings:
|
|
12
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
13
|
-
--> src/ZoraFactoryImpl.sol:214:9:
|
|
14
|
-
|
|
|
15
|
-
214 | uint256 orderSize
|
|
16
|
-
| ^^^^^^^^^^^^^^^^^
|
|
17
|
-
|
|
18
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
19
|
-
--> src/deployment/CoinsDeployerBase.sol:104:31:
|
|
20
|
-
|
|
|
21
|
-
104 | function deployCoinV4Impl(address zoraV4CoinHook) internal returns (ContentCoin) {
|
|
22
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
23
|
-
|
|
24
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
25
|
-
--> src/deployment/CoinsDeployerBase.sol:114:36:
|
|
26
|
-
|
|
|
27
|
-
114 | function deployCreatorCoinImpl(address creatorCoinHook) internal returns (CreatorCoin) {
|
|
28
|
-
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
29
|
-
|
|
30
|
-
Warning (5667): Unused function parameter. Remove or comment out the variable name to silence this warning.
|
|
31
|
-
--> src/deployment/CoinsDeployerBase.sol:273:84:
|
|
32
|
-
|
|
|
33
|
-
273 | function deployDevFactory(CoinsDeployment memory deployment) internal returns (ZoraFactory devFactory) {
|
|
34
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
35
|
-
|
|
36
|
-
Warning (2072): Unused local variable.
|
|
37
|
-
--> script/TestBackingCoinSwap.s.sol:107:9:
|
|
38
|
-
|
|
|
39
|
-
107 | address tradeReferral = 0xC077e4cC02fa01A5b7fAca1acE9BBe9f5ac5Af9F;
|
|
40
|
-
| ^^^^^^^^^^^^^^^^^^^^^
|
|
41
|
-
|
|
42
|
-
Warning (2072): Unused local variable.
|
|
43
|
-
--> script/TestV4Swap.s.sol:99:9:
|
|
44
|
-
|
|
|
45
|
-
99 | address createReferral = 0xC077e4cC02fa01A5b7fAca1acE9BBe9f5ac5Af9F;
|
|
46
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
47
|
-
|
|
48
|
-
Warning (2072): Unused local variable.
|
|
49
|
-
--> test/CoinUniV4.t.sol:164:9:
|
|
50
|
-
|
|
|
51
|
-
164 | uint128 newFeeCurrency = isCoinToken0 ? newFeeState.fees1 : newFeeState.fees0;
|
|
52
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
53
|
-
|
|
54
|
-
Warning (2072): Unused local variable.
|
|
55
|
-
--> test/LiquidityMigration.t.sol:188:9:
|
|
56
|
-
|
|
|
57
|
-
188 | address originalHook = address(contentCoinHook);
|
|
58
|
-
| ^^^^^^^^^^^^^^^^^^^^
|
|
59
|
-
|
|
60
|
-
Warning (2072): Unused local variable.
|
|
61
|
-
--> test/LiquidityMigration.t.sol:210:9:
|
|
62
|
-
|
|
|
63
|
-
210 | PoolKey memory poolKey = coinV4.getPoolKey();
|
|
64
|
-
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
65
|
-
|
|
66
|
-
[33m-[39m Validating plugins
|
|
67
|
-
[32m✔[39m Validating plugins
|
|
68
|
-
[33m-[39m Resolving contracts
|
|
69
|
-
[32m✔[39m Resolving contracts
|
|
70
|
-
[33m-[39m Running plugins
|
|
71
|
-
[32m✔[39m Running plugins
|
|
72
|
-
[33m-[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
73
|
-
[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
74
|
-
🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
|
|
75
|
-
📝 Processing ./package/wagmiGenerated.ts...
|
|
76
|
-
✅ Updated ./package/wagmiGenerated.ts (10 replacements)
|
|
77
|
-
✨ All files processed successfully!
|
|
78
|
-
|
|
79
|
-
> @zoralabs/coins@2.1.2 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
80
|
-
> pnpm exec bundle-abis
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
> @zoralabs/coins@2.1.2 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
84
|
-
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
85
|
-
|
|
86
|
-
src/BaseCoin.sol 440ms (unchanged)
|
|
87
|
-
src/ContentCoin.sol 31ms (unchanged)
|
|
88
|
-
src/CreatorCoin.sol 61ms (unchanged)
|
|
89
|
-
src/deployment/CoinsDeployerBase.sol 222ms (unchanged)
|
|
90
|
-
src/hooks/BaseZoraV4CoinHook.sol 179ms (unchanged)
|
|
91
|
-
src/hooks/ContentCoinHook.sol 7ms (unchanged)
|
|
92
|
-
src/hooks/CreatorCoinHook.sol 8ms (unchanged)
|
|
93
|
-
src/hooks/deployment/BaseCoinDeployHook.sol 16ms (unchanged)
|
|
94
|
-
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 130ms (unchanged)
|
|
95
|
-
src/hooks/HookUpgradeGate.sol 25ms (unchanged)
|
|
96
|
-
src/interfaces/IAirlock.sol 1ms (unchanged)
|
|
97
|
-
src/interfaces/ICoin.sol 16ms (unchanged)
|
|
98
|
-
src/interfaces/ICoinComments.sol 1ms (unchanged)
|
|
99
|
-
src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
|
|
100
|
-
src/interfaces/ICoinV3.sol 2ms (unchanged)
|
|
101
|
-
src/interfaces/ICreatorCoin.sol 1ms (unchanged)
|
|
102
|
-
src/interfaces/ICreatorCoinHook.sol 1ms (unchanged)
|
|
103
|
-
src/interfaces/IDeployedCoinVersionLookup.sol 1ms (unchanged)
|
|
104
|
-
src/interfaces/IDopplerErrors.sol 0ms (unchanged)
|
|
105
|
-
src/interfaces/IERC7572.sol 1ms (unchanged)
|
|
106
|
-
src/interfaces/IHasRewardsRecipients.sol 1ms (unchanged)
|
|
107
|
-
src/interfaces/IHooksUpgradeGate.sol 2ms (unchanged)
|
|
108
|
-
src/interfaces/IMsgSender.sol 1ms (unchanged)
|
|
109
|
-
src/interfaces/INonfungiblePositionManager.sol 5ms (unchanged)
|
|
110
|
-
src/interfaces/IPoolConfigEncoding.sol 1ms (unchanged)
|
|
111
|
-
src/interfaces/IProtocolRewards.sol 2ms (unchanged)
|
|
112
|
-
src/interfaces/ISwapPathRouter.sol 2ms (unchanged)
|
|
113
|
-
src/interfaces/ISwapRouter.sol 1ms (unchanged)
|
|
114
|
-
src/interfaces/IUniswapV3Factory.sol 5ms (unchanged)
|
|
115
|
-
src/interfaces/IUniswapV3Pool.sol 3ms (unchanged)
|
|
116
|
-
src/interfaces/IUniswapV3SwapCallback.sol 1ms (unchanged)
|
|
117
|
-
src/interfaces/IUpgradeableV4Hook.sol 2ms (unchanged)
|
|
118
|
-
src/interfaces/IWETH.sol 2ms (unchanged)
|
|
119
|
-
src/interfaces/IZoraFactory.sol 11ms (unchanged)
|
|
120
|
-
src/interfaces/IZoraV4CoinHook.sol 11ms (unchanged)
|
|
121
|
-
src/libs/CoinCommon.sol 5ms (unchanged)
|
|
122
|
-
src/libs/CoinConfigurationVersions.sol 48ms (unchanged)
|
|
123
|
-
src/libs/CoinConstants.sol 5ms (unchanged)
|
|
124
|
-
src/libs/CoinDopplerMultiCurve.sol 110ms (unchanged)
|
|
125
|
-
src/libs/CoinRewardsV4.sol 103ms (unchanged)
|
|
126
|
-
src/libs/CoinSetup.sol 29ms (unchanged)
|
|
127
|
-
src/libs/CreatorCoinConstants.sol 3ms (unchanged)
|
|
128
|
-
src/libs/CreatorCoinRewards.sol 22ms (unchanged)
|
|
129
|
-
src/libs/DopplerMath.sol 93ms (unchanged)
|
|
130
|
-
src/libs/HooksDeployment.sol 86ms (unchanged)
|
|
131
|
-
src/libs/MarketConstants.sol 1ms (unchanged)
|
|
132
|
-
src/libs/PoolStateReader.sol 6ms (unchanged)
|
|
133
|
-
src/libs/UniV4SwapHelper.sol 29ms (unchanged)
|
|
134
|
-
src/libs/UniV4SwapToCurrency.sol 50ms (unchanged)
|
|
135
|
-
src/libs/V4Liquidity.sol 138ms (unchanged)
|
|
136
|
-
src/proxy/ZoraFactory.sol 6ms (unchanged)
|
|
137
|
-
src/types/LpPosition.sol 1ms (unchanged)
|
|
138
|
-
src/types/PoolConfiguration.sol 1ms (unchanged)
|
|
139
|
-
src/types/PoolState.sol 2ms (unchanged)
|
|
140
|
-
src/utils/AutoSwapper.sol 20ms (unchanged)
|
|
141
|
-
src/utils/DeployedCoinVersionLookup.sol 5ms (unchanged)
|
|
142
|
-
src/utils/MultiOwnable.sol 46ms (unchanged)
|
|
143
|
-
src/utils/uniswap/BitMath.sol 10ms (unchanged)
|
|
144
|
-
src/utils/uniswap/BytesLib.sol 12ms (unchanged)
|
|
145
|
-
src/utils/uniswap/CustomRevert.sol 43ms (unchanged)
|
|
146
|
-
src/utils/uniswap/FixedPoint96.sol 1ms (unchanged)
|
|
147
|
-
src/utils/uniswap/FullMath.sol 20ms (unchanged)
|
|
148
|
-
src/utils/uniswap/LiquidityAmounts.sol 47ms (unchanged)
|
|
149
|
-
src/utils/uniswap/Path.sol 5ms (unchanged)
|
|
150
|
-
src/utils/uniswap/SafeCast.sol 11ms (unchanged)
|
|
151
|
-
src/utils/uniswap/SqrtPriceMath.sol 67ms (unchanged)
|
|
152
|
-
src/utils/uniswap/TickMath.sol 66ms (unchanged)
|
|
153
|
-
src/utils/uniswap/UnsafeMath.sol 3ms (unchanged)
|
|
154
|
-
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
155
|
-
src/ZoraFactoryImpl.sol 109ms (unchanged)
|
|
156
|
-
test/AutoSwapper.t.sol 35ms (unchanged)
|
|
157
|
-
test/Coin.t.sol 114ms (unchanged)
|
|
158
|
-
test/CoinUniV4.t.sol 354ms (unchanged)
|
|
159
|
-
test/CreatorCoin.t.sol 133ms (unchanged)
|
|
160
|
-
test/DeploymentHooks.t.sol 68ms (unchanged)
|
|
161
|
-
test/Factory.t.sol 80ms (unchanged)
|
|
162
|
-
test/HooksDeployment.t.sol 27ms (unchanged)
|
|
163
|
-
test/LiquidityMigration.t.sol 162ms (unchanged)
|
|
164
|
-
test/mocks/MockERC20.sol 3ms (unchanged)
|
|
165
|
-
test/MultiOwnable.t.sol 84ms (unchanged)
|
|
166
|
-
test/Upgrades.t.sol 110ms (unchanged)
|
|
167
|
-
test/utils/BaseTest.sol 159ms (unchanged)
|
|
168
|
-
test/utils/ContractAddresses.sol 3ms (unchanged)
|
|
169
|
-
test/utils/DeployedCoinVersionLookup.t.sol 48ms (unchanged)
|
|
170
|
-
test/utils/FeeEstimatorHook.sol 28ms (unchanged)
|
|
171
|
-
test/utils/ProtocolRewards.sol 319ms (unchanged)
|
|
172
|
-
test/utils/ProxyShim.sol 4ms (unchanged)
|
|
173
|
-
script/Deploy.s.sol 3ms (unchanged)
|
|
174
|
-
script/DeployAutoSwapper.s.sol 12ms (unchanged)
|
|
175
|
-
script/DeployDevFactory.s.sol 2ms (unchanged)
|
|
176
|
-
script/DeployPostDeploymentHooks.s.sol 2ms (unchanged)
|
|
177
|
-
script/DeployUpgradeGate.s.sol 3ms (unchanged)
|
|
178
|
-
script/GenerateDeterministicParams.s.sol 11ms (unchanged)
|
|
179
|
-
script/PrintRegisterUpgradePath.s.sol 9ms (unchanged)
|
|
180
|
-
script/PrintUpgradeCommand.s.sol 2ms (unchanged)
|
|
181
|
-
script/TestBackingCoinSwap.s.sol 30ms (unchanged)
|
|
182
|
-
script/TestV4Swap.s.sol 29ms (unchanged)
|
|
183
|
-
script/UpgradeCoinImpl.sol 6ms (unchanged)
|
|
184
|
-
script/UpgradeFactoryImpl.s.sol 5ms (unchanged)
|
|
185
|
-
script/UpgradeHooks.s.sol 7ms (unchanged)
|
|
186
|
-
[34mCLI[39m Building entry: package/index.ts
|
|
187
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
188
|
-
[34mCLI[39m tsup v8.4.0
|
|
189
|
-
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins/tsup.config.ts
|
|
190
|
-
[34mCLI[39m Target: es2021
|
|
191
|
-
[34mCLI[39m Cleaning output folder
|
|
192
|
-
[34mCJS[39m Build start
|
|
193
|
-
[34mESM[39m Build start
|
|
194
|
-
[32mESM[39m [1mdist/index.js [22m[32m128.58 KB[39m
|
|
195
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m229.86 KB[39m
|
|
196
|
-
[32mESM[39m ⚡️ Build success in 41ms
|
|
197
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m130.00 KB[39m
|
|
198
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m230.01 KB[39m
|
|
199
|
-
[32mCJS[39m ⚡️ Build success in 41ms
|