• DQtech Column | Learn from DEX about PlatON Application Development – Flutter (IV)

    Author Dex_DQT In this chapter we will complete the import of the helper/secret key/wallet file and build the functionality to store them as a file Import Stateful Widget The code is placed in the import_stateful_widget.dart file under the app/page package.Since the TabBarView has a lag in accepting page change callbacks when sliding the page, I use the PageView to implement the page switch function. The code is as follows: In order to keep the page as consistent as possible with Android, I customize the TabBar’s indicator.The code is as follows:…

    June 27, 2022
    06910
  • Astro Usage Guidelines

    Link to Astro: http://astro.cryptocamp.network Tip: Update Google Chrome to the latest version Astro Usage Guidelines Download the Plug-in Click the Download Plugin button on the home page. Shown as below: The downloaded plug-in is shown below (note: v0.1 is the latest version number of the plug-in): Unzip it as follows: Installing Plug-in Click on the menu button in the top right corner of your browser. Click on “More Tools” on the menu page that pops up. Click on “Extensions” on the menu page that pops up to jump to the Extensions…

    June 2, 2022
    08180
  • DQtech Column | Learn from DEX about PlatON Application Development – Flutter (III)

    Author Dex_DQT In this chapter we will use the ATON wallet as a model to learn how to create the function of generating a wallet use Mnemonic Phrases. Operate Menu Stateless Widget Create operate_menu_stateless_widget.dart in the app/page pacage, the code is as follows: The page will look like this: SlideTransition is used when clicking on the Create Wallet button to jump to the Create Wallet page, which allows the page to be drawn out from the right. Create Wallet Stateful Widget create_wallet_stateful_widget.dart in app/pageCreat pacage, The code is as follows:…

    April 14, 2022
    09530
  • DQtech Column | Learn from DEX about PlatON Application Development – Flutter (II)

    Author Dex_DQT In the previous chapter we completed setting up the environment and implementing the functions for generating secret keys and obtaining wallet balances. In this chapter we will introduce some common Api interfaces and implement the transfer function. Get Address Hrp The code is as follows: The result is shown below: Get Gas Price The code is as follows: The result is shown below: Get PlatON Block Number The code is as follows: The result is shown below: Get Block by Number You can check the Andorid chapter II,…

    April 11, 2022
    07700
  • DQtech Column | Learn from DEX about PlatON Application Development – Flutter (I)

    Author Dex_DQT From now on we will start to build the Flutter version of Digging. In this chapter we will be setting up the environment and build the function for getting the wallet balance. There is no official SDK for Flutter, but on the basis of the json-rpc encapsulated interface for Android, we could know that all we need to do in Flutter is to serialize/deserialize the rlp and sign it using ECDSA. Build the Project A reference on how to set up the environment can be found on FlutterChina Let’s…

    March 29, 2022
    08030
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (IX)

    Author Dex_DQT In this chapter we will learn how to build functions to switch wallets and switch networks. it’s the last chapter of the Android chapter. Add a Pop-Up Box to Jump to the Page of Add Wallets on Main Page The layout of the pop-up box can be found inres/layout/dialog_assets_more.xml Then add PopupWindowUtil under the util package, with the following code: Then add the code to pop-up the page in initEvent of page/AssetPage: The page would look like this: Then we could import multiple wallets. Writing the function of…

    March 25, 2022
    09270
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (VIII)

    Author Dex_DQT In this chapter, we will learn how to build the function of redemption entrustment and receiving entrustment reward, as well as how to analyze the return results of smart contracts. Create a delegate details page Check out the layout code in the res/layout/activity_delegate_detail.xml file. The page will look like this: Then create the corresponding Delegate Detail Activity in the activity package This page needs to get information about all the delegate nodes of the wallet. In chapter 9 of the javascript chapter, this information can be obtained directly…

    March 22, 2022
    01.0K0
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (VII)

    Author Dex_DQT We’ll split into two chapters to explain how to build delegate functionality. This chapter teaches how to implement the functionality to get a list of validation nodes and delegates, and how to write your own code to call smart contracts. Create Commission Page The delegate page appears as a main page of activity_main and is divided into two sub-pages, “My Delegates” and “Validation Node“.We start by building the delegate page. See the res/layout/page_delegate.xml file for the layout code. Then create the DelegatePage class under the page package, with…

    March 10, 2022
    08800
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (VI)

    Author Dex_DQT In this chapter we will build the functionality to view the list of transactions and transfer funds Add WalletManager method Because of the increase in the number of methods, I will pick the most important methods to explain. If you need other methods, you can go to find the source code. 1, Load All WalletCode as bellow: Since the wallet files we create/import are stored in the walletFiles directory as {wallet name}.json, we need to get the list of files in the walletFiles directory first and then extract…

    March 1, 2022
    01.0K0
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (V)

    Author Dex_DQT In this chapter we will build the import function for the Mnemonic Phrase/key/wallet file Create the main page for importing This page uses ATON’s SmartTabLayout, which was previously used to support ViewPager in the ATON project, but I modified it to support ViewPager2. Please refer to the SmartTabLayout class in the com.platon.aton.widge.table package. Then create the ImportActivity class in the activity package, which inherits from the BaseActivity class. Also modify all other Activities to inherit from this class.The code of the BaseActivity class is as follows: : This…

    February 25, 2022
    06100
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (IV)

    Author Dex_DQT In this chapter we will learn how to generate a secret key from a mnemonic and save it as a file Create a page to confirm mnemonics For the specific layout code, see the file res/layout/activity_verify_mnemonic_phrase.xmlThe page effect is as follows: Then add the VerifyMnemonicPhraseActivity class to the Activity directory, the code is parsed as follows: Create WordInfo class to store the following information about the current word:1, the selected state2, the word itself3, the index of the word in the selected list4, the index of the word…

    February 22, 2022
    06650
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (III)

    Author Dex_DQT This chapter we start to refer to ATON to build a page——Actually in order to facilitate the use of UI resources for the Android version of Digging, we will basically refer to ATON in the future. Due to the layout code of Android is relatively large, we won’t post it one by one, and you can download the source code by yourself to see. Splash Activity Create activity_splash.xml in the directory res/layout with the following layout code. The ConstraintLayout is used here, and the SplashActivity class is created…

    February 18, 2022
    01.1K0
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (II)

    Author Dex_DQT In the previous chapter, we finished setting up the environment and calling the SDK to get the balance of the specified wallet, but the calls provided by the SDK have to be used in a sub-thread, which is troublesome. Therefore, in this chapter, we would encapsulate the interface through JSONRPC, which is easier to be used. Introduce the retrofit package Open app/build.gradle, as follow Add dependency injections shown in follows: modify PlatonApi as follows: This project uses retrofit and koltin’s concurrency to implement http calls. It should be…

    February 15, 2022
    09730
  • DQtech Column | Learn from DEX about PlatON Application Development – Android (I)

    Author Dex_DQT From now, we will begin to learn how to build the Android version of Digging. In this chapter, we will build the environment and create the function to getting the wallet balance. Build Project This article uses koltin for development, and the IDE is Android. Open Android studio and create a new project. Here we choose Empty Activity The development language is koltin, and the minimum supported SDK is API 21 After the project is created, the directory is as follows: Then we introduce the SDK of Platon’s…

    February 13, 2022
    01.0K0
  • DQtech Column | Learn from DEX about PlatON Application Development – Javascript (X)

    In this chapter, we will implement the function of exporting Digging interface, so that web pages can call it. At the same time, this chapter is also the final chapter of JavaScript. Write Import Interface In the previous chapter, we added the following code to the manifest.json, so that the multi networks we added can send requests normally. content_ scripts is a js script running in the context of a web page. It can read the dom of a web page or modify it and can be used as a…

    February 9, 2022
    09010