From 2a9ea4c46fce88b22a6a89482ebd24c9922a70c0 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 11:39:50 +0100 Subject: [PATCH 01/13] initial commit --- .gitignore | 2 + package-lock.json | 37 +++ package.json | 35 +++ src/amino.ts | 48 ++++ src/cosmwasm-stargate.ts | 10 + src/crypto.ts | 34 +++ src/index.ts | 5 + src/proto-signing.ts | 23 ++ src/stargate.ts | 103 +++++++ tsconfig.json | 11 + yarn.lock | 570 +++++++++++++++++++++++++++++++++++++++ 11 files changed, 878 insertions(+) create mode 100644 .gitignore create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/amino.ts create mode 100644 src/cosmwasm-stargate.ts create mode 100644 src/crypto.ts create mode 100644 src/index.ts create mode 100644 src/proto-signing.ts create mode 100644 src/stargate.ts create mode 100644 tsconfig.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7dab5e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +build \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f097c77 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,37 @@ +{ + "name": "cosmwasm", + "version": "0.27.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "cosmwasm", + "version": "0.27.0", + "license": "Apache-2.0", + "devDependencies": { + "typescript": "^4.5.5" + } + }, + "node_modules/typescript": { + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + }, + "dependencies": { + "typescript": { + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b7276f2 --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "cosmwasm", + "version": "0.27.0", + "description": "A wrapper package for all relevant cosmjs packages.", + "main": "build/index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "rm -rf ./build && tsc" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/confio/cosmwasm.js.git" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org" + }, + "author": "Milan Steiner ", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/confio/cosmwasm.js/issues" + }, + "homepage": "https://github.com/confio/cosmwasm.js#readme", + "dependencies": { + "@cosmjs/amino": "0.27.0", + "@cosmjs/cosmwasm-stargate": "0.27.0", + "@cosmjs/crypto": "0.27.0", + "@cosmjs/encoding": "0.27.0", + "@cosmjs/proto-signing": "0.27.0", + "@cosmjs/stargate": "0.27.0" + }, + "devDependencies": { + "typescript": "^4.5.5" + } +} diff --git a/src/amino.ts b/src/amino.ts new file mode 100644 index 0000000..899e648 --- /dev/null +++ b/src/amino.ts @@ -0,0 +1,48 @@ +export { + pubkeyToAddress, + pubkeyToRawAddress, + rawEd25519PubkeyToRawAddress, + rawSecp256k1PubkeyToRawAddress, + decodeAminoPubkey, + decodeBech32Pubkey, + encodeAminoPubkey, + Coin, + coin, + coins, + parseCoins, + encodeBech32Pubkey, + encodeSecp256k1Pubkey, + createMultisigThresholdPubkey, + makeCosmoshubPath, + Ed25519Pubkey, + isEd25519Pubkey, + isMultisigThresholdPubkey, + isSecp256k1Pubkey, + isSinglePubkey, + MultisigThresholdPubkey, + Pubkey, + pubkeyType, + Secp256k1Pubkey, + SinglePubkey, + extractKdfConfiguration, + Secp256k1HdWallet, + Secp256k1HdWalletOptions, + Secp256k1Wallet, + decodeSignature, + encodeSecp256k1Signature, + StdSignature, + AminoMsg, + makeSignDoc, + serializeSignDoc, + StdFee, + StdSignDoc, + AccountData, + Algo, + AminoSignResponse, + OfflineAminoSigner, + isStdTx, + makeStdTx, + StdTx, + executeKdf, + KdfConfiguration + } from "@cosmjs/amino"; \ No newline at end of file diff --git a/src/cosmwasm-stargate.ts b/src/cosmwasm-stargate.ts new file mode 100644 index 0000000..2fb52b3 --- /dev/null +++ b/src/cosmwasm-stargate.ts @@ -0,0 +1,10 @@ +export { + ChangeAdminResult, + ExecuteResult, + InstantiateOptions, + InstantiateResult, + MigrateResult, + SigningCosmWasmClient, + SigningCosmWasmClientOptions, + UploadResult, + } from "@cosmjs/cosmwasm-stargate"; \ No newline at end of file diff --git a/src/crypto.ts b/src/crypto.ts new file mode 100644 index 0000000..e9a69c4 --- /dev/null +++ b/src/crypto.ts @@ -0,0 +1,34 @@ +export { + Bip39, + EnglishMnemonic, + HashFunction, + Hmac, + Keccak256, + keccak256, + Argon2id, + Argon2idOptions, + Ed25519, + Ed25519Keypair, + isArgon2idOptions, + xchacha20NonceLength, + Xchacha20poly1305Ietf, + Random, + Ripemd160, + ripemd160, + Secp256k1, + Secp256k1Keypair, + ExtendedSecp256k1Signature, + Secp256k1Signature, + Sha256, + sha256, + Sha512, + sha512, + HdPath, + pathToString, + Slip10, + Slip10Curve, + slip10CurveFromString, + Slip10RawIndex, + Slip10Result, + stringToPath, +} from "@cosmjs/crypto"; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..00e928a --- /dev/null +++ b/src/index.ts @@ -0,0 +1,5 @@ +export * from "./amino"; +export * from "./cosmwasm-stargate"; +export * from "./crypto"; +export * from "./proto-signing"; +export * from "./stargate"; \ No newline at end of file diff --git a/src/proto-signing.ts b/src/proto-signing.ts new file mode 100644 index 0000000..73374f8 --- /dev/null +++ b/src/proto-signing.ts @@ -0,0 +1,23 @@ +export { + DecodedTxRaw, + decodeTxRaw, + DirectSecp256k1HdWallet, + DirectSecp256k1HdWalletOptions, + DirectSecp256k1Wallet, + decodePubkey, + encodePubkey, + DecodeObject, + EncodeObject, + GeneratedType, + isPbjsGeneratedType, + isTsProtoGeneratedType, + isTxBodyEncodeObject, + PbjsGeneratedType, + Registry, + TsProtoGeneratedType, + TxBodyEncodeObject, + DirectSignResponse, + isOfflineDirectSigner, + OfflineDirectSigner, + OfflineSigner +} from "@cosmjs/proto-signing"; diff --git a/src/stargate.ts b/src/stargate.ts new file mode 100644 index 0000000..867f036 --- /dev/null +++ b/src/stargate.ts @@ -0,0 +1,103 @@ +export { + AminoMsgBeginRedelegate, + AminoMsgCreateValidator, + AminoMsgDelegate, + AminoMsgDeposit, + AminoMsgEditValidator, + AminoMsgFundCommunityPool, + AminoMsgMultiSend, + AminoMsgSend, + AminoMsgSetWithdrawAddress, + AminoMsgSubmitEvidence, + AminoMsgSubmitProposal, + AminoMsgUndelegate, + AminoMsgUnjail, + AminoMsgVerifyInvariant, + AminoMsgVote, + AminoMsgWithdrawDelegatorReward, + AminoMsgWithdrawValidatorCommission, + isAminoMsgBeginRedelegate, + isAminoMsgCreateValidator, + isAminoMsgDelegate, + isAminoMsgDeposit, + isAminoMsgEditValidator, + isAminoMsgFundCommunityPool, + isAminoMsgMultiSend, + isAminoMsgSend, + isAminoMsgSetWithdrawAddress, + isAminoMsgSubmitEvidence, + isAminoMsgSubmitProposal, + isAminoMsgUndelegate, + isAminoMsgUnjail, + isAminoMsgVerifyInvariant, + isAminoMsgVote, + isAminoMsgWithdrawDelegatorReward, + isAminoMsgWithdrawValidatorCommission, + AminoConverter, + isMsgDelegateEncodeObject, + isMsgDepositEncodeObject, + isMsgSendEncodeObject, + isMsgSubmitProposalEncodeObject, + isMsgTransferEncodeObject, + isMsgUndelegateEncodeObject, + isMsgVoteEncodeObject, + isMsgWithdrawDelegatorRewardEncodeObject, + MsgDelegateEncodeObject, + MsgDepositEncodeObject, + MsgSendEncodeObject, + MsgSubmitProposalEncodeObject, + MsgTransferEncodeObject, + MsgUndelegateEncodeObject, + MsgVoteEncodeObject, + MsgWithdrawDelegatorRewardEncodeObject, + calculateFee, + GasPrice, + makeMultisignedTx, + AuthExtension, + BankExtension, + createPagination, + createProtobufRpcClient, + decodeCosmosSdkDecFromProto, + DistributionExtension, + GovExtension, + GovParamsType, + GovProposalId, + IbcExtension, + MintExtension, + MintParams, + ProtobufRpcClient, + QueryClient, + setupAuthExtension, + setupBankExtension, + setupDistributionExtension, + setupGovExtension, + setupIbcExtension, + setupMintExtension, + setupStakingExtension, + setupTxExtension, + StakingExtension, + TxExtension, + isSearchByHeightQuery, + isSearchBySentFromOrToQuery, + isSearchByTagsQuery, + SearchByHeightQuery, + SearchBySentFromOrToQuery, + SearchByTagsQuery, + SearchTxFilter, + SearchTxQuery, + defaultRegistryTypes, + SignerData, + SigningStargateClient, + SigningStargateClientOptions, + assertIsDeliverTxFailure, + assertIsDeliverTxSuccess, + Block, + BlockHeader, + DeliverTxResponse, + IndexedTx, + isDeliverTxFailure, + isDeliverTxSuccess, + SequenceResponse, + StargateClient, + TimeoutError, +} from "@cosmjs/stargate"; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..92265f7 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "declaration": true, + "outDir": "./build", + "strict": true + }, + "include": ["src"], + "exclude": ["node_modules", "**/__tests__/*"] +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..a6bcc95 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,570 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@confio/ics23@^0.6.3": + version "0.6.5" + resolved "https://registry.yarnpkg.com/@confio/ics23/-/ics23-0.6.5.tgz#9c21a61089d4c3c2429875a69d6d9cd8c87512aa" + integrity sha512-1GdPMsaP/l8JSF4P4HWFLBhdcxHcJT8lS0nknBYNSZ1XrJOsJKUy6EkOwd9Pa1qJkXzY2gyNv7MdHR+AIwSTAg== + dependencies: + js-sha512 "^0.8.0" + protobufjs "^6.8.8" + ripemd160 "^2.0.2" + sha.js "^2.4.11" + +"@cosmjs/amino@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.27.0.tgz#1d47a75c5f8acd62c1db5362e60d0b028f656cbc" + integrity sha512-ybyzRkGrRija1bjGjGP7sAp2ulPA2/S2wMY2pehB7b6ZR8dpwveCjz/IqFWC5KBxz6KZf5MuaONOY+t1kkjsfw== + dependencies: + "@cosmjs/crypto" "0.27.0" + "@cosmjs/encoding" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/utils" "0.27.0" + +"@cosmjs/cosmwasm-stargate@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.27.0.tgz#5dc129cfaf9c9d531c1a8ee6ac7de204f9cf060b" + integrity sha512-iHImibG0pbanfnuaHFtcjLO6ZYSKPk/+DeyixnW4+JiRx0dB2dmI7aKcoUTGYVa8WRHFoW7w78SY6fstsUaN7g== + dependencies: + "@cosmjs/amino" "0.27.0" + "@cosmjs/crypto" "0.27.0" + "@cosmjs/encoding" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/proto-signing" "0.27.0" + "@cosmjs/stargate" "0.27.0" + "@cosmjs/tendermint-rpc" "0.27.0" + "@cosmjs/utils" "0.27.0" + cosmjs-types "^0.4.0" + long "^4.0.0" + pako "^2.0.2" + protobufjs "~6.10.2" + +"@cosmjs/crypto@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.27.0.tgz#1c33ce2bffdc7cef911961491996ed8321e0495c" + integrity sha512-JTPHINCYZ+mnsxrfv8ZBHsFWgB7EGooa5SD0lQFhkCVX/FC3sqxuFNv6TZU5bVVU71DUSqXTMXF5m9kAMzPUkw== + dependencies: + "@cosmjs/encoding" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/utils" "0.27.0" + bip39 "^3.0.2" + bn.js "^5.2.0" + elliptic "^6.5.3" + js-sha3 "^0.8.0" + libsodium-wrappers "^0.7.6" + ripemd160 "^2.0.2" + sha.js "^2.4.11" + +"@cosmjs/encoding@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.27.0.tgz#b335fe5a10b842ab348fb226d0c9c97155fdfb81" + integrity sha512-cCT8X/NUAGXOe14F/k2GE6N9btjrOqALBilUPIn5CL4OEGxvRTPD59nWSACu0iafCGz10Tw3LPcouuYPtZmkbg== + dependencies: + base64-js "^1.3.0" + bech32 "^1.1.4" + readonly-date "^1.0.0" + +"@cosmjs/json-rpc@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.27.0.tgz#9938d9f78f2a8c5a7d985c4a0efe458bd0c02397" + integrity sha512-Q6na5KPYDD90QhlPZTInquwBycDjvhZvWwpV1TppDd2Em8S1FfN3ePiV2YCf4XzXREU5YPFSHzh5MHK/WhQY3w== + dependencies: + "@cosmjs/stream" "0.27.0" + xstream "^11.14.0" + +"@cosmjs/launchpad@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/launchpad/-/launchpad-0.27.0.tgz#b714a4ffaea6a704c97f3d2dfd0bdc8960c81404" + integrity sha512-V8pK3jNvLw/2jf0DK0uD0fN0qUgh+v04NxSNIdRxyn2sdZ8CkD1L+FeKM5mGEn9vreSHOD4Z9pRy2s2roD/tEw== + dependencies: + "@cosmjs/amino" "0.27.0" + "@cosmjs/crypto" "0.27.0" + "@cosmjs/encoding" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/utils" "0.27.0" + axios "^0.21.2" + fast-deep-equal "^3.1.3" + +"@cosmjs/math@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.27.0.tgz#1597d86d9fd96fdeef0989ac0b7d75be11f15234" + integrity sha512-+WsrdXojqpUL6l2LKOWYgiAJIDD0faONNtnjb1kpS1btSzZe1Ns+RdygG6QZLLvZuxMfkEzE54ZXDKPD5MhVPA== + dependencies: + bn.js "^5.2.0" + +"@cosmjs/proto-signing@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.27.0.tgz#5739a93720f00bf9b91bdd91a9ce82696f3f9c59" + integrity sha512-ODqnmY/ElmcEYu6HbDmeGce4KacgzSVGQzvGodZidC1RR9EYociuweBPNwSHqBPolC6PQPI/QGc83m/mbih2xw== + dependencies: + "@cosmjs/amino" "0.27.0" + "@cosmjs/crypto" "0.27.0" + "@cosmjs/math" "0.27.0" + cosmjs-types "^0.4.0" + long "^4.0.0" + protobufjs "~6.10.2" + +"@cosmjs/socket@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.27.0.tgz#b95cf2d437c8c5d9123beac6196c1f5bfb605722" + integrity sha512-lOd0s6gLyjdjcs8xnYuS2IXRqBLUrI76Bek5wsia+m5CyUvHjRbbd7+nZiznbtVjApBlIwHGkiklLg3/byxkAA== + dependencies: + "@cosmjs/stream" "0.27.0" + isomorphic-ws "^4.0.1" + ws "^7" + xstream "^11.14.0" + +"@cosmjs/stargate@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.27.0.tgz#667d262e243bae56a19c953e5d23d497533b1195" + integrity sha512-Fiqk8rIpB4emzC/P7/+ZPPJV9aG6KJhVuOF4D8c1j1Bv8fVs1XqC6NgsY6elTLXl38pgXt7REn6VYzAdZwrHXQ== + dependencies: + "@confio/ics23" "^0.6.3" + "@cosmjs/amino" "0.27.0" + "@cosmjs/encoding" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/proto-signing" "0.27.0" + "@cosmjs/stream" "0.27.0" + "@cosmjs/tendermint-rpc" "0.27.0" + "@cosmjs/utils" "0.27.0" + cosmjs-types "^0.4.0" + long "^4.0.0" + protobufjs "~6.10.2" + xstream "^11.14.0" + +"@cosmjs/stream@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.27.0.tgz#a03db0c8d20139a12f239a032d305d623789ca6d" + integrity sha512-D9mXHqS6y7xrThhUg5SCvMjiVQ8ph9f7gAuWlrXhqVJ5FqrP6OyTGRbVyGGM91d5Jj7N7oidQ+hOfc34vKFgeg== + dependencies: + xstream "^11.14.0" + +"@cosmjs/tendermint-rpc@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.27.0.tgz#6ac68c5e7e44e492cadfe08a5cfdff2202f52d08" + integrity sha512-WFcJ2/UF76fBBVzPRiHJoC/GCKvgt0mb7+ewgpwKBeEcYwfj5qb1QreGBbHn/UZx9QSsF9jhI5k7SmNdglC3cA== + dependencies: + "@cosmjs/crypto" "0.27.0" + "@cosmjs/encoding" "0.27.0" + "@cosmjs/json-rpc" "0.27.0" + "@cosmjs/math" "0.27.0" + "@cosmjs/socket" "0.27.0" + "@cosmjs/stream" "0.27.0" + axios "^0.21.2" + readonly-date "^1.0.0" + xstream "^11.14.0" + +"@cosmjs/utils@0.27.0": + version "0.27.0" + resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.27.0.tgz#c7112d6dab01ad2e9d57cd2bf4328da156aaae4e" + integrity sha512-UC1eWY9isDQm6POy6GaTmYtbPVY5dkywdjW8Qzj+JNMhbhMM0KHuI4pHwjv5TPXSO/Ba2z10MTnD9nUlZtDwtA== + +"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" + integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78= + +"@protobufjs/base64@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" + integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== + +"@protobufjs/codegen@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" + integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== + +"@protobufjs/eventemitter@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" + integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A= + +"@protobufjs/fetch@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" + integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU= + dependencies: + "@protobufjs/aspromise" "^1.1.1" + "@protobufjs/inquire" "^1.1.0" + +"@protobufjs/float@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" + integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E= + +"@protobufjs/inquire@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" + integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik= + +"@protobufjs/path@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" + integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0= + +"@protobufjs/pool@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" + integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q= + +"@protobufjs/utf8@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" + integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= + +"@types/long@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9" + integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w== + +"@types/node@11.11.6": + version "11.11.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" + integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== + +"@types/node@>=13.7.0": + version "17.0.15" + resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.15.tgz#97779282c09c09577120a2162e71d8380003590a" + integrity sha512-zWt4SDDv1S9WRBNxLFxFRHxdD9tvH8f5/kg5/IaLFdnSNXsDY4eL3Q3XXN+VxUnWIhyVFDwcsmAprvwXoM/ClA== + +"@types/node@^13.7.0": + version "13.13.52" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.52.tgz#03c13be70b9031baaed79481c0c0cfb0045e53f7" + integrity sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ== + +axios@^0.21.2: + version "0.21.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" + integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== + dependencies: + follow-redirects "^1.14.0" + +base64-js@^1.3.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +bech32@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" + integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== + +bip39@^3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0" + integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== + dependencies: + "@types/node" "11.11.6" + create-hash "^1.1.0" + pbkdf2 "^3.0.9" + randombytes "^2.0.1" + +bn.js@^4.11.9: + version "4.12.0" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" + integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== + +bn.js@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.0.tgz#358860674396c6997771a9d051fcc1b57d4ae002" + integrity sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw== + +brorand@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +cosmjs-types@^0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.4.1.tgz#3b2a53ba60d33159dd075596ce8267cfa7027063" + integrity sha512-I7E/cHkIgoJzMNQdFF0YVqPlaTqrqKHrskuSTIqlEyxfB5Lf3WKCajSXVK2yHOfOFfSux/RxEdpMzw/eO4DIog== + dependencies: + long "^4.0.0" + protobufjs "~6.11.2" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +elliptic@^6.5.3: + version "6.5.4" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" + integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== + dependencies: + bn.js "^4.11.9" + brorand "^1.1.0" + hash.js "^1.0.0" + hmac-drbg "^1.0.1" + inherits "^2.0.4" + minimalistic-assert "^1.0.1" + minimalistic-crypto-utils "^1.0.1" + +fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +follow-redirects@^1.14.0: + version "1.14.7" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685" + integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ== + +globalthis@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.2.tgz#2a235d34f4d8036219f7e34929b5de9e18166b8b" + integrity sha512-ZQnSFO1la8P7auIOQECnm0sSuoMeaSq0EEdXMBFF2QJO4uNcwbyhSgG3MruWNbFTqCLmxVwGOl7LZ9kASvHdeQ== + dependencies: + define-properties "^1.1.3" + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.7" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +isomorphic-ws@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" + integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== + +js-sha3@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + +js-sha512@^0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha512/-/js-sha512-0.8.0.tgz#dd22db8d02756faccf19f218e3ed61ec8249f7d4" + integrity sha512-PWsmefG6Jkodqt+ePTvBZCSMFgN7Clckjd0O7su3I0+BW2QWUTJNzjktHsztGLhncP2h8mcF9V9Y2Ha59pAViQ== + +libsodium-wrappers@^0.7.6: + version "0.7.9" + resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.9.tgz#4ffc2b69b8f7c7c7c5594a93a4803f80f6d0f346" + integrity sha512-9HaAeBGk1nKTRFRHkt7nzxqCvnkWTjn1pdjKgcUnZxj0FyOP4CnhgFhMdrFfgNsukijBGyBLpP2m2uKT1vuWhQ== + dependencies: + libsodium "^0.7.0" + +libsodium@^0.7.0: + version "0.7.9" + resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.9.tgz#4bb7bcbf662ddd920d8795c227ae25bbbfa3821b" + integrity sha512-gfeADtR4D/CM0oRUviKBViMGXZDgnFdMKMzHsvBdqLBHd9ySi6EtYnmuhHVDDYgYpAO8eU8hEY+F8vIUAPh08A== + +long@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" + integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +object-keys@^1.0.12: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +pako@^2.0.2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pako/-/pako-2.0.4.tgz#6cebc4bbb0b6c73b0d5b8d7e8476e2b2fbea576d" + integrity sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg== + +pbkdf2@^3.0.9: + version "3.1.2" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" + integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +protobufjs@^6.8.8, protobufjs@~6.11.2: + version "6.11.2" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.2.tgz#de39fabd4ed32beaa08e9bb1e30d08544c1edf8b" + integrity sha512-4BQJoPooKJl2G9j3XftkIXjoC9C0Av2NOrWmbLWT1vH32GcSUHjM0Arra6UfTsVyfMAuFzaLucXn1sadxJydAw== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/long" "^4.0.1" + "@types/node" ">=13.7.0" + long "^4.0.0" + +protobufjs@~6.10.2: + version "6.10.2" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.10.2.tgz#b9cb6bd8ec8f87514592ba3fdfd28e93f33a469b" + integrity sha512-27yj+04uF6ya9l+qfpH187aqEzfCF4+Uit0I9ZBQVqK09hk/SQzKa2MUqUpXaVa7LOFRg1TSSr3lVxGOk6c0SQ== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/long" "^4.0.1" + "@types/node" "^13.7.0" + long "^4.0.0" + +randombytes@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readonly-date@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/readonly-date/-/readonly-date-1.0.0.tgz#5af785464d8c7d7c40b9d738cbde8c646f97dcd9" + integrity sha512-tMKIV7hlk0h4mO3JTmmVuIlJVXjKk3Sep9Bf5OH0O+758ruuVkUy2J9SttDLm91IEX/WHlXPSpxMGjPj4beMIQ== + +ripemd160@^2.0.0, ripemd160@^2.0.1, ripemd160@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +symbol-observable@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-2.0.3.tgz#5b521d3d07a43c351055fa43b8355b62d33fd16a" + integrity sha512-sQV7phh2WCYAn81oAkakC5qjq2Ml0g8ozqz03wOGnx9dDlG1de6yrF+0RAzSJD8fPUow3PTSMf2SAbOGxb93BA== + +typescript@^4.5.5: + version "4.5.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" + integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== + +util-deprecate@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +ws@^7: + version "7.5.6" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.6.tgz#e59fc509fb15ddfb65487ee9765c5a51dec5fe7b" + integrity sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA== + +xstream@^11.14.0: + version "11.14.0" + resolved "https://registry.yarnpkg.com/xstream/-/xstream-11.14.0.tgz#2c071d26b18310523b6877e86b4e54df068a9ae5" + integrity sha512-1bLb+kKKtKPbgTK6i/BaoAn03g47PpFstlbe1BA+y3pNS/LfvcaghS5BFf9+EE1J+KwSQsEpfJvFN5GqFtiNmw== + dependencies: + globalthis "^1.0.1" + symbol-observable "^2.0.3" From cd8f85f1670e89034425006e85b6e1e86fc5b65f Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 12:05:24 +0100 Subject: [PATCH 02/13] Filter out non needed symbols --- package.json | 11 +++- src/amino.ts | 9 ---- src/cosmwasm-stargate.ts | 1 + src/crypto.ts | 30 ----------- src/proto-signing.ts | 17 ------- src/stargate.ts | 107 +++------------------------------------ tsconfig.json | 2 +- 7 files changed, 18 insertions(+), 159 deletions(-) diff --git a/package.json b/package.json index b7276f2..883213e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,16 @@ "access": "public", "registry": "https://registry.npmjs.org" }, - "author": "Milan Steiner ", + "contributors": [ + { + "name": "Simon Warta", + "email": "webmaster128@users.noreply.github.com" + }, + { + "name": "Milan Steiner", + "email": "msteiner96@users.noreply.github.com" + } + ], "license": "Apache-2.0", "bugs": { "url": "https://github.com/confio/cosmwasm.js/issues" diff --git a/src/amino.ts b/src/amino.ts index 899e648..94b2cc5 100644 --- a/src/amino.ts +++ b/src/amino.ts @@ -1,7 +1,6 @@ export { pubkeyToAddress, pubkeyToRawAddress, - rawEd25519PubkeyToRawAddress, rawSecp256k1PubkeyToRawAddress, decodeAminoPubkey, decodeBech32Pubkey, @@ -12,19 +11,13 @@ export { parseCoins, encodeBech32Pubkey, encodeSecp256k1Pubkey, - createMultisigThresholdPubkey, makeCosmoshubPath, - Ed25519Pubkey, - isEd25519Pubkey, - isMultisigThresholdPubkey, isSecp256k1Pubkey, isSinglePubkey, - MultisigThresholdPubkey, Pubkey, pubkeyType, Secp256k1Pubkey, SinglePubkey, - extractKdfConfiguration, Secp256k1HdWallet, Secp256k1HdWalletOptions, Secp256k1Wallet, @@ -43,6 +36,4 @@ export { isStdTx, makeStdTx, StdTx, - executeKdf, - KdfConfiguration } from "@cosmjs/amino"; \ No newline at end of file diff --git a/src/cosmwasm-stargate.ts b/src/cosmwasm-stargate.ts index 2fb52b3..a047358 100644 --- a/src/cosmwasm-stargate.ts +++ b/src/cosmwasm-stargate.ts @@ -4,6 +4,7 @@ export { InstantiateOptions, InstantiateResult, MigrateResult, + CosmWasmClient, SigningCosmWasmClient, SigningCosmWasmClientOptions, UploadResult, diff --git a/src/crypto.ts b/src/crypto.ts index e9a69c4..59a5452 100644 --- a/src/crypto.ts +++ b/src/crypto.ts @@ -1,34 +1,4 @@ export { - Bip39, - EnglishMnemonic, - HashFunction, - Hmac, - Keccak256, - keccak256, - Argon2id, - Argon2idOptions, - Ed25519, - Ed25519Keypair, - isArgon2idOptions, - xchacha20NonceLength, - Xchacha20poly1305Ietf, - Random, - Ripemd160, - ripemd160, - Secp256k1, - Secp256k1Keypair, - ExtendedSecp256k1Signature, - Secp256k1Signature, - Sha256, - sha256, - Sha512, - sha512, HdPath, pathToString, - Slip10, - Slip10Curve, - slip10CurveFromString, - Slip10RawIndex, - Slip10Result, - stringToPath, } from "@cosmjs/crypto"; diff --git a/src/proto-signing.ts b/src/proto-signing.ts index 73374f8..32ece1a 100644 --- a/src/proto-signing.ts +++ b/src/proto-signing.ts @@ -1,23 +1,6 @@ export { - DecodedTxRaw, - decodeTxRaw, DirectSecp256k1HdWallet, - DirectSecp256k1HdWalletOptions, - DirectSecp256k1Wallet, - decodePubkey, - encodePubkey, - DecodeObject, - EncodeObject, - GeneratedType, - isPbjsGeneratedType, - isTsProtoGeneratedType, - isTxBodyEncodeObject, - PbjsGeneratedType, Registry, - TsProtoGeneratedType, - TxBodyEncodeObject, - DirectSignResponse, - isOfflineDirectSigner, OfflineDirectSigner, OfflineSigner } from "@cosmjs/proto-signing"; diff --git a/src/stargate.ts b/src/stargate.ts index 867f036..ffaff59 100644 --- a/src/stargate.ts +++ b/src/stargate.ts @@ -1,103 +1,8 @@ export { - AminoMsgBeginRedelegate, - AminoMsgCreateValidator, - AminoMsgDelegate, - AminoMsgDeposit, - AminoMsgEditValidator, - AminoMsgFundCommunityPool, - AminoMsgMultiSend, - AminoMsgSend, - AminoMsgSetWithdrawAddress, - AminoMsgSubmitEvidence, - AminoMsgSubmitProposal, - AminoMsgUndelegate, - AminoMsgUnjail, - AminoMsgVerifyInvariant, - AminoMsgVote, - AminoMsgWithdrawDelegatorReward, - AminoMsgWithdrawValidatorCommission, - isAminoMsgBeginRedelegate, - isAminoMsgCreateValidator, - isAminoMsgDelegate, - isAminoMsgDeposit, - isAminoMsgEditValidator, - isAminoMsgFundCommunityPool, - isAminoMsgMultiSend, - isAminoMsgSend, - isAminoMsgSetWithdrawAddress, - isAminoMsgSubmitEvidence, - isAminoMsgSubmitProposal, - isAminoMsgUndelegate, - isAminoMsgUnjail, - isAminoMsgVerifyInvariant, - isAminoMsgVote, - isAminoMsgWithdrawDelegatorReward, - isAminoMsgWithdrawValidatorCommission, - AminoConverter, - isMsgDelegateEncodeObject, - isMsgDepositEncodeObject, - isMsgSendEncodeObject, - isMsgSubmitProposalEncodeObject, - isMsgTransferEncodeObject, - isMsgUndelegateEncodeObject, - isMsgVoteEncodeObject, - isMsgWithdrawDelegatorRewardEncodeObject, - MsgDelegateEncodeObject, - MsgDepositEncodeObject, - MsgSendEncodeObject, - MsgSubmitProposalEncodeObject, - MsgTransferEncodeObject, - MsgUndelegateEncodeObject, - MsgVoteEncodeObject, - MsgWithdrawDelegatorRewardEncodeObject, - calculateFee, - GasPrice, - makeMultisignedTx, - AuthExtension, - BankExtension, - createPagination, - createProtobufRpcClient, - decodeCosmosSdkDecFromProto, - DistributionExtension, - GovExtension, - GovParamsType, - GovProposalId, - IbcExtension, - MintExtension, - MintParams, - ProtobufRpcClient, - QueryClient, - setupAuthExtension, - setupBankExtension, - setupDistributionExtension, - setupGovExtension, - setupIbcExtension, - setupMintExtension, - setupStakingExtension, - setupTxExtension, - StakingExtension, - TxExtension, - isSearchByHeightQuery, - isSearchBySentFromOrToQuery, - isSearchByTagsQuery, - SearchByHeightQuery, - SearchBySentFromOrToQuery, - SearchByTagsQuery, - SearchTxFilter, - SearchTxQuery, - defaultRegistryTypes, - SignerData, - SigningStargateClient, - SigningStargateClientOptions, - assertIsDeliverTxFailure, - assertIsDeliverTxSuccess, - Block, - BlockHeader, - DeliverTxResponse, - IndexedTx, - isDeliverTxFailure, - isDeliverTxSuccess, - SequenceResponse, - StargateClient, - TimeoutError, + IndexedTx, + StargateClient, + SigningStargateClient, + GasPrice, + QueryClient, + Block } from "@cosmjs/stargate"; diff --git a/tsconfig.json b/tsconfig.json index 92265f7..7e71f8a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2018", "module": "commonjs", "declaration": true, "outDir": "./build", From 6dec2975b305c886b2c133c6f4d4c7b3db6c25be Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 12:06:26 +0100 Subject: [PATCH 03/13] Add .gitignore --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b7dab5e..b51ea71 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -node_modules -build \ No newline at end of file +node_modules/ +build/ \ No newline at end of file From 4530d07b37196c913baebbc3ef0a7a7b166b8908 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 12:09:19 +0100 Subject: [PATCH 04/13] Use yarn lock file --- package-lock.json | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index f097c77..0000000 --- a/package-lock.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "cosmwasm", - "version": "0.27.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "cosmwasm", - "version": "0.27.0", - "license": "Apache-2.0", - "devDependencies": { - "typescript": "^4.5.5" - } - }, - "node_modules/typescript": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", - "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - } - }, - "dependencies": { - "typescript": { - "version": "4.5.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", - "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", - "dev": true - } - } -} From effb59b741b8447fa500c5fe0c527f6dfc49402c Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 13:17:16 +0100 Subject: [PATCH 05/13] Add a proper readme --- README.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d554fb5..2bca967 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,74 @@ [![npm version](https://img.shields.io/npm/v/cosmwasm.svg)](https://www.npmjs.com/package/cosmwasm) -Source of the cosmwasm npm package +## About + +Cosmwasm.js was created to help new developers get started with their first dApps. +It is just a wrapper package to easily import needed features from CosmJs. + +## Get started + +### Installation + +**NPM** + +`npm install cosmwasm` + +**Yarn** + +`yarn add cosmwasm` + +## Usage + +### Get a read-only stargate client + +```ts +import { StargateClient } from "cosmwasm"; + +// This is your rpc endpoint +const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; + +async function main() { + const client = await StargateClient.connect(endpoint); + console.log(client); +} + +main(); +``` + +### Get a signing stargate client + +```ts +import { StargateSigningClient } from "cosmwasm"; + +// This is your rpc endpoint +const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; + +async function main() { + const client = await StargateClient.connect(endpoint); + console.log(client); +} + +main(); +``` + +### Interacting with contracts + +```ts +import { StargateSigningClient } from "cosmwasm"; + +// This is your rpc endpoint +const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; + +// This is your contract address +const contractAddr = "wasm123"; + +async function main() { + const client = await CosmWasmClient.connect(endpoint); + const config = await client.queryContractSmart(contractAddr, { config: {} }); + + console.log(config); +} + +main(); +``` From f27729856d1bab9d5d97fc7313f974fd40eac0a9 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 13:19:07 +0100 Subject: [PATCH 06/13] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bca967..d3d3b3f 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ main(); ### Interacting with contracts ```ts -import { StargateSigningClient } from "cosmwasm"; +import { CosmWasmClient } from "cosmwasm"; // This is your rpc endpoint const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; From 687d1259b487f6a256dffc9c555b5e2ef0071370 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 13:33:34 +0100 Subject: [PATCH 07/13] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3d3b3f..63611ec 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ import { StargateSigningClient } from "cosmwasm"; const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; async function main() { - const client = await StargateClient.connect(endpoint); + const client = await StargateClient.connectWithSigner(endpoint, wallet); console.log(client); } From fc56ad076399c14b05bae13ca771df26f45adce7 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 13:59:08 +0100 Subject: [PATCH 08/13] Add .editorconfig --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..2a4e65f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true \ No newline at end of file From 403e4bdc4926b5c9fcc6a7bc05fd09d0e875d16a Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 14:00:50 +0100 Subject: [PATCH 09/13] Using CosmWasmClient and renaming (rpc)Endpoint --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 63611ec..bf59072 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ It is just a wrapper package to easily import needed features from CosmJs. ### Get a read-only stargate client ```ts -import { StargateClient } from "cosmwasm"; +import { CosmWasmClient } from "cosmwasm"; // This is your rpc endpoint -const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; +const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; async function main() { - const client = await StargateClient.connect(endpoint); + const client = await CosmWasmClient.connect(endpoint); console.log(client); } @@ -43,7 +43,7 @@ main(); import { StargateSigningClient } from "cosmwasm"; // This is your rpc endpoint -const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; +const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; async function main() { const client = await StargateClient.connectWithSigner(endpoint, wallet); @@ -59,7 +59,7 @@ main(); import { CosmWasmClient } from "cosmwasm"; // This is your rpc endpoint -const endpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; +const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; // This is your contract address const contractAddr = "wasm123"; From 1a78e97873e221802a41dbc4d9716382566b0f09 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 14:01:56 +0100 Subject: [PATCH 10/13] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf59072..385d2ed 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## About Cosmwasm.js was created to help new developers get started with their first dApps. -It is just a wrapper package to easily import needed features from CosmJs. +It is just a wrapper package to easily import needed features from CosmJS. ## Get started From 82701f57525c3fa02d36f592fe2a1955c5f3d40f Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 14:05:47 +0100 Subject: [PATCH 11/13] Adding some examples in readme.md --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 385d2ed..8e4dd34 100644 --- a/README.md +++ b/README.md @@ -37,16 +37,27 @@ async function main() { main(); ``` -### Get a signing stargate client +### Create a wallet and a signing stargate client ```ts -import { StargateSigningClient } from "cosmwasm"; +import { StargateSigningClient, Secp256k1HdWallet } from "cosmwasm"; // This is your rpc endpoint const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; +// Using a random generated mnemonic +const mnemonic = "rifle same bitter control garage duck grab spare mountain doctor rubber cook"; + async function main() { - const client = await StargateClient.connectWithSigner(endpoint, wallet); + + // Create a wallet + const wallet = await Secp256k1HdWallet.fromMnemonic(mnemonic); + + // Using + const client = await StargateSigningClient.connectWithSigner( + endpoint, + wallet + ); console.log(client); } From 1ed9d37fd1110cd7f01dff1355be05274aa7eb82 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 14:06:41 +0100 Subject: [PATCH 12/13] Upgrading to cosmJS 0.27.1 --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 883213e..2d92d28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmwasm", - "version": "0.27.0", + "version": "0.27.1", "description": "A wrapper package for all relevant cosmjs packages.", "main": "build/index.js", "scripts": { @@ -31,12 +31,12 @@ }, "homepage": "https://github.com/confio/cosmwasm.js#readme", "dependencies": { - "@cosmjs/amino": "0.27.0", - "@cosmjs/cosmwasm-stargate": "0.27.0", - "@cosmjs/crypto": "0.27.0", - "@cosmjs/encoding": "0.27.0", - "@cosmjs/proto-signing": "0.27.0", - "@cosmjs/stargate": "0.27.0" + "@cosmjs/amino": "0.27.1", + "@cosmjs/cosmwasm-stargate": "0.27.1", + "@cosmjs/crypto": "0.27.1", + "@cosmjs/encoding": "0.27.1", + "@cosmjs/proto-signing": "0.27.1", + "@cosmjs/stargate": "0.27.1" }, "devDependencies": { "typescript": "^4.5.5" From 3be9fa198381a061703829e5621af76b0aadd4f8 Mon Sep 17 00:00:00 2001 From: Milan Steiner Date: Tue, 8 Feb 2022 15:36:50 +0100 Subject: [PATCH 13/13] Fixing some readme content --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e4dd34..9388988 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ import { CosmWasmClient } from "cosmwasm"; const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; async function main() { - const client = await CosmWasmClient.connect(endpoint); + const client = await CosmWasmClient.connect(rpcEndpoint); console.log(client); } @@ -55,7 +55,7 @@ async function main() { // Using const client = await StargateSigningClient.connectWithSigner( - endpoint, + rpcEndpoint, wallet ); console.log(client); @@ -73,10 +73,10 @@ import { CosmWasmClient } from "cosmwasm"; const rpcEndpoint = "https://rpc.cliffnet.cosmwasm.com:443/"; // This is your contract address -const contractAddr = "wasm123"; +const contractAddr = "wasm19qws2lfd8pskyn0cfgpl5yjjyq3msy5402qr8nkzff9kdnkaepyqycedfh"; async function main() { - const client = await CosmWasmClient.connect(endpoint); + const client = await CosmWasmClient.connect(rpcEndpoint); const config = await client.queryContractSmart(contractAddr, { config: {} }); console.log(config);