-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fixing outdated request-toolbox README #1099
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request-toolbox
is valid, but requires the package to be built
I had all sorts of trouble with it. I couldn't get it to run even after building |
I also had issues in the past but it is now working well. Not sure of this but: have you built the whole repo? |
Yes, I built the whole repo. I actually cloned the full repo from scratch and it still didn't work, perhaps you guys have an older build cache or something and that's why it works for you? |
mantisclone@mantisclone-Inspiron-7620:~/projects/requestNetwork-cli/packages/toolbox$ yarn request-toolbox
yarn run v1.22.19
error Command "request-toolbox" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
mantisclone@mantisclone-Inspiron-7620:~/projects/requestNetwork-cli/packages/toolbox$ request-toolbox
request-toolbox: command not found
mantisclone@mantisclone-Inspiron-7620:~/projects/requestNetwork-cli/packages/toolbox$ yarn cli
yarn run v1.22.19
$ cross-env NODE_ENV=development ts-node src/cli.ts
request-toolbox <command>
Commands:
request-toolbox addAggregator <network> adds a single aggregator
request-toolbox addAggregators <network> loads all known aggregators and adds
missing
request-toolbox currencyHash Shows the currency hash of a
<currencyCode> currency code
request-toolbox deleteAggregator remove a single aggregator
<network>
request-toolbox getConversionPath <from> Shows the conversion path between 2
<to> currencies
request-toolbox listAggregators Helper for on-chain conversion
[network] administration
request-toolbox listMissingAggregators list missing aggregators for a given
<list> currency list
request-toolbox hash submit <ipfsHash> Forces the submission of an IPFS
hash to the Request HashStorage
contract
request-toolbox calculateReference Calculates the payment reference
<requestId> <salt> <address> from requestId, salt and address
request-toolbox request create [amount] Create a test request
request-toolbox nonce Gets a wallet nonce
request-toolbox transaction retry Retries sending a pending
<txHash> transaction stuck in the mempool
Options:
--help Show help [boolean]
Not enough non-option arguments: got 0, need at least 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
mantisclone@mantisclone-Inspiron-7620:~/projects/requestNetwork-cli/packages/toolbox$ yarn cli request create
yarn run v1.22.19
$ cross-env NODE_ENV=development ts-node src/cli.ts request create
Create request with amount 1000
connect ECONNREFUSED 127.0.0.1:3000
Done in 3.36s. |
Try running Need to document properly if this is correct, but:
FYI, while playing around, I managed once to fix the issue with a simple Source: yarnpkg/yarn#3421
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead we should document how to fix the build / preinstall.
yarn --check-files did the trick, I'll add a section in readme |
Co-authored-by: Yo <56731761+yomarion@users.noreply.github.com>
Renamed 'yarn request-toolbox' to the new 'yarn cli' in the README examples.
Update:
yarn request-toolbox
for consistencyyarn cli
also works