15
15
using Stratis . Bitcoin . Features . SmartContracts . Wallet ;
16
16
using Stratis . Bitcoin . Utilities ;
17
17
using Stratis . SmartContracts . CLR ;
18
+ using Stratis . SmartContracts . CLR . Caching ;
19
+ using Stratis . SmartContracts . CLR . Serialization ;
18
20
using FileMode = LiteDB . FileMode ;
19
21
20
22
namespace Stratis . Features . Unity3dApi
@@ -65,7 +67,9 @@ public class NFTTransferIndexer : INFTTransferIndexer
65
67
private IAsyncLoop indexingLoop ;
66
68
67
69
public NFTTransferIndexer ( DataFolder dataFolder , ILoggerFactory loggerFactory , IAsyncProvider asyncProvider , INodeLifetime nodeLifetime ,
68
- ChainIndexer chainIndexer , Network network , ILocalExecutor localExecutor , Unity3dApiSettings apiSettings , ISmartContractTransactionService smartContractTransactionService = null )
70
+ ChainIndexer chainIndexer , Network network , ILocalExecutor localExecutor , Unity3dApiSettings apiSettings ,
71
+ ISmartContractTransactionService smartContractTransactionService = null , IContractPrimitiveSerializer contractPrimitiveSerializer = null ,
72
+ IContractAssemblyCache contractAssemblyCache = null )
69
73
{
70
74
this . network = network ;
71
75
this . dataFolder = dataFolder ;
@@ -74,7 +78,7 @@ public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, I
74
78
this . nodeLifetime = nodeLifetime ;
75
79
this . chainIndexer = chainIndexer ;
76
80
77
- var localCallContract = new LocalCallContract ( network , smartContractTransactionService , chainIndexer , localExecutor ) ;
81
+ var localCallContract = new LocalCallContract ( network , smartContractTransactionService , chainIndexer , localExecutor , contractPrimitiveSerializer , contractAssemblyCache ) ;
78
82
79
83
this . nftContractLocalClient = new NftContractLocalClient ( localCallContract , apiSettings . LocalCallSenderAddress ) ;
80
84
this . smartContractTransactionService = smartContractTransactionService ;
0 commit comments