Added a new cli command deploy-payout that queries our payments table and extracts cassini member payments. The shares and payees are extracted and then fed into a PaymentSplitter deployment.
Usage:
The CLI queries a table called payments that has the following columns:
A fil_wallet_address columns which is a text type.
A fil_earned which is a numeric type.
Generate a local .env file to store DB credentials. There is a .env-example file in the root directory of the cli that outlines the exact variables required to establish a database connection. Here are variables you need:
PG_PASSWORD
PG_HOST
PG_DATABASE
PG_PORT
PG_USER
Note that some databases might require an ssh tunnel to establish a connection. If the database connection requires an ssh tunnel then the PG_HOST and PG_PORT should point to the ssh tunnel.
Run:
cd ./cli
cargo run --bin saturn-contracts -- -S secrets/.secret -U https://api.hyperspace.node.glif.io/rpc/v1 --retries=10 new-payout -F $FACTORY_ADDRESS --db-deploy
Changes:
deploy-payout
that queries ourpayments
table and extracts cassini member payments. The shares and payees are extracted and then fed into a PaymentSplitter deployment.Usage:
payments
that has the following columns:fil_wallet_address
columns which is a text type.fil_earned
which is a numeric type..env
file to store DB credentials. There is a.env-example
file in the root directory of thecli
that outlines the exact variables required to establish a database connection. Here are variables you need:PG_PASSWORD
PG_HOST
PG_DATABASE
PG_PORT
PG_USER
PG_HOST
andPG_PORT
should point to the ssh tunnel.Run: