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
47bf1dfd
Commit
47bf1dfd
authored
Oct 30, 2020
by
Mark Tyneway
Committed by
GitHub
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy: use layer 2 chainid (#42)
parent
c346e5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
deploy.js
packages/contracts/bin/deploy.js
+2
-3
No files found.
packages/contracts/bin/deploy.js
View file @
47bf1dfd
...
@@ -15,6 +15,7 @@ const SECONDS_PER_EPOCH = env.SECONDS_PER_EPOCH || 600;
...
@@ -15,6 +15,7 @@ const SECONDS_PER_EPOCH = env.SECONDS_PER_EPOCH || 600;
let
WHITELIST_OWNER
=
env
.
WHITELIST_OWNER
;
let
WHITELIST_OWNER
=
env
.
WHITELIST_OWNER
;
const
WHITELIST_ALLOW_ARBITRARY_CONTRACT_DEPLOYMENT
=
env
.
WHITELIST_ALLOW_ARBITRARY_CONTRACT_DEPLOYMENT
||
true
;
const
WHITELIST_ALLOW_ARBITRARY_CONTRACT_DEPLOYMENT
=
env
.
WHITELIST_ALLOW_ARBITRARY_CONTRACT_DEPLOYMENT
||
true
;
const
FORCE_INCLUSION_PERIOD_SECONDS
=
env
.
FORCE_INCLUSION_PERIOD_SECONDS
||
(
30
*
60
);
const
FORCE_INCLUSION_PERIOD_SECONDS
=
env
.
FORCE_INCLUSION_PERIOD_SECONDS
||
(
30
*
60
);
const
CHAIN_ID
=
env
.
CHAIN_ID
||
420
;
// layer 2 chainid
(
async
()
=>
{
(
async
()
=>
{
if
(
typeof
key
===
'
undefined
'
)
if
(
typeof
key
===
'
undefined
'
)
...
@@ -27,8 +28,6 @@ const FORCE_INCLUSION_PERIOD_SECONDS = env.FORCE_INCLUSION_PERIOD_SECONDS || (30
...
@@ -27,8 +28,6 @@ const FORCE_INCLUSION_PERIOD_SECONDS = env.FORCE_INCLUSION_PERIOD_SECONDS || (30
const
signer
=
new
Wallet
(
key
,
provider
);
const
signer
=
new
Wallet
(
key
,
provider
);
const
sequencer
=
new
Wallet
(
sequencerKey
,
provider
);
const
sequencer
=
new
Wallet
(
sequencerKey
,
provider
);
const
chainid
=
await
provider
.
send
(
'
eth_chainId
'
,
[]);
if
(
typeof
WHITELIST_OWNER
===
'
undefined
'
)
if
(
typeof
WHITELIST_OWNER
===
'
undefined
'
)
WHITELIST_OWNER
=
signer
;
WHITELIST_OWNER
=
signer
;
...
@@ -39,7 +38,7 @@ const FORCE_INCLUSION_PERIOD_SECONDS = env.FORCE_INCLUSION_PERIOD_SECONDS || (30
...
@@ -39,7 +38,7 @@ const FORCE_INCLUSION_PERIOD_SECONDS = env.FORCE_INCLUSION_PERIOD_SECONDS || (30
sequencer
,
sequencer
,
},
},
ovmGlobalContext
:
{
ovmGlobalContext
:
{
ovmCHAINID
:
chainid
ovmCHAINID
:
CHAIN_ID
},
},
ovmGasMeteringConfig
:
{
ovmGasMeteringConfig
:
{
minTransactionGasLimit
:
MIN_TRANSACTION_GAS_LIMIT
,
minTransactionGasLimit
:
MIN_TRANSACTION_GAS_LIMIT
,
...
...
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