Sort exports

This commit is contained in:
Simon Warta 2021-12-01 11:58:57 +01:00
parent 1d0f9f5096
commit 34e0220e03
31 changed files with 158 additions and 142 deletions

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -12,24 +12,24 @@ export {
encodeBech32Pubkey, encodeBech32Pubkey,
encodeSecp256k1Pubkey, encodeSecp256k1Pubkey,
} from "./encoding"; } from "./encoding";
export {
MultisigThresholdPubkey,
Pubkey,
Ed25519Pubkey,
Secp256k1Pubkey,
SinglePubkey,
isMultisigThresholdPubkey,
isEd25519Pubkey,
isSecp256k1Pubkey,
isSinglePubkey,
pubkeyType,
} from "./pubkeys";
export { createMultisigThresholdPubkey } from "./multisig"; export { createMultisigThresholdPubkey } from "./multisig";
export { makeCosmoshubPath } from "./paths"; export { makeCosmoshubPath } from "./paths";
export {
Ed25519Pubkey,
isEd25519Pubkey,
isMultisigThresholdPubkey,
isSecp256k1Pubkey,
isSinglePubkey,
MultisigThresholdPubkey,
Pubkey,
pubkeyType,
Secp256k1Pubkey,
SinglePubkey,
} from "./pubkeys";
export { extractKdfConfiguration, Secp256k1HdWallet, Secp256k1HdWalletOptions } from "./secp256k1hdwallet"; export { extractKdfConfiguration, Secp256k1HdWallet, Secp256k1HdWalletOptions } from "./secp256k1hdwallet";
export { Secp256k1Wallet } from "./secp256k1wallet"; export { Secp256k1Wallet } from "./secp256k1wallet";
export { decodeSignature, encodeSecp256k1Signature, StdSignature } from "./signature"; export { decodeSignature, encodeSecp256k1Signature, StdSignature } from "./signature";
export { AminoMsg, makeSignDoc, serializeSignDoc, StdFee, StdSignDoc } from "./signdoc"; export { AminoMsg, makeSignDoc, serializeSignDoc, StdFee, StdSignDoc } from "./signdoc";
export { AccountData, Algo, AminoSignResponse, OfflineAminoSigner } from "./signer"; export { AccountData, Algo, AminoSignResponse, OfflineAminoSigner } from "./signer";
export { StdTx, isStdTx, makeStdTx } from "./stdtx"; export { isStdTx, makeStdTx, StdTx } from "./stdtx";
export { executeKdf, KdfConfiguration } from "./wallet"; export { executeKdf, KdfConfiguration } from "./wallet";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -1 +1 @@
export { setupWasmExtension, JsonObject, WasmExtension } from "./wasm"; export { JsonObject, setupWasmExtension, WasmExtension } from "./wasm";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -4,13 +4,13 @@ export { HashFunction } from "./hash";
export { Hmac } from "./hmac"; export { Hmac } from "./hmac";
export { Keccak256, keccak256 } from "./keccak"; export { Keccak256, keccak256 } from "./keccak";
export { export {
Xchacha20poly1305Ietf,
xchacha20NonceLength,
Argon2id, Argon2id,
Argon2idOptions, Argon2idOptions,
isArgon2idOptions,
Ed25519, Ed25519,
Ed25519Keypair, Ed25519Keypair,
isArgon2idOptions,
xchacha20NonceLength,
Xchacha20poly1305Ietf,
} from "./libsodium"; } from "./libsodium";
export { Random } from "./random"; export { Random } from "./random";
export { Ripemd160, ripemd160 } from "./ripemd"; export { Ripemd160, ripemd160 } from "./ripemd";
@ -20,10 +20,10 @@ export { Sha1, sha1, Sha256, sha256, Sha512, sha512 } from "./sha";
export { export {
HdPath, HdPath,
pathToString, pathToString,
stringToPath,
Slip10, Slip10,
Slip10Curve, Slip10Curve,
slip10CurveFromString,
Slip10RawIndex, Slip10RawIndex,
Slip10Result, Slip10Result,
slip10CurveFromString, stringToPath,
} from "./slip10"; } from "./slip10";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -1,20 +1,20 @@
export { makeJsonRpcId } from "./id"; export { makeJsonRpcId } from "./id";
export { JsonRpcClient, SimpleMessagingConnection } from "./jsonrpcclient"; export { JsonRpcClient, SimpleMessagingConnection } from "./jsonrpcclient";
export { export {
parseJsonRpcErrorResponse,
parseJsonRpcId, parseJsonRpcId,
parseJsonRpcRequest, parseJsonRpcRequest,
parseJsonRpcResponse, parseJsonRpcResponse,
parseJsonRpcErrorResponse,
parseJsonRpcSuccessResponse, parseJsonRpcSuccessResponse,
} from "./parse"; } from "./parse";
export { export {
isJsonRpcErrorResponse, isJsonRpcErrorResponse,
isJsonRpcSuccessResponse, isJsonRpcSuccessResponse,
jsonRpcCode,
JsonRpcError, JsonRpcError,
JsonRpcErrorResponse, JsonRpcErrorResponse,
JsonRpcId, JsonRpcId,
JsonRpcRequest, JsonRpcRequest,
JsonRpcResponse, JsonRpcResponse,
JsonRpcSuccessResponse, JsonRpcSuccessResponse,
jsonRpcCode,
} from "./types"; } from "./types";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -2,18 +2,10 @@
export { export {
AccountData, AccountData,
Algo, Algo,
AminoMsg as Msg,
AminoSignResponse, AminoSignResponse,
Coin, Coin,
coin, coin,
coins, coins,
KdfConfiguration,
OfflineAminoSigner as OfflineSigner,
Secp256k1HdWallet,
Secp256k1Wallet,
StdFee,
StdSignDoc,
StdSignature,
decodeAminoPubkey, decodeAminoPubkey,
decodeBech32Pubkey, decodeBech32Pubkey,
decodeSignature, decodeSignature,
@ -21,16 +13,24 @@ export {
encodeBech32Pubkey, encodeBech32Pubkey,
encodeSecp256k1Pubkey, encodeSecp256k1Pubkey,
encodeSecp256k1Signature, encodeSecp256k1Signature,
extractKdfConfiguration,
executeKdf, executeKdf,
extractKdfConfiguration,
isStdTx,
KdfConfiguration,
makeCosmoshubPath, makeCosmoshubPath,
makeSignDoc, makeSignDoc,
makeStdTx,
AminoMsg as Msg,
OfflineAminoSigner as OfflineSigner,
parseCoins, parseCoins,
pubkeyToAddress, pubkeyToAddress,
pubkeyType, pubkeyType,
Secp256k1HdWallet,
Secp256k1Wallet,
serializeSignDoc, serializeSignDoc,
isStdTx, StdFee,
makeStdTx, StdSignature,
StdSignDoc,
StdTx, StdTx,
} from "@cosmjs/amino"; } from "@cosmjs/amino";
import { SinglePubkey } from "@cosmjs/amino"; import { SinglePubkey } from "@cosmjs/amino";
@ -45,22 +45,22 @@ export {
assertIsBroadcastTxSuccess, assertIsBroadcastTxSuccess,
Block, Block,
BlockHeader, BlockHeader,
BroadcastTxFailure,
BroadcastTxResult,
BroadcastTxSuccess,
CosmosClient, CosmosClient,
GetSequenceResult, GetSequenceResult,
IndexedTx, IndexedTx,
isBroadcastTxFailure, isBroadcastTxFailure,
isBroadcastTxSuccess, isBroadcastTxSuccess,
BroadcastTxFailure,
BroadcastTxResult,
BroadcastTxSuccess,
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxQuery,
SearchTxFilter,
isSearchByHeightQuery, isSearchByHeightQuery,
isSearchBySentFromOrToQuery, isSearchBySentFromOrToQuery,
isSearchByTagsQuery, isSearchByTagsQuery,
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxFilter,
SearchTxQuery,
} from "./cosmosclient"; } from "./cosmosclient";
export { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./fee"; export { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./fee";
export { export {
@ -71,6 +71,7 @@ export {
BaseAccount, BaseAccount,
BlockResponse, BlockResponse,
BroadcastMode, BroadcastMode,
BroadcastTxsResponse,
DistributionCommunityPoolResponse, DistributionCommunityPoolResponse,
DistributionDelegatorRewardResponse, DistributionDelegatorRewardResponse,
DistributionDelegatorRewardsResponse, DistributionDelegatorRewardsResponse,
@ -81,16 +82,16 @@ export {
DistributionValidatorRewardsResponse, DistributionValidatorRewardsResponse,
DistributionWithdrawAddressResponse, DistributionWithdrawAddressResponse,
EncodeTxResponse, EncodeTxResponse,
GovDepositResponse,
GovDepositsResponse,
GovExtension, GovExtension,
GovParametersResponse, GovParametersResponse,
GovProposalsResponse,
GovProposalResponse, GovProposalResponse,
GovProposalsResponse,
GovProposerResponse, GovProposerResponse,
GovDepositsResponse,
GovDepositResponse,
GovTallyResponse, GovTallyResponse,
GovVotesResponse,
GovVoteResponse, GovVoteResponse,
GovVotesResponse,
LcdApiArray, LcdApiArray,
LcdClient, LcdClient,
MintAnnualProvisionsResponse, MintAnnualProvisionsResponse,
@ -100,7 +101,6 @@ export {
NodeInfoResponse, NodeInfoResponse,
normalizeLcdApiArray, normalizeLcdApiArray,
normalizePubkey, normalizePubkey,
BroadcastTxsResponse,
SearchTxsResponse, SearchTxsResponse,
setupAuthExtension, setupAuthExtension,
setupBankExtension, setupBankExtension,
@ -113,22 +113,22 @@ export {
SlashingExtension, SlashingExtension,
SlashingParametersResponse, SlashingParametersResponse,
SlashingSigningInfosResponse, SlashingSigningInfosResponse,
StakingExtension,
StakingDelegatorDelegationsResponse,
StakingDelegatorUnbondingDelegationsResponse,
StakingDelegatorTransactionsResponse,
StakingDelegatorValidatorsResponse,
StakingDelegatorValidatorResponse,
StakingDelegationResponse, StakingDelegationResponse,
StakingUnbondingDelegationResponse, StakingDelegatorDelegationsResponse,
StakingRedelegationsResponse, StakingDelegatorTransactionsResponse,
StakingValidatorsResponse, StakingDelegatorUnbondingDelegationsResponse,
StakingValidatorResponse, StakingDelegatorValidatorResponse,
StakingValidatorDelegationsResponse, StakingDelegatorValidatorsResponse,
StakingValidatorUnbondingDelegationsResponse, StakingExtension,
StakingHistoricalInfoResponse, StakingHistoricalInfoResponse,
StakingParametersResponse, StakingParametersResponse,
StakingPoolResponse, StakingPoolResponse,
StakingRedelegationsResponse,
StakingUnbondingDelegationResponse,
StakingValidatorDelegationsResponse,
StakingValidatorResponse,
StakingValidatorsResponse,
StakingValidatorUnbondingDelegationsResponse,
SupplyExtension, SupplyExtension,
TxsResponse, TxsResponse,
uint64ToNumber, uint64ToNumber,
@ -160,4 +160,4 @@ export {
} from "./msgs"; } from "./msgs";
export { findSequenceForSignedTx } from "./sequence"; export { findSequenceForSignedTx } from "./sequence";
export { CosmosFeeTable, SigningCosmosClient } from "./signingcosmosclient"; export { CosmosFeeTable, SigningCosmosClient } from "./signingcosmosclient";
export { isWrappedStdTx, CosmosSdkTx, WrappedStdTx, WrappedTx } from "./tx"; export { CosmosSdkTx, isWrappedStdTx, WrappedStdTx, WrappedTx } from "./tx";

View File

@ -2,7 +2,7 @@
// Standard modules (see tracking issue https://github.com/cosmos/cosmjs/issues/276) // Standard modules (see tracking issue https://github.com/cosmos/cosmjs/issues/276)
// //
export { AuthExtension, AuthAccountsResponse, BaseAccount, setupAuthExtension } from "./auth"; export { AuthAccountsResponse, AuthExtension, BaseAccount, setupAuthExtension } from "./auth";
export { BankBalancesResponse, BankExtension, setupBankExtension } from "./bank"; export { BankBalancesResponse, BankExtension, setupBankExtension } from "./bank";
export { export {
DistributionCommunityPoolResponse, DistributionCommunityPoolResponse,
@ -17,16 +17,16 @@ export {
setupDistributionExtension, setupDistributionExtension,
} from "./distribution"; } from "./distribution";
export { export {
GovDepositResponse,
GovDepositsResponse,
GovExtension, GovExtension,
GovParametersResponse, GovParametersResponse,
GovProposalsResponse,
GovProposalResponse, GovProposalResponse,
GovProposalsResponse,
GovProposerResponse, GovProposerResponse,
GovDepositsResponse,
GovDepositResponse,
GovTallyResponse, GovTallyResponse,
GovVotesResponse,
GovVoteResponse, GovVoteResponse,
GovVotesResponse,
setupGovExtension, setupGovExtension,
} from "./gov"; } from "./gov";
export { export {
@ -44,22 +44,22 @@ export {
} from "./slashing"; } from "./slashing";
export { export {
setupStakingExtension, setupStakingExtension,
StakingDelegatorDelegationsResponse,
StakingDelegatorUnbondingDelegationsResponse,
StakingDelegatorTransactionsResponse,
StakingDelegatorValidatorsResponse,
StakingDelegatorValidatorResponse,
StakingDelegationResponse, StakingDelegationResponse,
StakingUnbondingDelegationResponse, StakingDelegatorDelegationsResponse,
StakingRedelegationsResponse, StakingDelegatorTransactionsResponse,
StakingValidatorsResponse, StakingDelegatorUnbondingDelegationsResponse,
StakingValidatorResponse, StakingDelegatorValidatorResponse,
StakingValidatorDelegationsResponse, StakingDelegatorValidatorsResponse,
StakingValidatorUnbondingDelegationsResponse,
StakingHistoricalInfoResponse,
StakingExtension, StakingExtension,
StakingHistoricalInfoResponse,
StakingParametersResponse, StakingParametersResponse,
StakingPoolResponse, StakingPoolResponse,
StakingRedelegationsResponse,
StakingUnbondingDelegationResponse,
StakingValidatorDelegationsResponse,
StakingValidatorResponse,
StakingValidatorsResponse,
StakingValidatorUnbondingDelegationsResponse,
} from "./staking"; } from "./staking";
export { setupSupplyExtension, SupplyExtension, TotalSupplyAllResponse, TotalSupplyResponse } from "./supply"; export { setupSupplyExtension, SupplyExtension, TotalSupplyAllResponse, TotalSupplyResponse } from "./supply";
@ -70,8 +70,8 @@ export { setupSupplyExtension, SupplyExtension, TotalSupplyAllResponse, TotalSup
export { export {
BlockResponse, BlockResponse,
BroadcastMode, BroadcastMode,
EncodeTxResponse,
BroadcastTxsResponse, BroadcastTxsResponse,
EncodeTxResponse,
NodeInfoResponse, NodeInfoResponse,
SearchTxsResponse, SearchTxsResponse,
TxsResponse, TxsResponse,

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -1,28 +1,26 @@
// This type happens to be shared between Amino and Direct sign modes // This type happens to be shared between Amino and Direct sign modes
export { Coin, coin, coins } from "@cosmjs/amino";
export { parseCoins } from "./coins"; export { parseCoins } from "./coins";
export { decodeTxRaw, DecodedTxRaw } from "./decode"; export { DecodedTxRaw, decodeTxRaw } from "./decode";
export {
DirectSecp256k1HdWallet,
DirectSecp256k1HdWalletOptions,
extractKdfConfiguration,
} from "./directsecp256k1hdwallet";
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
export { makeCosmoshubPath } from "./paths";
export { decodePubkey, encodePubkey } from "./pubkey";
export { export {
DecodeObject, DecodeObject,
EncodeObject, EncodeObject,
GeneratedType, GeneratedType,
isTxBodyEncodeObject,
isPbjsGeneratedType, isPbjsGeneratedType,
isTsProtoGeneratedType, isTsProtoGeneratedType,
isTxBodyEncodeObject,
PbjsGeneratedType, PbjsGeneratedType,
Registry, Registry,
TsProtoGeneratedType, TsProtoGeneratedType,
TxBodyEncodeObject, TxBodyEncodeObject,
} from "./registry"; } from "./registry";
export {
extractKdfConfiguration,
DirectSecp256k1HdWallet,
DirectSecp256k1HdWalletOptions,
} from "./directsecp256k1hdwallet";
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
export { makeCosmoshubPath } from "./paths";
export { decodePubkey, encodePubkey } from "./pubkey";
export { export {
AccountData, AccountData,
Algo, Algo,
@ -33,3 +31,4 @@ export {
} from "./signer"; } from "./signer";
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing"; export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
export { executeKdf, KdfConfiguration } from "./wallet"; export { executeKdf, KdfConfiguration } from "./wallet";
export { Coin, coin, coins } from "@cosmjs/amino";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -1,6 +1,3 @@
export { StdFee } from "@cosmjs/amino";
export { Coin, coin, coins, makeCosmoshubPath, parseCoins } from "@cosmjs/proto-signing";
export { Account, accountFromAny } from "./accounts"; export { Account, accountFromAny } from "./accounts";
export { export {
AminoMsgBeginRedelegate, AminoMsgBeginRedelegate,
@ -83,18 +80,24 @@ export {
TxExtension, TxExtension,
} from "./queries"; } from "./queries";
export { export {
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxQuery,
SearchTxFilter,
isSearchByHeightQuery, isSearchByHeightQuery,
isSearchBySentFromOrToQuery, isSearchBySentFromOrToQuery,
isSearchByTagsQuery, isSearchByTagsQuery,
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxFilter,
SearchTxQuery,
} from "./search"; } from "./search";
export { export {
assertIsDeliverTxSuccess, defaultRegistryTypes,
SignerData,
SigningStargateClient,
SigningStargateClientOptions,
} from "./signingstargateclient";
export {
assertIsDeliverTxFailure, assertIsDeliverTxFailure,
assertIsDeliverTxSuccess,
Block, Block,
BlockHeader, BlockHeader,
DeliverTxResponse, DeliverTxResponse,
@ -105,9 +108,5 @@ export {
StargateClient, StargateClient,
TimeoutError, TimeoutError,
} from "./stargateclient"; } from "./stargateclient";
export { export { StdFee } from "@cosmjs/amino";
defaultRegistryTypes, export { Coin, coin, coins, makeCosmoshubPath, parseCoins } from "@cosmjs/proto-signing";
SignerData,
SigningStargateClient,
SigningStargateClientOptions,
} from "./signingstargateclient";

View File

@ -7,7 +7,7 @@ export { QueryClient } from "./queryclient";
export { AuthExtension, setupAuthExtension } from "./auth"; export { AuthExtension, setupAuthExtension } from "./auth";
export { BankExtension, setupBankExtension } from "./bank"; export { BankExtension, setupBankExtension } from "./bank";
export { DistributionExtension, setupDistributionExtension } from "./distribution"; export { DistributionExtension, setupDistributionExtension } from "./distribution";
export { setupGovExtension, GovExtension, GovProposalId, GovParamsType } from "./gov"; export { GovExtension, GovParamsType, GovProposalId, setupGovExtension } from "./gov";
export { IbcExtension, setupIbcExtension } from "./ibc"; export { IbcExtension, setupIbcExtension } from "./ibc";
export { setupStakingExtension, StakingExtension } from "./staking"; export { setupStakingExtension, StakingExtension } from "./staking";
export { setupTxExtension, TxExtension } from "./tx"; export { setupTxExtension, TxExtension } from "./tx";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -1,5 +1,5 @@
export { DefaultValueProducer, DefaultValueProducerCallsbacks } from "./defaultvalueproducer";
export { concat } from "./concat"; export { concat } from "./concat";
export { DefaultValueProducer, DefaultValueProducerCallsbacks } from "./defaultvalueproducer";
export { dropDuplicates, SameTypeStreamOperator } from "./dropduplicates"; export { dropDuplicates, SameTypeStreamOperator } from "./dropduplicates";
export { firstEvent, fromListPromise, toListPromise } from "./promise"; export { firstEvent, fromListPromise, toListPromise } from "./promise";
export * from "./reducer"; export * from "./reducer";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",

View File

@ -6,87 +6,87 @@ export {
} from "./addresses"; } from "./addresses";
export { export {
DateTime, DateTime,
ReadonlyDateWithNanoseconds,
fromRfc3339WithNanoseconds, fromRfc3339WithNanoseconds,
fromSeconds, fromSeconds,
ReadonlyDateWithNanoseconds,
toRfc3339WithNanoseconds, toRfc3339WithNanoseconds,
toSeconds, toSeconds,
} from "./dates"; } from "./dates";
export { HttpClient, WebsocketClient } from "./rpcclients"; // TODO: Why do we export those outside of this package? export { HttpClient, WebsocketClient } from "./rpcclients"; // TODO: Why do we export those outside of this package?
export { export {
BlockIdFlag, AbciInfoRequest,
CommitSignature,
ValidatorEd25519Pubkey,
ValidatorSecp256k1Pubkey,
ValidatorPubkey,
} from "./types";
export {
AbciInfoResponse, AbciInfoResponse,
AbciQueryParams,
AbciQueryRequest,
AbciQueryResponse, AbciQueryResponse,
Attribute, Attribute,
Block, Block,
BlockchainRequest,
BlockchainResponse, BlockchainResponse,
BlockGossipParams, BlockGossipParams,
BlockId, BlockId,
BlockMeta, BlockMeta,
BlockParams, BlockParams,
BlockRequest,
BlockResponse, BlockResponse,
BlockResultsRequest,
BlockResultsResponse, BlockResultsResponse,
BroadcastTxAsyncResponse, BroadcastTxAsyncResponse,
BroadcastTxCommitResponse, BroadcastTxCommitResponse,
broadcastTxCommitSuccess, broadcastTxCommitSuccess,
BroadcastTxParams,
BroadcastTxRequest,
BroadcastTxSyncResponse, BroadcastTxSyncResponse,
broadcastTxSyncSuccess, broadcastTxSyncSuccess,
Commit, Commit,
CommitRequest,
CommitResponse, CommitResponse,
ConsensusParams, ConsensusParams,
Event, Event,
Evidence, Evidence,
EvidenceParams, EvidenceParams,
GenesisRequest,
GenesisResponse, GenesisResponse,
Header, Header,
HealthRequest,
HealthResponse, HealthResponse,
Method,
NewBlockEvent, NewBlockEvent,
NewBlockHeaderEvent, NewBlockHeaderEvent,
NodeInfo, NodeInfo,
ProofOp, ProofOp,
QueryProof, QueryProof,
QueryTag,
Request,
Response, Response,
StatusRequest,
StatusResponse, StatusResponse,
SubscriptionEventType,
SyncInfo, SyncInfo,
TxData, TxData,
TxEvent, TxEvent,
TxParams,
TxProof, TxProof,
TxRequest,
TxResponse, TxResponse,
TxSearchParams,
TxSearchRequest,
TxSearchResponse, TxSearchResponse,
TxSizeParams, TxSizeParams,
Validator, Validator,
ValidatorsParams,
ValidatorsRequest,
ValidatorsResponse, ValidatorsResponse,
Version, Version,
Vote, Vote,
VoteType, VoteType,
AbciInfoRequest,
AbciQueryParams,
AbciQueryRequest,
BlockRequest,
BlockchainRequest,
BlockResultsRequest,
BroadcastTxRequest,
BroadcastTxParams,
CommitRequest,
GenesisRequest,
HealthRequest,
Method,
Request,
QueryTag,
StatusRequest,
SubscriptionEventType,
TxParams,
TxRequest,
TxSearchParams,
TxSearchRequest,
ValidatorsRequest,
ValidatorsParams,
} from "./tendermint34"; } from "./tendermint34";
export * as tendermint34 from "./tendermint34"; export * as tendermint34 from "./tendermint34";
export { Tendermint34Client } from "./tendermint34"; export { Tendermint34Client } from "./tendermint34";
export {
BlockIdFlag,
CommitSignature,
ValidatorEd25519Pubkey,
ValidatorPubkey,
ValidatorSecp256k1Pubkey,
} from "./types";

View File

@ -1,5 +1,5 @@
// This folder contains Tendermint-specific RPC clients // This folder contains Tendermint-specific RPC clients
export { instanceOfRpcStreamingClient, RpcClient, RpcStreamingClient, SubscriptionEvent } from "./rpcclient";
export { HttpClient } from "./httpclient"; export { HttpClient } from "./httpclient";
export { instanceOfRpcStreamingClient, RpcClient, RpcStreamingClient, SubscriptionEvent } from "./rpcclient";
export { WebsocketClient } from "./websocketclient"; export { WebsocketClient } from "./websocketclient";

View File

@ -1,32 +1,31 @@
// Note: all exports in this module are publicly available via // Note: all exports in this module are publicly available via
// `import { tendermint34 } from "@cosmjs/tendermint-rpc"` // `import { tendermint34 } from "@cosmjs/tendermint-rpc"`
export { Tendermint34Client } from "./tendermint34client";
export { export {
AbciInfoRequest, AbciInfoRequest,
AbciQueryParams, AbciQueryParams,
AbciQueryRequest, AbciQueryRequest,
BlockRequest,
BlockchainRequest, BlockchainRequest,
BlockRequest,
BlockResultsRequest,
BlockSearchParams, BlockSearchParams,
BlockSearchRequest, BlockSearchRequest,
BlockResultsRequest,
BroadcastTxRequest,
BroadcastTxParams, BroadcastTxParams,
BroadcastTxRequest,
CommitRequest, CommitRequest,
GenesisRequest, GenesisRequest,
HealthRequest, HealthRequest,
Method, Method,
Request,
QueryTag, QueryTag,
Request,
StatusRequest, StatusRequest,
SubscriptionEventType, SubscriptionEventType,
TxParams, TxParams,
TxRequest, TxRequest,
TxSearchParams, TxSearchParams,
TxSearchRequest, TxSearchRequest,
ValidatorsRequest,
ValidatorsParams, ValidatorsParams,
ValidatorsRequest,
} from "./requests"; } from "./requests";
export { export {
AbciInfoResponse, AbciInfoResponse,
@ -75,3 +74,4 @@ export {
Vote, Vote,
VoteType, VoteType,
} from "./responses"; } from "./responses";
export { Tendermint34Client } from "./tendermint34client";

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }], "spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn", "import/no-cycle": "warn",
"simple-import-sort/imports": "warn", "simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }], "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn", "@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn", "@typescript-eslint/ban-types": "warn",