Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #48 from CosmWasm/exported-symbols-index
Browse files Browse the repository at this point in the history
Roll out exported symbols in index.ts
  • Loading branch information
msteiner96 committed Apr 11, 2022
2 parents 831def1 + 3e94197 commit 32ac8f7
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 120 deletions.
39 changes: 0 additions & 39 deletions src/amino.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/cosmwasm-stargate.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/crypto.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/encoding.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/faucet-client.ts

This file was deleted.

10 changes: 5 additions & 5 deletions src/helpers/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
* (c) Node / Local Mnemonic
* (d) Node / Ledger
*/
import { makeCosmoshubPath } from "../amino";
import { SigningCosmWasmClient } from "../cosmwasm-stargate";
import { LedgerSigner } from "../ledger-amino";
import { DirectSecp256k1HdWallet } from "../proto-signing";
import { GasPrice } from "../stargate";
import { makeCosmoshubPath } from "@cosmjs/amino";
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate";
import { LedgerSigner } from "@cosmjs/ledger-amino";
import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
import { GasPrice } from "@cosmjs/stargate";

/**
* All setup functions are using the same config pattern
Expand Down
135 changes: 122 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,127 @@
/**
* Exporting all the defined CosmJS symbols
*/
export * from "./amino";
export * from "./cosmwasm-stargate";
export * from "./crypto";
export * from "./encoding";
export * from "./faucet-client";
export * from "./ledger-amino";
export * from "./math";
export * from "./proto-signing";
export * from "./stargate";
export * from "./utils";

/**
* Exporting CosmWasmJS Helpers
*/
// @cosmjs/amino
export {
AccountData,
Algo,
AminoMsg,
AminoSignResponse,
Coin,
coin,
coins,
decodeAminoPubkey,
decodeBech32Pubkey,
decodeSignature,
encodeAminoPubkey,
encodeBech32Pubkey,
encodeSecp256k1Pubkey,
encodeSecp256k1Signature,
isSecp256k1Pubkey,
isSinglePubkey,
isStdTx,
makeCosmoshubPath,
makeSignDoc,
makeStdTx,
OfflineAminoSigner,
parseCoins,
Pubkey,
pubkeyToAddress,
pubkeyToRawAddress,
pubkeyType,
rawSecp256k1PubkeyToRawAddress,
Secp256k1HdWallet,
Secp256k1HdWalletOptions,
Secp256k1Pubkey,
Secp256k1Wallet,
serializeSignDoc,
SinglePubkey,
StdFee,
StdSignature,
StdSignDoc,
StdTx,
} from "@cosmjs/amino";

// CosmWasmJS Helpers
export { setupNodeLedger, setupNodeLocal, setupWebKeplr, setupWebLedger } from "./helpers/setup";

// @cosmjs/cosmwasm-stargate
export {
ChangeAdminResult,
CodeDetails,
Contract,
ContractCodeHistoryEntry,
CosmWasmClient,
ExecuteResult,
fromBinary,
InstantiateOptions,
InstantiateResult,
MigrateResult,
MsgExecuteContractEncodeObject,
SigningCosmWasmClient,
SigningCosmWasmClientOptions,
toBinary,
UploadResult,
WasmExtension,
} from "@cosmjs/cosmwasm-stargate";

// @cosmjs/crypto
export { Bip39, HdPath, pathToString, Random } from "@cosmjs/crypto";
export {
Bech32,
fromAscii,
fromBase64,
fromBech32,
fromHex,
fromRfc3339,
fromUtf8,
toAscii,
toBase64,
toBech32,
toHex,
toRfc3339,
toUtf8,
} from "@cosmjs/encoding";

// @cosmjs/faucet-client
export { FaucetClient } from "@cosmjs/faucet-client";

// @cosmjs/ledger-amino
export { LedgerSigner } from "@cosmjs/ledger-amino";

// @cosmjs/math
export { Decimal } from "@cosmjs/math";

// @cosmjs/proto-signing
export { DirectSecp256k1HdWallet, OfflineDirectSigner, OfflineSigner, Registry } from "@cosmjs/proto-signing";

// @cosmjs/stargate
export {
AuthExtension,
BankExtension,
Block,
calculateFee,
createPagination,
DistributionExtension,
GasPrice,
GovExtension,
IbcExtension,
IndexedTx,
MintExtension,
MsgSendEncodeObject,
QueryClient,
setupAuthExtension,
setupBankExtension,
setupDistributionExtension,
setupGovExtension,
setupIbcExtension,
setupMintExtension,
setupStakingExtension,
setupTxExtension,
StakingExtension,
TxExtension,
} from "@cosmjs/stargate";

// @cosmjs/utils
export { isNonNullObject } from "@cosmjs/utils";
1 change: 0 additions & 1 deletion src/ledger-amino.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/math.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/proto-signing.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/stargate.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/utils.ts

This file was deleted.

0 comments on commit 32ac8f7

Please sign in to comment.