Commit 3a87ac26 authored by Mark Tyneway's avatar Mark Tyneway

regenesis-surgery: initial predeploy spec

Adds a skeleton for the initial predeploy tests
parent 12b153ab
/* eslint-disable @typescript-eslint/no-empty-function */
describe.skip('predeploys', () => {
describe('new predeploys that are not ETH', () => {
import { expect, env } from './setup'
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 () => {})
})
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 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 combined storage of the old and new state', async () => {})
......@@ -18,7 +39,7 @@ describe.skip('predeploys', () => {
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 no recorded balance for the contracts that move to WETH9', async () => {})
......@@ -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 () => {})
})
describe('WETH9', () => {
describe.skip('WETH9', () => {
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 () => {})
})
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment