-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
171 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright Immutable Pty Ltd 2018 - 2023 | ||
// SPDX-License-Identifier: Apache 2.0 | ||
|
||
// solhint-disable-next-line compiler-version | ||
pragma solidity ^0.8.17; | ||
|
||
import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; | ||
|
||
/** | ||
* @notice Interface for Immutable's ERC1155 | ||
*/ | ||
interface IImmutableERC1155 is IERC1155 { | ||
/** | ||
* @notice Mints a new token | ||
* @param to The address that will receive the minted tokens | ||
* @param id The id of the token to mint | ||
* @param value The amount of tokens to mint | ||
* @param data Additional data | ||
*/ | ||
function safeMint(address to, uint256 id, uint256 value, bytes memory data) external; | ||
|
||
/** | ||
* @notice Grants minter role to the user | ||
* @param user The address to grant the MINTER_ROLE to | ||
*/ | ||
function grantMinterRole(address user) external; | ||
} |
16 changes: 16 additions & 0 deletions
16
test/trading/seaport/utils/IOperatorAllowlistUpgradeable.t.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright Immutable Pty Ltd 2018 - 2023 | ||
// SPDX-License-Identifier: Apache 2.0 | ||
|
||
// solhint-disable-next-line compiler-version | ||
pragma solidity ^0.8.17; | ||
|
||
/** | ||
* @notice Required interface of an OperatorAllowlist compliant contract | ||
*/ | ||
interface IOperatorAllowlistUpgradeable { | ||
/** | ||
* @notice Adds a list of multiple addresses to Allowlist | ||
* @param addressTargets the addresses to be added to the allowlist | ||
*/ | ||
function addAddressesToAllowlist(address[] calldata addressTargets) external; | ||
} |
58 changes: 58 additions & 0 deletions
58
test/trading/seaport/zones/IImmutableSignedZoneV2Harness.t.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright (c) Immutable Pty Ltd 2018 - 2024 | ||
// SPDX-License-Identifier: Apache-2 | ||
|
||
// solhint-disable-next-line compiler-version | ||
pragma solidity ^0.8.17; | ||
|
||
import {ZoneInterface} from "seaport/contracts/interfaces/ZoneInterface.sol"; | ||
import {ReceivedItem, ZoneParameters} from "seaport-types/src/lib/ConsiderationStructs.sol"; | ||
import {SIP7Interface} from "../../../../contracts/trading/seaport/zones/interfaces/SIP7Interface.sol"; | ||
|
||
// solhint-disable func-name-mixedcase | ||
|
||
interface IImmutableSignedZoneV2Harness is ZoneInterface, SIP7Interface { | ||
function exposed_getSupportedSubstandards() external pure returns (uint256[] memory substandards); | ||
|
||
function exposed_deriveSignedOrderHash( | ||
address fulfiller, | ||
uint64 expiration, | ||
bytes32 orderHash, | ||
bytes calldata context | ||
) external view returns (bytes32 signedOrderHash); | ||
|
||
function exposed_validateSubstandards(bytes calldata context, ZoneParameters calldata zoneParameters) | ||
external | ||
pure; | ||
|
||
function exposed_validateSubstandard3(bytes calldata context, ZoneParameters calldata zoneParameters) | ||
external | ||
pure | ||
returns (uint256); | ||
|
||
function exposed_validateSubstandard4(bytes calldata context, ZoneParameters calldata zoneParameters) | ||
external | ||
pure | ||
returns (uint256); | ||
|
||
function exposed_validateSubstandard6(bytes calldata context, ZoneParameters calldata zoneParameters) | ||
external | ||
pure | ||
returns (uint256); | ||
|
||
function exposed_deriveReceivedItemsHash( | ||
ReceivedItem[] calldata receivedItems, | ||
uint256 scalingFactorNumerator, | ||
uint256 scalingFactorDenominator | ||
) external pure returns (bytes32); | ||
|
||
function exposed_bytes32ArrayIncludes(bytes32[] calldata sourceArray, bytes32[] memory values) | ||
external | ||
pure | ||
returns (bool); | ||
|
||
function exposed_domainSeparator() external view returns (bytes32); | ||
|
||
function exposed_deriveDomainSeparator() external view returns (bytes32 domainSeparator); | ||
} | ||
|
||
// solhint-enable func-name-mixedcase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters