description |
---|
Raise a proposal with LikeCoin chain daemon. |
-
Download the
liked
Download the latest stable version of
liked
(LikeCoin chain daemon) from below link.https://github.com/likecoin/likecoin-chain/releases
At the time of writing, it's v4.2.0
Unzip the file and go to the unzipped folder.
-
Open a terminal
Open a terminal under the unzipped folder. If you run
ls
command, you will see files as below.JohnDoe@MacBook-Pro likecoin-chain_4.2.0_Darwin_arm64 % ls CHANGELOG.md LICENSE README.md bin
-
Add or recover account keys
Run 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
If you already have a mnemonic phrase, add the option
--recover
./bin/liked keys add proposer --recover
-
Deposit some coin
To 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:
-
Write a proposal file
Run following command to create a
proposals
folder.mkdir proposals
Run following command to create a proposal template.
cat << EOF > proposals/text-proposal.json { "title": "Testing", "description": "testing", "type": "Text", "deposit": "1nanoekil" } EOF
Edit
title
anddescription
for content of the proposal. Use to break the line indescription
.Note that the coin denom for mainnet is
nanolike
, 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" }
-
Raise the proposal
Run following command to raise a proposal.
For mainnet:
./bin/liked tx gov submit-legacy-proposal \ --proposal=proposals/text-proposal.json \ --from proposer \ --node https://mainnet-node.like.co:443/rpc/ \ --chain-id likecoin-mainnet-2 \ --gas-prices 10000nanolike \ --gas 2000000
For testnet:
./bin/liked tx gov submit-legacy-proposal \ --proposal=proposals/text-proposal.json \ --from proposer \ --node https://node.testnet.like.co:443/rpc/ \ --chain-id likecoin-public-testnet-5 \ --gas-prices 10000nanoekil \ --gas 2000000
-
Deposit the proposal
Find the raised proposal:
For mainnet: https://dao.like.co/proposals
For testnet: https://likecoin-public-testnet-5.netlify.app/proposals/
Deposit some coins to the proposal.