diff --git a/packages/sdk38/src/cosmosclient.searchtx.spec.ts b/packages/sdk38/src/cosmosclient.searchtx.spec.ts index cb6ca4de..eaad9abc 100644 --- a/packages/sdk38/src/cosmosclient.searchtx.spec.ts +++ b/packages/sdk38/src/cosmosclient.searchtx.spec.ts @@ -6,7 +6,6 @@ import { CosmosClient, isPostTxFailure } from "./cosmosclient"; import { makeSignBytes } from "./encoding"; import { LcdClient } from "./lcdapi"; import { isMsgSend, MsgSend } from "./msgs"; -import { Secp256k1Pen } from "./pen"; import { SigningCosmosClient } from "./signingcosmosclient"; import { faucet, @@ -17,6 +16,7 @@ import { wasmdEnabled, } from "./testutils.spec"; import { CosmosSdkTx } from "./types"; +import { Secp256k1Pen } from "./wallet"; interface TestTxSend { readonly sender: string; diff --git a/packages/sdk38/src/cosmosclient.spec.ts b/packages/sdk38/src/cosmosclient.spec.ts index 64d9806d..e84dc9e1 100644 --- a/packages/sdk38/src/cosmosclient.spec.ts +++ b/packages/sdk38/src/cosmosclient.spec.ts @@ -6,7 +6,6 @@ import { CosmosClient, isPostTxFailure, PrivateCosmWasmClient } from "./cosmoscl import { makeSignBytes } from "./encoding"; import { findAttribute } from "./logs"; import { MsgSend } from "./msgs"; -import { Secp256k1Pen } from "./pen"; import cosmoshub from "./testdata/cosmoshub.json"; import { faucet, @@ -17,6 +16,7 @@ import { wasmd, } from "./testutils.spec"; import { StdFee } from "./types"; +import { Secp256k1Pen } from "./wallet"; const blockTime = 1_000; // ms diff --git a/packages/sdk38/src/index.ts b/packages/sdk38/src/index.ts index f7d21dc6..9074e9df 100644 --- a/packages/sdk38/src/index.ts +++ b/packages/sdk38/src/index.ts @@ -50,9 +50,9 @@ export { TxsResponse, } from "./lcdapi"; export { isMsgDelegate, isMsgSend, Msg, MsgDelegate, MsgSend } from "./msgs"; -export { Pen, Secp256k1Pen, makeCosmoshubPath } from "./pen"; export { decodeBech32Pubkey, encodeBech32Pubkey, encodeSecp256k1Pubkey } from "./pubkey"; export { findSequenceForSignedTx } from "./sequence"; export { encodeSecp256k1Signature, decodeSignature } from "./signature"; export { FeeTable, SigningCallback, SigningCosmosClient } from "./signingcosmosclient"; export { isStdTx, pubkeyType, CosmosSdkTx, PubKey, StdFee, StdSignature, StdTx } from "./types"; +export { Pen, Secp256k1Pen, makeCosmoshubPath } from "./wallet"; diff --git a/packages/sdk38/src/lcdapi/lcdclient.spec.ts b/packages/sdk38/src/lcdapi/lcdclient.spec.ts index 627075e1..d73dfba7 100644 --- a/packages/sdk38/src/lcdapi/lcdclient.spec.ts +++ b/packages/sdk38/src/lcdapi/lcdclient.spec.ts @@ -7,7 +7,6 @@ import { isPostTxFailure } from "../cosmosclient"; import { makeSignBytes } from "../encoding"; import { parseLogs } from "../logs"; import { MsgSend } from "../msgs"; -import { makeCosmoshubPath, Secp256k1Pen } from "../pen"; import { SigningCosmosClient } from "../signingcosmosclient"; import cosmoshub from "../testdata/cosmoshub.json"; import { @@ -21,6 +20,7 @@ import { wasmdEnabled, } from "../testutils.spec"; import { StdFee } from "../types"; +import { makeCosmoshubPath, Secp256k1Pen } from "../wallet"; import { setupAuthExtension } from "./auth"; import { TxsResponse } from "./base"; import { LcdApiArray, LcdClient, normalizeLcdApiArray } from "./lcdclient"; diff --git a/packages/sdk38/src/signingcosmosclient.spec.ts b/packages/sdk38/src/signingcosmosclient.spec.ts index ece3473c..dd30c13a 100644 --- a/packages/sdk38/src/signingcosmosclient.spec.ts +++ b/packages/sdk38/src/signingcosmosclient.spec.ts @@ -2,9 +2,9 @@ import { assert } from "@cosmjs/utils"; import { Coin } from "./coins"; import { isPostTxFailure, PrivateCosmWasmClient } from "./cosmosclient"; -import { Secp256k1Pen } from "./pen"; import { SigningCosmosClient } from "./signingcosmosclient"; import { makeRandomAddress, pendingWithoutWasmd } from "./testutils.spec"; +import { Secp256k1Pen } from "./wallet"; const httpUrl = "http://localhost:1317"; diff --git a/packages/sdk38/src/pen.spec.ts b/packages/sdk38/src/wallet.spec.ts similarity index 97% rename from packages/sdk38/src/pen.spec.ts rename to packages/sdk38/src/wallet.spec.ts index 89b37d1b..47bdc354 100644 --- a/packages/sdk38/src/pen.spec.ts +++ b/packages/sdk38/src/wallet.spec.ts @@ -1,8 +1,8 @@ import { Secp256k1, Secp256k1Signature, Sha256 } from "@cosmjs/crypto"; import { fromHex, toAscii } from "@cosmjs/encoding"; -import { Secp256k1Pen } from "./pen"; import { decodeSignature } from "./signature"; +import { Secp256k1Pen } from "./wallet"; describe("Sec256k1Pen", () => { it("can be constructed", async () => { diff --git a/packages/sdk38/src/pen.ts b/packages/sdk38/src/wallet.ts similarity index 100% rename from packages/sdk38/src/pen.ts rename to packages/sdk38/src/wallet.ts diff --git a/packages/sdk38/types/index.d.ts b/packages/sdk38/types/index.d.ts index fe529970..8210230f 100644 --- a/packages/sdk38/types/index.d.ts +++ b/packages/sdk38/types/index.d.ts @@ -48,9 +48,9 @@ export { TxsResponse, } from "./lcdapi"; export { isMsgDelegate, isMsgSend, Msg, MsgDelegate, MsgSend } from "./msgs"; -export { Pen, Secp256k1Pen, makeCosmoshubPath } from "./pen"; export { decodeBech32Pubkey, encodeBech32Pubkey, encodeSecp256k1Pubkey } from "./pubkey"; export { findSequenceForSignedTx } from "./sequence"; export { encodeSecp256k1Signature, decodeSignature } from "./signature"; export { FeeTable, SigningCallback, SigningCosmosClient } from "./signingcosmosclient"; export { isStdTx, pubkeyType, CosmosSdkTx, PubKey, StdFee, StdSignature, StdTx } from "./types"; +export { Pen, Secp256k1Pen, makeCosmoshubPath } from "./wallet"; diff --git a/packages/sdk38/types/pen.d.ts b/packages/sdk38/types/wallet.d.ts similarity index 100% rename from packages/sdk38/types/pen.d.ts rename to packages/sdk38/types/wallet.d.ts