diff --git a/packages/cli/examples/coralnet.ts b/packages/cli/examples/coralnet.ts index c8488040..3bb552ad 100644 --- a/packages/cli/examples/coralnet.ts +++ b/packages/cli/examples/coralnet.ts @@ -1,3 +1,5 @@ +import { GasPrice, GasLimits, makeCosmoshubPath, Secp256k1HdWallet } from "@cosmjs/launchpad"; + interface Options { readonly httpUrl: string; readonly bech32prefix: string; diff --git a/packages/cli/examples/delegate.ts b/packages/cli/examples/delegate.ts index f99da7e7..f84314bf 100644 --- a/packages/cli/examples/delegate.ts +++ b/packages/cli/examples/delegate.ts @@ -1,3 +1,5 @@ +import { coin, coins, makeSignDoc, makeStdTx, CosmosClient, MsgDelegate, Secp256k1HdWallet } from "@cosmjs/launchpad"; + const wallet = await Secp256k1HdWallet.fromMnemonic( "enlist hip relief stomach skate base shallow young switch frequent cry park", ); diff --git a/packages/cli/examples/faucet_addresses.ts b/packages/cli/examples/faucet_addresses.ts index 604484e9..26946f69 100644 --- a/packages/cli/examples/faucet_addresses.ts +++ b/packages/cli/examples/faucet_addresses.ts @@ -1,3 +1,5 @@ +import { makeCosmoshubPath, Secp256k1HdWallet } from "@cosmjs/launchpad"; + const mnemonic = "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone"; diff --git a/packages/cli/examples/generate_address.ts b/packages/cli/examples/generate_address.ts index bb0787b6..ba9855b0 100644 --- a/packages/cli/examples/generate_address.ts +++ b/packages/cli/examples/generate_address.ts @@ -1,3 +1,5 @@ +import { encodeSecp256k1Pubkey, Secp256k1HdWallet } from "@cosmjs/launchpad"; + const mnemonic = Bip39.encode(Random.getBytes(16)).toString(); const wallet = await Secp256k1HdWallet.fromMnemonic(mnemonic); const [{ address, pubkey }] = await wallet.getAccounts(); diff --git a/packages/cli/examples/helpers.ts b/packages/cli/examples/helpers.ts index dce90d63..21e00680 100644 --- a/packages/cli/examples/helpers.ts +++ b/packages/cli/examples/helpers.ts @@ -1,6 +1,8 @@ import axios from "axios"; import * as fs from "fs"; +import { logs, GasPrice, Secp256k1HdWallet } from "@cosmjs/launchpad"; + interface Options { httpUrl: string; networkId: string; diff --git a/packages/cli/examples/local_faucet.ts b/packages/cli/examples/local_faucet.ts index 98f27217..afa4d960 100644 --- a/packages/cli/examples/local_faucet.ts +++ b/packages/cli/examples/local_faucet.ts @@ -1,3 +1,5 @@ +import { LcdClient, Secp256k1HdWallet, StdFee } from "@cosmjs/launchpad"; + const defaultHttpUrl = "http://localhost:1317"; const defaultNetworkId = "testing"; const defaultFee: StdFee = { diff --git a/packages/cli/examples/mask.ts b/packages/cli/examples/mask.ts index 7a36b0ba..7e02115a 100644 --- a/packages/cli/examples/mask.ts +++ b/packages/cli/examples/mask.ts @@ -1,3 +1,5 @@ +import { Coin } from "@cosmjs/launchpad"; + // types auto-generated by wasm.glass and cleaned up manually export type HandleMsg = | { diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts index 9c002601..e771217c 100644 --- a/packages/cli/src/cli.ts +++ b/packages/cli/src/cli.ts @@ -87,42 +87,6 @@ export async function main(originalArgs: readonly string[]): Promise { ["fromAscii", "fromBase64", "fromHex", "fromUtf8", "toAscii", "toBase64", "toHex", "toUtf8", "Bech32"], ], ["@cosmjs/faucet-client", ["FaucetClient"]], - [ - "@cosmjs/launchpad", - [ - "coin", - "coins", - "decodeAminoPubkey", - "decodeBech32Pubkey", - "encodeAminoPubkey", - "encodeBech32Pubkey", - "encodeSecp256k1Pubkey", - "encodeSecp256k1Signature", - "logs", - "makeCosmoshubPath", - "makeSignDoc", - "makeStdTx", - "IndexedTx", - "BroadcastTxResult", - "Coin", - "CosmosClient", - "GasLimits", - "GasPrice", - "Msg", - "MsgDelegate", - "MsgSend", - "LcdClient", - "OfflineSigner", - "PubKey", - "pubkeyToAddress", - "Secp256k1HdWallet", - "Secp256k1Wallet", - "SigningCosmosClient", - "StdFee", - "StdSignDoc", - "StdTx", - ], - ], ["@cosmjs/math", ["Decimal", "Int53", "Uint32", "Uint53", "Uint64"]], ["@cosmjs/utils", ["assert", "arrayContentEquals", "sleep"]], ]); @@ -144,6 +108,19 @@ export async function main(originalArgs: readonly string[]): Promise { import axios from "axios"; import * as fs from "fs"; + import { + coins, + encodeAminoPubkey, + encodeBech32Pubkey, + decodeBech32Pubkey, + decodeAminoPubkey, + makeCosmoshubPath, + makeSignDoc, + Secp256k1HdWallet, + Secp256k1Wallet, + StdFee, + } from "@cosmjs/launchpad"; + await sleep(123); const readmeContent = fs.readFileSync(process.cwd() + "/README.md");