-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NayNay] Updating Units within Entropy (#306)
* [NayNay] Updating Units within Entropy - it had come to our attn that we were using the wrong units for the tokens display - we were under the impression that bits were the smallest unit of the entropy token, that was a mistake - updated all mentions of tokens and bits to match their respective definition - updated return of balance to the human readable format, using BITS - added new method to grab token details from chain * updated methods and flows based on pr suggestions, added changelog) * git weirdness * git weirdness part ii * updated nomenclature for the base unit of BITS to nanoBITS * weird leftover conflict resolution * updated cli output to be more programmatic and not human sentences, updated amount for faucet to send two whole BITS, rather than a hardcoded string
- Loading branch information
Showing
15 changed files
with
106 additions
and
45 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
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import inquirer from "inquirer" | ||
import { print } from "../common/utils" | ||
import { getTokenDetails, print } from "../common/utils" | ||
import { EntropyTransfer } from "./main" | ||
import { transferInputQuestions } from "./utils" | ||
import { setupProgress } from "src/common/progress" | ||
|
||
export async function entropyTransfer (entropy, endpoint) { | ||
const progressTracker = setupProgress('Transferring Funds') | ||
const { symbol } = await getTokenDetails(entropy) | ||
const transferService = new EntropyTransfer(entropy, endpoint) | ||
const { amount, recipientAddress } = await inquirer.prompt(transferInputQuestions) | ||
await transferService.transfer(recipientAddress, amount, progressTracker) | ||
print('') | ||
print(`Transaction successful: Sent ${amount} to ${recipientAddress}`) | ||
print(`Transaction successful: Sent ${amount} ${symbol} to ${recipientAddress}`) | ||
print('') | ||
print('Press enter to return to main menu') | ||
} |
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