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

Send assets flow #20

Merged
merged 9 commits into from
Nov 1, 2023
Merged

Send assets flow #20

merged 9 commits into from
Nov 1, 2023

Conversation

dgca
Copy link
Contributor

@dgca dgca commented Oct 31, 2023

Screenshot 2023-10-31 at 3 36 06 PM Screenshot 2023-10-31 at 3 37 00 PM Screenshot 2023-10-31 at 3 40 19 PM Screenshot 2023-10-31 at 3 40 22 PM

@@ -0,0 +1,114 @@
import { BoxKeyPair } from "@ironfish/rust-nodejs";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just renamed this file from /ironfish/index.ts to /ironfish/Ironfish.ts to keep the pattern of index files being route handlers.

@@ -0,0 +1,56 @@
import {
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 only real change in the /main/api/ folder is this new file that handles sending a transaction to the Iron Fish node.

renderer/utils/addressUtils.ts Outdated Show resolved Hide resolved
toAccount: data.toAccount,
assetId: data.assetId,
amount: parseIron(data.amount),
fee: parseInt(fee, 10),
Copy link
Member

Choose a reason for hiding this comment

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

Ore values should be treated as bigints rather than numbers (since they're i64 values). It's unlikely to be an issue with fees anytime soon, since supply of the native currency is lower, and fees in general are low, but might be worth standardizing all operations on ORE/IRON everywhere to avoid any accidental parsing bugs, like the parseIron function you have above

@dgca dgca merged commit 89915ad into main Nov 1, 2023
1 check passed
@dgca dgca deleted the send-assets-form branch November 1, 2023 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants