Propose Payment by Msig
The following guide will allow a user to propose a payment in DAPP by msig for the guardians to review.
git clone https://github.com/liquidapps-io/dappgovernance
cd dappgovernance/msigs
npm i
This will clone the governance repository, change directory into the msigs folder, and install the necessary magic to make the msig work, namely eosjs.
From here, you must create a
secrets.json
file in /dappgovernance/msigs
where you will store the different variables.{
"to":"natdeveloper",
"quantity":"1.0000 DAPP",
"memo":"transfer",
"private_key":"ACTUAL_PRIVATE_KEY_OF_MSIG_PROPOSER_HERE",
"proposal_name":"testpayment",
"msig_proposer":"zlwb4mcq322g",
"expiration":"2021-11-29T23:11:48"
}
to
- the recipient of the DAPPquantity
- the amount in DAPP to be transferredmemo
- optional memo for transferprivate_key
- this is the key for themsig_proposer
accountproposal_name
- this is the name of the proposal must be a-z 1-5 and 12 or less characters in lengthmsig_proposer
- the account that is proposing the msigexpiration
- the expiration time for the trx, to make this easy simply update the year or month, in this case the example is November 29th, 2021 23:11:48 UTC.
Once you have your settings set, run the script with
node index.js
If you do not have nodejs or npm installed on your computer, you can do so with the following commands:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
There will be some output that looks like this:
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Run those commands then run the following which will install nodejs / npm and retry the command:
nvm install 16
nvm use 16
Last modified 1yr ago