Do not auto-import types from @cosmjs/crypto

This commit is contained in:
Simon Warta 2021-02-10 16:56:01 +01:00
parent fbae7e2729
commit 7582199ea9
4 changed files with 5 additions and 21 deletions

View File

@ -1,3 +1,4 @@
import { HdPath } from "@cosmjs/crypto";
import { CosmWasmFeeTable, SigningCosmWasmClient } from "@cosmjs/cosmwasm-launchpad";
import { GasPrice, GasLimits, makeCosmoshubPath, Secp256k1HdWallet } from "@cosmjs/launchpad";

View File

@ -1,3 +1,4 @@
import { Bip39, Random } from "@cosmjs/crypto";
import { encodeSecp256k1Pubkey, Secp256k1HdWallet } from "@cosmjs/launchpad";
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();

View File

@ -1,6 +1,7 @@
import axios from "axios";
import * as fs from "fs";
import { Bip39, Random } from "@cosmjs/crypto";
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-launchpad";
import { logs, GasPrice, Secp256k1HdWallet } from "@cosmjs/launchpad";

View File

@ -35,27 +35,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
.group(["debug", "selftest"], "Maintainer options")
.parse(originalArgs);
const imports = new Map<string, readonly string[]>([
[
"@cosmjs/crypto",
[
"Bip39",
"Ed25519",
"Ed25519Keypair",
"EnglishMnemonic",
"HdPath",
"Random",
"Secp256k1",
"Sha256",
"sha256",
"Sha512",
"sha512",
"Slip10",
"Slip10Curve",
"Slip10RawIndex",
],
],
]);
const imports = new Map<string, readonly string[]>([]);
console.info(colors.green("Initializing session for you. Have fun!"));
console.info(colors.yellow("Available imports:"));
@ -85,6 +65,7 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
toUtf8,
Bech32,
} from "@cosmjs/encoding";
import { sha512, Bip39, Random } from "@cosmjs/crypto";
import {
coins,
encodeAminoPubkey,