update punk denomination

This commit is contained in:
Fouad
2021-07-22 10:40:02 +01:00
parent addb721d66
commit c8a02e1354
3 changed files with 8464 additions and 1887 deletions
+3 -4
View File
@@ -1,11 +1,10 @@
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import ValidatorClient, {
nativeCoinToDisplay,
nymGasLimits,
nymGasPrice,
printableCoin
} from "@nymproject/nym-validator-client";
import { ADDRESS_LENGTH, DENOM, KEY_LENGTH, UDENOM } from "../pages/_app";
import { ADDRESS_LENGTH, DENOM, KEY_LENGTH } from "../pages/_app";
import { buildFeeTable } from "@cosmjs/launchpad";
import bs58 from "bs58";
@@ -138,11 +137,11 @@ export const basicRawCoinValueValidation = (rawAmount: string): boolean => {
}
export const getDisplayExecGasFee = (): string => {
const table = buildFeeTable(nymGasPrice(UDENOM), nymGasLimits, nymGasLimits)
const table = buildFeeTable(nymGasPrice(DENOM), nymGasLimits, nymGasLimits)
return printableCoin(table.exec.amount[0])
}
export const getDisplaySendGasFee = (): string => {
const table = buildFeeTable(nymGasPrice(UDENOM), nymGasLimits, nymGasLimits)
const table = buildFeeTable(nymGasPrice(DENOM), nymGasLimits, nymGasLimits)
return printableCoin(table.send.amount[0])
}
+6577
View File
File diff suppressed because it is too large Load Diff
+1884 -1883
View File
File diff suppressed because it is too large Load Diff