From 52c855b7440f5fb8437ed7c836508f5c2bf1d563 Mon Sep 17 00:00:00 2001 From: Jimmy Hardwick <jwhardwick@gmail.com> Date: Thu, 12 Sep 2024 09:43:11 +1000 Subject: [PATCH] [NO CHANGELOG][Checkout Widget]fix: Adds 0xsquid/squid-types package. (#2164) --- packages/checkout/widgets-lib/package.json | 1 + yarn.lock | 202 +++++++++++++++++++-- 2 files changed, 189 insertions(+), 14 deletions(-) diff --git a/packages/checkout/widgets-lib/package.json b/packages/checkout/widgets-lib/package.json index a0073059bf..db955e98ef 100644 --- a/packages/checkout/widgets-lib/package.json +++ b/packages/checkout/widgets-lib/package.json @@ -44,6 +44,7 @@ "url": "^0.11.0" }, "devDependencies": { + "@0xsquid/squid-types": "^0.1.104", "@rollup/plugin-commonjs": "^26.0.1", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^15.2.3", diff --git a/yarn.lock b/yarn.lock index f25e5bf45b..9be677cb0d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -41,6 +41,19 @@ __metadata: languageName: node linkType: hard +"@0xsquid/squid-types@npm:^0.1.104": + version: 0.1.104 + resolution: "@0xsquid/squid-types@npm:0.1.104" + dependencies: + "@axelar-network/axelarjs-sdk": ^0.16.1 + "@ethersproject/providers": ^5.7.2 + typescript: "*" + peerDependencies: + typescript: ^5.3.3 + checksum: f249a8c680983d9dff4f969fbca6916c1967f8b8068798396382d19c826994d3c83bd7e10f32822f23f6189db0e7deb2cafbd8759bf41522337c61638eee2158 + languageName: node + linkType: hard + "@aashutoshrathi/word-wrap@npm:^1.2.3": version: 1.2.6 resolution: "@aashutoshrathi/word-wrap@npm:1.2.6" @@ -118,6 +131,22 @@ __metadata: languageName: node linkType: hard +"@axelar-network/axelar-cgp-solidity@npm:^6.3.0": + version: 6.3.1 + resolution: "@axelar-network/axelar-cgp-solidity@npm:6.3.1" + dependencies: + "@axelar-network/axelar-gmp-sdk-solidity": 5.8.0 + checksum: 7403f4a7baf69874e30107bb759575f19c7e34697a96d277ef3101dd2a46a08e7d5aac67db31ac7e832ea5f785e060a3e5bdc6409c60c2e53b44fc3808d845ad + languageName: node + linkType: hard + +"@axelar-network/axelar-gmp-sdk-solidity@npm:5.8.0": + version: 5.8.0 + resolution: "@axelar-network/axelar-gmp-sdk-solidity@npm:5.8.0" + checksum: 60ea47847cf4d5bab6093a4127b42dc9d48d622bce1ea89d458b9cdda42da01776192b804a0af5229a0813ba3e3485f8bb8cda41d71d49afbcce824bf096f17e + languageName: node + linkType: hard + "@axelar-network/axelar-gmp-sdk-solidity@npm:^5.8.0": version: 5.10.0 resolution: "@axelar-network/axelar-gmp-sdk-solidity@npm:5.10.0" @@ -125,6 +154,41 @@ __metadata: languageName: node linkType: hard +"@axelar-network/axelarjs-sdk@npm:^0.16.1": + version: 0.16.2 + resolution: "@axelar-network/axelarjs-sdk@npm:0.16.2" + dependencies: + "@axelar-network/axelar-cgp-solidity": ^6.3.0 + "@axelar-network/axelarjs-types": ^0.33.0 + "@cosmjs/json-rpc": ^0.30.1 + "@cosmjs/stargate": 0.31.0-alpha.1 + "@ethersproject/abstract-provider": ^5.7.0 + "@ethersproject/networks": ^5.7.1 + "@ethersproject/providers": ^5.7.2 + "@types/uuid": ^8.3.1 + bech32: ^2.0.0 + clone-deep: ^4.0.1 + cross-fetch: ^3.1.5 + ethers: ^5.7.2 + socket.io-client: ^4.6.1 + standard-http-error: ^2.0.1 + string-similarity-js: ^2.1.4 + uuid: ^8.3.2 + ws: ^8.13.0 + checksum: 38c38150e1fa40f26590f5d1ad26665b2e5c635300a22394fce51f64143ff777a060d09fb5ce9a2c8dce78dc107b0759ef12f2e70bcecc0c15619ecef8636826 + languageName: node + linkType: hard + +"@axelar-network/axelarjs-types@npm:^0.33.0": + version: 0.33.0 + resolution: "@axelar-network/axelarjs-types@npm:0.33.0" + dependencies: + long: ^5.2.0 + protobufjs: ^7.0.0 + checksum: 1cdee798a40f2d63ceae3f2fc1fe733fe98c8f025e2f03826ad679199da5833afdaada57c3fb855d75bd2d371e60c1fc57b08419faa8526bb4d8f95ef9e319fe + languageName: node + linkType: hard + "@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.16.0, @babel/code-frame@npm:^7.22.5, @babel/code-frame@npm:^7.8.3": version: 7.22.5 resolution: "@babel/code-frame@npm:7.22.5" @@ -2623,7 +2687,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/amino@npm:^0.31.3": +"@cosmjs/amino@npm:^0.31.0-alpha.1, @cosmjs/amino@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/amino@npm:0.31.3" dependencies: @@ -2650,7 +2714,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/encoding@npm:^0.31.0, @cosmjs/encoding@npm:^0.31.3": +"@cosmjs/encoding@npm:^0.31.0, @cosmjs/encoding@npm:^0.31.0-alpha.1, @cosmjs/encoding@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/encoding@npm:0.31.3" dependencies: @@ -2661,6 +2725,16 @@ __metadata: languageName: node linkType: hard +"@cosmjs/json-rpc@npm:^0.30.1": + version: 0.30.1 + resolution: "@cosmjs/json-rpc@npm:0.30.1" + dependencies: + "@cosmjs/stream": ^0.30.1 + xstream: ^11.14.0 + checksum: 750686d53cd4ee239fd24a41d556ab08307f099c9f7bb633a566af417b0baad0ff954498272b6bdb02d4cad596c7ac8f24e38f0cf25c7fbe6200b539c2f56266 + languageName: node + linkType: hard + "@cosmjs/json-rpc@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/json-rpc@npm:0.31.3" @@ -2671,7 +2745,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/math@npm:^0.31.3": +"@cosmjs/math@npm:^0.31.0-alpha.1, @cosmjs/math@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/math@npm:0.31.3" dependencies: @@ -2680,7 +2754,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/proto-signing@npm:^0.31.3": +"@cosmjs/proto-signing@npm:^0.31.0-alpha.1, @cosmjs/proto-signing@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/proto-signing@npm:0.31.3" dependencies: @@ -2707,6 +2781,26 @@ __metadata: languageName: node linkType: hard +"@cosmjs/stargate@npm:0.31.0-alpha.1": + version: 0.31.0-alpha.1 + resolution: "@cosmjs/stargate@npm:0.31.0-alpha.1" + dependencies: + "@confio/ics23": ^0.6.8 + "@cosmjs/amino": ^0.31.0-alpha.1 + "@cosmjs/encoding": ^0.31.0-alpha.1 + "@cosmjs/math": ^0.31.0-alpha.1 + "@cosmjs/proto-signing": ^0.31.0-alpha.1 + "@cosmjs/stream": ^0.31.0-alpha.1 + "@cosmjs/tendermint-rpc": ^0.31.0-alpha.1 + "@cosmjs/utils": ^0.31.0-alpha.1 + cosmjs-types: ^0.8.0 + long: ^4.0.0 + protobufjs: ~6.11.3 + xstream: ^11.14.0 + checksum: 6610eed45181339a4cde3e9f169d0329bc43b15ff37e72ea3c17189cf8fc17961240bb1607b587297e4efe1a8e44b8675480489f3ee7b679969a622b1c1cf4bd + languageName: node + linkType: hard + "@cosmjs/stargate@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/stargate@npm:0.31.3" @@ -2727,7 +2821,16 @@ __metadata: languageName: node linkType: hard -"@cosmjs/stream@npm:^0.31.3": +"@cosmjs/stream@npm:^0.30.1": + version: 0.30.1 + resolution: "@cosmjs/stream@npm:0.30.1" + dependencies: + xstream: ^11.14.0 + checksum: f9e48a8377c2d3cfbf288fcf4fad745905c042dabc442d2cbb93d4280033e3c8e493a3328f58c0b645b60f9c2188d14603b2bb37a174bc0619686c5e70b13dca + languageName: node + linkType: hard + +"@cosmjs/stream@npm:^0.31.0-alpha.1, @cosmjs/stream@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/stream@npm:0.31.3" dependencies: @@ -2736,7 +2839,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/tendermint-rpc@npm:^0.31.3": +"@cosmjs/tendermint-rpc@npm:^0.31.0-alpha.1, @cosmjs/tendermint-rpc@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/tendermint-rpc@npm:0.31.3" dependencies: @@ -2754,7 +2857,7 @@ __metadata: languageName: node linkType: hard -"@cosmjs/utils@npm:^0.31.3": +"@cosmjs/utils@npm:^0.31.0-alpha.1, @cosmjs/utils@npm:^0.31.3": version: 0.31.3 resolution: "@cosmjs/utils@npm:0.31.3" checksum: 2ff2b270954ab00cc5ae8f23625b562676d0a061c8076905509a5f0701e302e46d24a51a0c3283072e0ce01fbd860baceb25e62303ff17826672fe5f8674b00d @@ -3634,7 +3737,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/networks@npm:5.7.1, @ethersproject/networks@npm:^5.7.0": +"@ethersproject/networks@npm:5.7.1, @ethersproject/networks@npm:^5.7.0, @ethersproject/networks@npm:^5.7.1": version: 5.7.1 resolution: "@ethersproject/networks@npm:5.7.1" dependencies: @@ -4220,6 +4323,7 @@ __metadata: resolution: "@imtbl/checkout-widgets@workspace:packages/checkout/widgets-lib" dependencies: "@0xsquid/sdk": ^2.8.24 + "@0xsquid/squid-types": ^0.1.104 "@biom3/design-tokens": ^0.4.2 "@biom3/react": ^0.25.0 "@ethersproject/providers": ^5.7.2 @@ -12812,7 +12916,7 @@ __metadata: languageName: node linkType: hard -"@types/uuid@npm:^8.3.0, @types/uuid@npm:^8.3.4": +"@types/uuid@npm:^8.3.0, @types/uuid@npm:^8.3.1, @types/uuid@npm:^8.3.4": version: 8.3.4 resolution: "@types/uuid@npm:8.3.4" checksum: 6f11f3ff70f30210edaa8071422d405e9c1d4e53abbe50fdce365150d3c698fe7bbff65c1e71ae080cbfb8fded860dbb5e174da96fdbbdfcaa3fb3daa474d20f @@ -15665,6 +15769,13 @@ __metadata: languageName: node linkType: hard +"bech32@npm:^2.0.0": + version: 2.0.0 + resolution: "bech32@npm:2.0.0" + checksum: fa15acb270b59aa496734a01f9155677b478987b773bf701f465858bf1606c6a970085babd43d71ce61895f1baa594cb41a2cd1394bd2c6698f03cc2d811300e + languageName: node + linkType: hard + "before-after-hook@npm:^2.2.0": version: 2.2.3 resolution: "before-after-hook@npm:2.2.3" @@ -17016,6 +17127,17 @@ __metadata: languageName: node linkType: hard +"clone-deep@npm:^4.0.1": + version: 4.0.1 + resolution: "clone-deep@npm:4.0.1" + dependencies: + is-plain-object: ^2.0.4 + kind-of: ^6.0.2 + shallow-clone: ^3.0.0 + checksum: 770f912fe4e6f21873c8e8fbb1e99134db3b93da32df271d00589ea4a29dbe83a9808a322c93f3bcaf8584b8b4fa6fc269fc8032efbaa6728e0c9886c74467d2 + languageName: node + linkType: hard + "clone-response@npm:^1.0.2": version: 1.0.3 resolution: "clone-response@npm:1.0.3" @@ -17725,7 +17847,7 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:^3.1.4, cross-fetch@npm:^3.1.6": +"cross-fetch@npm:^3.1.4, cross-fetch@npm:^3.1.5, cross-fetch@npm:^3.1.6": version: 3.1.8 resolution: "cross-fetch@npm:3.1.8" dependencies: @@ -28297,7 +28419,7 @@ __metadata: languageName: node linkType: hard -"long@npm:^5.2.3": +"long@npm:^5.0.0, long@npm:^5.2.0, long@npm:^5.2.3": version: 5.2.3 resolution: "long@npm:5.2.3" checksum: 885ede7c3de4facccbd2cacc6168bae3a02c3e836159ea4252c87b6e34d40af819824b2d4edce330bfb5c4d6e8ce3ec5864bdcf9473fa1f53a4f8225860e5897 @@ -32730,6 +32852,26 @@ __metadata: languageName: node linkType: hard +"protobufjs@npm:^7.0.0": + version: 7.4.0 + resolution: "protobufjs@npm:7.4.0" + dependencies: + "@protobufjs/aspromise": ^1.1.2 + "@protobufjs/base64": ^1.1.2 + "@protobufjs/codegen": ^2.0.4 + "@protobufjs/eventemitter": ^1.1.0 + "@protobufjs/fetch": ^1.1.0 + "@protobufjs/float": ^1.0.2 + "@protobufjs/inquire": ^1.1.0 + "@protobufjs/path": ^1.1.2 + "@protobufjs/pool": ^1.1.0 + "@protobufjs/utf8": ^1.1.0 + "@types/node": ">=13.7.0" + long: ^5.0.0 + checksum: ba0e6b60541bbf818bb148e90f5eb68bd99004e29a6034ad9895a381cbd352be8dce5376e47ae21b2e05559f2505b4a5f4a3c8fa62402822c6ab4dcdfb89ffb3 + languageName: node + linkType: hard + "protocols@npm:^2.0.0, protocols@npm:^2.0.1": version: 2.0.1 resolution: "protocols@npm:2.0.1" @@ -35130,6 +35272,15 @@ __metadata: languageName: node linkType: hard +"shallow-clone@npm:^3.0.0": + version: 3.0.1 + resolution: "shallow-clone@npm:3.0.1" + dependencies: + kind-of: ^6.0.2 + checksum: 39b3dd9630a774aba288a680e7d2901f5c0eae7b8387fc5c8ea559918b29b3da144b7bdb990d7ccd9e11be05508ac9e459ce51d01fd65e583282f6ffafcba2e7 + languageName: node + linkType: hard + "shebang-command@npm:^1.2.0": version: 1.2.0 resolution: "shebang-command@npm:1.2.0" @@ -35381,7 +35532,7 @@ __metadata: languageName: node linkType: hard -"socket.io-client@npm:^4.5.1": +"socket.io-client@npm:^4.5.1, socket.io-client@npm:^4.6.1": version: 4.7.5 resolution: "socket.io-client@npm:4.7.5" dependencies: @@ -35898,6 +36049,22 @@ __metadata: languageName: node linkType: hard +"standard-error@npm:>= 1.1.0 < 2": + version: 1.1.0 + resolution: "standard-error@npm:1.1.0" + checksum: 19dd2d05a0dd8aeadee2cbbe38298fad7c60f32ba809e7eb7357f05a38bf8b32288d7b66038cbccd51bbfd57162a76ec64c5cfe0311c417712b042697af6fdeb + languageName: node + linkType: hard + +"standard-http-error@npm:^2.0.1": + version: 2.0.1 + resolution: "standard-http-error@npm:2.0.1" + dependencies: + standard-error: ">= 1.1.0 < 2" + checksum: b2e37239f473be67912b92daff4e61b268f62b1575ab0c1320240d88d6a160720c55f7af56f744fa93280e6c20967770db117b3a814737d11fa1ed7347339cac + languageName: node + linkType: hard + "static-extend@npm:^0.1.1": version: 0.1.2 resolution: "static-extend@npm:0.1.2" @@ -36069,6 +36236,13 @@ __metadata: languageName: node linkType: hard +"string-similarity-js@npm:^2.1.4": + version: 2.1.4 + resolution: "string-similarity-js@npm:2.1.4" + checksum: d041dde12110f66083655de2b4a4b7b7cd4420c2f39677d6969d683d599966c4b71b45a3f5a0d6fcde1b3a009f79e32c49ddecfd877e87d8daf0b6350b5a6adf + languageName: node + linkType: hard + "string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^1.0.2 || 2 || 3 || 4, string-width@npm:^4.0.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.2, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" @@ -38024,7 +38198,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5": +"typescript@npm:*, typescript@npm:^5": version: 5.6.2 resolution: "typescript@npm:5.6.2" bin: @@ -38044,7 +38218,7 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@^5#~builtin<compat/typescript>": +"typescript@patch:typescript@*#~builtin<compat/typescript>, typescript@patch:typescript@^5#~builtin<compat/typescript>": version: 5.6.2 resolution: "typescript@patch:typescript@npm%3A5.6.2#~builtin<compat/typescript>::version=5.6.2&hash=14eedb" bin: