
Author: wyz_research
When you do not deploy a contract, you may not be called Buidl.
Each airdrop enthusiast will enter the chain and application as a user, but from the perspective of the chain, users have a certain level of boundary. Among them, for the chain, the application developers are the most valuable.
Application developers have developed DAPP to attract users to use. During use, GAS will be generated. Developers will deploy contracts on the chain. They will actively attract users to perform chain operations. The value of the chain itself will increase infinitely.
Therefore, it can be said that having development capabilities or simple development knowledge is a better way to increase the opportunity to gain airdrops, or more accurately.
In this article, we will describe a detailed description of a simple development knowledge that users who like to experience chain operations.Among them, it will not involve the establishment of the front -end, the development environment, or the corresponding operation of the SDK. This article will lead ordinary users to the development experience theoretical period of novice development experience. If you want to enter the practice period, you can continue to study other in -depth knowledge.
Construction of understanding framework from blockchain theory
Earlier, our article “How to use technical logic to disassemble new and old projects in the world?”” The definition of the blockchain is explained. The blockchain is not just a general account. The design of all public chains in today’s existence is for the application of the surface.
Therefore, understanding the development knowledge of the chain is consistent with its own Internet development and application. In terms of architecture understanding, the back end has become a chain. The data state in the database has become the data state on the chain.
The application development of the Internet first needs to buy cloud services (in the early days, it may be deployed through the computing device to enter the network as a server).After the configuration of the website and the front -end development is completed, and then the management data is developed after developing. The interactive data of the website will enter the back end. When the current terminal user operatesAfter visiting the status of the data in the database.
Based on such a complicated process, in traditional applications, users basically cannot feel the back end, but the front -end back -end can be clearly felt on the blockchain.
The back end of DAPP has turned the server and database developed by Internet applications into a total state of chain and chain.
During the development, the chain on the back end exposed a remote call interface RPC. All developers and applications were operated by this interface to operate the chain.
This is why when using Metamask to experience different DAPPs, add different networks to DAPP, and URL represents RPC’s access points when adding networks.
In other network design, there is another method to upgrade the DAPP again. If a chain only uses one RPC, then when a large number of interaction is required, it will be congested before the task is submitted.
At this time, if the application of the RPC may have greater advantages, but in the field of public chain, the current POS design is currently designed, so there are not many DAPPs operated in this way.
At this point, we can basically find a wallet and an RPC port when we are developing and working with the chain.
Important development tool
After getting the entrance, how can the next operation operate.
Ethereum is known as the world computer and can run various automatic execution smart contracts. This process is carried out by deploying contracts in the network and being executed by EVM.
The word VM VM is a word that the cloud service industry will definitely say. We can regard the computing equipment in the Ethereum network as a huge computing storage area, that is, the virtual machine.Let the task instruction complete the execution.
Then the smart contract becomes the key, and the core link of the experience developer is the smart contract.
The deployment of smart contracts is divided into the first writing code, the second compilation, the third deployment, and the contract function can be directly called after the deployment is completed.
Ethereum has a fixed tool, and these tools are extremely simple. After understanding the entire process, you can try the entire process as long as you check carefully.
Remix, Hardhat, OpenZeppelin is the simplest and most open tool representative at present, and in addition to these open source tools, there are also tools such as Thirdweb that can assist in development and simplify some processes.
Start from various network test network experience
Recently, we have experienced the test network of public chains such as Berachain, TAIKO, and Shardeum.You can learn about development knowledge from the experience process of these chains.
First of all, I am an ordinary user. I use METAMASK operation to interact with the network.The first step needs to be added to the METAMASK to get the tokens on the test network. The test network tokens are collected from the test network’s faucet. The number is limited.In the process, the testing tokens of these three chains are BERA, ETH, and SHM, respectively.
It can be found that BERACHAIN and Shardeum are L1, both of which use their own native currencies, and Taiko is L2. The goal is to expand Ethereum, so use ETH, and because Ethereum has a public test network, TAIKO also uses it.Ethereum’s own test network has conducted some functional tests. If users who want to experience, they need to be clearly implemented on the chain.
After getting the experience token in the three chain faucets, the next step is to try how to use the development tool and deploy the contract to the chain.
So there will be three steps next, find a contract, modify the contract, and complete the contract deployment in the IDE.
On the document pages of the three projects, they will specify which tools will be supported for the corresponding contract deployment.After investigation, these three projects support the use of remix for deployment, so we use Remix for this process.
Remix is an online editing environment. It is very convenient. It does not need to use other more complicated tools such as SDK or terminals. However, the simple process in this article is only one -time deployment. For contract modifications and call testing these still requires other tools.
1. How to find a contract to be deployed
On OpenZepPelin, a few commonly used token issuing contracts have been modularized. We can choose the function directly and then jump directly to Remix.
This is the initial page:
2. Simply modify the contract code
Then I set up the contract issued token, using the full name of Wyz Research, the abbreviation of WYZ, and selected pre -issuing banks in the function, and specified the contract for control.Through these operations, in the contract code on the right, there are more builders displayed in the first red frame, and pre -issued tokens also have address direction.
3. How to deploy contracts
After clicking the Open in Remix in the upper right corner, we can start editing in the Remix interface.
Before editing by the Remix interface, adjust the network and wallet address in Metamask correctly.
After entering the page, we need to modify the two corresponding addresses above, and I use the wallet address to replace it.The display is as follows:
Then click Auto Complie on the left to automatically compile. If there is no automatic compilation, you need to click the blue button on the left.When there is a green pair logo on the far left.Then click the green pair button on the left to enter the deployment page.
When the wallet has been modified correctly, click the account part in the upper left corner. This position represents the account of the GAS. The following position represents the address deployed. After selecting, it is displayed as follows:
Click deploy, Metamask will pop up to pay the GAS Fee of this operation.
During the contract deployment, the contract is displayed on the lower side of the Remix
After the contract deployment is successful, the transaction will be successful in the lower side.
4. Inquiry transaction in the browser
When the deployment is completed, when the button in the wallet is clicked into the browser to view the transaction, it can be found that we just completed the action created by a contract, and during the execution of the contract, we sent the corresponding tokens to one tokens.
When you click the address again, you will find that I MINT 1,000 W tokens in the address.However, it seems that due to the test network browser, the token name is not displayed. This problem needs to be verified.
The deployment is the Shardeum used. If the process of deploying use on Berachain and TAIKO is the same, just need to adjust the corresponding network in the wallet.Remix, a type of online IDE, provides a simple entrance to network operations.
Do a certain development operation on the chain. It is not an application user. The simplest construction attempt for construction can be tried to use the contract to issue some assets, or go to other DAPP code.The way of interacting, such as the UNISWAP SWAP we see is a contract, and another contract provided by LP.
Compared with DEX, other DEFI and Gamefi contracts are more complicated.Although the development process is complicated and long, for enthusiasts, understanding of its principles can help chains and applications more.