当前位置: 首页 > 文档资料 > MOAC 中文 WIKI >

MoveToMoac

优质
小牛编辑
113浏览
2023-12-01

MOAC developed based on the Ethereum project. It also implements a javascript runtime environment (JSRE) that can be used in either interactive (console) or non-interactive (script) mode. It supports Dapp development through its own chain3 JavaScript API, just like web3.js on Ethereum.

If you want to develop Dapp on MOAC, you should use Solidity. MOAC supports the deployment of smart contracts through Remix, wallet.moac.io and For a Dapp that wants to move to MOAC from Ethereum, please follow these steps:

  1. Deploy the smart contract:

    • Remix, a browser compiler for Solidity.
    • wallet.moac.io, a browser Dapp connect with local nodes to deploy contracts.
    • Node.Js Solidity compiler, a JavaScript bindings for the Solidity compiler.

      You can check the two examples in our wiki page:

      ERC20

      ERC721

  1. Interact with the smart contract:

    • chain3, developed based on web3.js 0.2.x, is the JavaScript library supported by MOAC.
    • web3.js, only the functions listed in chain3 are workable, such as web3, eth, admin.
    • web3.js, only the functions listed in chain3 are workable, such as web3, eth, admin.

Solidity

Miscellaneous resources and info