From 88fc4f9f0774e03bbe749b827194b061b9f3ce3f Mon Sep 17 00:00:00 2001 From: rrr523 Date: Mon, 20 Nov 2023 19:17:06 +0800 Subject: [PATCH] chore: Upgrade axios --- examples/nextjs/package.json | 2 +- packages/js-sdk/package.json | 4 +- pnpm-lock.yaml | 208 +++++++++++++++++++---------------- 3 files changed, 116 insertions(+), 98 deletions(-) diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 6d7f146b..49411f9b 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -16,7 +16,7 @@ "@bnb-chain/greenfiled-file-handle": "workspace:*", "@cosmjs/encoding": "^0.29.5", "@cosmjs/proto-signing": "^0.29.5", - "@cosmjs/stargate": "^0.29.5", + "@cosmjs/stargate": "^0.31.3", "@ethersproject/bytes": "5.7.0", "@ethersproject/signing-key": "^5.7.0", "@ethersproject/wallet": "^5.7.0", diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json index fcae5c4f..0b35d181 100644 --- a/packages/js-sdk/package.json +++ b/packages/js-sdk/package.json @@ -66,8 +66,8 @@ "@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.23", "@bnb-chain/greenfield-zk-crypto": "workspace:*", "@cosmjs/proto-signing": "^0.30.1", - "@cosmjs/stargate": "^0.30.1", - "@cosmjs/tendermint-rpc": "^0.30.1", + "@cosmjs/stargate": "^0.31.3", + "@cosmjs/tendermint-rpc": "^0.31.3", "@ethersproject/base64": "^5.7.0", "@ethersproject/bytes": "5.7.0", "@ethersproject/signing-key": "^5.7.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 30e5e817..869e0d77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -154,8 +154,8 @@ importers: specifier: ^0.29.5 version: 0.29.5 '@cosmjs/stargate': - specifier: ^0.29.5 - version: 0.29.5 + specifier: ^0.31.3 + version: 0.31.3 '@ethersproject/bytes': specifier: 5.7.0 version: 5.7.0 @@ -322,11 +322,11 @@ importers: specifier: ^0.30.1 version: 0.30.1 '@cosmjs/stargate': - specifier: ^0.30.1 - version: 0.30.1 + specifier: ^0.31.3 + version: 0.31.3 '@cosmjs/tendermint-rpc': - specifier: ^0.30.1 - version: 0.30.1 + specifier: ^0.31.3 + version: 0.31.3 '@ethersproject/base64': specifier: ^5.7.0 version: 5.7.0 @@ -3478,7 +3478,7 @@ packages: /@confio/ics23@0.6.8: resolution: {integrity: sha512-wB6uo+3A50m0sW/EWcU64xpV/8wShZ6bMTa7pF8eYsTrSkQA7oLUIJcs/wb8g4y2Oyq701BaGiO6n/ak5WXO1w==} dependencies: - '@noble/hashes': 1.3.0 + '@noble/hashes': 1.3.2 protobufjs: 6.11.4 dev: false @@ -3509,6 +3509,15 @@ packages: '@cosmjs/utils': 0.30.1 dev: false + /@cosmjs/amino@0.31.3: + resolution: {integrity: sha512-36emtUq895sPRX8PTSOnG+lhJDCVyIcE0Tr5ct59sUbgQiI14y43vj/4WAlJ/utSOxy+Zhj9wxcs4AZfu0BHsw==} + dependencies: + '@cosmjs/crypto': 0.31.3 + '@cosmjs/encoding': 0.31.3 + '@cosmjs/math': 0.31.3 + '@cosmjs/utils': 0.31.3 + dev: false + /@cosmjs/crypto@0.28.13: resolution: {integrity: sha512-ynKfM0q/tMBQMHJby6ad8lR3gkgBKaelQhIsCZTjClsnuC7oYT9y3ThSZCUWr7Pa9h0J8ahU2YV2oFWFVWJQzQ==} dependencies: @@ -3545,6 +3554,18 @@ packages: libsodium-wrappers: 0.7.11 dev: false + /@cosmjs/crypto@0.31.3: + resolution: {integrity: sha512-vRbvM9ZKR2017TO73dtJ50KxoGcFzKtKI7C8iO302BQ5p+DuB+AirUg1952UpSoLfv5ki9O416MFANNg8UN/EQ==} + dependencies: + '@cosmjs/encoding': 0.31.3 + '@cosmjs/math': 0.31.3 + '@cosmjs/utils': 0.31.3 + '@noble/hashes': 1.3.2 + bn.js: 5.2.1 + elliptic: 6.5.4 + libsodium-wrappers-sumo: 0.7.13 + dev: false + /@cosmjs/encoding@0.28.13: resolution: {integrity: sha512-jtXbAYtV77rLHxoIrjGFsvgGjeTKttuHRv6cvuy3toCZzY7JzTclKH5O2g36IIE4lXwD9xwuhGJ2aa6A3dhNkA==} dependencies: @@ -3569,17 +3590,18 @@ packages: readonly-date: 1.0.0 dev: false - /@cosmjs/json-rpc@0.29.5: - resolution: {integrity: sha512-C78+X06l+r9xwdM1yFWIpGl03LhB9NdM1xvZpQHwgCOl0Ir/WV8pw48y3Ez2awAoUBRfTeejPe4KvrE6NoIi/w==} + /@cosmjs/encoding@0.31.3: + resolution: {integrity: sha512-6IRtG0fiVYwyP7n+8e54uTx2pLYijO48V3t9TLiROERm5aUAIzIlz6Wp0NYaI5he9nh1lcEGJ1lkquVKFw3sUg==} dependencies: - '@cosmjs/stream': 0.29.5 - xstream: 11.14.0 + base64-js: 1.5.1 + bech32: 1.1.4 + readonly-date: 1.0.0 dev: false - /@cosmjs/json-rpc@0.30.1: - resolution: {integrity: sha512-pitfC/2YN9t+kXZCbNuyrZ6M8abnCC2n62m+JtU9vQUfaEtVsgy+1Fk4TRQ175+pIWSdBMFi2wT8FWVEE4RhxQ==} + /@cosmjs/json-rpc@0.31.3: + resolution: {integrity: sha512-7LVYerXjnm69qqYR3uA6LGCrBW2EO5/F7lfJxAmY+iII2C7xO3a0vAjMSt5zBBh29PXrJVS6c2qRP22W1Le2Wg==} dependencies: - '@cosmjs/stream': 0.30.1 + '@cosmjs/stream': 0.31.3 xstream: 11.14.0 dev: false @@ -3601,6 +3623,12 @@ packages: bn.js: 5.2.1 dev: false + /@cosmjs/math@0.31.3: + resolution: {integrity: sha512-kZ2C6glA5HDb9hLz1WrftAjqdTBb3fWQsRR+Us2HsjAYdeE6M3VdXMsYCP5M3yiihal1WDwAY2U7HmfJw7Uh4A==} + dependencies: + bn.js: 5.2.1 + dev: false + /@cosmjs/proto-signing@0.28.13: resolution: {integrity: sha512-nSl/2ZLsUJYz3Ad0RY3ihZUgRHIow2OnYqKsESMu+3RA/jTi9bDYhiBu8mNMHI0xrEJry918B2CyI56pOUHdPQ==} dependencies: @@ -3637,22 +3665,22 @@ packages: long: 4.0.0 dev: false - /@cosmjs/socket@0.29.5: - resolution: {integrity: sha512-5VYDupIWbIXq3ftPV1LkS5Ya/T7Ol/AzWVhNxZ79hPe/mBfv1bGau/LqIYOm2zxGlgm9hBHOTmWGqNYDwr9LNQ==} + /@cosmjs/proto-signing@0.31.3: + resolution: {integrity: sha512-24+10/cGl6lLS4VCrGTCJeDRPQTn1K5JfknzXzDIHOx8THR31JxA7/HV5eWGHqWgAbudA7ccdSvEK08lEHHtLA==} dependencies: - '@cosmjs/stream': 0.29.5 - isomorphic-ws: 4.0.1(ws@7.5.9) - ws: 7.5.9 - xstream: 11.14.0 - transitivePeerDependencies: - - bufferutil - - utf-8-validate + '@cosmjs/amino': 0.31.3 + '@cosmjs/crypto': 0.31.3 + '@cosmjs/encoding': 0.31.3 + '@cosmjs/math': 0.31.3 + '@cosmjs/utils': 0.31.3 + cosmjs-types: 0.8.0 + long: 4.0.0 dev: false - /@cosmjs/socket@0.30.1: - resolution: {integrity: sha512-r6MpDL+9N+qOS/D5VaxnPaMJ3flwQ36G+vPvYJsXArj93BjgyFB7BwWwXCQDzZ+23cfChPUfhbINOenr8N2Kow==} + /@cosmjs/socket@0.31.3: + resolution: {integrity: sha512-aqrDGGi7os/hsz5p++avI4L0ZushJ+ItnzbqA7C6hamFSCJwgOkXaOUs+K9hXZdX4rhY7rXO4PH9IH8q09JkTw==} dependencies: - '@cosmjs/stream': 0.30.1 + '@cosmjs/stream': 0.31.3 isomorphic-ws: 4.0.1(ws@7.5.9) ws: 7.5.9 xstream: 11.14.0 @@ -3661,18 +3689,18 @@ packages: - utf-8-validate dev: false - /@cosmjs/stargate@0.29.5: - resolution: {integrity: sha512-hjEv8UUlJruLrYGJcUZXM/CziaINOKwfVm2BoSdUnNTMxGvY/jC1ABHKeZUYt9oXHxEJ1n9+pDqzbKc8pT0nBw==} + /@cosmjs/stargate@0.31.3: + resolution: {integrity: sha512-53NxnzmB9FfXpG4KjOUAYAvWLYKdEmZKsutcat/u2BrDXNZ7BN8jim/ENcpwXfs9/Og0K24lEIdvA4gsq3JDQw==} dependencies: '@confio/ics23': 0.6.8 - '@cosmjs/amino': 0.29.5 - '@cosmjs/encoding': 0.29.5 - '@cosmjs/math': 0.29.5 - '@cosmjs/proto-signing': 0.29.5 - '@cosmjs/stream': 0.29.5 - '@cosmjs/tendermint-rpc': 0.29.5 - '@cosmjs/utils': 0.29.5 - cosmjs-types: 0.5.2 + '@cosmjs/amino': 0.31.3 + '@cosmjs/encoding': 0.31.3 + '@cosmjs/math': 0.31.3 + '@cosmjs/proto-signing': 0.31.3 + '@cosmjs/stream': 0.31.3 + '@cosmjs/tendermint-rpc': 0.31.3 + '@cosmjs/utils': 0.31.3 + cosmjs-types: 0.8.0 long: 4.0.0 protobufjs: 6.11.4 xstream: 11.14.0 @@ -3682,68 +3710,22 @@ packages: - utf-8-validate dev: false - /@cosmjs/stargate@0.30.1: - resolution: {integrity: sha512-RdbYKZCGOH8gWebO7r6WvNnQMxHrNXInY/gPHPzMjbQF6UatA6fNM2G2tdgS5j5u7FTqlCI10stNXrknaNdzog==} + /@cosmjs/stream@0.31.3: + resolution: {integrity: sha512-8keYyI7X0RjsLyVcZuBeNjSv5FA4IHwbFKx7H60NHFXszN8/MvXL6aZbNIvxtcIHHsW7K9QSQos26eoEWlAd+w==} dependencies: - '@confio/ics23': 0.6.8 - '@cosmjs/amino': 0.30.1 - '@cosmjs/encoding': 0.30.1 - '@cosmjs/math': 0.30.1 - '@cosmjs/proto-signing': 0.30.1 - '@cosmjs/stream': 0.30.1 - '@cosmjs/tendermint-rpc': 0.30.1 - '@cosmjs/utils': 0.30.1 - cosmjs-types: 0.7.2 - long: 4.0.0 - protobufjs: 6.11.4 xstream: 11.14.0 - transitivePeerDependencies: - - bufferutil - - debug - - utf-8-validate dev: false - /@cosmjs/stream@0.29.5: - resolution: {integrity: sha512-TToTDWyH1p05GBtF0Y8jFw2C+4783ueDCmDyxOMM6EU82IqpmIbfwcdMOCAm0JhnyMh+ocdebbFvnX/sGKzRAA==} + /@cosmjs/tendermint-rpc@0.31.3: + resolution: {integrity: sha512-s3TiWkPCW4QceTQjpYqn4xttUJH36mTPqplMl+qyocdqk5+X5mergzExU/pHZRWQ4pbby8bnR7kMvG4OC1aZ8g==} dependencies: - xstream: 11.14.0 - dev: false - - /@cosmjs/stream@0.30.1: - resolution: {integrity: sha512-Fg0pWz1zXQdoxQZpdHRMGvUH5RqS6tPv+j9Eh7Q953UjMlrwZVo0YFLC8OTf/HKVf10E4i0u6aM8D69Q6cNkgQ==} - dependencies: - xstream: 11.14.0 - dev: false - - /@cosmjs/tendermint-rpc@0.29.5: - resolution: {integrity: sha512-ar80twieuAxsy0x2za/aO3kBr2DFPAXDmk2ikDbmkda+qqfXgl35l9CVAAjKRqd9d+cRvbQyb5M4wy6XQpEV6w==} - dependencies: - '@cosmjs/crypto': 0.29.5 - '@cosmjs/encoding': 0.29.5 - '@cosmjs/json-rpc': 0.29.5 - '@cosmjs/math': 0.29.5 - '@cosmjs/socket': 0.29.5 - '@cosmjs/stream': 0.29.5 - '@cosmjs/utils': 0.29.5 - axios: 0.21.4 - readonly-date: 1.0.0 - xstream: 11.14.0 - transitivePeerDependencies: - - bufferutil - - debug - - utf-8-validate - dev: false - - /@cosmjs/tendermint-rpc@0.30.1: - resolution: {integrity: sha512-Z3nCwhXSbPZJ++v85zHObeUggrEHVfm1u18ZRwXxFE9ZMl5mXTybnwYhczuYOl7KRskgwlB+rID0WYACxj4wdQ==} - dependencies: - '@cosmjs/crypto': 0.30.1 - '@cosmjs/encoding': 0.30.1 - '@cosmjs/json-rpc': 0.30.1 - '@cosmjs/math': 0.30.1 - '@cosmjs/socket': 0.30.1 - '@cosmjs/stream': 0.30.1 - '@cosmjs/utils': 0.30.1 + '@cosmjs/crypto': 0.31.3 + '@cosmjs/encoding': 0.31.3 + '@cosmjs/json-rpc': 0.31.3 + '@cosmjs/math': 0.31.3 + '@cosmjs/socket': 0.31.3 + '@cosmjs/stream': 0.31.3 + '@cosmjs/utils': 0.31.3 axios: 0.21.4 readonly-date: 1.0.0 xstream: 11.14.0 @@ -3765,6 +3747,10 @@ packages: resolution: {integrity: sha512-KvvX58MGMWh7xA+N+deCfunkA/ZNDvFLw4YbOmX3f/XBIkqrVY7qlotfy2aNb1kgp6h4B6Yc8YawJPDTfvWX7g==} dev: false + /@cosmjs/utils@0.31.3: + resolution: {integrity: sha512-VBhAgzrrYdIe0O5IbKRqwszbQa7ZyQLx9nEQuHQ3HUplQW7P44COG/ye2n6AzCudtqxmwdX7nyX8ta1J07GoqA==} + dev: false + /@cspotcode/source-map-support@0.8.1: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -5764,6 +5750,11 @@ packages: resolution: {integrity: sha512-ilHEACi9DwqJB0pw7kv+Apvh50jiiSyR/cQ3y4W7lOR5mhvn/50FLUfsnfJz0BDZtl/RR16kXvptiv6q1msYZg==} dev: false + /@noble/hashes@1.3.2: + resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} + engines: {node: '>= 16'} + dev: false + /@noble/secp256k1@1.7.1: resolution: {integrity: sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==} dev: false @@ -8454,7 +8445,7 @@ packages: /axios@0.21.4: resolution: {integrity: sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==} dependencies: - follow-redirects: 1.15.2 + follow-redirects: 1.15.3 transitivePeerDependencies: - debug dev: false @@ -8462,7 +8453,7 @@ packages: /axios@1.6.2: resolution: {integrity: sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==} dependencies: - follow-redirects: 1.15.2 + follow-redirects: 1.15.3 form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: @@ -9742,6 +9733,13 @@ packages: protobufjs: 6.11.4 dev: false + /cosmjs-types@0.8.0: + resolution: {integrity: sha512-Q2Mj95Fl0PYMWEhA2LuGEIhipF7mQwd9gTQ85DdP9jjjopeoGaDxvmPa5nakNzsq7FnO1DMTatXTAx6bxMH7Lg==} + dependencies: + long: 4.0.0 + protobufjs: 6.11.4 + dev: false + /create-hash@1.2.0: resolution: {integrity: sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==} dependencies: @@ -11812,6 +11810,16 @@ packages: optional: true dev: false + /follow-redirects@1.15.3: + resolution: {integrity: sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==} + engines: {node: '>=4.0'} + peerDependencies: + debug: '*' + peerDependenciesMeta: + debug: + optional: true + dev: false + /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} dependencies: @@ -13996,6 +14004,16 @@ packages: prelude-ls: 1.2.1 type-check: 0.4.0 + /libsodium-sumo@0.7.13: + resolution: {integrity: sha512-zTGdLu4b9zSNLfovImpBCbdAA4xkpkZbMnSQjP8HShyOutnGjRHmSOKlsylh1okao6QhLiz7nG98EGn+04cZjQ==} + dev: false + + /libsodium-wrappers-sumo@0.7.13: + resolution: {integrity: sha512-lz4YdplzDRh6AhnLGF2Dj2IUj94xRN6Bh8T0HLNwzYGwPehQJX6c7iYVrFUPZ3QqxE0bqC+K0IIqqZJYWumwSQ==} + dependencies: + libsodium-sumo: 0.7.13 + dev: false + /libsodium-wrappers@0.7.11: resolution: {integrity: sha512-SrcLtXj7BM19vUKtQuyQKiQCRJPgbpauzl3s0rSwD+60wtHqSUuqcoawlMDheCJga85nKOQwxNYQxf/CKAvs6Q==} dependencies: