This page explains how to compile/deploy/test/interact with smart contracts. There are four major contracts which are Cyclone token, GovernorAlpha/Timelock, Aeolus, and Cyclone (Coin, ERC20)
Preparation
Install truffle
npm install -g truffle
Install dependencies
npm install
Install ioctl - the command-line tool to interact with IoTeX blockchain
Interaction with Aeolus contract [Liquidity Mining]
Add Liquidity for CYC/IOTX on MimoFactory and receive CYC-IOTX LP Token
Deposit
Approve CYC-IOTX LP Token
Deposit CYC-IOTX LP Token
3. Withdraw
Interaction with GovernorAlpha contract [Governance]
Self-delegate or delegate your CYC token for governance. If you do not delegate your votes, the token will not be considered as voting power.
2. Propose a new change in cyclone contracts such as updateConfig, changeGovDAO, and updateVerifier. The proposer should have more than 1000 CYC Token. Voting will run for 3 days. -- Use abi-encoder to get encoded argument data.
3. During the 3 days of voting duration, token holders who self-delegate or delegate can cast votes for a certain proposal.
4. After 3 days of voting duration, if the proposal gets more than 4000 CYC votes, the proposer can queue the transaction into Timelock.
5. After the timelock delay, the proposer can execute the transaction in timelock.