-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: send native currency and asas to another account (#37)
* feat: add button to open send asset modal * feat: add network transaction params to storage * feat: add send input to calculate maximum transaction aount * feat: add asset select * feat: add share address modal when clicking the receive button * feat: add to address and note fields * feat: add summary page * feat: add thunk to send transaction * feat: add toast when error or completion of trnasaction submission * feat: update account information when confirmation of asset transafer * fix: account tab selection persists through account selection * fix: sidebar account address aligns left * feat: use toast from hook and handle errors in send asset modal * refactor: account information and account transaction thunk use lists of account ids * feat: add transaction to send asset toast messages * feat: shrink inputs to medium size * build: update manifest version script to omit pre-release suffixes
- Loading branch information
1 parent
8986938
commit 525727c
Showing
154 changed files
with
3,833 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// types | ||
import { INode } from '@extension/types'; | ||
|
||
/** | ||
* Convenience function that randomly picks a node from a list. | ||
* @param {INode[]} nodes - a list of nodes. | ||
* @returns {INode} a random node from the list. | ||
*/ | ||
export default function getRandomNode(nodes: INode[]): INode { | ||
return nodes[Math.floor(Math.random() * nodes.length)]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.