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
b9241301
Unverified
Commit
b9241301
authored
Sep 14, 2021
by
elenadimitrova
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename OVM_L2StandardTokenFactory to L2StandardTokenFactory
parent
204ca2be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
L2StandardTokenFactory.sol
...ntracts/contracts/L2/messaging/L2StandardTokenFactory.sol
+2
-2
predeploys.ts
packages/contracts/src/predeploys.ts
+1
-1
L2StandardTokenFactory.spec.ts
...est/contracts/L2/messaging/L2StandardTokenFactory.spec.ts
+6
-6
No files found.
packages/contracts/contracts/L2/messaging/
OVM_
L2StandardTokenFactory.sol
→
packages/contracts/contracts/L2/messaging/L2StandardTokenFactory.sol
View file @
b9241301
...
@@ -7,13 +7,13 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol";
...
@@ -7,13 +7,13 @@ import { L2StandardERC20 } from "../../libraries/standards/L2StandardERC20.sol";
import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol";
import { Lib_PredeployAddresses } from "../../libraries/constants/Lib_PredeployAddresses.sol";
/**
/**
* @title
OVM_
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
* Runtime target: OVM
*/
*/
contract
OVM_
L2StandardTokenFactory {
contract L2StandardTokenFactory {
event StandardL2TokenCreated(address indexed _l1Token, address indexed _l2Token);
event StandardL2TokenCreated(address indexed _l1Token, address indexed _l2Token);
...
...
packages/contracts/src/predeploys.ts
View file @
b9241301
...
@@ -15,7 +15,7 @@ export const predeploys = {
...
@@ -15,7 +15,7 @@ export const predeploys = {
OVM_GasPriceOracle
:
'
0x420000000000000000000000000000000000000F
'
,
OVM_GasPriceOracle
:
'
0x420000000000000000000000000000000000000F
'
,
L2StandardBridge
:
'
0x4200000000000000000000000000000000000010
'
,
L2StandardBridge
:
'
0x4200000000000000000000000000000000000010
'
,
OVM_SequencerFeeVault
:
'
0x4200000000000000000000000000000000000011
'
,
OVM_SequencerFeeVault
:
'
0x4200000000000000000000000000000000000011
'
,
OVM_
L2StandardTokenFactory
:
'
0x4200000000000000000000000000000000000012
'
,
L2StandardTokenFactory
:
'
0x4200000000000000000000000000000000000012
'
,
OVM_L1BlockNumber
:
'
0x4200000000000000000000000000000000000013
'
,
OVM_L1BlockNumber
:
'
0x4200000000000000000000000000000000000013
'
,
// We're temporarily disabling OVM_ETH because the jury is still out on whether or not ETH as an
// We're temporarily disabling OVM_ETH because the jury is still out on whether or not ETH as an
...
...
packages/contracts/test/contracts/L2/messaging/
OVM_
L2StandardTokenFactory.spec.ts
→
packages/contracts/test/contracts/L2/messaging/L2StandardTokenFactory.spec.ts
View file @
b9241301
...
@@ -8,11 +8,11 @@ import { smoddit } from '@eth-optimism/smock'
...
@@ -8,11 +8,11 @@ import { smoddit } from '@eth-optimism/smock'
/* Internal Imports */
/* Internal Imports */
import
{
predeploys
,
getContractInterface
}
from
'
../../../../src
'
import
{
predeploys
,
getContractInterface
}
from
'
../../../../src
'
describe
(
'
OVM_
L2StandardTokenFactory
'
,
()
=>
{
describe
(
'
L2StandardTokenFactory
'
,
()
=>
{
let
signer
:
Signer
let
signer
:
Signer
let
Factory__L1ERC20
:
ContractFactory
let
Factory__L1ERC20
:
ContractFactory
let
L1ERC20
:
Contract
let
L1ERC20
:
Contract
let
OVM_
L2StandardTokenFactory
:
Contract
let
L2StandardTokenFactory
:
Contract
before
(
async
()
=>
{
before
(
async
()
=>
{
;[
signer
]
=
await
ethers
.
getSigners
()
;[
signer
]
=
await
ethers
.
getSigners
()
// deploy an ERC20 contract on L1
// deploy an ERC20 contract on L1
...
@@ -21,14 +21,14 @@ describe('OVM_L2StandardTokenFactory', () => {
...
@@ -21,14 +21,14 @@ describe('OVM_L2StandardTokenFactory', () => {
)
)
L1ERC20
=
await
Factory__L1ERC20
.
deploy
(
'
L1ERC20
'
,
'
ERC
'
)
L1ERC20
=
await
Factory__L1ERC20
.
deploy
(
'
L1ERC20
'
,
'
ERC
'
)
OVM_
L2StandardTokenFactory
=
await
(
L2StandardTokenFactory
=
await
(
await
ethers
.
getContractFactory
(
'
OVM_
L2StandardTokenFactory
'
)
await
ethers
.
getContractFactory
(
'
L2StandardTokenFactory
'
)
).
deploy
()
).
deploy
()
})
})
describe
(
'
Standard token factory
'
,
()
=>
{
describe
(
'
Standard token factory
'
,
()
=>
{
it
(
'
should be able to create a standard token
'
,
async
()
=>
{
it
(
'
should be able to create a standard token
'
,
async
()
=>
{
const
tx
=
await
OVM_
L2StandardTokenFactory
.
createStandardL2Token
(
const
tx
=
await
L2StandardTokenFactory
.
createStandardL2Token
(
L1ERC20
.
address
,
L1ERC20
.
address
,
'
L2ERC20
'
,
'
L2ERC20
'
,
'
ERC
'
'
ERC
'
...
@@ -55,7 +55,7 @@ describe('OVM_L2StandardTokenFactory', () => {
...
@@ -55,7 +55,7 @@ describe('OVM_L2StandardTokenFactory', () => {
it
(
'
should not be able to create a standard token with a 0 address for l1 token
'
,
async
()
=>
{
it
(
'
should not be able to create a standard token with a 0 address for l1 token
'
,
async
()
=>
{
await
expect
(
await
expect
(
OVM_
L2StandardTokenFactory
.
createStandardL2Token
(
L2StandardTokenFactory
.
createStandardL2Token
(
ethers
.
constants
.
AddressZero
,
ethers
.
constants
.
AddressZero
,
'
L2ERC20
'
,
'
L2ERC20
'
,
'
ERC
'
'
ERC
'
...
...
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