Skip to content

Commit de3a879

Browse files
committed
chore: define wip contracts
1 parent 89176ce commit de3a879

7 files changed

+49
-51
lines changed

foundry.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[profile.default]
2-
solc = "0.8.22"
2+
solc = "0.8.18"
33
src = "src"
44
out = "out"
55
libs = ["lib"]

remappings.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ds-test/=lib/forge-std/lib/ds-test/src/
22
forge-std/=lib/forge-std/src/
3+
mgd-v2-contracts/=lib/v2-contracts/contracts/marketplace/

script/Counter.s.sol

-12
This file was deleted.

src/Counter.sol

-14
This file was deleted.

src/MGDCompanyL2Sync.sol

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity 0.8.18;
3+
4+
import {MintGoldDustCompany} from "mgd-v2-contracts/MintGoldDustCompany.sol";
5+
6+
/// @title MGDCompanyL2Sync
7+
/// @notice An extension to {MintGoldDustCompany} containing functions that
8+
/// syncs access levels management changes with a L2.
9+
/// @author Mint Gold Dust LLC
10+
/// @custom:contact klvh@mintgolddust.io
11+
contract MGDCompanyL2Sync is MintGoldDustCompany {
12+
function setValidatorWithL2Sync(
13+
address _address,
14+
bool _state,
15+
uint8 v,
16+
bytes32 r,
17+
bytes32 s
18+
)
19+
external
20+
onlyOwner
21+
isZeroAddress(_address)
22+
{
23+
isAddressValidator[_address] = _state;
24+
emit ValidatorAdded(_address, _state);
25+
}
26+
27+
/// @dev Overriding to change function visibility.
28+
function setValidator(
29+
address _address,
30+
bool _state
31+
)
32+
public
33+
override
34+
onlyOwner
35+
isZeroAddress(_address)
36+
{
37+
isAddressValidator[_address] = _state;
38+
emit ValidatorAdded(_address, _state);
39+
}
40+
}

src/MGDL2SyncEIP712.sol

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity 0.8.18;
3+
4+
contract MGDL2SyncEIP712 {
5+
bytes32 private constant SETVALIDATOR_TYPEHASH =
6+
keccak256("SetValidator(address _address,bool _state)");
7+
}

test/Counter.t.sol

-24
This file was deleted.

0 commit comments

Comments
 (0)