Skip to content

Commit b9d84d7

Browse files
committed
use .ts extensions for relative imports
1 parent cc3339d commit b9d84d7

File tree

252 files changed

+675
-675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+675
-675
lines changed

packages/amino/src/addresses.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { fromBech32, fromHex, toBase64 } from "@cosmjs/encoding";
22

3-
import { pubkeyToAddress, pubkeyToRawAddress } from "./addresses.js";
4-
import { decodeBech32Pubkey } from "./encoding.js";
5-
import { MultisigThresholdPubkey } from "./pubkeys.js";
3+
import { pubkeyToAddress, pubkeyToRawAddress } from "./addresses.ts";
4+
import { decodeBech32Pubkey } from "./encoding.ts";
5+
import { MultisigThresholdPubkey } from "./pubkeys.ts";
66

77
describe("addresses", () => {
88
describe("pubkeyToRawAddress", () => {

packages/amino/src/addresses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import { ripemd160, sha256 } from "@cosmjs/crypto";
44
import { fromBase64, toBech32 } from "@cosmjs/encoding";
55

6-
import { encodeAminoPubkey } from "./encoding.js";
7-
import { isEd25519Pubkey, isMultisigThresholdPubkey, isSecp256k1Pubkey, Pubkey } from "./pubkeys.js";
6+
import { encodeAminoPubkey } from "./encoding.ts";
7+
import { isEd25519Pubkey, isMultisigThresholdPubkey, isSecp256k1Pubkey, Pubkey } from "./pubkeys.ts";
88

99
export function rawEd25519PubkeyToRawAddress(pubkeyData: Uint8Array): Uint8Array<ArrayBuffer> {
1010
if (pubkeyData.length !== 32) {

packages/amino/src/coins.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addCoins, coin, coins, parseCoins } from "./coins.js";
1+
import { addCoins, coin, coins, parseCoins } from "./coins.ts";
22

33
describe("coins", () => {
44
describe("coin", () => {

packages/amino/src/encoding.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
encodeBech32Pubkey,
99
encodeEd25519Pubkey,
1010
encodeSecp256k1Pubkey,
11-
} from "./encoding.js";
12-
import { Pubkey } from "./pubkeys.js";
11+
} from "./encoding.ts";
12+
import { Pubkey } from "./pubkeys.ts";
1313
import {
1414
testgroup1,
1515
testgroup1PubkeyBech32,
@@ -19,7 +19,7 @@ import {
1919
testgroup3PubkeyBech32,
2020
testgroup4,
2121
testgroup4PubkeyBech32,
22-
} from "./testutils.js";
22+
} from "./testutils.ts";
2323

2424
describe("encoding", () => {
2525
describe("encodeSecp256k1Pubkey", () => {

packages/amino/src/encoding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Pubkey,
1212
pubkeyType,
1313
Secp256k1Pubkey,
14-
} from "./pubkeys.js";
14+
} from "./pubkeys.ts";
1515

1616
/**
1717
* Takes a Secp256k1 public key as raw bytes and returns the Amino JSON

packages/amino/src/index.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@ export {
33
pubkeyToRawAddress,
44
rawEd25519PubkeyToRawAddress,
55
rawSecp256k1PubkeyToRawAddress,
6-
} from "./addresses.js";
7-
export type { Coin } from "./coins.js";
8-
export { addCoins, coin, coins, parseCoins } from "./coins.js";
6+
} from "./addresses.ts";
7+
export type { Coin } from "./coins.ts";
8+
export { addCoins, coin, coins, parseCoins } from "./coins.ts";
99
export {
1010
decodeAminoPubkey,
1111
decodeBech32Pubkey,
1212
encodeAminoPubkey,
1313
encodeBech32Pubkey,
1414
encodeEd25519Pubkey,
1515
encodeSecp256k1Pubkey,
16-
} from "./encoding.js";
17-
export { createMultisigThresholdPubkey } from "./multisig.js";
18-
export { omitDefault } from "./omitdefault.js";
19-
export { makeCosmoshubPath } from "./paths.js";
16+
} from "./encoding.ts";
17+
export { createMultisigThresholdPubkey } from "./multisig.ts";
18+
export { omitDefault } from "./omitdefault.ts";
19+
export { makeCosmoshubPath } from "./paths.ts";
2020
export type {
2121
Ed25519Pubkey,
2222
MultisigThresholdPubkey,
2323
Pubkey,
2424
Secp256k1Pubkey,
2525
SinglePubkey,
26-
} from "./pubkeys.js";
26+
} from "./pubkeys.ts";
2727
export {
2828
isEd25519Pubkey,
2929
isMultisigThresholdPubkey,
3030
isSecp256k1Pubkey,
3131
isSinglePubkey,
3232
pubkeyType,
33-
} from "./pubkeys.js";
33+
} from "./pubkeys.ts";
3434
export {
3535
type Secp256k1HdWalletOptions,
3636
extractKdfConfiguration,
3737
Secp256k1HdWallet,
38-
} from "./secp256k1hdwallet.js";
39-
export { Secp256k1Wallet } from "./secp256k1wallet.js";
40-
export { type StdSignature, decodeSignature, encodeSecp256k1Signature } from "./signature.js";
41-
export type { AminoMsg, StdFee, StdSignDoc } from "./signdoc.js";
42-
export { makeSignDoc, serializeSignDoc } from "./signdoc.js";
43-
export type { AccountData, Algo, AminoSignResponse, OfflineAminoSigner } from "./signer.js";
44-
export { type StdTx, isStdTx, makeStdTx } from "./stdtx.js";
45-
export { type KdfConfiguration, executeKdf } from "./wallet.js";
38+
} from "./secp256k1hdwallet.ts";
39+
export { Secp256k1Wallet } from "./secp256k1wallet.ts";
40+
export { type StdSignature, decodeSignature, encodeSecp256k1Signature } from "./signature.ts";
41+
export type { AminoMsg, StdFee, StdSignDoc } from "./signdoc.ts";
42+
export { makeSignDoc, serializeSignDoc } from "./signdoc.ts";
43+
export type { AccountData, Algo, AminoSignResponse, OfflineAminoSigner } from "./signer.ts";
44+
export { type StdTx, isStdTx, makeStdTx } from "./stdtx.ts";
45+
export { type KdfConfiguration, executeKdf } from "./wallet.ts";

packages/amino/src/multisig.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { compareArrays, createMultisigThresholdPubkey } from "./multisig.js";
2-
import { test1, test2, test3, testgroup1, testgroup2, testgroup3, testgroup4 } from "./testutils.js";
1+
import { compareArrays, createMultisigThresholdPubkey } from "./multisig.ts";
2+
import { test1, test2, test3, testgroup1, testgroup2, testgroup3, testgroup4 } from "./testutils.ts";
33

44
describe("multisig", () => {
55
describe("compareArrays", () => {

packages/amino/src/multisig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { toHex } from "@cosmjs/encoding";
22
import { Uint53 } from "@cosmjs/math";
33

4-
import { pubkeyToRawAddress } from "./addresses.js";
5-
import { MultisigThresholdPubkey, SinglePubkey } from "./pubkeys.js";
4+
import { pubkeyToRawAddress } from "./addresses.ts";
5+
import { MultisigThresholdPubkey, SinglePubkey } from "./pubkeys.ts";
66

77
/**
88
* Compare arrays lexicographically.

packages/amino/src/omitdefault.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { omitDefault } from "./omitdefault.js";
1+
import { omitDefault } from "./omitdefault.ts";
22

33
describe("omitDefault", () => {
44
it("works for numbers", () => {

packages/amino/src/paths.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Slip10RawIndex } from "@cosmjs/crypto";
22

3-
import { makeCosmoshubPath } from "./paths.js";
3+
import { makeCosmoshubPath } from "./paths.ts";
44

55
describe("paths", () => {
66
describe("makeCosmoshubPath", () => {

0 commit comments

Comments
 (0)