@@ -20,6 +20,7 @@ import {
2020 IInbox__factory ,
2121 Inbox__factory ,
2222 RollupCore__factory ,
23+ RollupCreator ,
2324 RollupCreator__factory ,
2425} from '../../build/types'
2526import { AssertionStateStruct } from '../../build/types/src/challengeV2/IAssertionChain'
@@ -30,6 +31,7 @@ import {
3031 l1Networks ,
3132 l2Networks ,
3233} from '@arbitrum/sdk/dist/lib/dataEntities/networks'
34+ import { ConfigStruct } from '../../build/types/src/rollup/RollupCreator'
3335
3436const LOCALHOST_L2_RPC = 'http://127.0.0.1:8547'
3537const LOCALHOST_L3_RPC = 'http://127.0.0.1:3347'
@@ -56,6 +58,7 @@ describe('Orbit Chain', () => {
5658 )
5759 l2Network = {
5860 ...coreL2Network ,
61+ isBold : true ,
5962 tokenBridge : {
6063 l1CustomGateway : '' ,
6164 l1ERC20Gateway : '' ,
@@ -822,15 +825,15 @@ describe('Orbit Chain', () => {
822825 }
823826
824827 /// deploy params
825- const config = {
828+ const ownerAddr = '0x72f7EEedF02C522242a4D3Bdc8aE6A8583aD7c5e'
829+ const config : ConfigStruct = {
826830 confirmPeriodBlocks : ethers . BigNumber . from ( '150' ) ,
827- extraChallengeTimeBlocks : ethers . BigNumber . from ( '200' ) ,
828- stakeToken : ethers . constants . AddressZero ,
831+ stakeToken : '0x000000000000000000000000000000000000dead' ,
829832 baseStake : ethers . utils . parseEther ( '1' ) ,
830833 wasmModuleRoot :
831834 '0xda4e3ad5e7feacb817c21c8d0220da7650fe9051ece68a3f0b1c5d38bbb27b21' ,
832- owner : '0x72f7EEedF02C522242a4D3Bdc8aE6A8583aD7c5e' ,
833- loserStakeEscrow : ethers . constants . AddressZero ,
835+ owner : ownerAddr ,
836+ loserStakeEscrow : ownerAddr ,
834837 chainId : ethers . BigNumber . from ( '433333' ) ,
835838 chainConfig :
836839 '{"chainId":433333,"homesteadBlock":0,"daoForkBlock":null,"daoForkSupport":true,"eip150Block":0,"eip150Hash":"0x0000000000000000000000000000000000000000000000000000000000000000","eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"berlinBlock":0,"londonBlock":0,"clique":{"period":0,"epoch":0},"arbitrum":{"EnableArbOS":true,"AllowDebugPrecompiles":false,"DataAvailabilityCommittee":false,"InitialArbOSVersion":10,"InitialChainOwner":"0x72f7EEedF02C522242a4D3Bdc8aE6A8583aD7c5e","GenesisBlockNum":0}}' ,
@@ -867,7 +870,7 @@ describe('Orbit Chain', () => {
867870 const deployFactoriesToL2 = true
868871 const maxFeePerGasForRetryables = BigNumber . from ( '100000000' ) // 0.1 gwei
869872
870- const deployParams = {
873+ const deployParams : RollupCreator . RollupDeploymentParamsStruct = {
871874 config,
872875 batchPosters,
873876 batchPosterManager,
@@ -884,6 +887,7 @@ describe('Orbit Chain', () => {
884887 value : nativeToken ? BigNumber . from ( 0 ) : fee ,
885888 } )
886889 ) . wait ( )
890+
887891 const l1TxReceipt = new L1TransactionReceipt ( receipt )
888892
889893 // 1 init message + 8 msgs for deploying factories
@@ -1195,7 +1199,7 @@ async function _getRollupCreatorFromLogs(
11951199 const filter : Filter = {
11961200 topics : [
11971201 ethers . utils . id (
1198- 'RollupCreated(address,address,address,address,address,address,address,address,address,address,address,address )'
1202+ 'RollupCreated(address,address,address,address,address,address,address,address,address,address,address)'
11991203 ) ,
12001204 ] ,
12011205 }
0 commit comments