public override CostInfo GetEstimatedCommitCostAsync()
        {
            DataSet.AcceptChanges();
            var bytes = DataSetConverter.ToBytes(DataSet);
            var gas   = EthereumConnection.EstimateGasCost(bytes);

            var cost = new EthCostInfo(gas, GasPrice);

            return(cost);
        }
        public override Task <TransactionInfo> CommitAsync()
        {
            DataSet.AcceptChanges();
            var bytes = DataSetConverter.ToBytes(DataSet);

            Console.WriteLine($"Commiting {bytes.Length} bytes to the network");
            var gasToUse = EthereumConnection.EstimateGasCost(bytes) + 5000;

            return(EthCon.PostNewTransaction(bytes, GasPrice));
        }
        public void GasCostUncompressedShouldMatch()
        {
            var bytes = DataSetConverter.ToBytes(DataSetTestContent.DS, false);

            Assert.AreEqual(DataSetTestContent.UncompressedGas, EthereumConnection.EstimateGasCost(bytes));
        }
        public static void Initialize(TestContext context)
        {
            var uri = new Uri(Address);

            _ethCon = new EthereumConnection(uri, ConfigManager.KeyStore, ConfigManager.Config.Password);
        }