From 521f10f74a07361b13fa529f5dd5af8636ea925d Mon Sep 17 00:00:00 2001 From: pr0n00gler Date: Fri, 19 Jul 2024 17:02:57 +0300 Subject: [PATCH 1/6] fix tests accordingly to new contract schema --- .../run_in_band/dex_stargate.test.ts | 69 +++- yarn.lock | 344 +++++++++--------- 2 files changed, 225 insertions(+), 188 deletions(-) diff --git a/src/testcases/run_in_band/dex_stargate.test.ts b/src/testcases/run_in_band/dex_stargate.test.ts index 61abb840..6992cc98 100644 --- a/src/testcases/run_in_band/dex_stargate.test.ts +++ b/src/testcases/run_in_band/dex_stargate.test.ts @@ -89,6 +89,7 @@ describe('Neutron / dex module (stargate contract)', () => { options: [ { disable_autoswap: true, + fail_tx_on_bel: false, }, ], }, @@ -114,6 +115,7 @@ describe('Neutron / dex module (stargate contract)', () => { options: [ { disable_autoswap: true, + fail_tx_on_bel: false, }, ], }, @@ -159,9 +161,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '1.22', + limit_sell_price: '1220000000000000000000000000', amount_in: '1000000', order_type: LimitOrderType.GoodTilCanceled, + max_amount_out: '', }, }), ); @@ -177,7 +180,7 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '0.74', + limit_sell_price: '740000000000000000000000000', amount_in: '100', order_type: LimitOrderType.FillOrKill, max_amount_out: '100', @@ -196,9 +199,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '0.998', + limit_sell_price: '998000000000000000000000000', amount_in: '1000000', order_type: LimitOrderType.ImmediateOrCancel, + max_amount_out: '', }, }), ); @@ -214,9 +218,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '1.22', + limit_sell_price: '1220000000000000000000000000', amount_in: '1000000', order_type: LimitOrderType.JustInTime, + max_amount_out: '', }, }), ); @@ -231,10 +236,13 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '1.002', + limit_sell_price: '1002000000000000000000000000', amount_in: '10000000', - expiration_time: Math.ceil(Date.now() / 1000) + 1000, + expiration_time: secondsToRFC3339( + Math.ceil(Date.now() / 1000) + 1000, + ), order_type: LimitOrderType.GoodTilTime, + max_amount_out: '', }, }), ); @@ -250,10 +258,11 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '0.998', + limit_sell_price: '998000000000000000000000000', amount_in: '10000000', - expiration_time: 1, + expiration_time: secondsToRFC3339(1), order_type: LimitOrderType.GoodTilTime, + max_amount_out: '', }, }), ), @@ -271,14 +280,17 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '1.0001', + limit_sell_price: '1000100000000000000000000000', amount_in: '10', - expiration_time: 1, + expiration_time: secondsToRFC3339(1), order_type: 10, + max_amount_out: '', }, }), ), - ).rejects.toThrowError(/invalid numeric value for LimitOrderType/); // checked on contract's level + ).rejects.toThrowError( + /Only Limit orders of type GOOD_TIL_TIME can supply an ExpirationTime/, + ); // checked on contract's level }); }); describe('Withdraw filled LO', () => { @@ -291,9 +303,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '0.8188125757', + limit_sell_price: '818812575700000000000000000', amount_in: '1000000', order_type: LimitOrderType.GoodTilCanceled, + max_amount_out: '', }, }), ); @@ -312,9 +325,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'uibcusdc', token_out: 'untrn', tick_index_in_to_out: 0, - limit_sell_price: '1.1', + limit_sell_price: '1100000000000000000000000000', amount_in: '1000', order_type: LimitOrderType.ImmediateOrCancel, + max_amount_out: '', }, }), ); @@ -393,9 +407,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '0.8188125757', + limit_sell_price: '818812575700000000000000000', amount_in: '1000000', order_type: LimitOrderType.GoodTilCanceled, + max_amount_out: '', }, }), ); @@ -414,9 +429,10 @@ describe('Neutron / dex module (stargate contract)', () => { token_in: 'untrn', token_out: 'uibcusdc', tick_index_in_to_out: 0, - limit_sell_price: '7.3816756536', + limit_sell_price: '7381675653600000000000000000', amount_in: '1000000', order_type: LimitOrderType.JustInTime, + max_amount_out: '', }, }), ); @@ -625,7 +641,9 @@ describe('Neutron / dex module (stargate contract)', () => { token_out: 'uibcusdc', tick_index_in_to_out: 1, amount_in: '1000000', - expiration_time: Math.ceil(Date.now() / 1000) + 1000, + expiration_time: secondsToRFC3339( + Math.ceil(Date.now() / 1000) + 1000, + ), order_type: LimitOrderType.GoodTilTime, }, }, @@ -661,3 +679,22 @@ describe('Neutron / dex module (stargate contract)', () => { }); }); }); + +function secondsToRFC3339(seconds: number): string { + // Convert seconds to milliseconds and create a Date object + const date = new Date(seconds * 1000); + + // Get individual components of the date + const year = date.getUTCFullYear(); + const month = String(date.getUTCMonth() + 1).padStart(2, '0'); + const day = String(date.getUTCDate()).padStart(2, '0'); + const hours = String(date.getUTCHours()).padStart(2, '0'); + const minutes = String(date.getUTCMinutes()).padStart(2, '0'); + const secondsString = String(date.getUTCSeconds()).padStart(2, '0'); + const milliseconds = String(date.getUTCMilliseconds()).padStart(3, '0'); + + // Construct the RFC3339 string + const rfc3339 = `${year}-${month}-${day}T${hours}:${minutes}:${secondsString}.${milliseconds}Z`; + + return rfc3339; +} diff --git a/yarn.lock b/yarn.lock index df87981f..15004d7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,38 +18,38 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed" - integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw== +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.24.8": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.9.tgz#53eee4e68f1c1d0282aa0eb05ddb02d033fc43a0" + integrity sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4" - integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g== + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.9.tgz#dc07c9d307162c97fa9484ea997ade65841c7c82" + integrity sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helpers" "^7.24.7" - "@babel/parser" "^7.24.7" + "@babel/generator" "^7.24.9" + "@babel/helper-compilation-targets" "^7.24.8" + "@babel/helper-module-transforms" "^7.24.9" + "@babel/helpers" "^7.24.8" + "@babel/parser" "^7.24.8" "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/traverse" "^7.24.8" + "@babel/types" "^7.24.9" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.7", "@babel/generator@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d" - integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA== +"@babel/generator@^7.24.8", "@babel/generator@^7.24.9", "@babel/generator@^7.7.2": + version "7.24.10" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.10.tgz#a4ab681ec2a78bbb9ba22a3941195e28a81d8e76" + integrity sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg== dependencies: - "@babel/types" "^7.24.7" + "@babel/types" "^7.24.9" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" @@ -69,26 +69,26 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9" - integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg== +"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.24.7", "@babel/helper-compilation-targets@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz#b607c3161cd9d1744977d4f97139572fe778c271" + integrity sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw== dependencies: - "@babel/compat-data" "^7.24.7" - "@babel/helper-validator-option" "^7.24.7" - browserslist "^4.22.2" + "@babel/compat-data" "^7.24.8" + "@babel/helper-validator-option" "^7.24.8" + browserslist "^4.23.1" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.7.tgz#2eaed36b3a1c11c53bdf80d53838b293c52f5b3b" - integrity sha512-kTkaDl7c9vO80zeX1rJxnuRpEsD5tA81yh11X1gQo+PhSti3JS+7qeZo9U4RHobKRiFPKaGK3svUAeb8D0Q7eg== +"@babel/helper-create-class-features-plugin@^7.24.7", "@babel/helper-create-class-features-plugin@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.8.tgz#47f546408d13c200c0867f9d935184eaa0851b09" + integrity sha512-4f6Oqnmyp2PP3olgUMmOwC3akxSm5aBYraQ6YDdKy7NcAMkDECHWG0DEnV6M2UAkERgIBhYt8S27rURPg7SxWA== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-function-name" "^7.24.7" - "@babel/helper-member-expression-to-functions" "^7.24.7" + "@babel/helper-member-expression-to-functions" "^7.24.8" "@babel/helper-optimise-call-expression" "^7.24.7" "@babel/helper-replace-supers" "^7.24.7" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" @@ -137,13 +137,13 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-member-expression-to-functions@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.7.tgz#67613d068615a70e4ed5101099affc7a41c5225f" - integrity sha512-LGeMaf5JN4hAT471eJdBs/GK1DoYIJ5GCtZN/EsL6KUiiDZOvO/eKE11AMZJa2zP4zk4qe9V2O/hxAmkRc8p6w== +"@babel/helper-member-expression-to-functions@^7.24.7", "@babel/helper-member-expression-to-functions@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz#6155e079c913357d24a4c20480db7c712a5c3fb6" + integrity sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA== dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/traverse" "^7.24.8" + "@babel/types" "^7.24.8" "@babel/helper-module-imports@^7.24.7": version "7.24.7" @@ -153,10 +153,10 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8" - integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ== +"@babel/helper-module-transforms@^7.24.7", "@babel/helper-module-transforms@^7.24.8", "@babel/helper-module-transforms@^7.24.9": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz#e13d26306b89eea569180868e652e7f514de9d29" + integrity sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw== dependencies: "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-module-imports" "^7.24.7" @@ -171,10 +171,10 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz#98c84fe6fe3d0d3ae7bfc3a5e166a46844feb2a0" - integrity sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg== +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" + integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== "@babel/helper-remap-async-to-generator@^7.24.7": version "7.24.7" @@ -217,20 +217,20 @@ dependencies: "@babel/types" "^7.24.7" -"@babel/helper-string-parser@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz#4d2d0f14820ede3b9807ea5fc36dfc8cd7da07f2" - integrity sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg== +"@babel/helper-string-parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== "@babel/helper-validator-identifier@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== -"@babel/helper-validator-option@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6" - integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw== +"@babel/helper-validator-option@^7.24.7", "@babel/helper-validator-option@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" + integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== "@babel/helper-wrap-function@^7.24.7": version "7.24.7" @@ -242,13 +242,13 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helpers@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416" - integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg== +"@babel/helpers@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.8.tgz#2820d64d5d6686cca8789dd15b074cd862795873" + integrity sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ== dependencies: "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/types" "^7.24.8" "@babel/highlight@^7.24.7": version "7.24.7" @@ -260,10 +260,10 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85" - integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.8.tgz#58a4dbbcad7eb1d48930524a3fd93d93e9084c6f" + integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== "@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.7": version "7.24.7" @@ -507,16 +507,16 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-classes@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.7.tgz#4ae6ef43a12492134138c1e45913f7c46c41b4bf" - integrity sha512-CFbbBigp8ln4FU6Bpy6g7sE8B/WmCmzvivzUC6xDAdWVsjYTXijpuuGJmYkAaoWAzcItGKT3IOAbxRItZ5HTjw== +"@babel/plugin-transform-classes@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.8.tgz#ad23301fe5bc153ca4cf7fb572a9bc8b0b711cf7" + integrity sha512-VXy91c47uujj758ud9wx+OMgheXm4qJfyhj1P18YvlrQkNOSrwsteHk+EFS3OMGfhMhpZa0A+81eE7G4QC+3CA== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" + "@babel/helper-compilation-targets" "^7.24.8" "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-function-name" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-replace-supers" "^7.24.7" "@babel/helper-split-export-declaration" "^7.24.7" globals "^11.1.0" @@ -529,12 +529,12 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/template" "^7.24.7" -"@babel/plugin-transform-destructuring@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.7.tgz#a097f25292defb6e6cc16d6333a4cfc1e3c72d9e" - integrity sha512-19eJO/8kdCQ9zISOf+SEUJM/bAUIsvY3YDnXZTupUCQ8LgrWnsG/gFB9dvXqdXnRXMAM8fvt7b0CBKQHNGy1mw== +"@babel/plugin-transform-destructuring@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz#c828e814dbe42a2718a838c2a2e16a408e055550" + integrity sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-transform-dotall-regex@^7.24.7": version "7.24.7" @@ -630,13 +630,13 @@ "@babel/helper-module-transforms" "^7.24.7" "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-modules-commonjs@^7.18.6", "@babel/plugin-transform-modules-commonjs@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.7.tgz#9fd5f7fdadee9085886b183f1ad13d1ab260f4ab" - integrity sha512-iFI8GDxtevHJ/Z22J5xQpVqFLlMNstcLXh994xifFwxxGslr2ZXXLWgtBeLctOD63UFDArdvN6Tg8RFw+aEmjQ== +"@babel/plugin-transform-modules-commonjs@^7.18.6", "@babel/plugin-transform-modules-commonjs@^7.24.7", "@babel/plugin-transform-modules-commonjs@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz#ab6421e564b717cb475d6fff70ae7f103536ea3c" + integrity sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA== dependencies: - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-module-transforms" "^7.24.8" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-simple-access" "^7.24.7" "@babel/plugin-transform-modules-systemjs@^7.24.7": @@ -714,12 +714,12 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.7.tgz#b8f6848a80cf2da98a8a204429bec04756c6d454" - integrity sha512-tK+0N9yd4j+x/4hxF3F0e0fu/VdcxU18y5SevtyM/PCFlQvXbR0Zmlo2eBrKtVipGNFzpq56o8WsIIKcJFUCRQ== +"@babel/plugin-transform-optional-chaining@^7.24.7", "@babel/plugin-transform-optional-chaining@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz#bb02a67b60ff0406085c13d104c99a835cdf365d" + integrity sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" "@babel/plugin-syntax-optional-chaining" "^7.8.3" @@ -799,21 +799,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-transform-typeof-symbol@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.7.tgz#f074be466580d47d6e6b27473a840c9f9ca08fb0" - integrity sha512-VtR8hDy7YLB7+Pet9IarXjg/zgCMSF+1mNS/EQEiEaUPoFXCVsHG64SIxcaaI2zJgRiv+YmgaQESUfWAdbjzgg== +"@babel/plugin-transform-typeof-symbol@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz#383dab37fb073f5bfe6e60c654caac309f92ba1c" + integrity sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-transform-typescript@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.7.tgz#b006b3e0094bf0813d505e0c5485679eeaf4a881" - integrity sha512-iLD3UNkgx2n/HrjBesVbYX6j0yqn/sJktvbtKKgcaLIQ4bTTQ8obAypc1VpyHPD2y4Phh9zHOaAt8e/L14wCpw== + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.8.tgz#c104d6286e04bf7e44b8cba1b686d41bad57eb84" + integrity sha512-CgFgtN61BbdOGCP4fLaAMOPkzWUh6yQZNMr5YSt8uz2cZSSiQONCQFWqsE4NeVfOIhqDOlS9CR3WD91FzMeB2Q== dependencies: "@babel/helper-annotate-as-pure" "^7.24.7" - "@babel/helper-create-class-features-plugin" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-create-class-features-plugin" "^7.24.8" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-syntax-typescript" "^7.24.7" "@babel/plugin-transform-unicode-escapes@^7.24.7": @@ -848,14 +848,14 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/preset-env@^7.20.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.7.tgz#ff067b4e30ba4a72f225f12f123173e77b987f37" - integrity sha512-1YZNsc+y6cTvWlDHidMBsQZrZfEFjRIo/BZCT906PMdzOyXtSLTgqGdrpcuTDCXyd11Am5uQULtDIcCfnTc8fQ== - dependencies: - "@babel/compat-data" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-plugin-utils" "^7.24.7" - "@babel/helper-validator-option" "^7.24.7" + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.8.tgz#e0db94d7f17d6f0e2564e8d29190bc8cdacec2d1" + integrity sha512-vObvMZB6hNWuDxhSaEPTKCwcqkAIuDtE+bQGn4XMXne1DSLzFVY8Vmj1bm+mUQXYNN8NmaQEO+r8MMbzPr1jBQ== + dependencies: + "@babel/compat-data" "^7.24.8" + "@babel/helper-compilation-targets" "^7.24.8" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-validator-option" "^7.24.8" "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.24.7" "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.24.7" "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.24.7" @@ -886,9 +886,9 @@ "@babel/plugin-transform-block-scoping" "^7.24.7" "@babel/plugin-transform-class-properties" "^7.24.7" "@babel/plugin-transform-class-static-block" "^7.24.7" - "@babel/plugin-transform-classes" "^7.24.7" + "@babel/plugin-transform-classes" "^7.24.8" "@babel/plugin-transform-computed-properties" "^7.24.7" - "@babel/plugin-transform-destructuring" "^7.24.7" + "@babel/plugin-transform-destructuring" "^7.24.8" "@babel/plugin-transform-dotall-regex" "^7.24.7" "@babel/plugin-transform-duplicate-keys" "^7.24.7" "@babel/plugin-transform-dynamic-import" "^7.24.7" @@ -901,7 +901,7 @@ "@babel/plugin-transform-logical-assignment-operators" "^7.24.7" "@babel/plugin-transform-member-expression-literals" "^7.24.7" "@babel/plugin-transform-modules-amd" "^7.24.7" - "@babel/plugin-transform-modules-commonjs" "^7.24.7" + "@babel/plugin-transform-modules-commonjs" "^7.24.8" "@babel/plugin-transform-modules-systemjs" "^7.24.7" "@babel/plugin-transform-modules-umd" "^7.24.7" "@babel/plugin-transform-named-capturing-groups-regex" "^7.24.7" @@ -911,7 +911,7 @@ "@babel/plugin-transform-object-rest-spread" "^7.24.7" "@babel/plugin-transform-object-super" "^7.24.7" "@babel/plugin-transform-optional-catch-binding" "^7.24.7" - "@babel/plugin-transform-optional-chaining" "^7.24.7" + "@babel/plugin-transform-optional-chaining" "^7.24.8" "@babel/plugin-transform-parameters" "^7.24.7" "@babel/plugin-transform-private-methods" "^7.24.7" "@babel/plugin-transform-private-property-in-object" "^7.24.7" @@ -922,7 +922,7 @@ "@babel/plugin-transform-spread" "^7.24.7" "@babel/plugin-transform-sticky-regex" "^7.24.7" "@babel/plugin-transform-template-literals" "^7.24.7" - "@babel/plugin-transform-typeof-symbol" "^7.24.7" + "@babel/plugin-transform-typeof-symbol" "^7.24.8" "@babel/plugin-transform-unicode-escapes" "^7.24.7" "@babel/plugin-transform-unicode-property-regex" "^7.24.7" "@babel/plugin-transform-unicode-regex" "^7.24.7" @@ -931,7 +931,7 @@ babel-plugin-polyfill-corejs2 "^0.4.10" babel-plugin-polyfill-corejs3 "^0.10.4" babel-plugin-polyfill-regenerator "^0.6.1" - core-js-compat "^3.31.0" + core-js-compat "^3.37.1" semver "^6.3.1" "@babel/preset-modules@0.1.6-no-external-plugins": @@ -960,9 +960,9 @@ integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== "@babel/runtime@^7.11.2", "@babel/runtime@^7.21.0", "@babel/runtime@^7.8.4": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.7.tgz#f4f0d5530e8dbdf59b3451b9b3e594b6ba082e12" - integrity sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw== + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e" + integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA== dependencies: regenerator-runtime "^0.14.0" @@ -975,28 +975,28 @@ "@babel/parser" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/traverse@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5" - integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA== +"@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.8.tgz#6c14ed5232b7549df3371d820fbd9abfcd7dfab7" + integrity sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.7" + "@babel/generator" "^7.24.8" "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-function-name" "^7.24.7" "@babel/helper-hoist-variables" "^7.24.7" "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/parser" "^7.24.8" + "@babel/types" "^7.24.8" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.3.3", "@babel/types@^7.4.4": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2" - integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.24.9", "@babel/types@^7.3.3", "@babel/types@^7.4.4": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.9.tgz#228ce953d7b0d16646e755acf204f4cf3d08cc73" + integrity sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ== dependencies: - "@babel/helper-string-parser" "^7.24.7" + "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" @@ -1534,9 +1534,9 @@ integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" @@ -1827,9 +1827,9 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/lodash@^4.14.182": - version "4.17.6" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.6.tgz#193ced6a40c8006cfc1ca3f4553444fb38f0e543" - integrity sha512-OpXEVoCKSS3lQqjx9GGGOapBeuW5eUboYHRlHP9urXPX25IKZ6AnP5ZRxtVf63iieUbsHxLn8NQ5Nlftc6yzAA== + version "4.17.7" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.7.tgz#2f776bcb53adc9e13b2c0dfd493dfcbd7de43612" + integrity sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA== "@types/long@^4.0.1": version "4.0.2" @@ -1849,9 +1849,9 @@ integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== "@types/node@*", "@types/node@>=13.7.0": - version "20.14.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.9.tgz#12e8e765ab27f8c421a1820c99f5f313a933b420" - integrity sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg== + version "20.14.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.11.tgz#09b300423343460455043ddd4d0ded6ac579b74b" + integrity sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA== dependencies: undici-types "~5.26.4" @@ -2345,15 +2345,15 @@ brorand@^1.1.0: resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== -browserslist@^4.22.2, browserslist@^4.23.0: - version "4.23.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96" - integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw== +browserslist@^4.23.0, browserslist@^4.23.1: + version "4.23.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" + integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== dependencies: - caniuse-lite "^1.0.30001629" - electron-to-chromium "^1.4.796" + caniuse-lite "^1.0.30001640" + electron-to-chromium "^1.4.820" node-releases "^2.0.14" - update-browserslist-db "^1.0.16" + update-browserslist-db "^1.1.0" bs58@^4.0.0: version "4.0.1" @@ -2424,10 +2424,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001629: - version "1.0.30001640" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz#32c467d4bf1f1a0faa63fc793c2ba81169e7652f" - integrity sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA== +caniuse-lite@^1.0.30001640: + version "1.0.30001642" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" + integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== chalk@^2.3.0, chalk@^2.4.2: version "2.4.2" @@ -2608,7 +2608,7 @@ cookie@0.6.0: resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== -core-js-compat@^3.31.0, core-js-compat@^3.36.1: +core-js-compat@^3.36.1, core-js-compat@^3.37.1: version "3.37.1" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee" integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg== @@ -2813,15 +2813,15 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.4.796: - version "1.4.816" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.816.tgz#3624649d1e7fde5cdbadf59d31a524245d8ee85f" - integrity sha512-EKH5X5oqC6hLmiS7/vYtZHZFTNdhsYG5NVPRN6Yn0kQHNBlT59+xSM8HBy66P5fxWpKgZbPqb+diC64ng295Jw== +electron-to-chromium@^1.4.820: + version "1.4.830" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.830.tgz#a11899bc3343bc28f57a87fcf83060e0d28038d4" + integrity sha512-TrPKKH20HeN0J1LHzsYLs2qwXrp8TF4nHdu4sq61ozGbzMpWhI7iIOPYPPkxeq1azMT9PZ8enPFcftbs/Npcjg== elliptic@^6.4.0, elliptic@^6.5.3, elliptic@^6.5.4: - version "6.5.5" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.5.tgz#c715e09f78b6923977610d4c2346d6ce22e6dded" - integrity sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw== + version "6.5.6" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.6.tgz#ee5f7c3a00b98a2144ac84d67d01f04d438fa53e" + integrity sha512-mpzdtpeCLuS3BmE3pO3Cpp5bbjlOPY2Q0PgoF+Od1XZrHLYI28Xe3ossCmYCQt11FQKEYd9+PF8jymTvtWJSHQ== dependencies: bn.js "^4.11.9" brorand "^1.1.0" @@ -2987,9 +2987,9 @@ esprima@^4.0.0, esprima@~4.0.0: integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== + version "1.6.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" + integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== dependencies: estraverse "^5.1.0" @@ -3513,9 +3513,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1" - integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A== + version "2.15.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" + integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== dependencies: hasown "^2.0.2" @@ -4096,16 +4096,16 @@ levn@^0.4.1: type-check "~0.4.0" libsodium-wrappers@^0.7.6: - version "0.7.13" - resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.13.tgz#83299e06ee1466057ba0e64e532777d2929b90d3" - integrity sha512-kasvDsEi/r1fMzKouIDv7B8I6vNmknXwGiYodErGuESoFTohGSKZplFtVxZqHaoQ217AynyIFgnOVRitpHs0Qw== + version "0.7.14" + resolved "https://registry.yarnpkg.com/libsodium-wrappers/-/libsodium-wrappers-0.7.14.tgz#b21d9e8d58de686c6318a772805ee1c5d02035a5" + integrity sha512-300TtsePizhJZ7HjLmWr6hLHAgJUxIGhapSw+EwfCtDuWaEmEdGXSQv6j6qFw0bs9l4vS2NH9BtOHfXAq6h5kQ== dependencies: - libsodium "^0.7.13" + libsodium "^0.7.14" -libsodium@^0.7.13: - version "0.7.13" - resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.13.tgz#230712ec0b7447c57b39489c48a4af01985fb393" - integrity sha512-mK8ju0fnrKXXfleL53vtp9xiPq5hKM0zbDQtcxQIsSmxNgSxqCj6R7Hl9PkrNe2j29T4yoDaF7DJLK9/i5iWUw== +libsodium@^0.7.14: + version "0.7.14" + resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.14.tgz#d9daace70dbc36051b947d37999bb6337c364c88" + integrity sha512-/pOd7eO6oZrfORquRTC4284OUJFcMi8F3Vnc9xtRBT0teLfOUxWIItaBFF3odYjZ7nlJNwnLdUVEUFHxVyX/Sw== lilconfig@2.0.5: version "2.0.5" @@ -4391,9 +4391,9 @@ node-int64@^0.4.0: integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" - integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + version "2.0.17" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.17.tgz#d74bc4fec38d839eec5db2a3c9c963d4f33cb366" + integrity sha512-Ww6ZlOiEQfPfXM45v17oabk77Z7mg5bOt7AjDyzy7RjK9OrLrLC8dyZQoAPEOtFX9SaNf1Tdvr5gRJWdTJj7GA== normalize-path@^3.0.0: version "3.0.0" @@ -4894,9 +4894,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.3.2, semver@^7.3.5, semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: - version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== send@0.18.0: version "0.18.0" @@ -5386,7 +5386,7 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -update-browserslist-db@^1.0.16: +update-browserslist-db@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== From 598ecf3e88a871d08c13234dacaf35f5c4615e19 Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Tue, 30 Jul 2024 18:21:37 +0300 Subject: [PATCH 2/6] fix tests for stargate_querier --- package.json | 10 +- ...e_queries.test.ts => grpc_queries.test.ts} | 156 +++++++++--------- ...{dex_stargate.test.ts => dex_grpc.test.ts} | 11 +- yarn.lock | 4 +- 4 files changed, 91 insertions(+), 90 deletions(-) rename src/testcases/parallel/{stargate_queries.test.ts => grpc_queries.test.ts} (63%) rename src/testcases/run_in_band/{dex_stargate.test.ts => dex_grpc.test.ts} (98%) diff --git a/package.json b/package.json index d96e82b0..53c723ba 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "scripts": { "test": "yarn test:parallel && yarn test:run_in_band", "test:parallel": "jest -b src/testcases/parallel", - "test:run_in_band": "yarn test:tge:auction && yarn test:tge:credits && yarn test:interchaintx && yarn test:interchain_kv_query && yarn test:interchain_tx_query_plain && yarn test:tokenomics && yarn test:reserve && yarn test:ibc_hooks && yarn test:float && yarn test:parameters && yarn test:dex_stargate && yarn test:dex_bindings && yarn test:slinky && yarn test:chain_manager && yarn test:feemarket && yarn test:globalfee && yarn test:tokenfactory", + "test:run_in_band": "yarn test:tge:auction && yarn test:tge:credits && yarn test:interchaintx && yarn test:interchain_kv_query && yarn test:interchain_tx_query_plain && yarn test:tokenomics && yarn test:reserve && yarn test:ibc_hooks && yarn test:float && yarn test:parameters && yarn test:dex_grpc && yarn test:dex_bindings && yarn test:slinky && yarn test:chain_manager && yarn test:feemarket && yarn test:globalfee && yarn test:tokenfactory", "test:simple": "jest -b src/testcases/parallel/simple", "test:slinky": "jest -b src/testcases/run_in_band/slinky", - "test:stargate_queries": "jest -b src/testcases/parallel/stargate_queries", + "test:grpc_queries": "jest -b src/testcases/parallel/grpc_queries", "test:interchaintx": "jest -b src/testcases/run_in_band/interchaintx", "test:interchain_kv_query": "jest -b src/testcases/run_in_band/interchain_kv_query", "test:interchain_tx_query_plain": "jest -b src/testcases/run_in_band/interchain_tx_query_plain", @@ -31,7 +31,7 @@ "test:tge:investors_vesting_vault": "jest -b src/testcases/parallel/tge.investors_vesting_vault", "test:voting_registry": "jest -b src/testcases/parallel/voting_registry", "test:float": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/float", - "test:dex_stargate": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/dex_stargate", + "test:dex_grpc": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/dex_grpc", "test:dex_bindings": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/dex_bindings", "test:feemarket": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/feemarket", "test:globalfee": "NO_WAIT_CHANNEL1=1 NO_WAIT_HTTP2=1 NO_WAIT_CHANNEL2=1 NO_WAIT_DELAY=1 jest -b src/testcases/run_in_band/globalfee", @@ -47,7 +47,7 @@ "@cosmos-client/core": "^0.47.4", "@cosmos-client/cosmwasm": "^0.40.3", "@cosmos-client/ibc": "^1.2.1", - "@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#40c2c30434e63ab989e42408a94034589d5985d8", + "@neutron-org/neutronjsplus": "https://github.com/neutron-org/neutronjsplus.git#bac7ed7f8485adcde219e960819dfade7827fa61", "@types/lodash": "^4.14.182", "@types/long": "^5.0.0", "axios": "^0.27.2", @@ -93,4 +93,4 @@ "engines": { "node": ">=16.0 <17" } -} +} \ No newline at end of file diff --git a/src/testcases/parallel/stargate_queries.test.ts b/src/testcases/parallel/grpc_queries.test.ts similarity index 63% rename from src/testcases/parallel/stargate_queries.test.ts rename to src/testcases/parallel/grpc_queries.test.ts index fe84a020..a33ce1c8 100644 --- a/src/testcases/parallel/stargate_queries.test.ts +++ b/src/testcases/parallel/grpc_queries.test.ts @@ -64,7 +64,7 @@ describe('Neutron / Simple', () => { }); test('create denom, mint', async () => { - const denom = `teststargate`; + const denom = `testgrpc`; const data = await msgCreateDenom( neutronAccount, @@ -82,111 +82,106 @@ describe('Neutron / Simple', () => { describe('Contract instantiation', () => { let codeId: CodeId; test('store contract', async () => { - codeId = await neutronAccount.storeWasm(NeutronContract.STARGATE_QUERIER); + codeId = await neutronAccount.storeWasm(NeutronContract.GRPC_QUERIER); expect(codeId).toBeGreaterThan(0); }); test('instantiate', async () => { const res = await neutronAccount.instantiateContract( codeId, '{}', - 'stargate_querier', + 'grpc_querier', ); contractAddress = res[0]._contract_address; }); }); - async function querySmart(query: any): Promise { - return await neutronChain.queryContract(contractAddress, query); + async function querySmart(query: any): Promise { + return await neutronChain.queryContract(contractAddress, query); } - describe('Stargate queries', () => { + describe('Grpc queries', () => { test('bank balance should work', async () => { - const res = JSON.parse( - await querySmart({ - bank_balance: { - address: neutronAccount.wallet.address.toString(), - denom: NEUTRON_DENOM, - }, - }), - ); + const res = await querySmart({ + bank_balance: { + address: neutronAccount.wallet.address.toString(), + denom: NEUTRON_DENOM, + }, + }); expect(res.balance.denom).toBe('untrn'); expect(+res.balance.amount).toBeGreaterThan(1000000); }); test('bank denom metadata should work', async () => { - const res = JSON.parse( - await querySmart({ - bank_denom_metadata: { denom: newTokenDenom }, - }), - ); - expect(res.metadatas[0].denom_units[0].denom).toBe(newTokenDenom); + const res = await querySmart({ + bank_denom_metadata: { + denom: newTokenDenom, + }, + }); + expect(res.metadata.denom_units[0].denom).toBe(newTokenDenom); }); test('bank params should work', async () => { - const res = JSON.parse(await querySmart({ bank_params: {} })); + const res = await querySmart({ + bank_params: {}, + }); expect(res.params.default_send_enabled).toBe(true); }); test('bank supply of should work', async () => { - const res = JSON.parse( - await querySmart({ - bank_supply_of: { denom: NEUTRON_DENOM }, - }), - ); + const res = await querySmart({ + bank_supply_of: { + denom: NEUTRON_DENOM, + }, + }); expect(res.amount.denom).toBe('untrn'); expect(+res.amount.amount).toBeGreaterThan(1000000); }); - test('auth account should work', async () => { - const res = JSON.parse( - await querySmart({ - auth_account: { - address: neutronAccount.wallet.address.toString(), - }, - }), - ); + // response with the field of type `Any` is expected, but actual type is a different struct + test.skip('auth account should work', async () => { + const res = await querySmart({ + auth_account: { + address: neutronAccount.wallet.address.toString(), + }, + }); expect(res.account.address).toBe( neutronAccount.wallet.address.toString(), ); }); test('transfer denom trace should work', async () => { - const res = JSON.parse( - await querySmart({ - transfer_denom_trace: { - hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', - }, - }), - ); + const res = await querySmart({ + transfer_denom_trace: { + hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', + }, + }); expect(res.denom_trace.path).toBe('transfer/channel-0'); expect(res.denom_trace.base_denom).toBe('uatom'); }); - test('ibc client state should work', async () => { - const res = JSON.parse( - await querySmart({ - ibc_client_state: { - client_id: '07-tendermint-1', - }, - }), - ); + // response with the field of type `Any` is expected, but actual type is a different struct + test.skip('ibc client state should work', async () => { + const res = await querySmart({ + ibc_client_state: { + client_id: '07-tendermint-1', + }, + }); expect(res.client_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ClientState', ); expect(res.client_state.chain_id).toBe('test-2'); }); - test('ibc consensus state should work', async () => { - const res = JSON.parse( - await querySmart({ - ibc_consensus_state: { - client_id: '07-tendermint-1', - revision_number: 0, - revision_height: 0, - latest_height: true, - }, - }), - ); + // response with the field of type `Any` is expected, but actual type is a different struct + test.skip('ibc consensus state should work', async () => { + const res = await querySmart({ + ibc_consensus_state: { + client_id: '07-tendermint-1', + revision_number: 0, + revision_height: 0, + latest_height: true, + }, + }); expect(res.consensus_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ConsensusState', ); @@ -194,54 +189,59 @@ describe('Neutron / Simple', () => { }); test('ibc connection should work', async () => { - const res = JSON.parse( - await querySmart({ - ibc_connection: { - connection_id: 'connection-0', - }, - }), - ); + const res = await querySmart({ + ibc_connection: { + connection_id: 'connection-0', + }, + }); expect(res.connection.client_id).toBe('07-tendermint-1'); expect(+res.proof_height.revision_height).toBeGreaterThan(0); }); test('tokenfactory params should work', async () => { - const res = JSON.parse(await querySmart({ tokenfactory_params: {} })); + const res = await querySmart({ + tokenfactory_params: {}, + }); expect(res.params.denom_creation_gas_consume).toBe('0'); }); test('tokenfactory denom authority metadata should work', async () => { const res = await querySmart({ tokenfactory_denom_authority_metadata: { - denom: newTokenDenom, + creator: neutronAccount.wallet.address.toString(), + subdenom: newTokenDenom, }, }); - expect(res).toBe(`{"authority_metadata":{"Admin":""}}`); + expect(res.authority_metadata.admin).toBe(''); }); - test('denoms from creator should work', async () => { + test('tokenfactory denoms from creator should work', async () => { const res = await querySmart({ tokenfactory_denoms_from_creator: { creator: neutronAccount.wallet.address.toString(), }, }); - expect(res).toBe(`{"denoms":["${newTokenDenom}"]}`); + expect(res.denoms[0]).toBe(newTokenDenom); }); - test('interchaintx params should work', async () => { - const res = JSON.parse(await querySmart({ interchaintx_params: {} })); + test('interchaintxs params should work', async () => { + const res = await querySmart({ + interchaintxs_params: {}, + }); expect(+res.params.msg_submit_tx_max_messages).toBeGreaterThan(0); }); test('interchainqueries params should work', async () => { - const res = JSON.parse( - await querySmart({ interchainqueries_params: {} }), - ); + const res = await querySmart({ + interchainqueries_params: {}, + }); expect(+res.params.query_submit_timeout).toBeGreaterThan(0); }); test('feeburner params should work', async () => { - const res = JSON.parse(await querySmart({ feeburner_params: {} })); + const res = await querySmart({ + feeburner_params: {}, + }); expect(res.params.neutron_denom).toBe('untrn'); }); }); diff --git a/src/testcases/run_in_band/dex_stargate.test.ts b/src/testcases/run_in_band/dex_grpc.test.ts similarity index 98% rename from src/testcases/run_in_band/dex_stargate.test.ts rename to src/testcases/run_in_band/dex_grpc.test.ts index 6992cc98..67ff1ed2 100644 --- a/src/testcases/run_in_band/dex_stargate.test.ts +++ b/src/testcases/run_in_band/dex_grpc.test.ts @@ -28,7 +28,7 @@ import { const config = require('../../config.json'); -describe('Neutron / dex module (stargate contract)', () => { +describe('Neutron / dex module (grpc contract)', () => { let testState: TestStateLocalCosmosTestNet; let neutronChain: CosmosWrapper; let neutronAccount: WalletWrapper; @@ -50,15 +50,15 @@ describe('Neutron / dex module (stargate contract)', () => { ); }); - describe('Instantiate dex stargate contract', () => { + describe('Instantiate dex grpc contract', () => { let codeId: CodeId; test('store contract', async () => { - codeId = await neutronAccount.storeWasm(NeutronContract.DEX_STARGATE); + codeId = await neutronAccount.storeWasm(NeutronContract.DEX_GRPC); expect(codeId).toBeGreaterThan(0); }); test('instantiate contract', async () => { contractAddress = ( - await neutronAccount.instantiateContract(codeId, '{}', 'dex_dev') + await neutronAccount.instantiateContract(codeId, '{}', 'dex_grpc') )[0]._contract_address; await neutronAccount.msgSend(contractAddress, { amount: '100000000', @@ -556,7 +556,7 @@ describe('Neutron / dex module (stargate contract)', () => { }, }, ); - expect(respNoPoolData.deposits[0].total_shares).toBeNull(); + expect(respNoPoolData.deposits[0].total_shares).toEqual(''); expect(respNoPoolData.deposits[0].pool).toBeNull(); }); test('AllTickLiquidity', async () => { @@ -645,6 +645,7 @@ describe('Neutron / dex module (stargate contract)', () => { Math.ceil(Date.now() / 1000) + 1000, ), order_type: LimitOrderType.GoodTilTime, + max_amount_out: '', }, }, ); diff --git a/yarn.lock b/yarn.lock index 15004d7d..9a6091fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1575,9 +1575,9 @@ resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.50.0.tgz#29c6419e8379d496ab6d0426eadf3c4d100cd186" integrity sha512-swKHYCOZUGyVt4ge0u8a7AwNcA//h4nx5wIi0sruGye1IJ5Cva0GyK9L2/WdX+kWVTKp92ZiEo1df31lrWGPgA== -"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#40c2c30434e63ab989e42408a94034589d5985d8": +"@neutron-org/neutronjsplus@https://github.com/neutron-org/neutronjsplus.git#bac7ed7f8485adcde219e960819dfade7827fa61": version "0.4.0-rc19" - resolved "https://github.com/neutron-org/neutronjsplus.git#40c2c30434e63ab989e42408a94034589d5985d8" + resolved "https://github.com/neutron-org/neutronjsplus.git#bac7ed7f8485adcde219e960819dfade7827fa61" dependencies: "@bufbuild/protobuf" "^1.4.2" "@cosmos-client/core" "^0.47.4" From d5b600a0bfd0c8ed7fdb9bb8c96e5e349f1f8e0a Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Mon, 12 Aug 2024 19:21:53 +0300 Subject: [PATCH 3/6] fix prettier --- src/testcases/run_in_band/dex_grpc.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/testcases/run_in_band/dex_grpc.test.ts b/src/testcases/run_in_band/dex_grpc.test.ts index 399084b0..88bbcdb8 100644 --- a/src/testcases/run_in_band/dex_grpc.test.ts +++ b/src/testcases/run_in_band/dex_grpc.test.ts @@ -28,7 +28,11 @@ describe('Neutron / dex module (grpc contract)', () => { describe('Instantiate dex grpc contract', () => { test('instantiate contract', async () => { - contractAddress = await neutronClient.create(CONTRACTS.DEX_GRPC, {}, 'dex_grpc'); + contractAddress = await neutronClient.create( + CONTRACTS.DEX_GRPC, + {}, + 'dex_grpc', + ); }); test('send funds', async () => { await neutronClient.sendTokens( From f642205e3b451cbca03633f008b00a22cabe8b23 Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Mon, 12 Aug 2024 19:58:08 +0300 Subject: [PATCH 4/6] fix test --- src/testcases/parallel/grpc_queries.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testcases/parallel/grpc_queries.test.ts b/src/testcases/parallel/grpc_queries.test.ts index c0ea183e..b0b76182 100644 --- a/src/testcases/parallel/grpc_queries.test.ts +++ b/src/testcases/parallel/grpc_queries.test.ts @@ -12,7 +12,7 @@ import { MsgCreateDenom } from '@neutron-org/neutronjs/osmosis/tokenfactory/v1be import { COSMOS_DENOM, NEUTRON_DENOM } from '../../helpers/constants'; import config from '../../config.json'; -describe('Neutron / Stargate Queries', () => { +describe('Neutron / Grpc Queries', () => { let testState: LocalState; let neutronClient: SigningNeutronClient; let neutronWallet: Wallet; @@ -217,7 +217,7 @@ describe('Neutron / Stargate Queries', () => { test('tokenfactory denom authority metadata should work', async () => { const res = await querySmart({ tokenfactory_denom_authority_metadata: { - creator: neutronAccount.wallet.address.toString(), + creator: neutronWallet.address, subdenom: newTokenDenom, }, }); From 68841f63f671b13468bd15eb5c7bbcd07b790c85 Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Tue, 13 Aug 2024 13:41:48 +0300 Subject: [PATCH 5/6] regen yarn & remove querySmart func --- package.json | 2 +- src/testcases/parallel/grpc_queries.test.ts | 170 ++++++++++++-------- yarn.lock | 33 ++-- 3 files changed, 120 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index 29e42c31..d5898c53 100644 --- a/package.json +++ b/package.json @@ -85,4 +85,4 @@ "engines": { "node": ">=20.0" } -} \ No newline at end of file +} diff --git a/src/testcases/parallel/grpc_queries.test.ts b/src/testcases/parallel/grpc_queries.test.ts index b0b76182..0dfdb172 100644 --- a/src/testcases/parallel/grpc_queries.test.ts +++ b/src/testcases/parallel/grpc_queries.test.ts @@ -105,76 +105,92 @@ describe('Neutron / Grpc Queries', () => { }); }); - // TODO: this function does not make much sense: remove it - async function querySmart(query: any): Promise { - return await neutronClient.queryContractSmart(contractAddress, query); - } - describe('Grpc queries', () => { test('bank balance should work', async () => { - const res = await querySmart({ - bank_balance: { - address: neutronWallet.address, - denom: NEUTRON_DENOM, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + bank_balance: { + address: neutronWallet.address, + denom: NEUTRON_DENOM, + }, }, - }); + ); expect(res.balance.denom).toBe('untrn'); expect(+res.balance.amount).toBeGreaterThan(1000000); }); test('bank denom metadata should work', async () => { - const res = await querySmart({ - bank_denom_metadata: { - denom: newTokenDenom, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + bank_denom_metadata: { + denom: newTokenDenom, + }, }, - }); + ); expect(res.metadata.denom_units[0].denom).toBe(newTokenDenom); }); test('bank params should work', async () => { - const res = await querySmart({ - bank_params: {}, - }); + const res = await neutronClient.queryContractSmart( + contractAddress, + { + bank_params: {}, + }, + ); expect(res.params.default_send_enabled).toBe(true); }); test('bank supply of should work', async () => { - const res = await querySmart({ - bank_supply_of: { - denom: NEUTRON_DENOM, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + bank_supply_of: { + denom: NEUTRON_DENOM, + }, }, - }); + ); expect(res.amount.denom).toBe('untrn'); expect(+res.amount.amount).toBeGreaterThan(1000000); }); // response with the field of type `Any` is expected, but actual type is a different struct test.skip('auth account should work', async () => { - const res = await querySmart({ - auth_account: { - address: neutronWallet.address, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + auth_account: { + address: neutronWallet.address, + }, }, - }); + ); expect(res.account.address).toBe(neutronWallet.address); }); test('transfer denom trace should work', async () => { - const res = await querySmart({ - transfer_denom_trace: { - hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', + const res = await neutronClient.queryContractSmart( + contractAddress, + { + transfer_denom_trace: { + hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', + }, }, - }); + ); expect(res.denom_trace.path).toBe('transfer/channel-0'); expect(res.denom_trace.base_denom).toBe('uatom'); }); // response with the field of type `Any` is expected, but actual type is a different struct test.skip('ibc client state should work', async () => { - const res = await querySmart({ - ibc_client_state: { - client_id: '07-tendermint-1', + const res = await neutronClient.queryContractSmart( + contractAddress, + { + ibc_client_state: { + client_id: '07-tendermint-1', + }, }, - }); + ); expect(res.client_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ClientState', ); @@ -183,14 +199,17 @@ describe('Neutron / Grpc Queries', () => { // response with the field of type `Any` is expected, but actual type is a different struct test.skip('ibc consensus state should work', async () => { - const res = await querySmart({ - ibc_consensus_state: { - client_id: '07-tendermint-1', - revision_number: 0, - revision_height: 0, - latest_height: true, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + ibc_consensus_state: { + client_id: '07-tendermint-1', + revision_number: 0, + revision_height: 0, + latest_height: true, + }, }, - }); + ); expect(res.consensus_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ConsensusState', ); @@ -198,59 +217,80 @@ describe('Neutron / Grpc Queries', () => { }); test('ibc connection should work', async () => { - const res = await querySmart({ - ibc_connection: { - connection_id: 'connection-0', + const res = await neutronClient.queryContractSmart( + contractAddress, + { + ibc_connection: { + connection_id: 'connection-0', + }, }, - }); + ); expect(res.connection.client_id).toBe('07-tendermint-1'); expect(+res.proof_height.revision_height).toBeGreaterThan(0); }); test('tokenfactory params should work', async () => { - const res = await querySmart({ - tokenfactory_params: {}, - }); + const res = await neutronClient.queryContractSmart( + contractAddress, + { + tokenfactory_params: {}, + }, + ); expect(res.params.denom_creation_gas_consume).toBe('0'); }); test('tokenfactory denom authority metadata should work', async () => { - const res = await querySmart({ - tokenfactory_denom_authority_metadata: { - creator: neutronWallet.address, - subdenom: newTokenDenom, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + tokenfactory_denom_authority_metadata: { + creator: neutronWallet.address, + subdenom: newTokenDenom, + }, }, - }); + ); expect(res.authority_metadata.admin).toBe(''); }); test('tokenfactory denoms from creator should work', async () => { - const res = await querySmart({ - tokenfactory_denoms_from_creator: { - creator: neutronWallet.address, + const res = await neutronClient.queryContractSmart( + contractAddress, + { + tokenfactory_denoms_from_creator: { + creator: neutronWallet.address, + }, }, - }); + ); expect(res.denoms[0]).toBe(newTokenDenom); }); test('interchaintxs params should work', async () => { - const res = await querySmart({ - interchaintxs_params: {}, - }); + const res = await neutronClient.queryContractSmart( + contractAddress, + { + interchaintxs_params: {}, + }, + ); expect(+res.params.msg_submit_tx_max_messages).toBeGreaterThan(0); }); test('interchainqueries params should work', async () => { - const res = await querySmart({ - interchainqueries_params: {}, - }); + const res = await neutronClient.queryContractSmart( + contractAddress, + { + interchainqueries_params: {}, + }, + ); expect(+res.params.query_submit_timeout).toBeGreaterThan(0); }); test('feeburner params should work', async () => { - const res = await querySmart({ - feeburner_params: {}, - }); + const res = await neutronClient.queryContractSmart( + contractAddress, + { + feeburner_params: {}, + }, + ); expect(res.params.neutron_denom).toBe('untrn'); }); }); diff --git a/yarn.lock b/yarn.lock index c804633d..862ec492 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1302,15 +1302,10 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@ledgerhq/errors@^5.50.0": - version "5.50.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-5.50.0.tgz#e3a6834cb8c19346efca214c1af84ed28e69dad9" - integrity sha512-gu6aJ/BHuRlpU7kgVpy2vcYk6atjB4iauP2ymF7Gk0ez0Y/6VSMVSJvubeEQN+IV60+OBK0JgeIZG7OiHaw8ow== - -"@ledgerhq/logs@^5.50.0": - version "5.50.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-5.50.0.tgz#29c6419e8379d496ab6d0426eadf3c4d100cd186" - integrity sha512-swKHYCOZUGyVt4ge0u8a7AwNcA//h4nx5wIi0sruGye1IJ5Cva0GyK9L2/WdX+kWVTKp92ZiEo1df31lrWGPgA== +"@neutron-org/cosmjs-types@0.9.2-rc1": + version "0.9.2-rc1" + resolved "https://registry.yarnpkg.com/@neutron-org/cosmjs-types/-/cosmjs-types-0.9.2-rc1.tgz#ca1fc1dc9566858dbd765e8f82c8a70097bcc84b" + integrity sha512-ju2AqJ14yO4+JF8RwY4ZVy7f2HVjhdf66SfhS6y4ucBZm997/E/yYVMnpWmUncVg8ARooISOKaOYNagqz0am6Q== "@neutron-org/neutronjs@4.2.0": version "4.2.0" @@ -1338,7 +1333,7 @@ dependencies: "@noble/hashes" "1.4.0" -"@noble/hashes@1.4.0", "@noble/hashes@^1", "@noble/hashes@^1.0.0", "@noble/hashes@^1.4.0", "@noble/hashes@~1.4.0": +"@noble/hashes@1.4.0", "@noble/hashes@^1", "@noble/hashes@^1.0.0", "@noble/hashes@^1.2.0", "@noble/hashes@^1.4.0", "@noble/hashes@~1.4.0": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== @@ -1967,6 +1962,13 @@ bignumber.js@^9.0.1: resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c" integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug== +bip39@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" + integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== + dependencies: + "@noble/hashes" "^1.2.0" + bn.js@4.11.6: version "4.11.6" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215" @@ -3840,13 +3842,6 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@6: - version "6.6.7" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== - dependencies: - tslib "^1.9.0" - rxjs@^7.5.5: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" @@ -3874,7 +3869,7 @@ semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.5, semver@^7.3.7: +semver@^7.3.7: version "7.6.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== @@ -4197,7 +4192,7 @@ ts-node@^9.1.1: source-map-support "^0.5.17" yn "3.1.1" -tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0: +tslib@^1.8.0, tslib@^1.8.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== From 64425edc38efe53f4eb13d1fd7bdb48f0e9e75de Mon Sep 17 00:00:00 2001 From: Aleksandr Pismenskiy Date: Tue, 13 Aug 2024 13:45:50 +0300 Subject: [PATCH 6/6] fix prettier --- src/testcases/parallel/grpc_queries.test.ts | 165 +++++++------------- 1 file changed, 60 insertions(+), 105 deletions(-) diff --git a/src/testcases/parallel/grpc_queries.test.ts b/src/testcases/parallel/grpc_queries.test.ts index 0dfdb172..ca634740 100644 --- a/src/testcases/parallel/grpc_queries.test.ts +++ b/src/testcases/parallel/grpc_queries.test.ts @@ -107,90 +107,69 @@ describe('Neutron / Grpc Queries', () => { describe('Grpc queries', () => { test('bank balance should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - bank_balance: { - address: neutronWallet.address, - denom: NEUTRON_DENOM, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + bank_balance: { + address: neutronWallet.address, + denom: NEUTRON_DENOM, }, - ); + }); expect(res.balance.denom).toBe('untrn'); expect(+res.balance.amount).toBeGreaterThan(1000000); }); test('bank denom metadata should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - bank_denom_metadata: { - denom: newTokenDenom, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + bank_denom_metadata: { + denom: newTokenDenom, }, - ); + }); expect(res.metadata.denom_units[0].denom).toBe(newTokenDenom); }); test('bank params should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - bank_params: {}, - }, - ); + const res = await neutronClient.queryContractSmart(contractAddress, { + bank_params: {}, + }); expect(res.params.default_send_enabled).toBe(true); }); test('bank supply of should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - bank_supply_of: { - denom: NEUTRON_DENOM, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + bank_supply_of: { + denom: NEUTRON_DENOM, }, - ); + }); expect(res.amount.denom).toBe('untrn'); expect(+res.amount.amount).toBeGreaterThan(1000000); }); // response with the field of type `Any` is expected, but actual type is a different struct test.skip('auth account should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - auth_account: { - address: neutronWallet.address, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + auth_account: { + address: neutronWallet.address, }, - ); + }); expect(res.account.address).toBe(neutronWallet.address); }); test('transfer denom trace should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - transfer_denom_trace: { - hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + transfer_denom_trace: { + hash: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2', }, - ); + }); expect(res.denom_trace.path).toBe('transfer/channel-0'); expect(res.denom_trace.base_denom).toBe('uatom'); }); // response with the field of type `Any` is expected, but actual type is a different struct test.skip('ibc client state should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - ibc_client_state: { - client_id: '07-tendermint-1', - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + ibc_client_state: { + client_id: '07-tendermint-1', }, - ); + }); expect(res.client_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ClientState', ); @@ -199,17 +178,14 @@ describe('Neutron / Grpc Queries', () => { // response with the field of type `Any` is expected, but actual type is a different struct test.skip('ibc consensus state should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - ibc_consensus_state: { - client_id: '07-tendermint-1', - revision_number: 0, - revision_height: 0, - latest_height: true, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + ibc_consensus_state: { + client_id: '07-tendermint-1', + revision_number: 0, + revision_height: 0, + latest_height: true, }, - ); + }); expect(res.consensus_state['@type']).toBe( '/ibc.lightclients.tendermint.v1.ConsensusState', ); @@ -217,80 +193,59 @@ describe('Neutron / Grpc Queries', () => { }); test('ibc connection should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - ibc_connection: { - connection_id: 'connection-0', - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + ibc_connection: { + connection_id: 'connection-0', }, - ); + }); expect(res.connection.client_id).toBe('07-tendermint-1'); expect(+res.proof_height.revision_height).toBeGreaterThan(0); }); test('tokenfactory params should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - tokenfactory_params: {}, - }, - ); + const res = await neutronClient.queryContractSmart(contractAddress, { + tokenfactory_params: {}, + }); expect(res.params.denom_creation_gas_consume).toBe('0'); }); test('tokenfactory denom authority metadata should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - tokenfactory_denom_authority_metadata: { - creator: neutronWallet.address, - subdenom: newTokenDenom, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + tokenfactory_denom_authority_metadata: { + creator: neutronWallet.address, + subdenom: newTokenDenom, }, - ); + }); expect(res.authority_metadata.admin).toBe(''); }); test('tokenfactory denoms from creator should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - tokenfactory_denoms_from_creator: { - creator: neutronWallet.address, - }, + const res = await neutronClient.queryContractSmart(contractAddress, { + tokenfactory_denoms_from_creator: { + creator: neutronWallet.address, }, - ); + }); expect(res.denoms[0]).toBe(newTokenDenom); }); test('interchaintxs params should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - interchaintxs_params: {}, - }, - ); + const res = await neutronClient.queryContractSmart(contractAddress, { + interchaintxs_params: {}, + }); expect(+res.params.msg_submit_tx_max_messages).toBeGreaterThan(0); }); test('interchainqueries params should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - interchainqueries_params: {}, - }, - ); + const res = await neutronClient.queryContractSmart(contractAddress, { + interchainqueries_params: {}, + }); expect(+res.params.query_submit_timeout).toBeGreaterThan(0); }); test('feeburner params should work', async () => { - const res = await neutronClient.queryContractSmart( - contractAddress, - { - feeburner_params: {}, - }, - ); + const res = await neutronClient.queryContractSmart(contractAddress, { + feeburner_params: {}, + }); expect(res.params.neutron_denom).toBe('untrn'); }); });