44 buildDevnetNetworkOrchestrator ,
55 getNetworkIdFromEnv ,
66 getChainInfo ,
7+ EPOCH_TIMELINE_LONG_2_05 ,
78} from "../../helpers" ;
89import { DevnetNetworkOrchestrator } from "@hirosystems/stacks-devnet-js" ;
910import { contract_call , load_versioned } from "./helper" ;
@@ -13,19 +14,16 @@ import { contractPrincipalCV } from "@stacks/transactions/dist/clarity/types/pri
1314describe ( "call functions with nested traits" , ( ) => {
1415 let orchestrator : DevnetNetworkOrchestrator ;
1516 let network : StacksNetwork ;
16- const STACKS_2_1_EPOCH = 112 ;
1717
1818 let networkId : number ;
1919
2020 beforeAll ( ( ) => {
2121 networkId = getNetworkIdFromEnv ( ) ;
2222 console . log ( `network #${ networkId } ` ) ;
23- orchestrator = buildDevnetNetworkOrchestrator ( networkId , {
24- epoch_2_0 : 100 ,
25- epoch_2_05 : 102 ,
26- epoch_2_1 : STACKS_2_1_EPOCH ,
27- pox_2_activation : 120 ,
28- } ) ;
23+ orchestrator = buildDevnetNetworkOrchestrator (
24+ networkId ,
25+ EPOCH_TIMELINE_LONG_2_05 ,
26+ ) ;
2927 orchestrator . start ( ) ;
3028 network = new StacksTestnet ( {
3129 url : orchestrator . getStacksNodeUrl ( ) . replace ( "localhost" , "127.0.0.1" ) ,
@@ -78,14 +76,16 @@ describe("call functions with nested traits", () => {
7876
7977 // Make sure this we stayed in 2.05
8078 let chainInfo = await getChainInfo ( network ) ;
81- expect ( chainInfo . burn_block_height ) . toBeLessThanOrEqual ( STACKS_2_1_EPOCH ) ;
79+ expect ( chainInfo . burn_block_height ) . toBeLessThanOrEqual (
80+ EPOCH_TIMELINE_LONG_2_05 . epoch_2_1 ,
81+ ) ;
8282 } ) ;
8383
8484 describe ( "in 2.1" , ( ) => {
8585 beforeAll ( async ( ) => {
8686 // Wait for 2.1 to go live
8787 await orchestrator . waitForStacksBlockAnchoredOnBitcoinBlockOfHeight (
88- STACKS_2_1_EPOCH + 1 ,
88+ EPOCH_TIMELINE_LONG_2_05 . epoch_2_1 + 1 ,
8989 ) ;
9090 } ) ;
9191
0 commit comments