@@ -2,12 +2,12 @@ import { ArweaveGatewayBundledContractDefinitionLoader } from '../../core/module
2
2
import { ArweaveGatewayBundledInteractionLoader } from '../../core/modules/impl/ArweaveGatewayBundledInteractionLoader' ;
3
3
import { SourceType , WarpGatewayInteractionsLoader } from '../../core/modules/impl/WarpGatewayInteractionsLoader' ;
4
4
import { EvaluationOptions } from '../../core/modules/StateEvaluator' ;
5
- import { defaultCacheOptions , WarpFactory } from " ../../core/WarpFactory" ;
5
+ import { defaultCacheOptions , WarpFactory } from ' ../../core/WarpFactory' ;
6
6
import { LoggerFactory } from '../../logging/LoggerFactory' ;
7
7
import { WarpGatewayContractDefinitionLoader } from '../../core/modules/impl/WarpGatewayContractDefinitionLoader' ;
8
8
import stringify from 'safe-stable-stringify' ;
9
9
import Arweave from 'arweave/node/common' ;
10
- import { CacheableContractDefinitionLoader } from " ../../core/modules/impl/CacheableContractDefinitionLoader" ;
10
+ import { CacheableContractDefinitionLoader } from ' ../../core/modules/impl/CacheableContractDefinitionLoader' ;
11
11
12
12
const EXAMPLE_CONTRACT_TX_ID = 'T8Fakv0Sol6ALQ4Mt6FTxEJVDJWT-HDUmcI3qIA49U4' ;
13
13
const EXAMPLE_CONTRACT_SRC_TX_ID = 'QEIweYIpdMSer_E33VreYzmuTIx33FQ4Sq32XJqlLQw' ;
@@ -32,7 +32,11 @@ describe('Arweave Gateway interaction loader', () => {
32
32
it ( 'should load contract definition' , async ( ) => {
33
33
const warp = WarpFactory . forMainnet ( ) ;
34
34
35
- const wrLoader = new CacheableContractDefinitionLoader ( new WarpGatewayContractDefinitionLoader ( warp . arweave , 'local' ) , 'local' , { ...defaultCacheOptions , inMemory : true } )
35
+ const wrLoader = new CacheableContractDefinitionLoader (
36
+ new WarpGatewayContractDefinitionLoader ( warp . arweave , 'local' ) ,
37
+ 'local' ,
38
+ { ...defaultCacheOptions , inMemory : true }
39
+ ) ;
36
40
wrLoader . warp = warp ;
37
41
38
42
const arLoader = new ArweaveGatewayBundledContractDefinitionLoader ( warp . environment ) ;
@@ -86,7 +90,11 @@ describe('Arweave Gateway interaction loader', () => {
86
90
const arweave = Arweave . init ( { host : 'arweave.net' , port : 443 , protocol : 'https' } ) ;
87
91
88
92
const arLoader = new ArweaveGatewayBundledInteractionLoader ( arweave , 'mainnet' ) ;
89
- const wrLoader = new CacheableContractDefinitionLoader ( new WarpGatewayContractDefinitionLoader ( arweave , 'local' ) , 'local' , { ...defaultCacheOptions , inMemory : true } ) ;
93
+ const wrLoader = new CacheableContractDefinitionLoader (
94
+ new WarpGatewayContractDefinitionLoader ( arweave , 'local' ) ,
95
+ 'local' ,
96
+ { ...defaultCacheOptions , inMemory : true }
97
+ ) ;
90
98
const withArLoader = WarpFactory . custom ( arweave , { inMemory : true , dbLocation : '' } , 'mainnet' )
91
99
. setInteractionsLoader ( arLoader )
92
100
. setDefinitionLoader ( wrLoader )
0 commit comments