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
3a87ac26
Commit
3a87ac26
authored
Nov 09, 2021
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenesis-surgery: initial predeploy spec
Adds a skeleton for the initial predeploy tests
parent
12b153ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
20 deletions
+42
-20
predeploy.spec.ts
packages/regenesis-surgery/test/predeploy.spec.ts
+42
-20
No files found.
packages/regenesis-surgery/test/predeploy.spec.ts
View file @
3a87ac26
/* eslint-disable @typescript-eslint/no-empty-function */
/* eslint-disable @typescript-eslint/no-empty-function */
describe
.
skip
(
'
predeploys
'
,
()
=>
{
import
{
expect
,
env
}
from
'
./setup
'
describe
(
'
new predeploys that are not ETH
'
,
()
=>
{
import
{
AccountType
,
Account
}
from
'
../scripts/types
'
describe
(
'
predeploys
'
,
()
=>
{
let
predeploys
=
{
eth
:
[],
newNotEth
:
[],
noWipe
:
[],
wipe
:
[],
weth
:
[],
}
before
(
async
()
=>
{
await
env
.
init
()
predeploys
.
eth
=
env
.
getAccountsByType
(
AccountType
.
PREDEPLOY_ETH
)
predeploys
.
newNotEth
=
env
.
getAccountsByType
(
AccountType
.
PREDEPLOY_NEW_NOT_ETH
)
predeploys
.
noWipe
=
env
.
getAccountsByType
(
AccountType
.
PREDEPLOY_NO_WIPE
)
predeploys
.
wipe
=
env
.
getAccountsByType
(
AccountType
.
PREDEPLOY_WIPE
)
predeploys
.
weth
=
env
.
getAccountsByType
(
AccountType
.
PREDEPLOY_WETH
)
})
it
(
'
predeploy tests
'
,
()
=>
{
describe
.
skip
(
'
new predeploys that are not ETH
'
,
()
=>
{
it
(
'
should have the exact state specified in the base genesis file
'
,
async
()
=>
{})
it
(
'
should have the exact state specified in the base genesis file
'
,
async
()
=>
{})
})
})
describe
(
'
predeploys where the old state should be wiped
'
,
()
=>
{
describe
.
skip
(
'
predeploys where the old state should be wiped
'
,
()
=>
{
it
(
'
should have the code and storage of the base genesis file
'
,
async
()
=>
{})
it
(
'
should have the code and storage of the base genesis file
'
,
async
()
=>
{})
it
(
'
should have the same nonce and balance as before
'
,
async
()
=>
{})
it
(
'
should have the same nonce and balance as before
'
,
async
()
=>
{})
})
})
describe
(
'
predeploys where the old state should be preserved
'
,
()
=>
{
describe
.
skip
(
'
predeploys where the old state should be preserved
'
,
()
=>
{
it
(
'
should have the code of the base genesis file
'
,
async
()
=>
{})
it
(
'
should have the code of the base genesis file
'
,
async
()
=>
{})
it
(
'
should have the combined storage of the old and new state
'
,
async
()
=>
{})
it
(
'
should have the combined storage of the old and new state
'
,
async
()
=>
{})
...
@@ -18,7 +39,7 @@ describe.skip('predeploys', () => {
...
@@ -18,7 +39,7 @@ describe.skip('predeploys', () => {
it
(
'
should have the same nonce and balance as before
'
,
async
()
=>
{})
it
(
'
should have the same nonce and balance as before
'
,
async
()
=>
{})
})
})
describe
(
'
OVM_ETH
'
,
()
=>
{
describe
.
skip
(
'
OVM_ETH
'
,
()
=>
{
it
(
'
should have disabled ERC20 features
'
,
async
()
=>
{})
it
(
'
should have disabled ERC20 features
'
,
async
()
=>
{})
it
(
'
should no recorded balance for the contracts that move to WETH9
'
,
async
()
=>
{})
it
(
'
should no recorded balance for the contracts that move to WETH9
'
,
async
()
=>
{})
...
@@ -26,9 +47,10 @@ describe.skip('predeploys', () => {
...
@@ -26,9 +47,10 @@ describe.skip('predeploys', () => {
it
(
'
should have a new balance for WETH9 equal to the sum of the moved contract balances
'
,
async
()
=>
{})
it
(
'
should have a new balance for WETH9 equal to the sum of the moved contract balances
'
,
async
()
=>
{})
})
})
describe
(
'
WETH9
'
,
()
=>
{
describe
.
skip
(
'
WETH9
'
,
()
=>
{
it
(
'
should have balances for each contract that should move
'
,
async
()
=>
{})
it
(
'
should have balances for each contract that should move
'
,
async
()
=>
{})
it
(
'
should have a balance equal to the sum of all moved balances
'
,
async
()
=>
{})
it
(
'
should have a balance equal to the sum of all moved balances
'
,
async
()
=>
{})
})
})
})
})
})
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