Raise Proposal
Raise a proposal with LikeCoin chain daemon.
- 1.Download the
liked
Download the latest stable version ofliked
(LikeCoin chain daemon) from below link.Unzip the file and go to the unzipped folder. - 2.Open a terminalOpen a terminal under the unzipped folder. If you run
ls
command, you will see files as below.JohnDoe@MacBook-Pro likecoin-chain_1.2.0_Darwin_arm64 % lsCHANGELOG.md LICENSE README.md bin - 3.Add account keysRun following command to add an operator key with key-name
proposer
. Type-in your passphrase twice, the command will output your operator address, and also a 12-24 words mnemonic phrase. Please backup the mnemonic phrase properly as it represents your validator's private key../bin/liked keys add proposer - 4.Deposit some coinTo enable an empty account on the chain, we need to deposit some coins first.For testnet, you can copy the address generated from above step, and go to the testnet faucet to get some coins:
- 5.Write a proposal fileRun following command to create a
proposals
folder.mkdir proposalsRun following command to create a proposal template.cat << EOF > proposals/text-proposal.json{"title": "Testing","description": "testing","type": "Text","deposit": "1nanoekil"}EOFEdittitle
anddescription
for content of the proposal. Use to break the line indescription
.Note that the coin denom for mainnet isnanolike
, for testnet isnanoekil
. Modify the denom indeposit
field if you are raising proposal to mainnet.For example:{"title": "[Rectify Proposal 25]XXXX","description": "This is a Test!\nTo rectify Proposal 25\nFull Text:\n...","type": "Text","deposit": "1000000000nanoekil"} - 6.Raise the proposalRun following command to raise a proposal.For mainnet:./bin/liked tx gov submit-proposal \--proposal=proposals/text-proposal.json \--from proposer \--node https://mainnet-node.like.co:443/rpc/ \--chain-id likecoin-mainnet-2For testnet:./bin/liked tx gov submit-proposal \--proposal=proposals/text-proposal.json \--from proposer \--node https://node.testnet.like.co:443/rpc/ \--chain-id likecoin-public-testnet-3
- 7.Deposit the proposalFind the raised proposal:Deposit some coins to the proposal.