Esempio n. 1
0
        static async Task Main(string[] args)
        {
            Console.WriteLine("Welcome to the CoffeeChain Wallet Application.");
            Console.WriteLine("==============================================");

            Console.WriteLine("Bootstrapping Nethereum...");

            //var password =  Console.ReadLine();
            var password = PassPhrase;

            var account = Account.LoadFromKeyStore(KeyFile, password);

            var web3 = new Nethereum.Web3.Web3(account, "http://80.120.111.94:30304");
            var coffeeEconomyService = new CoffeeEconomyService(account, web3, ContractAddress);
            var console = new ConsoleService(web3, coffeeEconomyService);

            await console.Handle();
        }
Esempio n. 2
0
 public ConsoleService(Web3 web3, CoffeeEconomyService coffeeEconomyService)
 {
     _web3 = web3;
     _coffeeEconomyService = coffeeEconomyService;
 }