Last active
March 16, 2022 19:08
-
-
Save bensig/0b6425c2833a320dfa9a54de4947052d to your computer and use it in GitHub Desktop.
Propose MSIG on Proton for Committee Worker Proposal payments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/sh | |
| # Set the permission of the proposing account | |
| ACCOUNTPERM="quantumblok@active" | |
| # Get user input | |
| echo "You may need to set your account permission first - check the contents of this script" | |
| echo "" | |
| read -p "Enter the name of the proposal: " NAME | |
| read -p "Enter the name of the account to pay: " PAYEE | |
| read -p "Amount to pay in XPR (digits only): " AMOUNT | |
| echo "" | |
| # Remove commas | |
| AMOUNT=`echo $AMOUNT|sed 's/,//g'` | |
| # Add precision | |
| AMOUNT="$AMOUNT.0000" | |
| # Confirm transaction details: | |
| read -p "You are creating a proposal called $NAME to pay $PAYEE $AMOUNT XPR - if correct press enter. " | |
| # Propose MSIG | |
| pcleos.sh multisig propose -x "3600" $NAME \ | |
| '[ | |
| {"actor": "cryptolions", "permission": "gov"}, | |
| {"actor": "quantumblok", "permission": "gov"}, | |
| {"actor": "eosamsterdam", "permission": "active"}, | |
| {"actor": "eosusa", "permission": "active"}, | |
| {"actor": "metalcfo", "permission": "active"}, | |
| {"actor": "genereos", "permission": "gov"} | |
| ]' \ | |
| '[ | |
| {"actor": "committeewps", "permission": "active"} | |
| ]' \ | |
| eosio.token transfer '{"from":"committeewps", "to":"'"$PAYEE"'", "quantity":"'"$AMOUNT"' XPR", "memo":"'"$MEMO"'"}' -p $ACCOUNTPERM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment