Skip to content

MoveToMoac

mdranger edited this page Nov 27, 2018 · 3 revisions

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:

    You can check the two examples in our wiki page:

    ERC20

    ERC721

  2. 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

Clone this wiki locally