@openocean.finance/widget 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openocean.finance/widget",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.56",
|
|
4
4
|
"description": "Openocean Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@mui/icons-material": "6.0.2",
|
|
52
52
|
"@mui/material": "^6.4.8",
|
|
53
53
|
"@mui/system": "^6.4.8",
|
|
54
|
-
"@openocean.finance/wallet-management": "^1.0.
|
|
55
|
-
"@openocean.finance/widget-sdk": "^1.0.
|
|
54
|
+
"@openocean.finance/wallet-management": "^1.0.17",
|
|
55
|
+
"@openocean.finance/widget-sdk": "^1.0.17",
|
|
56
56
|
"@relayprotocol/relay-bitcoin-wallet-adapter": "^11.0.1",
|
|
57
57
|
"@reservoir0x/relay-sdk": "^2.4.0",
|
|
58
58
|
"@relayprotocol/relay-sdk": "^5.1.0",
|
|
@@ -187,8 +187,8 @@ export const MAINNET_NETWORKS = [
|
|
|
187
187
|
ChainId.POL,
|
|
188
188
|
ChainId.ARB,
|
|
189
189
|
ChainId.OPT,
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
ChainId.FTM,
|
|
191
|
+
ChainId.MAM,
|
|
192
192
|
ChainId.HYE,
|
|
193
193
|
ChainId.MNT,
|
|
194
194
|
ChainId.SON,
|
|
@@ -200,6 +200,12 @@ export const MAINNET_NETWORKS = [
|
|
|
200
200
|
ChainId.FLR,
|
|
201
201
|
ChainId.CRO,
|
|
202
202
|
ChainId.RSK,
|
|
203
|
+
ChainId.MOD,
|
|
204
|
+
ChainId.ONE,
|
|
205
|
+
ChainId.MAM,
|
|
206
|
+
ChainId.KAVA,
|
|
207
|
+
ChainId.TLO,
|
|
208
|
+
ChainId.TAC,
|
|
203
209
|
] as const
|
|
204
210
|
|
|
205
211
|
export interface Currency {
|
package/src/hooks/useExplorer.ts
CHANGED
|
@@ -20,10 +20,11 @@ export const useExplorer = () => {
|
|
|
20
20
|
const { getChainById } = useAvailableChains()
|
|
21
21
|
|
|
22
22
|
const getBaseUrl = (chain: Chain) => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
let baseUrl = explorerUrls?.[chain.id]?.[0] ??
|
|
24
|
+
chain?.metamask?.blockExplorerUrls?.[0]
|
|
25
|
+
if (!baseUrl && chain.blockExplorerUrl) {
|
|
26
|
+
baseUrl = chain.blockExplorerUrl
|
|
27
|
+
}
|
|
27
28
|
return sanitiseBaseUrl(baseUrl)
|
|
28
29
|
}
|
|
29
30
|
|