mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 18:13:10 +03:00
@glif/filecoin-number upgrade
This commit is contained in:
parent
7dc5e4d22c
commit
619af28e66
@ -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",
|
||||
|
@ -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`);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user