Пример #1
0
        // ********************************************************************************************
        // *** HOSTING ENVIRONMENT AND CONFIGURATION SETUP
        // ********************************************************************************************

        public object Get(HostingEnvironmentSetup request)
        {
            // Returns the configured hosting environment details
            return(new HostingEnvironment {
                ApiServiceHostingEnvironmentName = AppModelConfig.hostingEnvironment.EnvironmentName,
                DefaultGasPrice = AppModelConfig.defaultGasPrice,
                DefaultGasLimit = AppModelConfig.defaultGasLimit,
                MaxWaitDurationForTransactionReceipt = AppModelConfig.maxWaitDurationForTransactionReceipt,
                DefaultNumberEntriesForLazyLoading = AppModelConfig.defaultNumberEntriesForLazyLoading,
                DefaultBlockRangeForEventLogLoading = AppModelConfig.defaultBlockRangeForEventLogLoading,
                Web3UrlEndpoint = AppModelConfig.WEB3_URL_ENDPOINT,
                AutoSchedulePingDuration = AppServices.getPingTimerInterval(),
                ExternalAccessInterfaceAbi = AppModelConfig.EXTACCESSI,
                InternalAccessInterfaceAbi = AppModelConfig.INTACCESSI,
                SetupInterfaceAbi = AppModelConfig.SETUPI,
                LibraryAbi = AppModelConfig.LIB,
                PoolAbi = AppModelConfig.POOL,
                BondAbi = AppModelConfig.BOND,
                BankAbi = AppModelConfig.BANK,
                PolicyAbi = AppModelConfig.POLICY,
                SettlementAbi = AppModelConfig.SETTLEMENT,
                AdjustorAbi = AppModelConfig.ADJUSTOR,
                TimerAbi = AppModelConfig.TIMER,
                TrustAbi = AppModelConfig.TRUST
            });
        }