@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.
@@ -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
+ }