Beispiel #1
0
        private async void ASA_Appearing(object sender, EventArgs e)
        {
            algodApiInstance = await helper.CreateApiInstance();

            network = await helper.GetNetwork();

            // restore accounts
            var accounts = await helper.RestoreAccounts();

            account1 = accounts[0];
            account2 = accounts[1];
            account3 = accounts[2];
            var nodetype = await SecureStorage.GetAsync(helper.StorageNodeType);

            NetworkLabel.Text = "Network: " + network + " " + nodetype;

            var lastASAbutton = await SecureStorage.GetAsync(helper.StorageLastASAButton);

            if (string.IsNullOrEmpty(lastASAbutton) || lastASAbutton == " ")
            {
                buttonstate("init");
            }
            else
            {
                buttonstate(lastASAbutton);
            }

            //  StorageLastASAButton
        }
        private async void StatefulContracts_Appearing(object sender, EventArgs e)
        {
            client = await helper.CreateApiInstance();

            network = await helper.GetNetwork();

            // restore accounts
            var accounts = await helper.RestoreAccounts();

            creator = accounts[0];
            user    = accounts[1];

            Console.WriteLine("creator account: " + creator.Address);
            Console.WriteLine("user account: " + user.Address);
            var nodetype = await SecureStorage.GetAsync(helper.StorageNodeType);

            //   NetworkLabel.Text = "Network: " + network + " " + nodetype;
            compileTealPrograms();
            OptInBtn.IsEnabled               = false;
            CallAppBtn.IsEnabled             = false;
            ReadLocalStateBtn.IsEnabled      = false;
            ReadGlobalStateBtn.IsEnabled     = false;
            UpdateAppBtn.IsEnabled           = false;
            CallUpdatedAppBtn.IsEnabled      = false;
            ReadLocalStateAgainBtn.IsEnabled = false;
            CloseOutAppBtn.IsEnabled         = false;
            DeleteAppBtn.IsEnabled           = false;
            ClearAppCtn.IsEnabled            = false;
        }
        private async void DryrunDebugging_Appearing(object sender, EventArgs e)
        {
            client = await helper.CreateApiInstance();

            // restore accounts
            var accounts = await helper.RestoreAccounts();

            account1 = accounts[0];
            account2 = accounts[1];

            Console.WriteLine("Account 1: " + account1.Address);
            Console.WriteLine("Account 2: " + account2.Address);
        }
        private async void Rekey_Appearing(object sender, EventArgs e)
        {
            client = await helper.CreateApiInstance();

            // network = await helper.GetNetwork();

            // restore accounts
            var accounts = await helper.RestoreAccounts();

            account1 = accounts[0];
            account2 = accounts[1];
            account3 = accounts[2];

            Console.WriteLine("Account 1 = " + account1.Address);
            Console.WriteLine("Account 2 = " + account2.Address);
            Console.WriteLine("Account 3 = " + account3.Address);
        }
Beispiel #5
0
        private async void AtomicTransfers_Appearing(object sender, EventArgs e)
        {
            algodApiInstance = await helper.CreateApiInstance();

            network = await helper.GetNetwork();

            // restore accounts
            var accounts = await helper.RestoreAccounts();

            account1 = accounts[0];
            account2 = accounts[1];
            account3 = accounts[2];

            nodetype = await SecureStorage.GetAsync(helper.StorageNodeType);

            NetworkLabel.Text = "Network: " + network + " " + nodetype;
            buttonstate();
        }
Beispiel #6
0
        private async void Accounts_Appearing(object sender, EventArgs e)
        {
            algodApiInstance = await helper.CreateApiInstance();

            network = await helper.GetNetwork();

            buttonstate();
            if (Device.Idiom == TargetIdiom.Phone)
            {
                StackPhone.IsVisible  = true;
                StackTablet.IsVisible = false;
            }
            else
            {
                StackPhone.IsVisible  = false;
                StackTablet.IsVisible = true;
            }
        }
 private async void CompileTeal_Appearing(object sender, EventArgs e)
 {
     client = await helper.CreateApiInstance();
 }