@glif/filecoin-number upgrade

This commit is contained in:
jimmylee 2021-01-27 22:17:01 -08:00
parent 7dc5e4d22c
commit 619af28e66
2 changed files with 9 additions and 1 deletions

View File

@ -24,7 +24,7 @@
"@babel/register": "^7.12.10",
"@emotion/babel-preset-css-prop": "11.0.0",
"@emotion/react": "11.1.4",
"@glif/filecoin-number": "^1.0.0-beta.5",
"@glif/filecoin-number": "^1.1.0-beta.17",
"@slack/webhook": "^5.0.3",
"@textile/hub": "^5.2.0",
"abort-controller": "^3.0.0",

View File

@ -19,6 +19,8 @@ import compression from "compression";
import cors from "cors";
import morgan from "morgan";
import { FilecoinNumber, Converter } from "@glif/filecoin-number";
const app = next({
dev: !Environment.IS_PRODUCTION,
dir: __dirname,
@ -501,5 +503,11 @@ app.prepare().then(async () => {
NodeLogging.log(`started on http://localhost:${Environment.PORT}`);
exploreSlates = await fetchExploreSlates();
const filecoinNumber = new FilecoinNumber("10000", "attoFil");
console.log(`Testing Values: ${filecoinNumber.toPicoFil()} PICO FIL`);
console.log(`Testing Values: ${filecoinNumber.toAttoFil()} ATTO FIL`);
console.log(`Testing Values: ${filecoinNumber.toFil()} FIL`);
});
});