Do not auto-import @cosmjs/encoding symbols

This commit is contained in:
Simon Warta 2021-02-10 16:43:07 +01:00
parent 8e8011b695
commit fbae7e2729
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,4 @@
import { toBase64 } from "@cosmjs/encoding";
import { makeCosmoshubPath, Secp256k1HdWallet } from "@cosmjs/launchpad";
const mnemonic =

View File

@ -1,3 +1,4 @@
import { toBase64, toUtf8 } from "@cosmjs/encoding";
import { Coin } from "@cosmjs/launchpad";
// types auto-generated by wasm.glass and cleaned up manually

View File

@ -55,10 +55,6 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
"Slip10RawIndex",
],
],
[
"@cosmjs/encoding",
["fromAscii", "fromBase64", "fromHex", "fromUtf8", "toAscii", "toBase64", "toHex", "toUtf8", "Bech32"],
],
]);
console.info(colors.green("Initializing session for you. Have fun!"));
@ -78,6 +74,17 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
import axios from "axios";
import * as fs from "fs";
import {
fromAscii,
fromBase64,
fromHex,
fromUtf8,
toAscii,
toBase64,
toHex,
toUtf8,
Bech32,
} from "@cosmjs/encoding";
import {
coins,
encodeAminoPubkey,