@zoralabs/coins 2.3.1 → 2.4.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$colon$js.log +115 -116
- package/CHANGELOG.md +24 -0
- package/abis/BaseTest.json +3 -3
- package/abis/FeeEstimatorHook.json +23 -0
- package/abis/ITrustedMsgSenderProviderLookup.json +21 -0
- package/abis/IZoraV4CoinHook.json +5 -0
- package/abis/TrustedMsgSenderProviderLookup.json +215 -0
- package/abis/VmContractHelper242.json +233 -0
- package/abis/ZoraV4CoinHook.json +21 -3
- package/foundry.toml +5 -1
- package/package.json +3 -3
- package/script/DeployTrustedMsgSenderLookup.s.sol +20 -0
- package/src/deployment/CoinsDeployerBase.sol +22 -1
- package/src/hooks/ZoraV4CoinHook.sol +19 -55
- package/src/interfaces/ITrustedMsgSenderProviderLookup.sol +18 -0
- package/src/interfaces/IZoraV4CoinHook.sol +3 -0
- package/src/libs/HooksDeployment.sol +9 -8
- package/src/libs/V4Liquidity.sol +50 -6
- package/src/utils/TrustedMsgSenderProviderLookup.sol +73 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/CreatorCoinRewards.t.sol +4 -0
- package/test/HooksDeployment.t.sol +58 -6
- package/test/LiquidityMigration.t.sol +6 -2
- package/test/TrustedMsgSenderProviderLookup.t.sol +112 -0
- package/test/Upgrades.t.sol +15 -10
- package/test/utils/BaseTest.sol +35 -9
- package/test/utils/FeeEstimatorHook.sol +3 -1
- package/test/utils/TrustedSenderTestHelper.sol +18 -0
- /package/abis/{VmContractHelper239.json → VmContractHelper235.json} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
pragma solidity ^0.8.13;
|
|
3
|
+
|
|
4
|
+
import {TrustedMsgSenderProviderLookup} from "../../src/utils/TrustedMsgSenderProviderLookup.sol";
|
|
5
|
+
import {ITrustedMsgSenderProviderLookup} from "../../src/interfaces/ITrustedMsgSenderProviderLookup.sol";
|
|
6
|
+
|
|
7
|
+
/// @title TrustedSenderTestHelper
|
|
8
|
+
/// @notice Helper library for deploying TrustedMsgSenderProviderLookup in tests
|
|
9
|
+
library TrustedSenderTestHelper {
|
|
10
|
+
/// @notice Deploys a TrustedMsgSenderProviderLookup with direct constructor
|
|
11
|
+
/// @param owner The owner address for the deployed contract
|
|
12
|
+
/// @param initialTrustedSenders Array of initially trusted sender addresses
|
|
13
|
+
/// @return The deployed ITrustedMsgSenderProviderLookup contract
|
|
14
|
+
function deployTrustedMessageSender(address owner, address[] memory initialTrustedSenders) internal returns (ITrustedMsgSenderProviderLookup) {
|
|
15
|
+
// Deploy the contract directly using constructor
|
|
16
|
+
return ITrustedMsgSenderProviderLookup(address(new TrustedMsgSenderProviderLookup(initialTrustedSenders, owner)));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
File without changes
|