Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
bc3a4e36
Commit
bc3a4e36
authored
Aug 08, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: bump semver
parent
c25dfd9c
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
44 additions
and
51 deletions
+44
-51
EAS.sol
packages/contracts-bedrock/src/EAS/EAS.sol
+1
-6
SchemaRegistry.sol
packages/contracts-bedrock/src/EAS/SchemaRegistry.sol
+1
-3
L1CrossDomainMessenger.sol
packages/contracts-bedrock/src/L1/L1CrossDomainMessenger.sol
+2
-2
L1ERC721Bridge.sol
packages/contracts-bedrock/src/L1/L1ERC721Bridge.sol
+2
-2
L1StandardBridge.sol
packages/contracts-bedrock/src/L1/L1StandardBridge.sol
+2
-2
L2OutputOracle.sol
packages/contracts-bedrock/src/L1/L2OutputOracle.sol
+2
-2
OptimismPortal.sol
packages/contracts-bedrock/src/L1/OptimismPortal.sol
+2
-2
BaseFeeVault.sol
packages/contracts-bedrock/src/L2/BaseFeeVault.sol
+2
-2
GasPriceOracle.sol
packages/contracts-bedrock/src/L2/GasPriceOracle.sol
+2
-2
L1Block.sol
packages/contracts-bedrock/src/L2/L1Block.sol
+2
-2
L1FeeVault.sol
packages/contracts-bedrock/src/L2/L1FeeVault.sol
+2
-2
L2CrossDomainMessenger.sol
packages/contracts-bedrock/src/L2/L2CrossDomainMessenger.sol
+2
-2
L2ERC721Bridge.sol
packages/contracts-bedrock/src/L2/L2ERC721Bridge.sol
+2
-2
L2StandardBridge.sol
packages/contracts-bedrock/src/L2/L2StandardBridge.sol
+2
-2
L2ToL1MessagePasser.sol
packages/contracts-bedrock/src/L2/L2ToL1MessagePasser.sol
+2
-2
SequencerFeeVault.sol
packages/contracts-bedrock/src/L2/SequencerFeeVault.sol
+2
-2
DisputeGameFactory.sol
...ages/contracts-bedrock/src/dispute/DisputeGameFactory.sol
+1
-1
FaultDisputeGame.sol
packages/contracts-bedrock/src/dispute/FaultDisputeGame.sol
+1
-1
DeployerWhitelist.sol
packages/contracts-bedrock/src/legacy/DeployerWhitelist.sol
+2
-2
L1BlockNumber.sol
packages/contracts-bedrock/src/legacy/L1BlockNumber.sol
+2
-2
LegacyMessagePasser.sol
...ages/contracts-bedrock/src/legacy/LegacyMessagePasser.sol
+2
-2
OptimismMintableERC20Factory.sol
...ts-bedrock/src/universal/OptimismMintableERC20Factory.sol
+2
-2
OptimismMintableERC721.sol
...ontracts-bedrock/src/universal/OptimismMintableERC721.sol
+2
-2
OptimismMintableERC721Factory.sol
...s-bedrock/src/universal/OptimismMintableERC721Factory.sol
+2
-2
No files found.
packages/contracts-bedrock/src/EAS/EAS.sol
View file @
bc3a4e36
...
@@ -2,15 +2,11 @@
...
@@ -2,15 +2,11 @@
pragma solidity 0.8.19;
pragma solidity 0.8.19;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { Semver } from "../universal/Semver.sol";
import { Semver } from "../universal/Semver.sol";
import { Predeploys } from "../libraries/Predeploys.sol";
import { Predeploys } from "../libraries/Predeploys.sol";
import { EIP712Verifier } from "./eip712/EIP712Verifier.sol";
import { EIP712Verifier } from "./eip712/EIP712Verifier.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
// prettier-ignore
import {
import {
AccessDenied,
AccessDenied,
EMPTY_UID,
EMPTY_UID,
...
@@ -22,7 +18,6 @@ import {
...
@@ -22,7 +18,6 @@ import {
uncheckedInc
uncheckedInc
} from "./Common.sol";
} from "./Common.sol";
// prettier-ignore
import {
import {
Attestation,
Attestation,
AttestationRequest,
AttestationRequest,
...
@@ -85,7 +80,7 @@ contract EAS is IEAS, Semver, EIP712Verifier {
...
@@ -85,7 +80,7 @@ contract EAS is IEAS, Semver, EIP712Verifier {
uint256[MAX_GAP - 3] private __gap;
uint256[MAX_GAP - 3] private __gap;
/// @dev Creates a new EAS instance.
/// @dev Creates a new EAS instance.
constructor() Semver(1, 0,
1
) EIP712Verifier("EAS", "1.0.1") { }
constructor() Semver(1, 0,
2
) EIP712Verifier("EAS", "1.0.1") { }
/// @inheritdoc IEAS
/// @inheritdoc IEAS
function getSchemaRegistry() external pure returns (ISchemaRegistry) {
function getSchemaRegistry() external pure returns (ISchemaRegistry) {
...
...
packages/contracts-bedrock/src/EAS/SchemaRegistry.sol
View file @
bc3a4e36
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
pragma solidity 0.8.19;
pragma solidity 0.8.19;
import { Semver } from "../universal/Semver.sol";
import { Semver } from "../universal/Semver.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
import { ISchemaResolver } from "./resolver/ISchemaResolver.sol";
import { EMPTY_UID, MAX_GAP } from "./Common.sol";
import { EMPTY_UID, MAX_GAP } from "./Common.sol";
import { ISchemaRegistry, SchemaRecord } from "./ISchemaRegistry.sol";
import { ISchemaRegistry, SchemaRecord } from "./ISchemaRegistry.sol";
...
@@ -22,7 +20,7 @@ contract SchemaRegistry is ISchemaRegistry, Semver {
...
@@ -22,7 +20,7 @@ contract SchemaRegistry is ISchemaRegistry, Semver {
uint256[MAX_GAP - 1] private __gap;
uint256[MAX_GAP - 1] private __gap;
/// @dev Creates a new SchemaRegistry instance.
/// @dev Creates a new SchemaRegistry instance.
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @inheritdoc ISchemaRegistry
/// @inheritdoc ISchemaRegistry
function register(string calldata schema, ISchemaResolver resolver, bool revocable) external returns (bytes32) {
function register(string calldata schema, ISchemaResolver resolver, bool revocable) external returns (bytes32) {
...
...
packages/contracts-bedrock/src/L1/L1CrossDomainMessenger.sol
View file @
bc3a4e36
...
@@ -18,9 +18,9 @@ contract L1CrossDomainMessenger is CrossDomainMessenger, Semver {
...
@@ -18,9 +18,9 @@ contract L1CrossDomainMessenger is CrossDomainMessenger, Semver {
/// @custom:legacy
/// @custom:legacy
OptimismPortal public PORTAL;
OptimismPortal public PORTAL;
/// @custom:semver 1.5.
0
/// @custom:semver 1.5.
1
/// @notice Constructs the L1CrossDomainMessenger contract.
/// @notice Constructs the L1CrossDomainMessenger contract.
constructor() Semver(1, 5,
0
) CrossDomainMessenger(Predeploys.L2_CROSS_DOMAIN_MESSENGER) {
constructor() Semver(1, 5,
1
) CrossDomainMessenger(Predeploys.L2_CROSS_DOMAIN_MESSENGER) {
initialize({ _portal: OptimismPortal(payable(0)) });
initialize({ _portal: OptimismPortal(payable(0)) });
}
}
...
...
packages/contracts-bedrock/src/L1/L1ERC721Bridge.sol
View file @
bc3a4e36
...
@@ -17,9 +17,9 @@ contract L1ERC721Bridge is ERC721Bridge, Semver {
...
@@ -17,9 +17,9 @@ contract L1ERC721Bridge is ERC721Bridge, Semver {
/// by ID was deposited for a given L2 token.
/// by ID was deposited for a given L2 token.
mapping(address => mapping(address => mapping(uint256 => bool))) public deposits;
mapping(address => mapping(address => mapping(uint256 => bool))) public deposits;
/// @custom:semver 1.2.
0
/// @custom:semver 1.2.
1
/// @notice Constructs the contract.
/// @notice Constructs the contract.
constructor() Semver(1, 2,
0
) ERC721Bridge(Predeploys.L2_ERC721_BRIDGE) {
constructor() Semver(1, 2,
1
) ERC721Bridge(Predeploys.L2_ERC721_BRIDGE) {
initialize({ _messenger: CrossDomainMessenger(address(0)) });
initialize({ _messenger: CrossDomainMessenger(address(0)) });
}
}
...
...
packages/contracts-bedrock/src/L1/L1StandardBridge.sol
View file @
bc3a4e36
...
@@ -67,9 +67,9 @@ contract L1StandardBridge is StandardBridge, Semver {
...
@@ -67,9 +67,9 @@ contract L1StandardBridge is StandardBridge, Semver {
bytes extraData
bytes extraData
);
);
/// @custom:semver 1.2.
0
/// @custom:semver 1.2.
1
/// @notice Constructs the L1StandardBridge contract.
/// @notice Constructs the L1StandardBridge contract.
constructor() Semver(1, 2,
0
) StandardBridge(StandardBridge(payable(Predeploys.L2_STANDARD_BRIDGE))) {
constructor() Semver(1, 2,
1
) StandardBridge(StandardBridge(payable(Predeploys.L2_STANDARD_BRIDGE))) {
initialize({ _messenger: CrossDomainMessenger(address(0)) });
initialize({ _messenger: CrossDomainMessenger(address(0)) });
}
}
...
...
packages/contracts-bedrock/src/L1/L2OutputOracle.sol
View file @
bc3a4e36
...
@@ -62,7 +62,7 @@ contract L2OutputOracle is Initializable, Semver {
...
@@ -62,7 +62,7 @@ contract L2OutputOracle is Initializable, Semver {
/// @param newNextOutputIndex Next L2 output index after the deletion.
/// @param newNextOutputIndex Next L2 output index after the deletion.
event OutputsDeleted(uint256 indexed prevNextOutputIndex, uint256 indexed newNextOutputIndex);
event OutputsDeleted(uint256 indexed prevNextOutputIndex, uint256 indexed newNextOutputIndex);
/// @custom:semver 1.4.
0
/// @custom:semver 1.4.
1
/// @notice Constructs the L2OutputOracle contract.
/// @notice Constructs the L2OutputOracle contract.
/// @param _submissionInterval Interval in blocks at which checkpoints must be submitted.
/// @param _submissionInterval Interval in blocks at which checkpoints must be submitted.
/// @param _l2BlockTime The time per L2 block, in seconds.
/// @param _l2BlockTime The time per L2 block, in seconds.
...
@@ -73,7 +73,7 @@ contract L2OutputOracle is Initializable, Semver {
...
@@ -73,7 +73,7 @@ contract L2OutputOracle is Initializable, Semver {
uint256 _l2BlockTime,
uint256 _l2BlockTime,
uint256 _finalizationPeriodSeconds
uint256 _finalizationPeriodSeconds
)
)
Semver(1, 4,
0
)
Semver(1, 4,
1
)
{
{
require(_l2BlockTime > 0, "L2OutputOracle: L2 block time must be greater than 0");
require(_l2BlockTime > 0, "L2OutputOracle: L2 block time must be greater than 0");
require(_submissionInterval > 0, "L2OutputOracle: submission interval must be greater than 0");
require(_submissionInterval > 0, "L2OutputOracle: submission interval must be greater than 0");
...
...
packages/contracts-bedrock/src/L1/OptimismPortal.sol
View file @
bc3a4e36
...
@@ -97,9 +97,9 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
...
@@ -97,9 +97,9 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
_;
_;
}
}
/// @custom:semver 1.8.
0
/// @custom:semver 1.8.
1
/// @notice Constructs the OptimismPortal contract.
/// @notice Constructs the OptimismPortal contract.
constructor() Semver(1, 8,
0
) {
constructor() Semver(1, 8,
1
) {
initialize({
initialize({
_l2Oracle: L2OutputOracle(address(0)),
_l2Oracle: L2OutputOracle(address(0)),
_guardian: address(0),
_guardian: address(0),
...
...
packages/contracts-bedrock/src/L2/BaseFeeVault.sol
View file @
bc3a4e36
...
@@ -9,7 +9,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
...
@@ -9,7 +9,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
/// @title BaseFeeVault
/// @title BaseFeeVault
/// @notice The BaseFeeVault accumulates the base fee that is paid by transactions.
/// @notice The BaseFeeVault accumulates the base fee that is paid by transactions.
contract BaseFeeVault is FeeVault, Semver {
contract BaseFeeVault is FeeVault, Semver {
/// @custom:semver 1.3.
0
/// @custom:semver 1.3.
1
/// @notice Constructs the BaseFeeVault contract.
/// @notice Constructs the BaseFeeVault contract.
/// @param _recipient Wallet that will receive the fees.
/// @param _recipient Wallet that will receive the fees.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
...
@@ -20,6 +20,6 @@ contract BaseFeeVault is FeeVault, Semver {
...
@@ -20,6 +20,6 @@ contract BaseFeeVault is FeeVault, Semver {
WithdrawalNetwork _withdrawalNetwork
WithdrawalNetwork _withdrawalNetwork
)
)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
Semver(1, 3,
0
)
Semver(1, 3,
1
)
{ }
{ }
}
}
packages/contracts-bedrock/src/L2/GasPriceOracle.sol
View file @
bc3a4e36
...
@@ -23,9 +23,9 @@ contract GasPriceOracle is Semver {
...
@@ -23,9 +23,9 @@ contract GasPriceOracle is Semver {
/// @notice Number of decimals used in the scalar.
/// @notice Number of decimals used in the scalar.
uint256 public constant DECIMALS = 6;
uint256 public constant DECIMALS = 6;
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
/// @notice Constructs the GasPriceOracle contract.
/// @notice Constructs the GasPriceOracle contract.
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Computes the L1 portion of the fee based on the size of the rlp encoded input
/// @notice Computes the L1 portion of the fee based on the size of the rlp encoded input
/// transaction, the current L1 base fee, and the various dynamic parameters.
/// transaction, the current L1 base fee, and the various dynamic parameters.
...
...
packages/contracts-bedrock/src/L2/L1Block.sol
View file @
bc3a4e36
...
@@ -38,9 +38,9 @@ contract L1Block is Semver {
...
@@ -38,9 +38,9 @@ contract L1Block is Semver {
/// @notice The scalar value applied to the L1 portion of the transaction fee.
/// @notice The scalar value applied to the L1 portion of the transaction fee.
uint256 public l1FeeScalar;
uint256 public l1FeeScalar;
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
/// @notice Constructs the L1Block contract.
/// @notice Constructs the L1Block contract.
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Updates the L1 block values.
/// @notice Updates the L1 block values.
/// @param _number L1 blocknumber.
/// @param _number L1 blocknumber.
...
...
packages/contracts-bedrock/src/L2/L1FeeVault.sol
View file @
bc3a4e36
...
@@ -9,7 +9,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
...
@@ -9,7 +9,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
/// @title L1FeeVault
/// @title L1FeeVault
/// @notice The L1FeeVault accumulates the L1 portion of the transaction fees.
/// @notice The L1FeeVault accumulates the L1 portion of the transaction fees.
contract L1FeeVault is FeeVault, Semver {
contract L1FeeVault is FeeVault, Semver {
/// @custom:semver 1.3.
0
/// @custom:semver 1.3.
1
/// @notice Constructs the L1FeeVault contract.
/// @notice Constructs the L1FeeVault contract.
/// @param _recipient Wallet that will receive the fees.
/// @param _recipient Wallet that will receive the fees.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
...
@@ -20,6 +20,6 @@ contract L1FeeVault is FeeVault, Semver {
...
@@ -20,6 +20,6 @@ contract L1FeeVault is FeeVault, Semver {
WithdrawalNetwork _withdrawalNetwork
WithdrawalNetwork _withdrawalNetwork
)
)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
Semver(1, 3,
0
)
Semver(1, 3,
1
)
{ }
{ }
}
}
packages/contracts-bedrock/src/L2/L2CrossDomainMessenger.sol
View file @
bc3a4e36
...
@@ -14,10 +14,10 @@ import { L2ToL1MessagePasser } from "./L2ToL1MessagePasser.sol";
...
@@ -14,10 +14,10 @@ import { L2ToL1MessagePasser } from "./L2ToL1MessagePasser.sol";
/// L2 on the L2 side. Users are generally encouraged to use this contract instead of lower
/// L2 on the L2 side. Users are generally encouraged to use this contract instead of lower
/// level message passing contracts.
/// level message passing contracts.
contract L2CrossDomainMessenger is CrossDomainMessenger, Semver {
contract L2CrossDomainMessenger is CrossDomainMessenger, Semver {
/// @custom:semver 1.5.
0
/// @custom:semver 1.5.
1
/// @notice Constructs the L2CrossDomainMessenger contract.
/// @notice Constructs the L2CrossDomainMessenger contract.
/// @param _l1CrossDomainMessenger Address of the L1CrossDomainMessenger contract.
/// @param _l1CrossDomainMessenger Address of the L1CrossDomainMessenger contract.
constructor(address _l1CrossDomainMessenger) Semver(1, 5,
0
) CrossDomainMessenger(_l1CrossDomainMessenger) {
constructor(address _l1CrossDomainMessenger) Semver(1, 5,
1
) CrossDomainMessenger(_l1CrossDomainMessenger) {
initialize();
initialize();
}
}
...
...
packages/contracts-bedrock/src/L2/L2ERC721Bridge.sol
View file @
bc3a4e36
...
@@ -18,10 +18,10 @@ import { Semver } from "../universal/Semver.sol";
...
@@ -18,10 +18,10 @@ import { Semver } from "../universal/Semver.sol";
/// wait for the one-week challenge period to elapse before their Optimism-native NFT
/// wait for the one-week challenge period to elapse before their Optimism-native NFT
/// can be refunded on L2.
/// can be refunded on L2.
contract L2ERC721Bridge is ERC721Bridge, Semver {
contract L2ERC721Bridge is ERC721Bridge, Semver {
/// @custom:semver 1.2.
0
/// @custom:semver 1.2.
1
/// @notice Constructs the L2ERC721Bridge contract.
/// @notice Constructs the L2ERC721Bridge contract.
/// @param _otherBridge Address of the ERC721 bridge on the other network.
/// @param _otherBridge Address of the ERC721 bridge on the other network.
constructor(address _otherBridge) Semver(1, 2,
0
) ERC721Bridge(_otherBridge) {
constructor(address _otherBridge) Semver(1, 2,
1
) ERC721Bridge(_otherBridge) {
initialize({ _messenger: CrossDomainMessenger(address(0)) });
initialize({ _messenger: CrossDomainMessenger(address(0)) });
}
}
...
...
packages/contracts-bedrock/src/L2/L2StandardBridge.sol
View file @
bc3a4e36
...
@@ -51,10 +51,10 @@ contract L2StandardBridge is StandardBridge, Semver {
...
@@ -51,10 +51,10 @@ contract L2StandardBridge is StandardBridge, Semver {
bytes extraData
bytes extraData
);
);
/// @custom:semver 1.2.
0
/// @custom:semver 1.2.
1
/// @notice Constructs the L2StandardBridge contract.
/// @notice Constructs the L2StandardBridge contract.
/// @param _otherBridge Address of the L1StandardBridge.
/// @param _otherBridge Address of the L1StandardBridge.
constructor(StandardBridge _otherBridge) Semver(1, 2,
0
) StandardBridge(_otherBridge) {
constructor(StandardBridge _otherBridge) Semver(1, 2,
1
) StandardBridge(_otherBridge) {
initialize();
initialize();
}
}
...
...
packages/contracts-bedrock/src/L2/L2ToL1MessagePasser.sol
View file @
bc3a4e36
...
@@ -48,9 +48,9 @@ contract L2ToL1MessagePasser is Semver {
...
@@ -48,9 +48,9 @@ contract L2ToL1MessagePasser is Semver {
/// @param amount Amount of ETh that was burned.
/// @param amount Amount of ETh that was burned.
event WithdrawerBalanceBurnt(uint256 indexed amount);
event WithdrawerBalanceBurnt(uint256 indexed amount);
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
/// @notice Constructs the L2ToL1MessagePasser contract.
/// @notice Constructs the L2ToL1MessagePasser contract.
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Allows users to withdraw ETH by sending directly to this contract.
/// @notice Allows users to withdraw ETH by sending directly to this contract.
receive() external payable {
receive() external payable {
...
...
packages/contracts-bedrock/src/L2/SequencerFeeVault.sol
View file @
bc3a4e36
...
@@ -10,7 +10,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
...
@@ -10,7 +10,7 @@ import { FeeVault } from "../universal/FeeVault.sol";
/// @notice The SequencerFeeVault is the contract that holds any fees paid to the Sequencer during
/// @notice The SequencerFeeVault is the contract that holds any fees paid to the Sequencer during
/// transaction processing and block production.
/// transaction processing and block production.
contract SequencerFeeVault is FeeVault, Semver {
contract SequencerFeeVault is FeeVault, Semver {
/// @custom:semver 1.3.
0
/// @custom:semver 1.3.
1
/// @notice Constructs the SequencerFeeVault contract.
/// @notice Constructs the SequencerFeeVault contract.
/// @param _recipient Wallet that will receive the fees.
/// @param _recipient Wallet that will receive the fees.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
/// @param _minWithdrawalAmount Minimum balance for withdrawals.
...
@@ -21,7 +21,7 @@ contract SequencerFeeVault is FeeVault, Semver {
...
@@ -21,7 +21,7 @@ contract SequencerFeeVault is FeeVault, Semver {
WithdrawalNetwork _withdrawalNetwork
WithdrawalNetwork _withdrawalNetwork
)
)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
FeeVault(_recipient, _minWithdrawalAmount, _withdrawalNetwork)
Semver(1, 3,
0
)
Semver(1, 3,
1
)
{ }
{ }
/// @custom:legacy
/// @custom:legacy
...
...
packages/contracts-bedrock/src/dispute/DisputeGameFactory.sol
View file @
bc3a4e36
...
@@ -35,7 +35,7 @@ contract DisputeGameFactory is OwnableUpgradeable, IDisputeGameFactory, Semver {
...
@@ -35,7 +35,7 @@ contract DisputeGameFactory is OwnableUpgradeable, IDisputeGameFactory, Semver {
GameId[] internal _disputeGameList;
GameId[] internal _disputeGameList;
/// @notice constructs a new DisputeGameFactory contract.
/// @notice constructs a new DisputeGameFactory contract.
constructor() OwnableUpgradeable() Semver(0, 0,
3
) {
constructor() OwnableUpgradeable() Semver(0, 0,
4
) {
initialize(address(0));
initialize(address(0));
}
}
...
...
packages/contracts-bedrock/src/dispute/FaultDisputeGame.sol
View file @
bc3a4e36
...
@@ -95,7 +95,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, Semver {
...
@@ -95,7 +95,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, Semver {
L2OutputOracle _l2oo,
L2OutputOracle _l2oo,
BlockOracle _blockOracle
BlockOracle _blockOracle
)
)
Semver(0, 0,
7
)
Semver(0, 0,
8
)
{
{
GAME_TYPE = _gameType;
GAME_TYPE = _gameType;
ABSOLUTE_PRESTATE = _absolutePrestate;
ABSOLUTE_PRESTATE = _absolutePrestate;
...
...
packages/contracts-bedrock/src/legacy/DeployerWhitelist.sol
View file @
bc3a4e36
...
@@ -40,8 +40,8 @@ contract DeployerWhitelist is Semver {
...
@@ -40,8 +40,8 @@ contract DeployerWhitelist is Semver {
_;
_;
}
}
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Adds or removes an address from the deployment whitelist.
/// @notice Adds or removes an address from the deployment whitelist.
/// @param _deployer Address to update permissions for.
/// @param _deployer Address to update permissions for.
...
...
packages/contracts-bedrock/src/legacy/L1BlockNumber.sol
View file @
bc3a4e36
...
@@ -14,8 +14,8 @@ import { Semver } from "../universal/Semver.sol";
...
@@ -14,8 +14,8 @@ import { Semver } from "../universal/Semver.sol";
/// If you want to access the L1 block number going forward, you should use the L1Block
/// If you want to access the L1 block number going forward, you should use the L1Block
/// contract instead.
/// contract instead.
contract L1BlockNumber is Semver {
contract L1BlockNumber is Semver {
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Returns the L1 block number.
/// @notice Returns the L1 block number.
receive() external payable {
receive() external payable {
...
...
packages/contracts-bedrock/src/legacy/LegacyMessagePasser.sol
View file @
bc3a4e36
...
@@ -13,8 +13,8 @@ contract LegacyMessagePasser is Semver {
...
@@ -13,8 +13,8 @@ contract LegacyMessagePasser is Semver {
/// @notice Mapping of sent message hashes to boolean status.
/// @notice Mapping of sent message hashes to boolean status.
mapping(bytes32 => bool) public sentMessages;
mapping(bytes32 => bool) public sentMessages;
/// @custom:semver 1.0.
1
/// @custom:semver 1.0.
2
constructor() Semver(1, 0,
1
) { }
constructor() Semver(1, 0,
2
) { }
/// @notice Passes a message to L1.
/// @notice Passes a message to L1.
/// @param _message Message to pass to L1.
/// @param _message Message to pass to L1.
...
...
packages/contracts-bedrock/src/universal/OptimismMintableERC20Factory.sol
View file @
bc3a4e36
...
@@ -28,12 +28,12 @@ contract OptimismMintableERC20Factory is Semver {
...
@@ -28,12 +28,12 @@ contract OptimismMintableERC20Factory is Semver {
/// @param deployer Address of the account that deployed the token.
/// @param deployer Address of the account that deployed the token.
event OptimismMintableERC20Created(address indexed localToken, address indexed remoteToken, address deployer);
event OptimismMintableERC20Created(address indexed localToken, address indexed remoteToken, address deployer);
/// @custom:semver 1.1.
1
/// @custom:semver 1.1.
2
/// @notice The semver MUST be bumped any time that there is a change in
/// @notice The semver MUST be bumped any time that there is a change in
/// the OptimismMintableERC20 token contract since this contract
/// the OptimismMintableERC20 token contract since this contract
/// is responsible for deploying OptimismMintableERC20 contracts.
/// is responsible for deploying OptimismMintableERC20 contracts.
/// @param _bridge Address of the StandardBridge on this chain.
/// @param _bridge Address of the StandardBridge on this chain.
constructor(address _bridge) Semver(1, 1,
1
) {
constructor(address _bridge) Semver(1, 1,
2
) {
BRIDGE = _bridge;
BRIDGE = _bridge;
}
}
...
...
packages/contracts-bedrock/src/universal/OptimismMintableERC721.sol
View file @
bc3a4e36
...
@@ -31,7 +31,7 @@ contract OptimismMintableERC721 is ERC721Enumerable, IOptimismMintableERC721, Se
...
@@ -31,7 +31,7 @@ contract OptimismMintableERC721 is ERC721Enumerable, IOptimismMintableERC721, Se
_;
_;
}
}
/// @custom:semver 1.1.
1
/// @custom:semver 1.1.
2
/// @param _bridge Address of the bridge on this network.
/// @param _bridge Address of the bridge on this network.
/// @param _remoteChainId Chain ID where the remote token is deployed.
/// @param _remoteChainId Chain ID where the remote token is deployed.
/// @param _remoteToken Address of the corresponding token on the other network.
/// @param _remoteToken Address of the corresponding token on the other network.
...
@@ -45,7 +45,7 @@ contract OptimismMintableERC721 is ERC721Enumerable, IOptimismMintableERC721, Se
...
@@ -45,7 +45,7 @@ contract OptimismMintableERC721 is ERC721Enumerable, IOptimismMintableERC721, Se
string memory _symbol
string memory _symbol
)
)
ERC721(_name, _symbol)
ERC721(_name, _symbol)
Semver(1, 1,
1
)
Semver(1, 1,
2
)
{
{
require(_bridge != address(0), "OptimismMintableERC721: bridge cannot be address(0)");
require(_bridge != address(0), "OptimismMintableERC721: bridge cannot be address(0)");
require(_remoteChainId != 0, "OptimismMintableERC721: remote chain id cannot be zero");
require(_remoteChainId != 0, "OptimismMintableERC721: remote chain id cannot be zero");
...
...
packages/contracts-bedrock/src/universal/OptimismMintableERC721Factory.sol
View file @
bc3a4e36
...
@@ -22,13 +22,13 @@ contract OptimismMintableERC721Factory is Semver {
...
@@ -22,13 +22,13 @@ contract OptimismMintableERC721Factory is Semver {
/// @param deployer Address of the initiator of the deployment
/// @param deployer Address of the initiator of the deployment
event OptimismMintableERC721Created(address indexed localToken, address indexed remoteToken, address deployer);
event OptimismMintableERC721Created(address indexed localToken, address indexed remoteToken, address deployer);
/// @custom:semver 1.2.
1
/// @custom:semver 1.2.
2
/// @notice The semver MUST be bumped any time that there is a change in
/// @notice The semver MUST be bumped any time that there is a change in
/// the OptimismMintableERC721 token contract since this contract
/// the OptimismMintableERC721 token contract since this contract
/// is responsible for deploying OptimismMintableERC721 contracts.
/// is responsible for deploying OptimismMintableERC721 contracts.
/// @param _bridge Address of the ERC721 bridge on this network.
/// @param _bridge Address of the ERC721 bridge on this network.
/// @param _remoteChainId Chain ID for the remote network.
/// @param _remoteChainId Chain ID for the remote network.
constructor(address _bridge, uint256 _remoteChainId) Semver(1, 2,
1
) {
constructor(address _bridge, uint256 _remoteChainId) Semver(1, 2,
2
) {
BRIDGE = _bridge;
BRIDGE = _bridge;
REMOTE_CHAIN_ID = _remoteChainId;
REMOTE_CHAIN_ID = _remoteChainId;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment