import '../setup' ; import { DB , newInMemoryDB } from '@pigi/core-db' ; import { DefaultRollupStateMachine } from '../../src/app' ; import { SignedTransaction , Transfer } from '../../src/types' ; const sender = '423Ace7C343094Ed5EB34B0a1838c19adB2BAC92' ; const recipient = 'ba3739e8B603cFBCe513C9A4f8b6fFD44312d75E' ; const transfer = { sender , recipient , tokenType : 1 , amount : 10 , } ; const mockSignedTransfer = { signature : 'derp derp derp' , transaction : transfer , } ; describe ( 'RollupStateMachine' , ( ) => { let rollupStateMachine ; let db ; beforeEach ( async ( ) => { db = newInMemoryDB ( ) ; rollupStateMachine = await DefaultRollupStateMachine . create ( db ) ; } ) ; } ) ;