- Notifications
You must be signed in to change notification settings - Fork2
PoolTogether V4 Command Line Interface
License
NotificationsYou must be signed in to change notification settings
pooltogether/v4-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The@pooltogether/v4-cli
node module package is a NODE command line interface (CLI) to interact with thePoolTogether V4 protocol. The CLI uses thev4-client-js
andv4-utils-js
modules to fetch and run calculations/computations for essential PoolTogether V4 tasks.
Primary CLI Commands (help)
npx @pooltogether/v4-clihelp compute drawPrizesnpx @pooltogether/v4-clihelp compute poolPrizesnpx @pooltogether/v4-clihelp compute networkPrizes
$npm install -g @pooltogether/v4-cli$ptv4 COMMANDrunning command...$ptv4 (--version)@pooltogether/v4-cli/0.1.11-beta.1 darwin-arm64 node-v16.17.0$ptv4 --help [COMMAND]USAGE $ ptv4 COMMAND...
ptv4 compute drawPrizes
Computes single Draw prizes for a PrizePool to a target output directory.
Simply pass achainId
,ticket
drawId
andoutDir
to compute and locally save the results.
USAGE $ ptv4 compute drawPrizes --chainId 1 --drawId 65 --outDir ./temp --ticket '0xdd4d117723C257CEe402285D3aCF218E9A8236E1'DESCRIPTION Computes single Draw prizes for a PrizePool to a target output directory.EXAMPLES $ ptv4 compute drawPrizes --chainId 1 --drawId 1 --ticket 0x0000000000000000000000000000000000000000 --outDir ./temp Running compute:drawPrizes on chainId: 1 using drawID: 1
{"status":"LOADING","createdAt":"11"}
{"status":"SUCCESS","createdAt":"11","updatedAt":"33","runtime":"22","meta": {"prizeLength":"10","amountsTotal":"5000000" }}
{"status":"FAILURE","createdAt":"11","updatedAt":"33","runtime":"22","error":"ErrorCode"}
Computes all historical Draw prizes for a PrizePool to a target output directory.
ptv4 compute poolPrizes
USAGE $ ptv4 compute poolPrizes --chainId 1 --outDir ./temp --ticket '0xdd4d117723C257CEe402285D3aCF218E9A8236E1'DESCRIPTION Computes all historical Draw prizes for a PrizePool to a target output directory.EXAMPLES $ ptv4 compute poolPrizes --chainId 1--ticket 0x0000000000000000000000000000000000000000 --outDir ./temp Running compute:drawPrizes on chainId: 1 using drawID: 1
Computes Draw prizes for all PoolTogether V4 network PrizePools to a target output directory.
ptv4 compute networkPrizes
USAGE $ ptv4 compute networkPrizes --outDir ./tempDESCRIPTION Computes Draw prizes for all PoolTogether V4 network PrizePools to a target output directory.EXAMPLES $ ptv4 compute poolPrizes --chainId 1 --ticket 0x0000000000000000000000000000000000000000 --outDir ./temp Running compute:drawPrizes on chainId: 1 using drawID: 1
ptv4 help [COMMAND]
Display help for ptv4.
USAGE $ ptv4 help [COMMAND] [-n]ARGUMENTS COMMAND Command to show help for.FLAGS -n, --nested-commands Include all nested commands in the output.DESCRIPTION Display help for ptv4.
About
PoolTogether V4 Command Line Interface
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published