예제 #1
0
        private bool OnShowGasCommand(string[] args)
        {
            if (NoWallet())
            {
                return(true);
            }

            Coins coins = new Coins(Program.Wallet, system);

            Console.WriteLine($"unavailable: {coins.UnavailableBonus().ToString()}");
            Console.WriteLine($"  available: {coins.AvailableBonus().ToString()}");
            return(true);
        }
예제 #2
0
        private bool OnShowGasCommand(string[] args)
        {
            if (Program.Wallet == null)
            {
                Console.WriteLine($"Please open a wallet");
                return(true);
            }

            Coins coins = new Coins(Program.Wallet, LocalNode);

            Console.WriteLine($"unavailable: {coins.UnavailableBonus().ToString()}");
            Console.WriteLine($"  available: {coins.AvailableBonus().ToString()}");
            return(true);
        }
예제 #3
0
        private bool OnShowGasCommand(string[] args)
        {
            TR.Enter();
            if (NoWallet())
            {
                return(TR.Exit(true));
            }

            Coins coins = new Coins(Program.Wallet, LocalNode);

            Console.WriteLine($"unavailable: {coins.UnavailableBonus().ToString()}");
            Console.WriteLine($"  available: {coins.AvailableBonus().ToString()}");
            return(TR.Exit(true));
        }