0.1.10 • Published 3 years ago

@pooltogether/v4-cli v0.1.10

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
3 years ago

📇 PoolTogether V4 CLI

CI Version Downloads/week License ts GPLv3 license oclif

The @pooltogether/v4-cli node module package is a NODE command line interface (CLI) to interact with the PoolTogether V4 protocol. The CLI uses the v4-client-js and v4-utils-js modules to fetch and run calculations/computations for essential PoolTogether V4 tasks.

Primary CLI Commands (help)

npx @pooltogether/v4-cli help compute drawPrizes
npx @pooltogether/v4-cli help compute poolPrizes
npx @pooltogether/v4-cli help compute networkPrizes

⌨️ CLI Installation

$ npm install -g @pooltogether/v4-cli
$ ptv4 COMMAND
running command...
$ ptv4 (--version)
@pooltogether/v4-cli/0.1.7-beta.4 darwin-arm64 node-v16.15.1
$ ptv4 --help [COMMAND]
USAGE
  $ ptv4 COMMAND
...

Commands

Compute Draw Prizes

ptv4 compute drawPrizes

Computes single Draw prizes for a PrizePool to a target output directory.

Simply pass a chainId, ticket drawId and outDir 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 File (status.json)

{
  "status": "LOADING",
  "createdAt": "11"
}

Success

{
  "status": "SUCCESS",
  "createdAt": "11",
  "updatedAt": "33",
  "runtime": "22",
  "meta": {
    "prizeLength": "10",
    "amountsTotal": "5000000"
  }
}

Failure

{
  "status": "FAILURE",
  "createdAt": "11",
  "updatedAt": "33",
  "runtime": "22",
  "error": "ErrorCode"
}

Compute PrizePool Prizes

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

Compute Network of PrizePool Prizes

Computes Draw prizes for all PoolTogether V4 network PrizePools to a target output directory.

ptv4 compute networkPrizes
USAGE
  $ ptv4 compute networkPrizes --outDir ./temp

DESCRIPTION
  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

Help

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.
0.1.10

3 years ago

0.1.11-beta.1

3 years ago

0.1.10-beta.1

3 years ago

0.1.10-beta.2

3 years ago

0.1.8-beta.1

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7-beta.3

3 years ago

0.1.7-beta.4

3 years ago

0.2.0-beta.2

3 years ago

0.2.0-beta.1

3 years ago

0.2.0-beta.6

3 years ago

0.2.0-beta.5

3 years ago

0.2.0-beta.4

3 years ago

0.2.0-beta.3

3 years ago

0.1.7-beta.2

3 years ago

0.1.7-beta.1.0.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.1.0-beta.31

3 years ago

0.1.0-beta.30

3 years ago

0.1.0-beta.29

3 years ago

0.1.0-beta.28

3 years ago

0.1.0-beta.27

3 years ago

0.1.0-beta.26

3 years ago

0.1.0-beta.25

3 years ago

0.1.0-beta.24

3 years ago

0.1.0-beta.23

3 years ago

0.1.0-beta.22

3 years ago

0.1.0-beta.21

3 years ago

0.1.0-beta.20

3 years ago

0.1.0-beta.19

3 years ago

0.1.0-beta.18

3 years ago

0.1.0-beta.17

3 years ago

0.1.0-beta.16

3 years ago

0.1.0-beta.15

3 years ago

0.1.0-beta.14

3 years ago

0.1.0-beta.13

3 years ago

0.1.0-beta.12

3 years ago

0.1.0-beta.11

3 years ago

0.1.0-beta.10

3 years ago

0.1.0-beta.9

3 years ago

0.1.0-beta.8

3 years ago

0.1.0-beta.7

3 years ago

0.1.0-beta.6

3 years ago

0.1.0-beta.5

3 years ago

0.1.0-beta.4

3 years ago

0.1.0-beta.3

3 years ago

0.1.0-beta.2

3 years ago

0.1.0-beta.1

3 years ago