Skip to content

Commit

Permalink
chore: update @oraichain/cw-simulate to version ^2.8.108 and adjust d…
Browse files Browse the repository at this point in the history
…ependencies in ibc-routing package
  • Loading branch information
vuonghuuhung committed Dec 1, 2024
1 parent 707240c commit e46acb6
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 88 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@babel/traverse": "7.24.1",
"@cosmjs/encoding": "^0.32.4",
"@oraichain/cw-simulate": "^2.8.68",
"@oraichain/cw-simulate": "^2.8.108",
"@swc/core": "^1.4.11",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
Expand Down
6 changes: 3 additions & 3 deletions packages/ibc-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"license": "MIT",
"dependencies": {
"@duckdb/duckdb-wasm": "^1.27.1-dev125.0",
"@oraichain/oraidex-common": "^1.0.10",
"@oraichain/oraidex-contracts-sdk": "^1.0.24",
"@oraichain/oraidex-universal-swap": "1.0.14",
"@oraichain/oraidex-common": "^1.1.34",
"@oraichain/oraidex-contracts-sdk": "^1.0.56",
"@oraichain/oraidex-universal-swap": "^1.1.23",
"@xstate/inspect": "^0.8.0",
"bech32": "1.1.4",
"ethers": "^5.5.1",
Expand Down
16 changes: 16 additions & 0 deletions patches/@cosmjs+cosmwasm-stargate+0.32.4.patch
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,19 @@ index e5bf448..878f7e4 100644
// Use this service to get easy typed access to query methods
// This cannot be used for proof verification
const queryService = new query_1.QueryClientImpl(rpc);
diff --git a/node_modules/@cosmjs/cosmwasm-stargate/build/signingcosmwasmclient.js b/node_modules/@cosmjs/cosmwasm-stargate/build/signingcosmwasmclient.js
index 6eb95bb..24d3038 100644
--- a/node_modules/@cosmjs/cosmwasm-stargate/build/signingcosmwasmclient.js
+++ b/node_modules/@cosmjs/cosmwasm-stargate/build/signingcosmwasmclient.js
@@ -397,7 +397,10 @@ class SigningCosmWasmClient extends cosmwasmclient_1.CosmWasmClient {
throw new Error("Failed to retrieve account from signer");
}
const pubkey = (0, proto_signing_1.encodePubkey)((0, amino_1.encodeSecp256k1Pubkey)(accountFromSigner.pubkey));
- const signMode = signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
+ let signMode = signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
+ if (this.signer.signEip191) {
+ signMode = signing_1.SignMode.SIGN_MODE_EIP_191;
+ }
const msgs = messages.map((msg) => this.aminoTypes.toAmino(msg));
const signDoc = (0, amino_1.makeSignDoc)(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight);
const { signature, signed } = await this.signer.signAmino(signerAddress, signDoc);
172 changes: 88 additions & 84 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@
"@noble/hashes" "^1.0.0"
protobufjs "^6.8.8"

"@cosmjs/amino@0.31.3", "@cosmjs/amino@^0.31.0", "@cosmjs/amino@^0.31.3":
"@cosmjs/amino@0.31.3", "@cosmjs/amino@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.31.3.tgz#0f4aa6bd68331c71bd51b187fa64f00eb075db0a"
integrity sha512-36emtUq895sPRX8PTSOnG+lhJDCVyIcE0Tr5ct59sUbgQiI14y43vj/4WAlJ/utSOxy+Zhj9wxcs4AZfu0BHsw==
Expand Down Expand Up @@ -1379,7 +1379,7 @@
"@cosmjs/math" "^0.32.4"
"@cosmjs/utils" "^0.32.4"

"@cosmjs/cosmwasm-stargate@0.31.3", "@cosmjs/cosmwasm-stargate@^0.31.0":
"@cosmjs/cosmwasm-stargate@0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.31.3.tgz#13066822f111832d57c2c5acc9e697ed389713f8"
integrity sha512-Uv9TmCn3650gdFeZm7SEfUZF3uX3lfJfFhXOk6I2ZLr/FrKximnlb+vwAfZaZnWYvlA7qrKtHIjeRNHvT23zcw==
Expand Down Expand Up @@ -1412,7 +1412,7 @@
cosmjs-types "^0.9.0"
pako "^2.0.2"

"@cosmjs/crypto@0.31.3", "@cosmjs/crypto@^0.31.0", "@cosmjs/crypto@^0.31.3":
"@cosmjs/crypto@0.31.3", "@cosmjs/crypto@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.31.3.tgz#c752cb6d682fdc735dcb45a2519f89c56ba16c26"
integrity sha512-vRbvM9ZKR2017TO73dtJ50KxoGcFzKtKI7C8iO302BQ5p+DuB+AirUg1952UpSoLfv5ki9O416MFANNg8UN/EQ==
Expand Down Expand Up @@ -1460,7 +1460,7 @@
bech32 "^1.1.4"
readonly-date "^1.0.0"

"@cosmjs/encoding@^0.31.0", "@cosmjs/encoding@^0.31.3":
"@cosmjs/encoding@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.31.3.tgz#2519d9c9ae48368424971f253775c4580b54c5aa"
integrity sha512-6IRtG0fiVYwyP7n+8e54uTx2pLYijO48V3t9TLiROERm5aUAIzIlz6Wp0NYaI5he9nh1lcEGJ1lkquVKFw3sUg==
Expand Down Expand Up @@ -1591,24 +1591,6 @@
ws "^7"
xstream "^11.14.0"

"@cosmjs/stargate@0.31.3", "@cosmjs/stargate@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.31.3.tgz#a2b38e398097a00f897dbd8f02d4d347d8fed818"
integrity sha512-53NxnzmB9FfXpG4KjOUAYAvWLYKdEmZKsutcat/u2BrDXNZ7BN8jim/ENcpwXfs9/Og0K24lEIdvA4gsq3JDQw==
dependencies:
"@confio/ics23" "^0.6.8"
"@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.3"
xstream "^11.14.0"

"@cosmjs/stargate@^0.30.1":
version "0.30.1"
resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.30.1.tgz#e1b22e1226cffc6e93914a410755f1f61057ba04"
Expand All @@ -1627,6 +1609,24 @@
protobufjs "~6.11.3"
xstream "^11.14.0"

"@cosmjs/stargate@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.31.3.tgz#a2b38e398097a00f897dbd8f02d4d347d8fed818"
integrity sha512-53NxnzmB9FfXpG4KjOUAYAvWLYKdEmZKsutcat/u2BrDXNZ7BN8jim/ENcpwXfs9/Og0K24lEIdvA4gsq3JDQw==
dependencies:
"@confio/ics23" "^0.6.8"
"@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.3"
xstream "^11.14.0"

"@cosmjs/stargate@^0.32.4":
version "0.32.4"
resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.32.4.tgz#bd0e4d3bf613b629addbf5f875d3d3b50f640af1"
Expand Down Expand Up @@ -1664,22 +1664,6 @@
dependencies:
xstream "^11.14.0"

"@cosmjs/tendermint-rpc@0.31.3", "@cosmjs/tendermint-rpc@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.31.3.tgz#d1a2bc5b3c98743631c9b55888589d352403c9b3"
integrity sha512-s3TiWkPCW4QceTQjpYqn4xttUJH36mTPqplMl+qyocdqk5+X5mergzExU/pHZRWQ4pbby8bnR7kMvG4OC1aZ8g==
dependencies:
"@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.2"
readonly-date "^1.0.0"
xstream "^11.14.0"

"@cosmjs/tendermint-rpc@^0.30.1":
version "0.30.1"
resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.30.1.tgz#c16378892ba1ac63f72803fdf7567eab9d4f0aa0"
Expand All @@ -1696,6 +1680,22 @@
readonly-date "^1.0.0"
xstream "^11.14.0"

"@cosmjs/tendermint-rpc@^0.31.3":
version "0.31.3"
resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.31.3.tgz#d1a2bc5b3c98743631c9b55888589d352403c9b3"
integrity sha512-s3TiWkPCW4QceTQjpYqn4xttUJH36mTPqplMl+qyocdqk5+X5mergzExU/pHZRWQ4pbby8bnR7kMvG4OC1aZ8g==
dependencies:
"@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.2"
readonly-date "^1.0.0"
xstream "^11.14.0"

"@cosmjs/tendermint-rpc@^0.32.4":
version "0.32.4"
resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.32.4.tgz#b36f9ec657498e42c97e21bb7368798ef6279752"
Expand Down Expand Up @@ -3757,31 +3757,46 @@
ethers "^5.5.1"
lodash "^4.17.21"

"@oraichain/cosmwasm-vm-js@^0.2.82":
version "0.2.82"
resolved "https://registry.yarnpkg.com/@oraichain/cosmwasm-vm-js/-/cosmwasm-vm-js-0.2.82.tgz#3744951e64f57ca12925dccbd3e62f19d0d0932e"
integrity sha512-gUufkBuPsZXiSSWC3rXuHQGPs2utpYibItw2n+AzCcLT4Fnd7pHPIAcHc8fsoQIrf1MCO6I5TcIqT9hmEqf5PA==
"@oraichain/common@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@oraichain/common/-/common-1.2.0.tgz#201dddcff7bbb0dd90a04cacf82dc3f6b9480788"
integrity sha512-gMTBSkLtHOMUfC5d3VJmEUtN17z5wL2YUrHLXCTcE6VA/K8nZ4jRt8yoO4JU/Lzy8LhZecQ2vM8r6kgLUpg8lw==
dependencies:
"@cosmjs/amino" "^0.31.0"
"@cosmjs/crypto" "^0.31.0"
"@cosmjs/encoding" "^0.31.0"
"@keplr-wallet/types" "0.12.141"
axios "0.21.4"
axios-extensions "3.1.6"
bech32 "^1.1.4"
cosmjs-types "^0.8.0"
ethers "^5.5.1"
lodash "^4.17.21"

"@oraichain/cosmwasm-vm-js@^0.2.91":
version "0.2.91"
resolved "https://registry.yarnpkg.com/@oraichain/cosmwasm-vm-js/-/cosmwasm-vm-js-0.2.91.tgz#3498cc8ff564dd12cc60af841b0535a371e51026"
integrity sha512-9kJ0PX9Rlyk4eJnqWxXupDHfDvFKIRbgn321nan1Ddv5PpiL3p25kX11XIaoF+bhHi4dpXnccjEa0H/+GD6Erw==
dependencies:
"@cosmjs/amino" "^0.32.4"
"@cosmjs/crypto" "^0.32.4"
"@cosmjs/encoding" "^0.32.4"
"@oraichain/immutable" "^4.3.9"
"@oraichain/wasm-json-toolkit" "^1.0.24"
bech32 "1.1.4"
elliptic "^6.5.4"
secp256k1 "^4.0.3"

"@oraichain/cw-simulate@^2.8.68":
version "2.8.79"
resolved "https://registry.yarnpkg.com/@oraichain/cw-simulate/-/cw-simulate-2.8.79.tgz#f2d84595dfac52d108f2465f33df210677d31330"
integrity sha512-fkjF+L9BqKvu2SQGd5nYaL9+IdypV42PdBKnH9v8jnu+ixaoDm0cZ70rV759TsXL0T9/69FI5HMC+qdhDYW2VA==
"@oraichain/cw-simulate@^2.8.108":
version "2.8.108"
resolved "https://registry.yarnpkg.com/@oraichain/cw-simulate/-/cw-simulate-2.8.108.tgz#10032f32c52489d47ef3672f05fcc56ccfe73dff"
integrity sha512-xSgWyObUqmZldkHpv0Bf1sOVDboavAkxIXdXuH6AR58NLFAemEZcyW3EZnhC8nl7dKpvXiDSjGfpkZFPmiqOcw==
dependencies:
"@cosmjs/amino" "^0.31.0"
"@cosmjs/cosmwasm-stargate" "^0.31.0"
"@cosmjs/crypto" "^0.31.0"
"@cosmjs/encoding" "^0.31.0"
"@cosmjs/amino" "^0.32.4"
"@cosmjs/cosmwasm-stargate" "^0.32.4"
"@cosmjs/crypto" "^0.32.4"
"@cosmjs/encoding" "^0.32.4"
"@cosmjs/stargate" "^0.32.4"
"@kiruse/serde" "^0.8.0-rc.6"
"@oraichain/cosmwasm-vm-js" "^0.2.82"
"@oraichain/common" "^1.2.0"
"@oraichain/cosmwasm-vm-js" "^0.2.91"
eventemitter3 "^5.0.0"
protobufjs "^7.2.3"
ts-results "^3.3.0"
Expand All @@ -3792,25 +3807,25 @@
resolved "https://registry.yarnpkg.com/@oraichain/immutable/-/immutable-4.3.9.tgz#ff8d5a7b39b5b01f3f72a902cffbfea32ccb20c3"
integrity sha512-INpHnhL970OCkR7I71Kssb2aLl2l4Y/x8W6FlyRO0KmC8GHjxc/hlNB1t44BiI7lkOYmcWMRQoC8dwParsp1RQ==

"@oraichain/oraidex-common@^1.0.10":
version "1.1.28"
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-common/-/oraidex-common-1.1.28.tgz#9bf25c825e3ee7a76bf8c00174579ca2b81d6fdb"
integrity sha512-+1CiI9E03MWtNQ3D7dDWtwbONikpdY1+USmvU6gOKd26uhDqDHKgi7MGnmz2t+Z8/4oqY36aySZhh3d9ybakxg==
"@oraichain/oraidex-common@^1.1.34":
version "1.1.34"
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-common/-/oraidex-common-1.1.34.tgz#257d25408450c438dc2bf0870fa8de9125af92ed"
integrity sha512-3PzjIS7+QlhSl/5w1NDXr5hZ8LXgJP0IqMWK/ZwJNM7yySeWRui6pwzFwariW2AQ/raU/z1Umr1Bh13idfeQ4Q==
dependencies:
"@cosmjs/amino" "0.31.3"
"@cosmjs/cosmwasm-stargate" "0.31.3"
"@cosmjs/crypto" "0.31.3"
"@cosmjs/proto-signing" "0.31.3"
"@cosmjs/stargate" "0.31.3"
"@cosmjs/tendermint-rpc" "0.31.3"
"@cosmjs/amino" "^0.32.4"
"@cosmjs/cosmwasm-stargate" "^0.32.4"
"@cosmjs/crypto" "^0.32.4"
"@cosmjs/proto-signing" "^0.32.4"
"@cosmjs/stargate" "^0.32.4"
"@cosmjs/tendermint-rpc" "^0.32.4"
"@ethersproject/providers" "^5.0.10"
"@injectivelabs/sdk-ts" "1.12.1"
"@keplr-wallet/types" "^0.11.38"
"@oraichain/oraidex-contracts-sdk" latest
axios "1.7.2"
axios-extensions "3.1.7"
bignumber.js "^9.1.2"
cosmjs-types "0.8.0"
cosmjs-types "^0.9.0"
ethers "^5.0.15"
tronweb "6.0.0-beta.4"

Expand All @@ -3819,17 +3834,6 @@
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-contracts-sdk/-/oraidex-contracts-sdk-1.0.44.tgz#9ff41ec388dd92ba112c2eef545d11fd6e18c684"
integrity sha512-fMY/QOzO/afPlAVkLGH1bcpJTs6V/URrJju2r4UoE9f5HUWC/6OC6+H5dWuIgq26frp8wjH23mNCQAlmHzji8g==

"@oraichain/oraidex-universal-swap@1.0.14":
version "1.0.14"
resolved "https://registry.yarnpkg.com/@oraichain/oraidex-universal-swap/-/oraidex-universal-swap-1.0.14.tgz#fd4b60e7cfc21984dbaa14a7b9a2c560f02da37d"
integrity sha512-45tq+ywD/xhP5IHXu5+KYfTJ3II1PSUWhaLEEkTxQyhhSnHatS7uose7UwSQkZc1VW7oxNdAh0Mq9yI69dG7Lg==
dependencies:
"@oraichain/oraidex-common" "^1.0.10"
"@oraichain/oraidex-contracts-sdk" "^1.0.24"
bech32 "1.1.4"
ethers "^5.0.15"
tronweb "5.3.0"

"@oraichain/osor-api-contracts-sdk@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@oraichain/osor-api-contracts-sdk/-/osor-api-contracts-sdk-1.0.2.tgz#8aec43cfdb2df93cfa50538779f8eee550b94738"
Expand Down Expand Up @@ -8095,14 +8099,6 @@ cosmiconfig@^9.0.0:
js-yaml "^4.1.0"
parse-json "^5.2.0"

cosmjs-types@0.8.0, cosmjs-types@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.8.0.tgz#2ed78f3e990f770229726f95f3ef5bf9e2b6859b"
integrity sha512-Q2Mj95Fl0PYMWEhA2LuGEIhipF7mQwd9gTQ85DdP9jjjopeoGaDxvmPa5nakNzsq7FnO1DMTatXTAx6bxMH7Lg==
dependencies:
long "^4.0.0"
protobufjs "~6.11.2"

cosmjs-types@^0.7.1:
version "0.7.2"
resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.7.2.tgz#a757371abd340949c5bd5d49c6f8379ae1ffd7e2"
Expand All @@ -8111,6 +8107,14 @@ cosmjs-types@^0.7.1:
long "^4.0.0"
protobufjs "~6.11.2"

cosmjs-types@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.8.0.tgz#2ed78f3e990f770229726f95f3ef5bf9e2b6859b"
integrity sha512-Q2Mj95Fl0PYMWEhA2LuGEIhipF7mQwd9gTQ85DdP9jjjopeoGaDxvmPa5nakNzsq7FnO1DMTatXTAx6bxMH7Lg==
dependencies:
long "^4.0.0"
protobufjs "~6.11.2"

cosmjs-types@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.9.0.tgz#c3bc482d28c7dfa25d1445093fdb2d9da1f6cfcc"
Expand Down

0 comments on commit e46acb6

Please sign in to comment.