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"] } }],
"import/no-cycle": "warn",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,28 +1,26 @@
// This type happens to be shared between Amino and Direct sign modes
export { Coin, coin, coins } from "@cosmjs/amino";
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 {
DecodeObject,
EncodeObject,
GeneratedType,
isTxBodyEncodeObject,
isPbjsGeneratedType,
isTsProtoGeneratedType,
isTxBodyEncodeObject,
PbjsGeneratedType,
Registry,
TsProtoGeneratedType,
TxBodyEncodeObject,
} from "./registry";
export {
extractKdfConfiguration,
DirectSecp256k1HdWallet,
DirectSecp256k1HdWalletOptions,
} from "./directsecp256k1hdwallet";
export { DirectSecp256k1Wallet } from "./directsecp256k1wallet";
export { makeCosmoshubPath } from "./paths";
export { decodePubkey, encodePubkey } from "./pubkey";
export {
AccountData,
Algo,
@ -33,3 +31,4 @@ export {
} from "./signer";
export { makeAuthInfoBytes, makeSignBytes, makeSignDoc } from "./signing";
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"] } }],
"import/no-cycle": "warn",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",

View File

@ -31,6 +31,7 @@ module.exports = {
"spaced-comment": ["warn", "always", { line: { markers: ["/ <reference"] } }],
"import/no-cycle": "warn",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
"@typescript-eslint/await-thenable": "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 {
AminoMsgBeginRedelegate,
@ -83,18 +80,24 @@ export {
TxExtension,
} from "./queries";
export {
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxQuery,
SearchTxFilter,
isSearchByHeightQuery,
isSearchBySentFromOrToQuery,
isSearchByTagsQuery,
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxFilter,
SearchTxQuery,
} from "./search";
export {
assertIsDeliverTxSuccess,
defaultRegistryTypes,
SignerData,
SigningStargateClient,
SigningStargateClientOptions,
} from "./signingstargateclient";
export {
assertIsDeliverTxFailure,
assertIsDeliverTxSuccess,
Block,
BlockHeader,
DeliverTxResponse,
@ -105,9 +108,5 @@ export {
StargateClient,
TimeoutError,
} from "./stargateclient";
export {
defaultRegistryTypes,
SignerData,
SigningStargateClient,
SigningStargateClientOptions,
} from "./signingstargateclient";
export { StdFee } from "@cosmjs/amino";
export { Coin, coin, coins, makeCosmoshubPath, parseCoins } from "@cosmjs/proto-signing";

View File

@ -7,7 +7,7 @@ export { QueryClient } from "./queryclient";
export { AuthExtension, setupAuthExtension } from "./auth";
export { BankExtension, setupBankExtension } from "./bank";
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 { setupStakingExtension, StakingExtension } from "./staking";
export { setupTxExtension, TxExtension } from "./tx";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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