public TransactionReadOnlyExecutionServiceTests() { _transactionReadOnlyExecutionService = GetRequiredService <ITransactionReadOnlyExecutionService>(); _smartContractHelper = GetRequiredService <SmartContractHelper>(); _kernelTestHelper = GetRequiredService <KernelTestHelper>(); _defaultContractZeroCodeProvider = GetRequiredService <IDefaultContractZeroCodeProvider>(); _smartContractExecutiveProvider = GetRequiredService <ISmartContractExecutiveProvider>(); }
public TestingSmartContractExecutiveService(ISmartContractRunnerContainer smartContractRunnerContainer, IBlockchainStateManager blockchainStateManager, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService) : base( smartContractRunnerContainer, blockchainStateManager, defaultContractZeroCodeProvider, hostSmartContractBridgeContextService) { }
public HostSmartContractBridgeContextTests() { _blockchainService = GetRequiredService <IBlockchainService>(); _smartContractAddressService = GetRequiredService <ISmartContractAddressService>(); _defaultContractZeroCodeProvider = GetRequiredService <IDefaultContractZeroCodeProvider>(); _keyPair = CryptoHelpers.GenerateKeyPair(); _bridgeContext = CreateNewContext(); }
public UnitTestSmartContractAddressService(IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService, ISmartContractAddressProvider smartContractAddressProvider, IEnumerable <ISmartContractAddressNameProvider> smartContractAddressNameProviders, IBlockchainService blockchainService) : base(defaultContractZeroCodeProvider, transactionReadOnlyExecutionService, smartContractAddressProvider, smartContractAddressNameProviders, blockchainService) { }
public SmartContractExecutiveServiceTests() { _smartContractExecutiveService = GetRequiredService <SmartContractExecutiveService>(); _smartContractHelper = GetRequiredService <SmartContractHelper>(); _smartContractRegistrationProvider = GetRequiredService <ISmartContractRegistrationProvider>(); _defaultContractZeroCodeProvider = GetRequiredService <IDefaultContractZeroCodeProvider>(); _smartContractExecutiveProvider = GetRequiredService <ISmartContractExecutiveProvider>(); _transactionResultQueryService = GetRequiredService <ITransactionResultQueryService>(); _kernelTestHelper = GetRequiredService <KernelTestHelper>(); }
public SmartContractExecutiveService( ISmartContractRunnerContainer smartContractRunnerContainer, IStateProviderFactory stateProviderFactory, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService) { _smartContractRunnerContainer = smartContractRunnerContainer; _stateProviderFactory = stateProviderFactory; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; }
public SmartContractExecutiveService( ISmartContractRunnerContainer smartContractRunnerContainer, IBlockchainStateManager blockchainStateManager, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService) { _smartContractRunnerContainer = smartContractRunnerContainer; _blockchainStateManager = blockchainStateManager; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _readOnlyContractInfoCache = new ReadOnlyDictionary <Address, long>(_contractInfoCache); }
public BlockchainNodeContextService( IBlockchainService blockchainService, IChainCreationService chainCreationService, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IConsensusService consensusService) { _blockchainService = blockchainService; _chainCreationService = chainCreationService; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _consensusService = consensusService; EventBus = NullLocalEventBus.Instance; }
public SmartContractAddressService(IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService, ISmartContractAddressProvider smartContractAddressProvider, IEnumerable <ISmartContractAddressNameProvider> smartContractAddressNameProviders, IBlockchainService blockchainService) { _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService; _smartContractAddressProvider = smartContractAddressProvider; _smartContractAddressNameProviders = smartContractAddressNameProviders; _blockchainService = blockchainService; }
public BlockchainNodeContextService( IBlockchainService blockchainService, IChainCreationService chainCreationService, ITxHub txHub, ISmartContractAddressUpdateService smartContractAddressUpdateService, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IConsensusService consensusService) { _blockchainService = blockchainService; _chainCreationService = chainCreationService; _txHub = txHub; _smartContractAddressUpdateService = smartContractAddressUpdateService; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _consensusService = consensusService; }
public SmartContractExecutionHelper(IBlockExecutingService blockExecutingService, IBlockchainService blockchainService, IBlockchainExecutingService blockchainExecutingService, IBlockExecutionResultProcessingService blockExecutionResultProcessingService, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider) { _blockExecutingService = blockExecutingService; _blockchainService = blockchainService; _blockchainExecutingService = blockchainExecutingService; _blockExecutionResultProcessingService = blockExecutionResultProcessingService; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; ContractCodes = ContractsDeployer.GetContractCodes <SmartContractExecutionTestAElfModule>(); }
public SmartContractExecutiveProvider(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService) { _deployedContractAddressProvider = deployedContractAddressProvider; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _smartContractRunnerContainer = smartContractRunnerContainer; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _chainBlockLinkService = chainBlockLinkService; _blockchainService = blockchainService; }
public SmartContractHelper(ITransactionExecutingService transactionExecutingService, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, IBlockStateSetManger blockStateSetManger, IBlockchainService blockchainService, ITransactionResultManager transactionResultManager, KernelTestHelper kernelTestHelper) { _transactionExecutingService = transactionExecutingService; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _blockStateSetManger = blockStateSetManger; _blockchainService = blockchainService; _transactionResultManager = transactionResultManager; _kernelTestHelper = kernelTestHelper; Codes = ContractsDeployer.GetContractCodes <SmartContractTestAElfModule>(); }
public SmartContractExecutiveService(IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, ISmartContractRegistrationProvider smartContractRegistrationProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) { _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _smartContractRunnerContainer = smartContractRunnerContainer; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _smartContractRegistrationProvider = smartContractRegistrationProvider; _smartContractExecutiveProvider = smartContractExecutiveProvider; Logger = NullLogger <SmartContractExecutiveService> .Instance; }
public TestingSmartContractExecutiveService( IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, ISmartContractRegistrationProvider smartContractRegistrationProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) : base(defaultContractZeroCodeProvider, smartContractRunnerContainer, hostSmartContractBridgeContextService, smartContractRegistrationProvider, smartContractExecutiveProvider ) { }
public TestingSmartContractExecutiveService(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService, ISmartContractCodeHistoryService smartContractCodeHistoryService, ISmartContractRegistrationCacheProvider smartContractRegistrationCacheProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) : base(deployedContractAddressProvider, defaultContractZeroCodeProvider, smartContractRunnerContainer, hostSmartContractBridgeContextService, chainBlockLinkService, blockchainService, smartContractCodeHistoryService, smartContractRegistrationCacheProvider, smartContractExecutiveProvider) { }
public SmartContractExecutiveService(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService, ISmartContractCodeHistoryService smartContractCodeHistoryService, ISmartContractRegistrationCacheProvider smartContractRegistrationCacheProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) { _deployedContractAddressProvider = deployedContractAddressProvider; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _smartContractRunnerContainer = smartContractRunnerContainer; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _chainBlockLinkService = chainBlockLinkService; _blockchainService = blockchainService; _smartContractCodeHistoryService = smartContractCodeHistoryService; _smartContractRegistrationCacheProvider = smartContractRegistrationCacheProvider; _smartContractExecutiveProvider = smartContractExecutiveProvider; Logger = new NullLogger <SmartContractExecutiveService>(); }
public SmartContractRegistrationInStateProvider(IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService) { _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService; }
public SmartContractRegistrationInStateProviderTests() { _smartContractRegistrationInStateProvider = GetRequiredService <ISmartContractRegistrationInStateProvider>(); _defaultContractZeroCodeProvider = GetRequiredService <IDefaultContractZeroCodeProvider>(); _smartContractExecutionHelper = GetRequiredService <SmartContractExecutionHelper>(); }
public SmartContractAddressService(IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider) { _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; }