diff --git a/package.json b/package.json index f0d2afda3cc..1e474f2a3f2 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@rabby-wallet/eth-trezor-keyring": "2.6.4", "@rabby-wallet/eth-walletconnect-keyring": "2.1.7", "@rabby-wallet/eth-watch-keyring": "1.0.0", - "@rabby-wallet/gnosis-sdk": "1.4.5", + "@rabby-wallet/gnosis-sdk": "1.4.6", "@rabby-wallet/hyperliquid-sdk": "1.1.1", "@rabby-wallet/page-provider": "0.4.10", "@rabby-wallet/rabby-action": "0.1.14", diff --git a/src/background/controller/wallet.ts b/src/background/controller/wallet.ts index 45aa66f4bd5..24404c3fd3f 100644 --- a/src/background/controller/wallet.ts +++ b/src/background/controller/wallet.ts @@ -50,7 +50,6 @@ import { WALLET_BRAND_CONTENT, CHAINS_ENUM, KEYRING_TYPE, - GNOSIS_SUPPORT_CHAINS, INTERNAL_REQUEST_SESSION, DARK_MODE_TYPE, KEYRING_CLASS, @@ -179,6 +178,7 @@ import { CROSS_CHAIN_SEAPORT_V1_6_ADDRESS } from '@opensea/seaport-js/lib/consta import { buildCreateListingTypedData } from '@/utils/nft'; import { http } from '../utils/http'; import { getPerpsSDK } from '@/ui/views/Perps/sdkManager'; +import { GNOSIS_SUPPORT_CHAINS } from '@rabby-wallet/gnosis-sdk/dist/api'; const stashKeyrings: Record = {}; @@ -188,7 +188,7 @@ const gnosisPQueue = new PQueue({ interval: 1000, intervalCap: 5, carryoverConcurrencyCount: false, - concurrency: 5, + concurrency: 2, }); export class WalletController extends BaseController { diff --git a/src/constant/index.ts b/src/constant/index.ts index 55522a24d51..8ed9fda8d38 100644 --- a/src/constant/index.ts +++ b/src/constant/index.ts @@ -1461,32 +1461,6 @@ export const BRAND_ALIAN_TYPE_TEXT = { [KEYRING_CLASS.HARDWARE.IMKEY]: 'imKey', }; -export const GNOSIS_SUPPORT_CHAINS = [ - CHAINS_ENUM.ETH, - CHAINS_ENUM.BSC, - CHAINS_ENUM.POLYGON, - CHAINS_ENUM.GNOSIS, - CHAINS_ENUM.AVAX, - CHAINS_ENUM.OP, - CHAINS_ENUM.ARBITRUM, - CHAINS_ENUM.AURORA, - CHAINS_ENUM.BASE, - CHAINS_ENUM.CELO, - CHAINS_ENUM.PZE, - CHAINS_ENUM.ERA, - CHAINS_ENUM.SCRL, - CHAINS_ENUM.LINEA, - 'XLAYER', - CHAINS_ENUM.MANTLE, - 'WORLD', - CHAINS_ENUM.BLAST, - 'SONIC', - 'BERA', - 'INK', - 'HEMI', - 'KATANA', -]; - export const COBO_ARGUS_SUPPORT_CHAINS = ensureChainListValid([ CHAINS_ENUM.ETH, CHAINS_ENUM.OP, diff --git a/yarn.lock b/yarn.lock index 6c7f1265a8a..63c5fc6ab86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4622,10 +4622,10 @@ events "^3.3.0" web3-utils "^1.6.0" -"@rabby-wallet/gnosis-sdk@1.4.5": - version "1.4.5" - resolved "https://registry.yarnpkg.com/@rabby-wallet/gnosis-sdk/-/gnosis-sdk-1.4.5.tgz#2be23706c1f39fb71a7962e96ea3a4ce95aa13e0" - integrity sha512-kr1DWbNVr6tgrRtJK82RCBTplxdly7aRINwsez4ZSK5FN3cukNIMiRrLN0QnMpKso2yXy7ABApHrqdRBHxhtug== +"@rabby-wallet/gnosis-sdk@1.4.6": + version "1.4.6" + resolved "https://registry.yarnpkg.com/@rabby-wallet/gnosis-sdk/-/gnosis-sdk-1.4.6.tgz#ce93ef994e81d02be7f357ea41b8b6c548b63a2c" + integrity sha512-LRuK9wmrV2mOJTC5eYrCgefZoDFnUVCjcloK6114wxYXImWNqiiWYOZus7js+BhPklIeIBWDRGSUlomJAkEMUg== dependencies: "@ethersproject/bignumber" "5.5.0" "@ethersproject/bytes" "5.5.0" @@ -4634,7 +4634,7 @@ "@ethersproject/solidity" "5.5.0" "@safe-global/api-kit" "4.0.0" "@safe-global/protocol-kit" "5.2.1" - "@safe-global/safe-deployments" "1.37.36" + "@safe-global/safe-deployments" "1.37.49" "@safe-global/types-kit" "1.0.2" axios "0.24.0" ethereumjs-util "7.1.3" @@ -4887,10 +4887,10 @@ "@safe-global/types-kit" "^1.0.1" viem "^2.21.8" -"@safe-global/safe-deployments@1.37.36": - version "1.37.36" - resolved "https://registry.yarnpkg.com/@safe-global/safe-deployments/-/safe-deployments-1.37.36.tgz#1c463cc9000af600056f5e1874527b5679b62505" - integrity sha512-h9vuA659vvjJKf7wgoV5iPIHXWEQMoSkXAIZ2CJEoBteP9vP4LjyuPFp+wVQ6WyQSeHi22HjrlvGXxZD72Kqqw== +"@safe-global/safe-deployments@1.37.49": + version "1.37.49" + resolved "https://registry.yarnpkg.com/@safe-global/safe-deployments/-/safe-deployments-1.37.49.tgz#d01b70ec9178e3c7ad03aa0504977d1b4d001307" + integrity sha512-132QgqMY1/HktXqmda/uPp5b+73UXTgKRB00Xgc1kduFqceSw/ZyF1Q9jJjbND9q91hhapnXhYKWN2/HiWkRcg== dependencies: semver "^7.6.2"