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
6c716c2b
Commit
6c716c2b
authored
Jan 12, 2021
by
Kevin Ho
Committed by
GitHub
Jan 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert chain ID 422 -> 420 (#185)
parent
01f416bd
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
deploy.js
packages/contracts/bin/deploy.js
+1
-1
take-dump.ts
packages/contracts/bin/take-dump.ts
+1
-1
contract-dumps.ts
packages/contracts/src/contract-dumps.ts
+1
-1
OVM_ECDSAContractAccount.spec.ts
...t/contracts/OVM/accounts/OVM_ECDSAContractAccount.spec.ts
+1
-1
context-opcodes.spec.ts
...VM/execution/OVM_ExecutionManager/context-opcodes.spec.ts
+1
-1
OVM_ProxySequencerEntrypoint.spec.ts
...acts/OVM/precompiles/OVM_ProxySequencerEntrypoint.spec.ts
+1
-1
OVM_SequencerEntrypoint.spec.ts
...contracts/OVM/precompiles/OVM_SequencerEntrypoint.spec.ts
+1
-1
Lib_OVMCodec.test.json
...cts/test/data/json/libraries/codec/Lib_OVMCodec.test.json
+1
-1
encoding.ts
packages/contracts/test/helpers/codec/encoding.ts
+1
-1
test-runner.ts
packages/contracts/test/helpers/test-runner/test-runner.ts
+1
-1
No files found.
packages/contracts/bin/deploy.js
View file @
6c716c2b
...
...
@@ -21,7 +21,7 @@ const WHITELIST_ALLOW_ARBITRARY_CONTRACT_DEPLOYMENT = env.WHITELIST_ALLOW_ARBITR
const
FORCE_INCLUSION_PERIOD_SECONDS
=
env
.
FORCE_INCLUSION_PERIOD_SECONDS
||
2592000
;
// 30 days
const
FRAUD_PROOF_WINDOW_SECONDS
=
env
.
FRAUD_PROOF_WINDOW_SECONDS
||
(
60
*
60
*
24
*
7
);
// 7 days
const
SEQUENCER_PUBLISH_WINDOW_SECONDS
=
env
.
SEQUENCER_PUBLISH_WINDOW_SECONDS
||
(
60
*
30
);
// 30 min
const
CHAIN_ID
=
env
.
CHAIN_ID
||
42
2
;
// layer 2 chainid
const
CHAIN_ID
=
env
.
CHAIN_ID
||
42
0
;
// layer 2 chainid
const
USE_LEDGER
=
env
.
USE_LEDGER
||
false
;
const
HD_PATH
=
env
.
HD_PATH
||
utils
.
defaultPath
;
const
BLOCK_TIME_SECONDS
=
env
.
BLOCK_TIME_SECONDS
||
15
;
...
...
packages/contracts/bin/take-dump.ts
View file @
6c716c2b
...
...
@@ -5,7 +5,7 @@ import * as mkdirp from 'mkdirp'
const
env
=
process
.
env
const
CHAIN_ID
=
env
.
CHAIN_ID
||
'
42
2
'
const
CHAIN_ID
=
env
.
CHAIN_ID
||
'
42
0
'
/* Internal Imports */
import
{
makeStateDump
}
from
'
../src/contract-dumps
'
...
...
packages/contracts/src/contract-dumps.ts
View file @
6c716c2b
...
...
@@ -119,7 +119,7 @@ export const makeStateDump = async (cfg: RollupDeployConfig): Promise<any> => {
secondsPerEpoch
:
0
,
},
ovmGlobalContext
:
{
ovmCHAINID
:
42
2
,
ovmCHAINID
:
42
0
,
L2CrossDomainMessengerAddress
:
'
0x4200000000000000000000000000000000000007
'
,
},
...
...
packages/contracts/test/contracts/OVM/accounts/OVM_ECDSAContractAccount.spec.ts
View file @
6c716c2b
...
...
@@ -73,7 +73,7 @@ describe('OVM_ECDSAContractAccount', () => {
Mock__OVM_ExecutionManager
.
smocked
.
ovmADDRESS
.
will
.
return
.
with
(
await
wallet
.
getAddress
()
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
2
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
0
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmGETNONCE
.
will
.
return
.
with
(
100
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCALL
.
will
.
return
.
with
([
true
,
'
0x
'
])
Mock__OVM_ExecutionManager
.
smocked
.
ovmCREATE
.
will
.
return
.
with
(
...
...
packages/contracts/test/contracts/OVM/execution/OVM_ExecutionManager/context-opcodes.spec.ts
View file @
6c716c2b
...
...
@@ -7,7 +7,7 @@ import {
}
from
'
../../../../helpers
'
const
globalContext
=
{
ovmCHAINID
:
42
2
,
ovmCHAINID
:
42
0
,
}
const
transactionContext
=
{
...
...
packages/contracts/test/contracts/OVM/precompiles/OVM_ProxySequencerEntrypoint.spec.ts
View file @
6c716c2b
...
...
@@ -53,7 +53,7 @@ describe('OVM_ProxySequencerEntrypoint', () => {
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmEXTCODESIZE
.
will
.
return
.
with
(
0
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
2
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
0
)
Helper_PrecompileCaller
=
await
(
await
ethers
.
getContractFactory
(
'
Helper_PrecompileCaller
'
)
...
...
packages/contracts/test/contracts/OVM/precompiles/OVM_SequencerEntrypoint.spec.ts
View file @
6c716c2b
...
...
@@ -32,7 +32,7 @@ describe('OVM_SequencerEntrypoint', () => {
await
ethers
.
getContractFactory
(
'
OVM_ExecutionManager
'
)
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
2
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCHAINID
.
will
.
return
.
with
(
42
0
)
Mock__OVM_ExecutionManager
.
smocked
.
ovmCALL
.
will
.
return
.
with
([
true
,
'
0x
'
])
Helper_PrecompileCaller
=
await
(
...
...
packages/contracts/test/data/json/libraries/codec/Lib_OVMCodec.test.json
View file @
6c716c2b
...
...
@@ -13,7 +13,7 @@
"0x1212121212121212121212121212121212121212"
,
0
,
"0x99999999999999999999"
,
42
2
42
0
]
]
}
...
...
packages/contracts/test/helpers/codec/encoding.ts
View file @
6c716c2b
...
...
@@ -32,7 +32,7 @@ export const DEFAULT_EIP155_TX: EIP155Transaction = {
gasLimit
:
1000000
,
gasPrice
:
100000000
,
data
:
`0x
${
'
99
'
.
repeat
(
10
)}
`
,
chainId
:
42
2
,
chainId
:
42
0
,
}
export
const
getRawSignedComponents
=
(
signed
:
string
):
any
[]
=>
{
...
...
packages/contracts/test/helpers/test-runner/test-runner.ts
View file @
6c716c2b
...
...
@@ -213,7 +213,7 @@ export class ExecutionManagerTestRunner {
secondsPerEpoch
:
600
,
},
{
ovmCHAINID
:
42
2
,
ovmCHAINID
:
42
0
,
}
)
...
...
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