Brief Introduction on WaykiChain (WICC) Smart Contract Tool WaykiMix

WaykiChain WICC
4 min readAug 1, 2019

--

As the most important cornerstone of DApp, WaykiChain Smart Contract framework adopts Lua language as the coding language of the contract. The Lua language is lightweight and extensible, and has been used extensively in game development, standalone application scripts, and database plugins. WaykiChain core functions are developed in C/C++, and Lua code can be easily called by C/C++ code, or in turn, C/C++ functions. So this secure language with low learning cost, compatibility, high performance, is an outstanding programming language for building Smart Contract frameworks. Developers developing Smart Contracts on WaykiChain needs a good programming tool, and WaykiMix was born as a solution.

WaykiMix is a Web Smart Contract IDE based on js language development, currently has the functions of Smart Contract development, deployment, call and debugging and others. It can provide developers with great convenience based on WaykiChain Lua language Smart Contract development .

Instruction

Before using the WaykiMix tool, please install the browser plug-in wallet WaykiMax. Currently, WaykiMax is available in the application store (Extension Center) of Google Chrome, Firefox, 360 secure browser and 360 browser. Please refer to the following link for the installation method (copy to open in the browser) :

https://www.wiccdev.org/book/zh-hans/DeveloperHelper/webextension.html

WaykiMix Operation Interface

File Management

On the left side of WaykiMix interface file management, there is a function to support file management area minimization. The file management lists files in the current workspace and files saved locally in the browser. The file management can support reading files from the local computer, save files to the local computer, and create new files and others.

Workspace

The middle part is the workspace. The upper part of the workspace is the code editing area, which can be used for writing Smart Contracts based on Lua. It supports line number display, Lua syntax error detection, highlighting, association, completion and other functions. The second half of the Log output area is for developers Debug.

Function

The right column is the functional area, which can be divided into Smart Contract deployment; Smart Contract Operation; Tool and Help.

  1. Deploy

Click Refresh to refresh the network, address, balance and other information of the wallet in WaykiMax.

Click Deploy button to deploy the Smart Contract with one click. At this time, WaykiMax is activated for signature and click YES.

2. Run

After deploying the Smart Contract with Deploy, there is a trade hash in the Run segment for the release contract.

After the transaction is confirmed for about 10s (BPS=0.1), click the Get button to get the regid of Smart Contract.

The Param section splices the incoming information when the contract needs to be invoked according to the specific contract content; Click the Gen button to begin splicing the information that comes in when the contract needs to be invoked.

Continue to click the Call button to initiate the call contract transaction. At this time, use WaykiMax to sign, click YES, and the transaction Log of the Call contract is displayed in the Log area.

3. Tool

Tool section offers the hexadecimal text to decode and hex text decode to bytes.

4. Help

Help section provides a link to the how-to guide, developer contact information, version number and other information.

https://github.com/WaykiChain/WaykiMix

Meanwhile, WaykiMix Ver 2.0.0 is completely open source, available on GitHub: https://github.com/WaykiChain/WaykiMix

--

--

No responses yet