-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
24 lines (20 loc) · 697 Bytes
/
index.ts
File metadata and controls
24 lines (20 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Sdk } from "@unique-nft/substrate-client";
import "@unique-nft/substrate-client/tokens";
import {
TokenByIdResult,
TokenChildrenArguments,
TokenChildrenResult,
} from "@unique-nft/substrate-client/tokens";
import env from "./env.json";
import MyClient from "./MyClient";
(async function main() {
console.log("Started", env);
await MyClient.init();
console.log("connected");
console.time("magic1");
const res = await MyClient.magic(env.tokensPerLevel, env.depth);
console.dir(res, { depth: 5 }); // to fix because this step returns undefined
console.log('The token has been created');
console.log('-------------------------')
console.timeEnd("magic1");
})();