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

Add asset flag to rvasps #124

Merged
merged 3 commits into from
Mar 18, 2023
Merged

Add asset flag to rvasps #124

merged 3 commits into from
Mar 18, 2023

Conversation

DanielSollis
Copy link
Contributor

Updates the rvasps to add an asset_type flag to transactions.

@DanielSollis DanielSollis requested a review from pdeziel March 15, 2023 18:35
Copy link
Collaborator

@pdeziel pdeziel 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 just had a few questions.

&cli.StringFlag{
Name: "t, asset-type",
Usage: "the type of virtual asset",
Value: "bitcoin",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the asset type supposed to be a shorthand (e.g. BTC, USD, ETH)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The transfer requests I looked at have the whole word. I don't know if the TRISA whitepaper makes a recommendation, that would be something to check into.

@@ -70,6 +70,7 @@ message TransferRequest {
string account = 1; // email address or crypto wallet of the account to debit
string beneficiary = 2; // email address or crypto wallet to look up beneficiary with
float amount = 3; // amount to transfer to the beneficiary (will be truncated to 2 decimal points)
string asset_type = 8; // the type of virtual asset for multi-asset chains (optional)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we move this to the bottom for clarity? Also, if we're saying it's an optional field here, should it not have a default value in the CLI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had it after amount to keep it in line with the order in the trisa repo protobuf definition but I'll move it to the bottom. Good catch on the optional tag, I added that before I put the default value in the CLI.

@DanielSollis DanielSollis merged commit aa1896d into main Mar 18, 2023
@DanielSollis DanielSollis deleted the rvasp-asset branch March 18, 2023 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants