How to Create a Proposal

cryptodude1 edited this page Oct 2, 2018 · 1 revision

Artax Governance powered by the blockchain

The implementation of Artax Community Governance will allow anyone with an up-to-date wallet to submit project proposals for: integration, promotion, new exchange listings, marketing, development, etc and get the requested XAX coins if more than a net of 10% of MasterNode owners choose to support it with Yes votes.

The example below is done using the testnet chain. This guide will be updated appropriately to reflect the real chain once governance goes into mainnet.

Create a proposal

All the commands assume a CLI wallet.

You can run them in the debug console of a Qt wallet as well, just remove the $ artax-cli part from the commands.

Identify the next budget superblock to pin the proposal to

$ artax-cli getnextsuperblock
302400

Create an address in the wallet that will receive the funds if the proposal is voted Yes by the MasterNodes:

$ artax-cli getaccountaddress "proposal1"
ASJ3xM3K3vjQqbwy3FGPjjwJYeobPvuFxR

Create the proposal using the superblock and address from above.

In this example we are asking for 100 XAX coins. Min amount that can be requested is 50. Value 1 after the URL indicates that this is a one-off proposal, targeted to be paid on block 302400 if more than 10% net masternodes support it. Proposal name, test1 in this example, is limited at 20 characters and URL at 64. The URL is there to provide additional details about the proposal so that MN owners can decide if they should vote it yes or no.

$ artax-cli preparebudget "test1" "https://github.com/artaxcommittee/proposals/issues/1" 1 302400 "ASJ3xM3K3vjQqbwy3FGPjjwJYeobPvuFxR" 100
98973fc5178e81f323f8db8bf7f9a9cf5408db1764196b470f598b53e3386085

Use the help subcommand if you want more details about each parameter:

artax-cli help preparebudget

Wait for the 50 XAX proposal fee transaction to gain 6 confirmations

artax-cli gettransaction 98973fc5178e81f323f8db8bf7f9a9cf5408db1764196b470f598b53e3386085

Once we have 6 confirmations for the proposal fee, we can submit the proposal

$ artax-cli submitbudget "test1" "https://github.com/artaxcommittee/proposals/issues/1" 1 302400 "ASJ3xM3K3vjQqbwy3FGPjjwJYeobPvuFxR" 100 "98973fc5178e81f323f8db8bf7f9a9cf5408db1764196b470f598b53e3386085"

See all proposals for this budget cycle

$ artax-cli getbudgetinfo
[
  {
    "Name": "test1",
    "URL": "https://github.com/artaxcommittee/proposals/issues/1",
    "Hash": "5ca88b19b107950280133aba6a0b25db2846c912ac57a62fe98088a87d463a18",
    "FeeHash": "98973fc5178e81f323f8db8bf7f9a9cf5408db1764196b470f598b53e3386085",
    "BlockStart": 302400,
    "BlockEnd": 345601,
    "TotalPaymentCount": 1,
    "RemainingPaymentCount": 1,
    "PaymentAddress": "ASJ3xM3K3vjQqbwy3FGPjjwJYeobPvuFxR",
    "Ratio": 0,
    "Yeas": 0,
    "Nays": 0,
    "Abstains": 0,
    "TotalPayment": 100.00000000,
    "MonthlyPayment": 100.00000000,
    "IsEstablished": false,
    "IsValid": true,
    "IsValidReason": "",
    "fValid": true
  }
]

Vote yes on the above proposal from the masternode CLI

$ artax-cli mnbudgetvote local "5ca88b19b107950280133aba6a0b25db2846c912ac57a62fe98088a87d463a18" yes

Alternatively, you can vote from the Cold wallet as well on behalf of multiple masternodes

$ artax-cli mnbudgetvote many "5ca88b19b107950280133aba6a0b25db2846c912ac57a62fe98088a87d463a18" yes
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.