-
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(top-up): init top-up with stripe checkout command PE-6635 #149
Conversation
fedellen
commented
Sep 3, 2024
•
edited
Loading
edited
772e621
to
ca41dd7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## alpha #149 +/- ##
==========================================
- Coverage 91.63% 91.62% -0.01%
==========================================
Files 30 30
Lines 3670 3690 +20
Branches 162 162
==========================================
+ Hits 3363 3381 +18
- Misses 307 309 +2 ☔ View full report in Codecov by Sentry. |
README.md
Outdated
|
||
Fund a wallet with Turbo Credits by submitting a payment transaction for the crypto amount to the Turbo wallet and then submitting that transaction id to Turbo Payment Service for top up processing. | ||
Get the balance of a wallet or native address in Turbo Credits. |
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.
Is there anywhere here (or in linked docs) we disambiguate wallet address and native address?
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.
I don't think so. I'd say those would be the same thing to a user, they'd expect wallet address to be their native address. The one thats different could be perceived arweave b64 encoded address
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.
We could link out the docs.ar.io glossary if we want and use the term "normalized address" rather than "wallet address":
https://docs.ar.io/glossary.html#normalized-address
https://docs.ar.io/glossary.html#native-address
README.md
Outdated
|
||
Command Options: | ||
|
||
- `-v, --value <value>` - Amount of tokens in the token type's smallest unit value to fund the wallet with | ||
- `-a, --address <address>` - Address to get the balance of |
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.
Use either normalized address
or native address
. Address
is now ambiguous.
README.md
Outdated
|
||
e.g: | ||
|
||
```shell | ||
turbo crypto-fund --value 0.0001 --token kyve --private-key 'b27...45c' | ||
turbo balance --address 'crypto-wallet-public-native-address' |
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.
How can you just pass a native address without specifying the chain?
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.
here we are defaulting to arweave. but I think it would be possible to regex the address to derive the chain type 🤔
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.
I feel like we could make that refactor in payment service side to derive token when not provided then plumb that down to here
README.md
Outdated
``` | ||
|
||
##### `balance` | ||
```shell | ||
turbo balance --wallet-file '../path/to/my/wallet.json' |
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.
Does this only work with Arweave wallets? If so, we might want to say so.
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.
no, it will also work with sol.secretKey.json wtih secretKey as a uintarray, eth/kyve.privateKey.txt where content is a string of the privateKey
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.
README.md
Outdated
- `-a, --address <address>` - Address to get the balance of | ||
- `-a, --address <address>` - Address to top up | ||
- `-c, --currency <currency>` - Currency to top up with | ||
- `-v, --value <value>` - Amount to top up with in the currency's smallest unit value |
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.
in the currency's smallest unit value
You should provide an example or two here
🎉 This PR is included in version 1.13.0-alpha.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.13.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |