Skip to content

Commit

Permalink
Split work
Browse files Browse the repository at this point in the history
  • Loading branch information
lfportal committed Apr 3, 2024
1 parent f5aa6e5 commit 5d8cb50
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test/trading/seaport/zones/ImmutableSignedZoneV2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ contract ImmutableSignedZoneV2Test is Test {
error InvalidExtraData(string reason, bytes32 orderHash); // SIP-7
error SubstandardViolation(uint256 substandardId, string reason, bytes32 orderHash); // SIP-7 (custom)

/* constructor */

function test_contructor_grantsAdminRoleToOwner() public {
address owner = address(0x2);
ImmutableSignedZoneV2 zone = new ImmutableSignedZoneV2(
Expand All @@ -36,6 +38,28 @@ contract ImmutableSignedZoneV2Test is Test {
);
}

/* addSigner - L */

/* removeSigner - L */

/* updateAPIEndpoint - N */

/* getSeaportMetadata - L */

/* sip7Information - L */

/* supportsInterface - L */

/* validateOrder */

/* _getSupportedSubstandards - L */

/* _deriveSignedOrderHash - N */

/* _validateSubstandards */

/* _validateSubstandard3 */

function test_validateSubstandard3_returnsZeroLengthIfNotSubstandard3() public {
ImmutableSignedZoneV2Harness zone = new ImmutableSignedZoneV2Harness(
"MyZoneName",
Expand Down Expand Up @@ -164,6 +188,18 @@ contract ImmutableSignedZoneV2Test is Test {
uint256 substandardLengthResult = zone.exposed_validateSubstandard3(context, zoneParameters);
assertEq(substandardLengthResult, 33);
}

/* _validateSubstandard4 - N */

/* _validateSubstandard6 - N */

/* _deriveReceivedItemsHash - N */

/* _bytes32ArrayIncludes - N */

/* _domainSeparator - N */

/* _deriveDomainSeparator - N */
}

contract ImmutableSignedZoneV2Harness is ImmutableSignedZoneV2 {
Expand Down

0 comments on commit 5d8cb50

Please sign in to comment.