Propose Payment by Msig
The following guide will allow a user to propose a payment in DAPP by msig for the guardians to review.
1
git clone https://github.com/liquidapps-io/dappgovernance
2
cd dappgovernance/msigs
3
npm i
Copied!
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.
1
{
2
"to":"natdeveloper",
3
"quantity":"1.0000 DAPP",
4
"memo":"transfer",
5
"private_key":"ACTUAL_PRIVATE_KEY_OF_MSIG_PROPOSER_HERE",
6
"proposal_name":"testpayment",
7
"msig_proposer":"zlwb4mcq322g",
8
"expiration":"2021-11-29T23:11:48"
9
}
Copied!
  • to - the recipient of the DAPP
  • quantity - the amount in DAPP to be transferred
  • memo - optional memo for transfer
  • private_key - this is the key for the msig_proposer account
  • proposal_name - this is the name of the proposal must be a-z 1-5 and 12 or less characters in length
  • msig_proposer - the account that is proposing the msig
  • expiration - 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
1
node index.js
Copied!
If you need free CPU, see https://eospowerup.io/free​
Here is an example msig that was cancelled: https://bloks.io/msig/zlwb4mcq322g/testpayment​
If you do not have nodejs or npm installed on your computer, you can do so with the following commands:
1
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
Copied!
There will be some output that looks like this:
1
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
2
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Copied!
Run those commands then run the following which will install nodejs / npm and retry the command:
1
nvm install 12
2
nvm use 12
Copied!
Last modified 1mo ago
Copy link