Skip to content

Commit 6ac0611

Browse files
authored
Merge pull request #391 from 0xPolygon/dev
feat: v1.1
2 parents de71996 + 2e19df9 commit 6ac0611

File tree

135 files changed

+2801
-5022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+2801
-5022
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cache: "npm"
1919
- run: npm ci
2020
- run: npx hardhat compile --show-stack-traces
21-
- run: TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --parallel
21+
- run: TS_NODE_TRANSPILE_ONLY=1 npx hardhat test
2222
forge_tests:
2323
runs-on: ubuntu-latest
2424
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Some contracts in the Edge suite need be deployed only once on root. These contr
173173

174174
Other contracts are deployed on root once per Supernet. These contracts can deployed using the [`DeployNewRootContractSet.s.sol`](script/deployment/DeployNewRootContractSet.s.sol) script, after [`rootContractSetConfig.json`](script/deployment/rootContractSetConfig.json) has been filled with appropriate values.
175175

176-
Note that the script does not initialize `CheckpointManager`. Instead protects it to be initializable only by the `INITIALIZER` address later.
176+
Note that the script does not initialize `CheckpointManager`. Instead, it protects it to be initializable only by the `INITIATOR` address later.
177177

178178
Not all root contracts are deployed at this point, however. There are parts of the bridge that need the addresses of various child contracts in order to be initialized. These contracts can deployed using the [`DeployRootTokenContracts.s.sol`](script/deployment/DeployRootTokenContracts.s.sol) script, after [`rootTokenContractsConfig.json`](script/deployment/rootTokenContractsConfig.json) has been filled with appropriate values.
179179

contracts/child/ChildERC1155.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ contract ChildERC1155 is EIP712MetaTransaction, ERC1155Upgradeable, IChildERC115
2424
_;
2525
}
2626

27+
constructor() {
28+
_disableInitializers();
29+
}
30+
2731
/**
2832
* @inheritdoc IChildERC1155
2933
*/

contracts/child/ChildERC1155Predicate.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ contract ChildERC1155Predicate is IChildERC1155Predicate, Initializable, System
7171
_;
7272
}
7373

74+
constructor() {
75+
_disableInitializers();
76+
}
77+
7478
/**
7579
* @notice Initialization function for ChildERC1155Predicate
7680
* @param newL2StateSender Address of L2StateSender to send exit information to

contracts/child/ChildERC1155PredicateAccessList.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import {AccessList} from "../lib/AccessList.sol";
1111
*/
1212
// solhint-disable reason-string
1313
contract ChildERC1155PredicateAccessList is AccessList, ChildERC1155Predicate {
14+
constructor() {
15+
_disableInitializers();
16+
}
17+
1418
function initialize(
1519
address newL2StateSender,
1620
address newStateReceiver,

contracts/child/ChildERC20.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ contract ChildERC20 is EIP712MetaTransaction, ERC20Upgradeable, IChildERC20 {
2525
_;
2626
}
2727

28+
constructor() {
29+
_disableInitializers();
30+
}
31+
2832
/**
2933
* @inheritdoc IChildERC20
3034
*/

contracts/child/ChildERC20Predicate.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ contract ChildERC20Predicate is IChildERC20Predicate, Initializable, System {
4949
);
5050
event L2TokenMapped(address indexed rootToken, address indexed childToken);
5151

52+
constructor() {
53+
_disableInitializers();
54+
}
55+
5256
/**
5357
* @notice Initialization function for ChildERC20Predicate
5458
* @param newL2StateSender Address of L2StateSender to send exit information to

contracts/child/ChildERC20PredicateAccessList.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import {AccessList} from "../lib/AccessList.sol";
1111
*/
1212
// solhint-disable reason-string
1313
contract ChildERC20PredicateAccessList is AccessList, ChildERC20Predicate {
14+
constructor() {
15+
_disableInitializers();
16+
}
17+
1418
function initialize(
1519
address newL2StateSender,
1620
address newStateReceiver,

contracts/child/ChildERC721.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ contract ChildERC721 is EIP712MetaTransaction, ERC721Upgradeable, IChildERC721 {
2222
_;
2323
}
2424

25+
constructor() {
26+
_disableInitializers();
27+
}
28+
2529
/**
2630
* @inheritdoc IChildERC721
2731
*/

contracts/child/ChildERC721Predicate.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ contract ChildERC721Predicate is IChildERC721Predicate, Initializable, System {
6767
_;
6868
}
6969

70+
constructor() {
71+
_disableInitializers();
72+
}
73+
7074
/**
7175
* @notice Initialization function for ChildERC721Predicate
7276
* @param newL2StateSender Address of L2StateSender to send exit information to

0 commit comments

Comments
 (0)