![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@generationsoftware/pt-v5-cli
Advanced tools
The @generationsoftware/pt-v5-cli
node module package is a NODE command line interface (CLI) to interact with the PoolTogether V5 protocol. The CLI uses the v5-autotasks-library
modules to fetch and run calculations/computations for essential PoolTogether V5 tasks.
Primary CLI Commands (help)
npx @generationsoftware/pt-v5-cli help compute drawPrizes
$ npm install -g @generationsoftware/pt-v5-cli
$ ptv5 COMMAND
running command...
$ ptv5 (--version)
@generationsoftware/pt-v5-cli/0.0.1-beta.27 darwin-arm64 node-v18.16.0
$ ptv5 --help [COMMAND]
USAGE
$ ptv5 COMMAND
...
ptv5 compute drawPrizes
Computes the previous draw's prizes for a PrizePool to a target output directory.
Simply pass a chainId
, prizePool
and outDir
to compute and locally save the results.
USAGE
$ ptv5 compute drawPrizes --chainId 1 --outDir ./temp --prizePool '0xdd4d117723C257CEe402285D3aCF218E9A8236E1'
DESCRIPTION
Computes the previous draw's prizes for a PrizePool to a target output directory.
EXAMPLES
$ ptv5 compute drawPrizes --chainId 1 --prizePool 0x0000000000000000000000000000000000000000 --outDir ./temp
Running compute:drawPrizes on chainId: 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"
}
ptv5 help [COMMAND]
Display help for ptv5.
USAGE
$ ptv5 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 ptv5.
Prior to publishing the CLI on npm, as this uses ESM after you run npm install
(or yarn install
) you will need to modify your ./node_modules/.bin/oclif
and ./node_modules/.bin/oclif2
symlinks. You can use the following commands to do this:
cd node_modules/.bin &&
rm oclif &&
rm oclif2 &&
ln -nfs ../oclif/bin/run.js oclif &&
ln -nfs ../oclif/bin/run.js oclif2 &&
cd ../oclif/bin &&
mv dev dev.js &&
mv run run.js
Also replace the contents of node_modules/oclif/bin/run.js with the following:
#!/usr/bin/env node --loader ts-node/esm --experimental-specifier-resolution=node
const oclif = require("@oclif/core");
oclif.run().then(require("@oclif/core/flush")).catch(require("@oclif/core/handle"));
You can test the CLI while developing by using the following, with whichever chain / prizePool flags you want to test with:
./bin/run.js compute drawPrizes --chainId 80001 -o ./temp -p '0xA32C8f94191c9295634f0034eb2b0e2749e77974'
FAQs
PoolTogether V5 Command Line Interface
The npm package @generationsoftware/pt-v5-cli receives a total of 1,726 weekly downloads. As such, @generationsoftware/pt-v5-cli popularity was classified as popular.
We found that @generationsoftware/pt-v5-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.