Skip to content
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

JST-664: standalone payment module #137

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

SewerynKras
Copy link
Contributor

@SewerynKras SewerynKras commented Jan 16, 2024

Preview of the help command:

$ node ./dist/main.js invoice -h
Usage: golem-sdk invoice [options] [command]

Options:
  -h, --help        display help for command

Commands:
  search [options]  Search for invoices.
  accept [options]  Accept invoices. This command is interactive by default and takes the same options as search.
  help [command]    display help for command

Examples:

Search for the first 10 invoices after 2023-01-01:
$ golem-sdk invoice search -k yagna-appkey --after 2023-01-01 --limit 10

Search for invoices issued by provider 0x1234 with status RECEIVED and print them in JSON format:
$ golem-sdk invoice search -k yagna-appkey --provider 0x1234 --status RECEIVED --format json

Search for invoices above 0.5 GLM on payment platform erc20-polygon-glm:
$ golem-sdk invoice search -k yagna-appkey --min-amount 0.5 --payment-platform erc20-polygon-glm

Search for invoices by their ID and only list their id, timestamp and payment platform:
$ golem-sdk invoice search -k yagna-appkey --invoice 0x1234 0x5678 --columns id timestamp platform

Accept all invoices from provider 0x1234 (interactive):
$ golem-sdk invoice accept -k yagna-appkey --provider 0x1234

Accept all invoices from provider 0x1234 (auto-accept):
$ golem-sdk invoice accept -k yagna-appkey --provider 0x1234 --yes

Accept all invoices from provider 0x1234 (dry run):
$ golem-sdk invoice accept -k yagna-appkey --provider 0x1234 --dry-run

This feature depends on golemfactory/golem-js#764

@SewerynKras SewerynKras requested a review from a team as a code owner January 16, 2024 19:11
@SewerynKras SewerynKras marked this pull request as draft January 19, 2024 14:24
@SewerynKras SewerynKras marked this pull request as ready for review January 23, 2024 17:48
Copy link
Contributor

@mgordel mgordel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I also tested manually and everything seems to work ok.

@SewerynKras SewerynKras merged commit 034b991 into beta Jan 26, 2024
6 checks passed
@SewerynKras SewerynKras deleted the feature/JST-664/standalone-payment-module branch January 26, 2024 17:34
Copy link

🎉 This PR is included in version 2.2.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants