-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(delegated payments): init managing and using delegate payment approvals PE-6754 #191
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #191 +/- ##
==========================================
+ Coverage 93.26% 93.82% +0.56%
==========================================
Files 25 25
Lines 3250 3483 +233
Branches 148 159 +11
==========================================
+ Hits 3031 3268 +237
+ Misses 219 215 -4 ☔ View full report in Codecov by Sentry. |
…` command PE-6754
…response if they exist PE-6754
…CLI layer PE-6754
…id-by helper PE-6754
…loaded balance command PE-6754
🎉 This PR is included in version 1.20.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR implements delegated payments into the Turbo SDK and CLI
here are CLI examples, create an approval to a valid SOL/ETH/POL/AR/KYVE address:
controlled winc is reflected in balance command:
list all given or received approvals:
revoke all active approvals to a given address:
using payment approvals, by default on upload the CLI will use any received approvals before the signer's balance. the SDK will NOT do so, but integrating apps can choose to do so. To override the paid-by behavior CLI users can supply --paid-by,
> node lib/esm/cli/cli.js upload-file -f ../uploads/460KB.txt --wallet-file ../wallets/sol.keypair.2cor8AZxm38uc9sVgGaXk4BU2EtB18FqwEq7ivwa7VUa.json --token solana --paid-by jaxl_dxqJ00gEgQazGASFXVRvO4h-Q0_vnaLtuOUoWU
or use one of two flags,