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
677e85a6
Unverified
Commit
677e85a6
authored
Sep 21, 2021
by
elenadimitrova
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assorted instances of OVM prefix removed
parent
8a98e21f
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
5 additions
and
22 deletions
+5
-22
L1StandardBridge.sol
...ges/contracts/contracts/L1/messaging/L1StandardBridge.sol
+0
-1
CanonicalTransactionChain.sol
...ntracts/contracts/L1/rollup/CanonicalTransactionChain.sol
+0
-1
IL2ERC20Bridge.sol
packages/contracts/contracts/L2/messaging/IL2ERC20Bridge.sol
+1
-1
L2CrossDomainMessenger.sol
...ntracts/contracts/L2/messaging/L2CrossDomainMessenger.sol
+1
-2
L2StandardBridge.sol
...ges/contracts/contracts/L2/messaging/L2StandardBridge.sol
+0
-2
L2StandardTokenFactory.sol
...ntracts/contracts/L2/messaging/L2StandardTokenFactory.sol
+0
-2
OVM_DeployerWhitelist.sol
...ntracts/contracts/L2/predeploys/OVM_DeployerWhitelist.sol
+0
-2
OVM_ETH.sol
packages/contracts/contracts/L2/predeploys/OVM_ETH.sol
+0
-2
OVM_GasPriceOracle.sol
.../contracts/contracts/L2/predeploys/OVM_GasPriceOracle.sol
+0
-2
OVM_L2ToL1MessagePasser.sol
...racts/contracts/L2/predeploys/OVM_L2ToL1MessagePasser.sol
+0
-2
OVM_SequencerFeeVault.sol
...ntracts/contracts/L2/predeploys/OVM_SequencerFeeVault.sol
+0
-2
011-fund-accounts.ts
packages/contracts/deploy/011-fund-accounts.ts
+1
-1
generate-markdown.js
packages/contracts/scripts/generate-markdown.js
+1
-1
OVM_SequencerFeeVault.spec.ts
...est/contracts/L2/predeploys/OVM_SequencerFeeVault.spec.ts
+1
-1
No files found.
packages/contracts/contracts/L1/messaging/L1StandardBridge.sol
View file @
677e85a6
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
pragma experimental ABIEncoderV2;
...
...
packages/contracts/contracts/L1/rollup/CanonicalTransactionChain.sol
View file @
677e85a6
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
pragma experimental ABIEncoderV2;
...
...
packages/contracts/contracts/L2/messaging/IL2ERC20Bridge.sol
View file @
677e85a6
...
@@ -92,7 +92,7 @@ interface IL2ERC20Bridge {
...
@@ -92,7 +92,7 @@ interface IL2ERC20Bridge {
/**
/**
* @dev Complete a deposit from L1 to L2, and credits funds to the recipient's balance of this
* @dev Complete a deposit from L1 to L2, and credits funds to the recipient's balance of this
* L2 token. This call will fail if it did not originate from a corresponding deposit in
* L2 token. This call will fail if it did not originate from a corresponding deposit in
*
OVM_l1TokenGateway
.
*
L1StandardTokenBridge
.
* @param _l1Token Address for the l1 token this is called with
* @param _l1Token Address for the l1 token this is called with
* @param _l2Token Address for the l2 token this is called with
* @param _l2Token Address for the l2 token this is called with
* @param _from Account to pull the deposit from on L2.
* @param _from Account to pull the deposit from on L2.
...
...
packages/contracts/contracts/L2/messaging/L2CrossDomainMessenger.sol
View file @
677e85a6
...
@@ -23,8 +23,7 @@ import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.s
...
@@ -23,8 +23,7 @@ import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.s
* @dev The L2 Cross Domain Messenger contract sends messages from L2 to L1, and is the entry point
* @dev The L2 Cross Domain Messenger contract sends messages from L2 to L1, and is the entry point
* for L2 messages sent via the L1 Cross Domain Messenger.
* for L2 messages sent via the L1 Cross Domain Messenger.
*
*
* Runtime target: OVM
*/
*/
contract L2CrossDomainMessenger is
contract L2CrossDomainMessenger is
IL2CrossDomainMessenger,
IL2CrossDomainMessenger,
ReentrancyGuard
ReentrancyGuard
...
...
packages/contracts/contracts/L2/messaging/L2StandardBridge.sol
View file @
677e85a6
...
@@ -23,8 +23,6 @@ import { IL2StandardERC20 } from "../../libraries/standards/IL2StandardERC20.sol
...
@@ -23,8 +23,6 @@ import { IL2StandardERC20 } from "../../libraries/standards/IL2StandardERC20.sol
* bridge.
* bridge.
* This contract also acts as a burner of the tokens intended for withdrawal, informing the L1
* This contract also acts as a burner of the tokens intended for withdrawal, informing the L1
* bridge to release L1 funds.
* bridge to release L1 funds.
*
* Runtime target: OVM
*/
*/
contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
...
...
packages/contracts/contracts/L2/messaging/L2StandardTokenFactory.sol
View file @
677e85a6
...
@@ -10,8 +10,6 @@ import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployA
...
@@ -10,8 +10,6 @@ import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployA
* @title L2StandardTokenFactory
* @title L2StandardTokenFactory
* @dev Factory contract for creating standard L2 token representations of L1 ERC20s
* @dev Factory contract for creating standard L2 token representations of L1 ERC20s
* compatible with and working on the standard bridge.
* compatible with and working on the standard bridge.
*
* Runtime target: OVM
*/
*/
contract L2StandardTokenFactory {
contract L2StandardTokenFactory {
...
...
packages/contracts/contracts/L2/predeploys/OVM_DeployerWhitelist.sol
View file @
677e85a6
...
@@ -7,8 +7,6 @@ pragma solidity >0.5.0 <0.8.0;
...
@@ -7,8 +7,6 @@ pragma solidity >0.5.0 <0.8.0;
* initial phases of our mainnet roll out. It is owned by the Optimism team, and defines accounts
* initial phases of our mainnet roll out. It is owned by the Optimism team, and defines accounts
* which are allowed to deploy contracts on Layer2. The Execution Manager will only allow an
* which are allowed to deploy contracts on Layer2. The Execution Manager will only allow an
* ovmCREATE or ovmCREATE2 operation to proceed if the deployer's address whitelisted.
* ovmCREATE or ovmCREATE2 operation to proceed if the deployer's address whitelisted.
*
* Runtime target: OVM
*/
*/
contract OVM_DeployerWhitelist {
contract OVM_DeployerWhitelist {
...
...
packages/contracts/contracts/L2/predeploys/OVM_ETH.sol
View file @
677e85a6
...
@@ -11,8 +11,6 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol";
...
@@ -11,8 +11,6 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol";
* @title OVM_ETH
* @title OVM_ETH
* @dev The ETH predeploy provides an ERC20 interface for ETH deposited to Layer 2. Note that
* @dev The ETH predeploy provides an ERC20 interface for ETH deposited to Layer 2. Note that
* unlike on Layer 1, Layer 2 accounts do not have a balance field.
* unlike on Layer 1, Layer 2 accounts do not have a balance field.
*
* Runtime target: OVM
*/
*/
contract OVM_ETH is L2StandardERC20 {
contract OVM_ETH is L2StandardERC20 {
...
...
packages/contracts/contracts/L2/predeploys/OVM_GasPriceOracle.sol
View file @
677e85a6
...
@@ -10,8 +10,6 @@ import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
...
@@ -10,8 +10,6 @@ import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
* currently is. This measure is used by the Sequencer to determine what fee to charge for
* currently is. This measure is used by the Sequencer to determine what fee to charge for
* transactions. When the system is more congested, the l2 gas price will increase and fees
* transactions. When the system is more congested, the l2 gas price will increase and fees
* will also increase as a result.
* will also increase as a result.
*
* Runtime target: OVM
*/
*/
contract OVM_GasPriceOracle is Ownable {
contract OVM_GasPriceOracle is Ownable {
...
...
packages/contracts/contracts/L2/predeploys/OVM_L2ToL1MessagePasser.sol
View file @
677e85a6
...
@@ -10,8 +10,6 @@ import { iOVM_L2ToL1MessagePasser } from "./iOVM_L2ToL1MessagePasser.sol";
...
@@ -10,8 +10,6 @@ import { iOVM_L2ToL1MessagePasser } from "./iOVM_L2ToL1MessagePasser.sol";
* of a message on L2. The L1 Cross Domain Messenger performs this proof in its
* of a message on L2. The L1 Cross Domain Messenger performs this proof in its
* _verifyStorageProof function, which verifies the existence of the transaction hash in this
* _verifyStorageProof function, which verifies the existence of the transaction hash in this
* contract's `sentMessages` mapping.
* contract's `sentMessages` mapping.
*
* Runtime target: OVM
*/
*/
contract OVM_L2ToL1MessagePasser is iOVM_L2ToL1MessagePasser {
contract OVM_L2ToL1MessagePasser is iOVM_L2ToL1MessagePasser {
...
...
packages/contracts/contracts/L2/predeploys/OVM_SequencerFeeVault.sol
View file @
677e85a6
...
@@ -11,8 +11,6 @@ import { L2StandardBridge } from "../messaging/L2StandardBridge.sol";
...
@@ -11,8 +11,6 @@ import { L2StandardBridge } from "../messaging/L2StandardBridge.sol";
* @title OVM_SequencerFeeVault
* @title OVM_SequencerFeeVault
* @dev Simple holding contract for fees paid to the Sequencer. Likely to be replaced in the future
* @dev Simple holding contract for fees paid to the Sequencer. Likely to be replaced in the future
* but "good enough for now".
* but "good enough for now".
*
* Runtime target: OVM
*/
*/
contract OVM_SequencerFeeVault {
contract OVM_SequencerFeeVault {
...
...
packages/contracts/deploy/011-fund-accounts.ts
View file @
677e85a6
...
@@ -58,7 +58,7 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -58,7 +58,7 @@ const deployFn: DeployFunction = async (hre) => {
}
}
}
}
deployFn
.
dependencies
=
[
'
Proxy__
OVM_L1ETHGateway
'
]
deployFn
.
dependencies
=
[
'
Proxy__
L1StandardBridge
'
]
deployFn
.
tags
=
[
'
fund-accounts
'
]
deployFn
.
tags
=
[
'
fund-accounts
'
]
export
default
deployFn
export
default
deployFn
packages/contracts/scripts/generate-markdown.js
View file @
677e85a6
...
@@ -74,7 +74,7 @@ const networks = {
...
@@ -74,7 +74,7 @@ const networks = {
if
(
contracts
[
i
]
===
'
L1CrossDomainMessenger
'
)
{
if
(
contracts
[
i
]
===
'
L1CrossDomainMessenger
'
)
{
proxiedContracts
.
push
(
contracts
.
splice
(
i
,
1
)[
0
])
proxiedContracts
.
push
(
contracts
.
splice
(
i
,
1
)[
0
])
}
}
if
(
contracts
[
i
]
===
'
OVM_L1ETHGateway
'
)
{
if
(
contracts
[
i
]
===
'
Proxy__L1StandardBridge
'
)
{
proxiedContracts
.
push
(
contracts
.
splice
(
i
,
1
)[
0
])
proxiedContracts
.
push
(
contracts
.
splice
(
i
,
1
)[
0
])
}
}
}
}
...
...
packages/contracts/test/contracts/L2/predeploys/OVM_SequencerFeeVault.spec.ts
View file @
677e85a6
...
@@ -16,7 +16,7 @@ describe('OVM_SequencerFeeVault', () => {
...
@@ -16,7 +16,7 @@ describe('OVM_SequencerFeeVault', () => {
let
Mock__L2StandardBridge
:
MockContract
let
Mock__L2StandardBridge
:
MockContract
before
(
async
()
=>
{
before
(
async
()
=>
{
Mock__L2StandardBridge
=
await
smockit
(
'
OVM_
L2StandardBridge
'
,
{
Mock__L2StandardBridge
=
await
smockit
(
'
L2StandardBridge
'
,
{
address
:
predeploys
.
L2StandardBridge
,
address
:
predeploys
.
L2StandardBridge
,
})
})
})
})
...
...
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