@talken/talkenkit 2.3.7 → 2.3.8
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/LICENSE +9 -0
- package/dist/Arc-ILTINY4C.js +8 -0
- package/dist/Brave-4L5B7JJR.js +8 -0
- package/dist/Browser-XMB4J5WD.js +8 -0
- package/dist/Chrome-6ZDQIHC5.js +8 -0
- package/dist/Edge-OAWCEU7H.js +8 -0
- package/dist/Firefox-O66FZK3V.js +8 -0
- package/dist/Linux-NUJF4EPC.js +8 -0
- package/dist/Macos-46EJ2NPK.js +8 -0
- package/dist/Opera-KTUB3UWN.js +8 -0
- package/dist/Safari-A3Q6PIT2.js +8 -0
- package/dist/Windows-NL32NG52.js +8 -0
- package/dist/abcWallet-ES4OPRSK.js +8 -0
- package/dist/ar_AR-YBBYUEGS.js +8 -0
- package/dist/arbitrum-D2TUFPZI.js +8 -0
- package/dist/argentWallet-A5HM5FRP.js +8 -0
- package/dist/assets-4NDWRKXE.js +8 -0
- package/dist/avalanche-BOOSH35S.js +8 -0
- package/dist/base-3JMRS35B.js +8 -0
- package/dist/berasigWallet-6IOU73YL.js +8 -0
- package/dist/bestWallet-6LJUU6OL.js +8 -0
- package/dist/bifrostWallet-SLPPXZ2K.js +8 -0
- package/dist/binanceWallet-Z67J7362.js +8 -0
- package/dist/bitgetWallet-DLLOWMCI.js +8 -0
- package/dist/bitskiWallet-CPOXGABT.js +8 -0
- package/dist/bitverseWallet-SAK4MIS6.js +8 -0
- package/dist/blast-4GF24NR7.js +8 -0
- package/dist/bloomWallet-YIRCNQZJ.js +8 -0
- package/dist/braveWallet-PNBKQKJC.js +8 -0
- package/dist/bsc-KU6MBOYR.js +8 -0
- package/dist/bybitWallet-GCDBAJKO.js +8 -0
- package/dist/celo-5A5VXMPX.js +8 -0
- package/dist/chunk-TJX4M23U.js +27 -0
- package/dist/clvWallet-R6YRCMZO.js +8 -0
- package/dist/coin98Wallet-4Y3ROAGP.js +8 -0
- package/dist/coinbaseWallet-L4QDZB5W.js +8 -0
- package/dist/compassWallet-NNBX35AV.js +8 -0
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +1 -1
- package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +1 -1
- package/dist/config/networks.d.ts +125 -0
- package/dist/connect-Q2RLUT5B.js +8 -0
- package/dist/contexts/index.d.ts +2 -2
- package/dist/coreWallet-PN2LMNGN.js +8 -0
- package/dist/create-HQ4QXTKY.js +8 -0
- package/dist/cronos-KZAB32FC.js +8 -0
- package/dist/dawnWallet-AMO43DL3.js +8 -0
- package/dist/de_DE-RUWMVYCQ.js +8 -0
- package/dist/desigWallet-AD335WX5.js +8 -0
- package/dist/en_US-NQ25CUR4.js +8 -0
- package/dist/enkryptWallet-OOP27GE2.js +8 -0
- package/dist/es_419-HKJPYJRI.js +8 -0
- package/dist/ethereum-WAFT6DML.js +8 -0
- package/dist/flow-XANNOAPJ.js +8 -0
- package/dist/foxWallet-UDUWOW52.js +8 -0
- package/dist/fr_FR-2O5ZDLPQ.js +1356 -0
- package/dist/frameWallet-BEABTFIT.js +8 -0
- package/dist/frontierWallet-RG47M3C5.js +8 -0
- package/dist/gateWallet-XOP74BMB.js +8 -0
- package/dist/gnosis-7GFI4V27.js +8 -0
- package/dist/hardhat-6HKZWC4T.js +8 -0
- package/dist/hi_IN-XRZ4YIUW.js +8 -0
- package/dist/id_ID-REEY4CSS.js +8 -0
- package/dist/imTokenWallet-LTPKXYUD.js +8 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1114 -403
- package/dist/injectedWallet-YCFZTULL.js +8 -0
- package/dist/iopayWallet-XS37QAUO.js +8 -0
- package/dist/ja_JP-2OPCVN6X.js +8 -0
- package/dist/kaia-DQ3OSYXE.js +8 -0
- package/dist/kaiaWallet-2XZDQZ63.js +8 -0
- package/dist/kaikasWallet-V2GCFPEB.js +8 -0
- package/dist/ko_KR-DDXBZTYT.js +8 -0
- package/dist/krakenWallet-3VM7ZM2O.js +8 -0
- package/dist/kresusWallet-4MXFQP4P.js +8 -0
- package/dist/ledgerWallet-YC3HF3NJ.js +8 -0
- package/dist/login-DGIK764Z.js +8 -0
- package/dist/magicEden-BLYGUG47.js +8 -0
- package/dist/manta-OEF3QP66.js +8 -0
- package/dist/mantle-EYIH4GGM.js +8 -0
- package/dist/metaMaskWallet-ZZMFVM52.js +8 -0
- package/dist/mewWallet-D6JN37EZ.js +8 -0
- package/dist/ms_MY-PX7G4XTD.js +8 -0
- package/dist/nestWallet-X3CDHKNV.js +8 -0
- package/dist/oktoWallet-ZYLL2RLN.js +8 -0
- package/dist/okxWallet-FLICEG4S.js +8 -0
- package/dist/omniWallet-DAQHKHUN.js +8 -0
- package/dist/oneInchWallet-BRGGUXND.js +8 -0
- package/dist/oneKeyWallet-KDU2JIFD.js +8 -0
- package/dist/optimism-6GXRYJDW.js +8 -0
- package/dist/paraSwapWallet-7UHWT54G.js +8 -0
- package/dist/phantomWallet-BSCGZT6L.js +8 -0
- package/dist/polygon-YNJM552P.js +8 -0
- package/dist/pt_BR-A5R4SBSC.js +8 -0
- package/dist/rabbyWallet-RZIUL3YN.js +8 -0
- package/dist/rainbowWallet-4ALDT5ZL.js +8 -0
- package/dist/ramperWallet-IB3JRE2F.js +8 -0
- package/dist/refresh-R5NYTT3S.js +8 -0
- package/dist/ronin-LU7LZPWA.js +8 -0
- package/dist/roninWallet-BS7VDK7U.js +8 -0
- package/dist/ru_RU-4QDZLRSW.js +1356 -0
- package/dist/safeWallet-5NR62MJV.js +8 -0
- package/dist/safeheronWallet-7ELUSU44.js +8 -0
- package/dist/safepalWallet-CZJABQ5N.js +8 -0
- package/dist/scan-BVZ7DVJ4.js +8 -0
- package/dist/scroll-XRP46UTI.js +8 -0
- package/dist/secure-GEK7TTJY.js +8 -0
- package/dist/seifWallet-XLBMTX4R.js +8 -0
- package/dist/sign-PREOQ4RR.js +8 -0
- package/dist/solana/SolanaWalletProvider.d.ts +1 -1
- package/dist/subWallet-47USA4OE.js +8 -0
- package/dist/tahoWallet-N3XXJ3NW.js +8 -0
- package/dist/talismanWallet-SV3B42TQ.js +8 -0
- package/dist/th_TH-4TWPYDKX.js +1356 -0
- package/dist/themes/baseTheme.js +1 -0
- package/dist/themes/darkTheme.js +1 -0
- package/dist/themes/lightTheme.js +1 -0
- package/dist/themes/midnightTheme.js +1 -0
- package/dist/tokenPocketWallet-7IYW3MIL.js +8 -0
- package/dist/tokenaryWallet-7D2LN65X.js +8 -0
- package/dist/tr_TR-C37KIU7M.js +1356 -0
- package/dist/trustWallet-HJQBMBC6.js +8 -0
- package/dist/uk_UA-I77HS4GO.js +1356 -0
- package/dist/uniswapWallet-JZ2ULELN.js +8 -0
- package/dist/utils/abcWaasAdapter.d.ts +75 -0
- package/dist/valoraWallet-PCTL6UBB.js +8 -0
- package/dist/vi_VN-KVPDLW26.js +8 -0
- package/dist/walletConnectWallet-AJ36XVBT.js +8 -0
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.d.ts +11 -8
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.d.ts +4 -11
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/api/BitcoinApi.d.ts +1 -19
- package/dist/wallets/walletConnectors/abcWallet/api/BitcoinApi.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +6 -6
- package/dist/wallets/walletConnectors/abcWallet/index.js +6 -6
- package/dist/wallets/walletConnectors/abcWallet/types.d.ts +2 -0
- package/dist/wallets/walletConnectors/chunk-2GIBC7XF.js +39 -0
- package/dist/wallets/walletConnectors/chunk-2J66VMY5.js +152 -0
- package/dist/wallets/walletConnectors/chunk-34WMJDUY.js +481 -0
- package/dist/wallets/walletConnectors/chunk-3J3XZMJ7.js +39 -0
- package/dist/wallets/walletConnectors/chunk-4IRVZPIN.js +63 -0
- package/dist/wallets/walletConnectors/chunk-5OFAP55G.js +44 -0
- package/dist/wallets/walletConnectors/chunk-6YPK343Z.js +63 -0
- package/dist/wallets/walletConnectors/chunk-7P5HZGEV.js +627 -0
- package/dist/wallets/walletConnectors/chunk-A6LBRVGP.js +63 -0
- package/dist/wallets/walletConnectors/chunk-BKXPGZMQ.js +228 -0
- package/dist/wallets/walletConnectors/chunk-CNHVIXPV.js +228 -0
- package/dist/wallets/walletConnectors/chunk-DAZZIITX.js +1678 -0
- package/dist/wallets/walletConnectors/chunk-ESRU5KCF.js +151 -0
- package/dist/wallets/walletConnectors/chunk-F4JFONDA.js +601 -0
- package/dist/wallets/walletConnectors/chunk-GXHCAEWR.js +63 -0
- package/dist/wallets/walletConnectors/chunk-HDYBRMYW.js +194 -0
- package/dist/wallets/walletConnectors/chunk-HOE4UOHR.js +514 -0
- package/dist/wallets/walletConnectors/chunk-JJAJOFZI.js +63 -0
- package/dist/wallets/walletConnectors/chunk-KFIUFVQH.js +624 -0
- package/dist/wallets/walletConnectors/chunk-KFROJI25.js +535 -0
- package/dist/wallets/walletConnectors/chunk-KHVILXGK.js +514 -0
- package/dist/wallets/walletConnectors/chunk-LGT7LQAJ.js +63 -0
- package/dist/wallets/walletConnectors/chunk-LHBQ2Z3Q.js +63 -0
- package/dist/wallets/walletConnectors/chunk-M76GLEFL.js +63 -0
- package/dist/wallets/walletConnectors/chunk-MFIE6UCG.js +63 -0
- package/dist/wallets/walletConnectors/chunk-NKJLO4QH.js +39 -0
- package/dist/wallets/walletConnectors/chunk-NURTFXQU.js +568 -0
- package/dist/wallets/walletConnectors/chunk-NWDLOM7Q.js +646 -0
- package/dist/wallets/walletConnectors/chunk-OHRTTVNJ.js +44 -0
- package/dist/wallets/walletConnectors/chunk-OMYDLPUM.js +63 -0
- package/dist/wallets/walletConnectors/chunk-P2MTINFI.js +280 -0
- package/dist/wallets/walletConnectors/chunk-PUFQKZA7.js +63 -0
- package/dist/wallets/walletConnectors/chunk-RLBGBBIO.js +309 -0
- package/dist/wallets/walletConnectors/chunk-S2B56ZVJ.js +481 -0
- package/dist/wallets/walletConnectors/chunk-SFP47DS6.js +63 -0
- package/dist/wallets/walletConnectors/chunk-SNZL5LJ6.js +637 -0
- package/dist/wallets/walletConnectors/chunk-SPR4W5TG.js +474 -0
- package/dist/wallets/walletConnectors/chunk-SSDCG5BG.js +63 -0
- package/dist/wallets/walletConnectors/chunk-TUUNSVKZ.js +345 -0
- package/dist/wallets/walletConnectors/chunk-U2CUEL35.js +240 -0
- package/dist/wallets/walletConnectors/chunk-VLEVJVJR.js +63 -0
- package/dist/wallets/walletConnectors/chunk-W2VDZD74.js +478 -0
- package/dist/wallets/walletConnectors/chunk-WAO3KL5U.js +285 -0
- package/dist/wallets/walletConnectors/chunk-WYSKBMHW.js +280 -0
- package/dist/wallets/walletConnectors/chunk-XYPR4BAF.js +436 -0
- package/dist/wallets/walletConnectors/index.js +58 -58
- package/dist/wigwamWallet-D3MVGB5Z.js +8 -0
- package/dist/xdc-5NQHQJE5.js +8 -0
- package/dist/xdefiWallet-B4O6HAIP.js +8 -0
- package/dist/zealWallet-6SPNICRX.js +8 -0
- package/dist/zerionWallet-XZ3JCAOO.js +8 -0
- package/dist/zetachain-U6IILKZJ.js +8 -0
- package/dist/zh_CN-KGLAIP3N.js +8 -0
- package/dist/zh_HK-AEXEN6P6.js +8 -0
- package/dist/zh_TW-6C7R5V3K.js +8 -0
- package/dist/zkSync-TMPB52ZN.js +8 -0
- package/dist/zora-S46CHEOU.js +8 -0
- package/package.json +11 -12
package/dist/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
TOKEN_EXPIRY,
|
|
10
10
|
secure_default
|
|
11
11
|
} from "./chunk-Y7ZSI2YC.js";
|
|
12
|
-
import {
|
|
13
|
-
darkTheme
|
|
14
|
-
} from "./chunk-RZWDCITT.js";
|
|
15
12
|
import {
|
|
16
13
|
lightTheme
|
|
17
14
|
} from "./chunk-72HZGUJA.js";
|
|
15
|
+
import {
|
|
16
|
+
darkTheme
|
|
17
|
+
} from "./chunk-RZWDCITT.js";
|
|
18
18
|
import {
|
|
19
19
|
midnightTheme
|
|
20
20
|
} from "./chunk-7ZP3ENJ2.js";
|
|
@@ -22,6 +22,743 @@ import "./chunk-DQLAW7KN.js";
|
|
|
22
22
|
import {
|
|
23
23
|
en_US_default
|
|
24
24
|
} from "./chunk-X4GSACNW.js";
|
|
25
|
+
import {
|
|
26
|
+
__esm,
|
|
27
|
+
__export,
|
|
28
|
+
__toCommonJS
|
|
29
|
+
} from "./chunk-TJX4M23U.js";
|
|
30
|
+
|
|
31
|
+
// src/config/networks.ts
|
|
32
|
+
var networks_exports = {};
|
|
33
|
+
__export(networks_exports, {
|
|
34
|
+
NETWORK_BY_PARAM: () => NETWORK_BY_PARAM,
|
|
35
|
+
NETWORK_CONFIGS: () => NETWORK_CONFIGS,
|
|
36
|
+
NetworkType: () => NetworkType,
|
|
37
|
+
chainIdToNetwork: () => chainIdToNetwork,
|
|
38
|
+
getExplorerAddressUrl: () => getExplorerAddressUrl,
|
|
39
|
+
getExplorerTxUrl: () => getExplorerTxUrl,
|
|
40
|
+
getNetworkByChainId: () => getNetworkByChainId,
|
|
41
|
+
getNetworkByParam: () => getNetworkByParam,
|
|
42
|
+
getSupportedChainIds: () => getSupportedChainIds,
|
|
43
|
+
getSupportedNetworks: () => getSupportedNetworks,
|
|
44
|
+
isEvmNetwork: () => isEvmNetwork,
|
|
45
|
+
isTestnet: () => isTestnet,
|
|
46
|
+
networkToChainId: () => networkToChainId
|
|
47
|
+
});
|
|
48
|
+
function getNetworkByChainId(chainId) {
|
|
49
|
+
return NETWORK_CONFIGS[chainId];
|
|
50
|
+
}
|
|
51
|
+
function getNetworkByParam(network) {
|
|
52
|
+
return NETWORK_BY_PARAM[network];
|
|
53
|
+
}
|
|
54
|
+
function chainIdToNetwork(chainId) {
|
|
55
|
+
return NETWORK_CONFIGS[chainId]?.network;
|
|
56
|
+
}
|
|
57
|
+
function networkToChainId(network) {
|
|
58
|
+
return NETWORK_BY_PARAM[network]?.chainId;
|
|
59
|
+
}
|
|
60
|
+
function getExplorerTxUrl(chainIdOrNetwork, txHash) {
|
|
61
|
+
const config2 = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
|
|
62
|
+
if (!config2) {
|
|
63
|
+
throw new Error(`Unknown network: ${chainIdOrNetwork}`);
|
|
64
|
+
}
|
|
65
|
+
return `${config2.explorer}/tx/${txHash}`;
|
|
66
|
+
}
|
|
67
|
+
function getExplorerAddressUrl(chainIdOrNetwork, address) {
|
|
68
|
+
const config2 = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
|
|
69
|
+
if (!config2) {
|
|
70
|
+
throw new Error(`Unknown network: ${chainIdOrNetwork}`);
|
|
71
|
+
}
|
|
72
|
+
return `${config2.explorer}/address/${address}`;
|
|
73
|
+
}
|
|
74
|
+
function isEvmNetwork(chainIdOrNetwork) {
|
|
75
|
+
const config2 = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
|
|
76
|
+
return config2?.type === "EVM" /* EVM */;
|
|
77
|
+
}
|
|
78
|
+
function isTestnet(chainIdOrNetwork) {
|
|
79
|
+
const config2 = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
|
|
80
|
+
return config2?.isTestnet ?? false;
|
|
81
|
+
}
|
|
82
|
+
function getSupportedChainIds(includeTestnets = true) {
|
|
83
|
+
return Object.values(NETWORK_CONFIGS).filter(
|
|
84
|
+
(config2) => config2.chainId !== null && (includeTestnets || !config2.isTestnet)
|
|
85
|
+
).map((config2) => config2.chainId);
|
|
86
|
+
}
|
|
87
|
+
function getSupportedNetworks(includeTestnets = true) {
|
|
88
|
+
return Object.values(NETWORK_CONFIGS).filter((config2) => includeTestnets || !config2.isTestnet).map((config2) => config2.network);
|
|
89
|
+
}
|
|
90
|
+
var NetworkType, NETWORK_CONFIGS, NETWORK_BY_PARAM;
|
|
91
|
+
var init_networks = __esm({
|
|
92
|
+
"src/config/networks.ts"() {
|
|
93
|
+
"use strict";
|
|
94
|
+
NetworkType = /* @__PURE__ */ ((NetworkType2) => {
|
|
95
|
+
NetworkType2["EVM"] = "EVM";
|
|
96
|
+
NetworkType2["NON_EVM"] = "Non-EVM";
|
|
97
|
+
NetworkType2["BITCOIN"] = "Bitcoin";
|
|
98
|
+
NetworkType2["TRON"] = "TRX";
|
|
99
|
+
NetworkType2["ICP"] = "ICP";
|
|
100
|
+
NetworkType2["SOLANA"] = "Solana";
|
|
101
|
+
return NetworkType2;
|
|
102
|
+
})(NetworkType || {});
|
|
103
|
+
NETWORK_CONFIGS = {
|
|
104
|
+
// Ethereum Mainnet
|
|
105
|
+
1: {
|
|
106
|
+
chainId: 1,
|
|
107
|
+
network: "ethereum",
|
|
108
|
+
name: "Ethereum",
|
|
109
|
+
type: "EVM" /* EVM */,
|
|
110
|
+
isTestnet: false,
|
|
111
|
+
explorer: "https://etherscan.io",
|
|
112
|
+
website: "https://ethereum.org",
|
|
113
|
+
nativeCurrency: {
|
|
114
|
+
name: "Ether",
|
|
115
|
+
symbol: "ETH",
|
|
116
|
+
decimals: 18
|
|
117
|
+
},
|
|
118
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
119
|
+
signSupport: { legacy: true, eip1559: true }
|
|
120
|
+
},
|
|
121
|
+
// Ethereum Sepolia Testnet
|
|
122
|
+
11155111: {
|
|
123
|
+
chainId: 11155111,
|
|
124
|
+
network: "ethereum_sepolia",
|
|
125
|
+
name: "Ethereum Sepolia",
|
|
126
|
+
type: "EVM" /* EVM */,
|
|
127
|
+
isTestnet: true,
|
|
128
|
+
explorer: "https://sepolia.etherscan.io",
|
|
129
|
+
website: "https://ethereum.org",
|
|
130
|
+
nativeCurrency: {
|
|
131
|
+
name: "Sepolia Ether",
|
|
132
|
+
symbol: "ETH",
|
|
133
|
+
decimals: 18
|
|
134
|
+
},
|
|
135
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
136
|
+
signSupport: { legacy: true, eip1559: true }
|
|
137
|
+
},
|
|
138
|
+
// Ethereum Holesky Testnet
|
|
139
|
+
17e3: {
|
|
140
|
+
chainId: 17e3,
|
|
141
|
+
network: "ethereum_holesky",
|
|
142
|
+
name: "Ethereum Holesky",
|
|
143
|
+
type: "EVM" /* EVM */,
|
|
144
|
+
isTestnet: true,
|
|
145
|
+
explorer: "https://holesky.etherscan.io",
|
|
146
|
+
website: "https://ethereum.org",
|
|
147
|
+
nativeCurrency: {
|
|
148
|
+
name: "Holesky Ether",
|
|
149
|
+
symbol: "ETH",
|
|
150
|
+
decimals: 18
|
|
151
|
+
},
|
|
152
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
153
|
+
signSupport: { legacy: true, eip1559: true }
|
|
154
|
+
},
|
|
155
|
+
// Kaia Mainnet (formerly Klaytn)
|
|
156
|
+
8217: {
|
|
157
|
+
chainId: 8217,
|
|
158
|
+
network: "kaia",
|
|
159
|
+
name: "Kaia Mainnet",
|
|
160
|
+
type: "EVM" /* EVM */,
|
|
161
|
+
isTestnet: false,
|
|
162
|
+
explorer: "https://kaiascan.io",
|
|
163
|
+
website: "https://kaia.io",
|
|
164
|
+
nativeCurrency: {
|
|
165
|
+
name: "Kaia",
|
|
166
|
+
symbol: "KAIA",
|
|
167
|
+
decimals: 18
|
|
168
|
+
},
|
|
169
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
170
|
+
signSupport: { legacy: true, eip1559: true }
|
|
171
|
+
},
|
|
172
|
+
// Kaia Kairos Testnet
|
|
173
|
+
1001: {
|
|
174
|
+
chainId: 1001,
|
|
175
|
+
network: "kaia_kairos",
|
|
176
|
+
name: "Kaia Kairos Testnet",
|
|
177
|
+
type: "EVM" /* EVM */,
|
|
178
|
+
isTestnet: true,
|
|
179
|
+
explorer: "https://kairos.kaiascan.io",
|
|
180
|
+
website: "https://kaia.io",
|
|
181
|
+
nativeCurrency: {
|
|
182
|
+
name: "Kaia",
|
|
183
|
+
symbol: "KAIA",
|
|
184
|
+
decimals: 18
|
|
185
|
+
},
|
|
186
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
187
|
+
signSupport: { legacy: true, eip1559: true }
|
|
188
|
+
},
|
|
189
|
+
// Polygon Mainnet
|
|
190
|
+
137: {
|
|
191
|
+
chainId: 137,
|
|
192
|
+
network: "polygon",
|
|
193
|
+
name: "Polygon",
|
|
194
|
+
type: "EVM" /* EVM */,
|
|
195
|
+
isTestnet: false,
|
|
196
|
+
explorer: "https://polygonscan.com",
|
|
197
|
+
website: "https://polygon.technology",
|
|
198
|
+
nativeCurrency: {
|
|
199
|
+
name: "MATIC",
|
|
200
|
+
symbol: "MATIC",
|
|
201
|
+
decimals: 18
|
|
202
|
+
},
|
|
203
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
204
|
+
signSupport: { legacy: true, eip1559: true }
|
|
205
|
+
},
|
|
206
|
+
// Polygon Amoy Testnet
|
|
207
|
+
80001: {
|
|
208
|
+
chainId: 80001,
|
|
209
|
+
network: "polygon_amoy",
|
|
210
|
+
name: "Polygon Amoy Testnet",
|
|
211
|
+
type: "EVM" /* EVM */,
|
|
212
|
+
isTestnet: true,
|
|
213
|
+
explorer: "https://amoy.polygonscan.com",
|
|
214
|
+
website: "https://polygon.technology",
|
|
215
|
+
nativeCurrency: {
|
|
216
|
+
name: "MATIC",
|
|
217
|
+
symbol: "MATIC",
|
|
218
|
+
decimals: 18
|
|
219
|
+
},
|
|
220
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
221
|
+
signSupport: { legacy: true, eip1559: true }
|
|
222
|
+
},
|
|
223
|
+
// Binance Smart Chain Mainnet
|
|
224
|
+
56: {
|
|
225
|
+
chainId: 56,
|
|
226
|
+
network: "binance",
|
|
227
|
+
name: "Binance Smart Chain Mainnet",
|
|
228
|
+
type: "EVM" /* EVM */,
|
|
229
|
+
isTestnet: false,
|
|
230
|
+
explorer: "https://bscscan.com",
|
|
231
|
+
website: "https://www.bnbchain.org/en/bnb-smart-chain",
|
|
232
|
+
nativeCurrency: {
|
|
233
|
+
name: "BNB",
|
|
234
|
+
symbol: "BNB",
|
|
235
|
+
decimals: 18
|
|
236
|
+
},
|
|
237
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
238
|
+
signSupport: { legacy: true, eip1559: true }
|
|
239
|
+
},
|
|
240
|
+
// Binance Smart Chain Testnet
|
|
241
|
+
97: {
|
|
242
|
+
chainId: 97,
|
|
243
|
+
network: "binance_testnet",
|
|
244
|
+
name: "Binance Smart Chain Testnet",
|
|
245
|
+
type: "EVM" /* EVM */,
|
|
246
|
+
isTestnet: true,
|
|
247
|
+
explorer: "https://testnet.bscscan.com",
|
|
248
|
+
website: "https://www.bnbchain.org/en/bnb-smart-chain",
|
|
249
|
+
nativeCurrency: {
|
|
250
|
+
name: "BNB",
|
|
251
|
+
symbol: "BNB",
|
|
252
|
+
decimals: 18
|
|
253
|
+
},
|
|
254
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
255
|
+
signSupport: { legacy: true, eip1559: true }
|
|
256
|
+
},
|
|
257
|
+
// Arbitrum One
|
|
258
|
+
42161: {
|
|
259
|
+
chainId: 42161,
|
|
260
|
+
network: "arbitrum",
|
|
261
|
+
name: "Arbitrum One",
|
|
262
|
+
type: "EVM" /* EVM */,
|
|
263
|
+
isTestnet: false,
|
|
264
|
+
explorer: "https://arbiscan.io",
|
|
265
|
+
website: "https://arbitrum.io",
|
|
266
|
+
nativeCurrency: {
|
|
267
|
+
name: "Ether",
|
|
268
|
+
symbol: "ETH",
|
|
269
|
+
decimals: 18
|
|
270
|
+
},
|
|
271
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
272
|
+
signSupport: { legacy: true, eip1559: true }
|
|
273
|
+
},
|
|
274
|
+
// Arbitrum Sepolia
|
|
275
|
+
421614: {
|
|
276
|
+
chainId: 421614,
|
|
277
|
+
network: "arbitrum_sepolia",
|
|
278
|
+
name: "Arbitrum Sepolia",
|
|
279
|
+
type: "EVM" /* EVM */,
|
|
280
|
+
isTestnet: true,
|
|
281
|
+
explorer: "https://sepolia.arbiscan.io",
|
|
282
|
+
website: "https://arbitrum.io",
|
|
283
|
+
nativeCurrency: {
|
|
284
|
+
name: "Ether",
|
|
285
|
+
symbol: "ETH",
|
|
286
|
+
decimals: 18
|
|
287
|
+
},
|
|
288
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
289
|
+
signSupport: { legacy: true, eip1559: true }
|
|
290
|
+
},
|
|
291
|
+
// Optimism Mainnet
|
|
292
|
+
10: {
|
|
293
|
+
chainId: 10,
|
|
294
|
+
network: "optimism",
|
|
295
|
+
name: "Optimism",
|
|
296
|
+
type: "EVM" /* EVM */,
|
|
297
|
+
isTestnet: false,
|
|
298
|
+
explorer: "https://optimistic.etherscan.io",
|
|
299
|
+
website: "https://optimism.io",
|
|
300
|
+
nativeCurrency: {
|
|
301
|
+
name: "Ether",
|
|
302
|
+
symbol: "ETH",
|
|
303
|
+
decimals: 18
|
|
304
|
+
},
|
|
305
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
306
|
+
signSupport: { legacy: true, eip1559: true }
|
|
307
|
+
},
|
|
308
|
+
// Optimism Sepolia
|
|
309
|
+
420: {
|
|
310
|
+
chainId: 420,
|
|
311
|
+
network: "optimism_sepolia",
|
|
312
|
+
name: "Optimism Sepolia",
|
|
313
|
+
type: "EVM" /* EVM */,
|
|
314
|
+
isTestnet: true,
|
|
315
|
+
explorer: "https://sepolia-optimism.etherscan.io",
|
|
316
|
+
website: "https://optimism.io",
|
|
317
|
+
nativeCurrency: {
|
|
318
|
+
name: "Ether",
|
|
319
|
+
symbol: "ETH",
|
|
320
|
+
decimals: 18
|
|
321
|
+
},
|
|
322
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
323
|
+
signSupport: { legacy: true, eip1559: true }
|
|
324
|
+
},
|
|
325
|
+
// Avalanche C-Chain
|
|
326
|
+
43114: {
|
|
327
|
+
chainId: 43114,
|
|
328
|
+
network: "avalanche",
|
|
329
|
+
name: "Avalanche C-Chain",
|
|
330
|
+
type: "EVM" /* EVM */,
|
|
331
|
+
isTestnet: false,
|
|
332
|
+
explorer: "https://avascan.info/blockchain/c/home",
|
|
333
|
+
website: "https://avax.network",
|
|
334
|
+
nativeCurrency: {
|
|
335
|
+
name: "Avalanche",
|
|
336
|
+
symbol: "AVAX",
|
|
337
|
+
decimals: 18
|
|
338
|
+
},
|
|
339
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
340
|
+
signSupport: { legacy: true, eip1559: true }
|
|
341
|
+
},
|
|
342
|
+
// Avalanche Fuji Testnet
|
|
343
|
+
43113: {
|
|
344
|
+
chainId: 43113,
|
|
345
|
+
network: "avalanche_fuji",
|
|
346
|
+
name: "Avalanche Fuji Testnet",
|
|
347
|
+
type: "EVM" /* EVM */,
|
|
348
|
+
isTestnet: true,
|
|
349
|
+
explorer: "https://testnet.avascan.info",
|
|
350
|
+
website: "https://avax.network",
|
|
351
|
+
nativeCurrency: {
|
|
352
|
+
name: "Avalanche",
|
|
353
|
+
symbol: "AVAX",
|
|
354
|
+
decimals: 18
|
|
355
|
+
},
|
|
356
|
+
apiSupport: { tokens: false, nft: false, transactions: false },
|
|
357
|
+
signSupport: { legacy: true, eip1559: true }
|
|
358
|
+
},
|
|
359
|
+
// Mantle Mainnet
|
|
360
|
+
5e3: {
|
|
361
|
+
chainId: 5e3,
|
|
362
|
+
network: "mantle",
|
|
363
|
+
name: "Mantle Mainnet",
|
|
364
|
+
type: "EVM" /* EVM */,
|
|
365
|
+
isTestnet: false,
|
|
366
|
+
explorer: "https://explorer.mantle.xyz",
|
|
367
|
+
website: "https://www.mantle.xyz",
|
|
368
|
+
nativeCurrency: {
|
|
369
|
+
name: "Mantle",
|
|
370
|
+
symbol: "MNT",
|
|
371
|
+
decimals: 18
|
|
372
|
+
},
|
|
373
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
374
|
+
signSupport: { legacy: true, eip1559: true }
|
|
375
|
+
},
|
|
376
|
+
// Mantle Testnet
|
|
377
|
+
5001: {
|
|
378
|
+
chainId: 5001,
|
|
379
|
+
network: "mantle_testnet",
|
|
380
|
+
name: "Mantle Testnet",
|
|
381
|
+
type: "EVM" /* EVM */,
|
|
382
|
+
isTestnet: true,
|
|
383
|
+
explorer: "https://sepolia.mantlescan.xyz",
|
|
384
|
+
website: "https://www.mantle.xyz",
|
|
385
|
+
nativeCurrency: {
|
|
386
|
+
name: "Mantle",
|
|
387
|
+
symbol: "MNT",
|
|
388
|
+
decimals: 18
|
|
389
|
+
},
|
|
390
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
391
|
+
signSupport: { legacy: true, eip1559: true }
|
|
392
|
+
},
|
|
393
|
+
// Moonbeam
|
|
394
|
+
1284: {
|
|
395
|
+
chainId: 1284,
|
|
396
|
+
network: "moonbeam",
|
|
397
|
+
name: "Moonbeam",
|
|
398
|
+
type: "EVM" /* EVM */,
|
|
399
|
+
isTestnet: false,
|
|
400
|
+
explorer: "https://moonbeam.moonscan.io",
|
|
401
|
+
website: "https://moonbeam.network",
|
|
402
|
+
nativeCurrency: {
|
|
403
|
+
name: "Glimmer",
|
|
404
|
+
symbol: "GLMR",
|
|
405
|
+
decimals: 18
|
|
406
|
+
},
|
|
407
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
408
|
+
signSupport: { legacy: true, eip1559: true }
|
|
409
|
+
},
|
|
410
|
+
// Moonriver
|
|
411
|
+
1285: {
|
|
412
|
+
chainId: 1285,
|
|
413
|
+
network: "moonriver",
|
|
414
|
+
name: "Moonriver",
|
|
415
|
+
type: "EVM" /* EVM */,
|
|
416
|
+
isTestnet: false,
|
|
417
|
+
explorer: "https://moonriver.moonscan.io",
|
|
418
|
+
website: "https://moonbeam.network/networks/moonriver",
|
|
419
|
+
nativeCurrency: {
|
|
420
|
+
name: "Moonriver",
|
|
421
|
+
symbol: "MOVR",
|
|
422
|
+
decimals: 18
|
|
423
|
+
},
|
|
424
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
425
|
+
signSupport: { legacy: true, eip1559: true }
|
|
426
|
+
},
|
|
427
|
+
// Scroll Mainnet
|
|
428
|
+
534352: {
|
|
429
|
+
chainId: 534352,
|
|
430
|
+
network: "scroll",
|
|
431
|
+
name: "Scroll",
|
|
432
|
+
type: "EVM" /* EVM */,
|
|
433
|
+
isTestnet: false,
|
|
434
|
+
explorer: "https://scrollscan.co",
|
|
435
|
+
website: "https://scroll.io",
|
|
436
|
+
nativeCurrency: {
|
|
437
|
+
name: "Ether",
|
|
438
|
+
symbol: "ETH",
|
|
439
|
+
decimals: 18
|
|
440
|
+
},
|
|
441
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
442
|
+
signSupport: { legacy: true, eip1559: true }
|
|
443
|
+
},
|
|
444
|
+
// Scroll Testnet
|
|
445
|
+
534351: {
|
|
446
|
+
chainId: 534351,
|
|
447
|
+
network: "scroll_testnet",
|
|
448
|
+
name: "Scroll Testnet",
|
|
449
|
+
type: "EVM" /* EVM */,
|
|
450
|
+
isTestnet: true,
|
|
451
|
+
explorer: "https://sepolia.scrollscan.com",
|
|
452
|
+
website: "https://scroll.io",
|
|
453
|
+
nativeCurrency: {
|
|
454
|
+
name: "Ether",
|
|
455
|
+
symbol: "ETH",
|
|
456
|
+
decimals: 18
|
|
457
|
+
},
|
|
458
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
459
|
+
signSupport: { legacy: true, eip1559: true }
|
|
460
|
+
},
|
|
461
|
+
// Silicon Mainnet
|
|
462
|
+
2355: {
|
|
463
|
+
chainId: 2355,
|
|
464
|
+
network: "silicon",
|
|
465
|
+
name: "Silicon",
|
|
466
|
+
type: "EVM" /* EVM */,
|
|
467
|
+
isTestnet: false,
|
|
468
|
+
explorer: "https://scope.silicon.network",
|
|
469
|
+
website: "https://silicon.network",
|
|
470
|
+
nativeCurrency: {
|
|
471
|
+
name: "Ether",
|
|
472
|
+
symbol: "ETH",
|
|
473
|
+
decimals: 18
|
|
474
|
+
},
|
|
475
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
476
|
+
signSupport: { legacy: true, eip1559: true }
|
|
477
|
+
},
|
|
478
|
+
// Silicon Sepolia
|
|
479
|
+
1722641160: {
|
|
480
|
+
chainId: 1722641160,
|
|
481
|
+
network: "silicon_sepolia",
|
|
482
|
+
name: "Silicon Sepolia",
|
|
483
|
+
type: "EVM" /* EVM */,
|
|
484
|
+
isTestnet: true,
|
|
485
|
+
explorer: "https://scope-sepolia.silicon.network",
|
|
486
|
+
website: "https://silicon.network",
|
|
487
|
+
nativeCurrency: {
|
|
488
|
+
name: "Ether",
|
|
489
|
+
symbol: "ETH",
|
|
490
|
+
decimals: 18
|
|
491
|
+
},
|
|
492
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
493
|
+
signSupport: { legacy: true, eip1559: true }
|
|
494
|
+
},
|
|
495
|
+
// Six Protocol
|
|
496
|
+
98: {
|
|
497
|
+
chainId: 98,
|
|
498
|
+
network: "six_evm",
|
|
499
|
+
name: "Six Protocol",
|
|
500
|
+
type: "EVM" /* EVM */,
|
|
501
|
+
isTestnet: false,
|
|
502
|
+
explorer: "https://v2.sixscan.io",
|
|
503
|
+
website: "https://www.six.network",
|
|
504
|
+
nativeCurrency: {
|
|
505
|
+
name: "SIX",
|
|
506
|
+
symbol: "SIX",
|
|
507
|
+
decimals: 18
|
|
508
|
+
},
|
|
509
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
510
|
+
signSupport: { legacy: true, eip1559: false }
|
|
511
|
+
},
|
|
512
|
+
// Six Protocol Testnet
|
|
513
|
+
150: {
|
|
514
|
+
chainId: 150,
|
|
515
|
+
network: "six_evm_testnet",
|
|
516
|
+
name: "Six Protocol Testnet",
|
|
517
|
+
type: "EVM" /* EVM */,
|
|
518
|
+
isTestnet: true,
|
|
519
|
+
explorer: "https://v2.fivenet.sixscan.io",
|
|
520
|
+
website: "https://www.six.network",
|
|
521
|
+
nativeCurrency: {
|
|
522
|
+
name: "SIX",
|
|
523
|
+
symbol: "SIX",
|
|
524
|
+
decimals: 18
|
|
525
|
+
},
|
|
526
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
527
|
+
signSupport: { legacy: true, eip1559: false }
|
|
528
|
+
},
|
|
529
|
+
// Wemix Mainnet
|
|
530
|
+
1111: {
|
|
531
|
+
chainId: 1111,
|
|
532
|
+
network: "wemix",
|
|
533
|
+
name: "Wemix3.0 Mainnet",
|
|
534
|
+
type: "EVM" /* EVM */,
|
|
535
|
+
isTestnet: false,
|
|
536
|
+
explorer: "https://explorer.wemix.com",
|
|
537
|
+
website: "https://wemix.com",
|
|
538
|
+
nativeCurrency: {
|
|
539
|
+
name: "WEMIX",
|
|
540
|
+
symbol: "WEMIX",
|
|
541
|
+
decimals: 18
|
|
542
|
+
},
|
|
543
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
544
|
+
signSupport: { legacy: true, eip1559: true }
|
|
545
|
+
},
|
|
546
|
+
// Wemix Testnet
|
|
547
|
+
1112: {
|
|
548
|
+
chainId: 1112,
|
|
549
|
+
network: "wemix_testnet",
|
|
550
|
+
name: "Wemix3.0 Testnet",
|
|
551
|
+
type: "EVM" /* EVM */,
|
|
552
|
+
isTestnet: true,
|
|
553
|
+
explorer: "https://explorer.test.wemix.com",
|
|
554
|
+
website: "https://wemix.com",
|
|
555
|
+
nativeCurrency: {
|
|
556
|
+
name: "WEMIX",
|
|
557
|
+
symbol: "WEMIX",
|
|
558
|
+
decimals: 18
|
|
559
|
+
},
|
|
560
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
561
|
+
signSupport: { legacy: true, eip1559: true }
|
|
562
|
+
},
|
|
563
|
+
// Taiko Mainnet
|
|
564
|
+
167e3: {
|
|
565
|
+
chainId: 167e3,
|
|
566
|
+
network: "taiko",
|
|
567
|
+
name: "Taiko Mainnet",
|
|
568
|
+
type: "EVM" /* EVM */,
|
|
569
|
+
isTestnet: false,
|
|
570
|
+
explorer: "https://taikoscan.io",
|
|
571
|
+
website: "https://taiko.xyz",
|
|
572
|
+
nativeCurrency: {
|
|
573
|
+
name: "Ether",
|
|
574
|
+
symbol: "ETH",
|
|
575
|
+
decimals: 18
|
|
576
|
+
},
|
|
577
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
578
|
+
signSupport: { legacy: true, eip1559: true }
|
|
579
|
+
},
|
|
580
|
+
// Taiko Hekla Testnet
|
|
581
|
+
167009: {
|
|
582
|
+
chainId: 167009,
|
|
583
|
+
network: "taiko_hekla",
|
|
584
|
+
name: "Taiko Hekla Testnet",
|
|
585
|
+
type: "EVM" /* EVM */,
|
|
586
|
+
isTestnet: true,
|
|
587
|
+
explorer: "https://hekla.taikoscan.io",
|
|
588
|
+
website: "https://taiko.xyz",
|
|
589
|
+
nativeCurrency: {
|
|
590
|
+
name: "Ether",
|
|
591
|
+
symbol: "ETH",
|
|
592
|
+
decimals: 18
|
|
593
|
+
},
|
|
594
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
595
|
+
signSupport: { legacy: true, eip1559: true }
|
|
596
|
+
},
|
|
597
|
+
// ChainBounty Mainnet
|
|
598
|
+
51828: {
|
|
599
|
+
chainId: 51828,
|
|
600
|
+
network: "chainbounty",
|
|
601
|
+
name: "ChainBounty Mainnet",
|
|
602
|
+
type: "EVM" /* EVM */,
|
|
603
|
+
isTestnet: false,
|
|
604
|
+
explorer: "https://scan.chainbounty.io",
|
|
605
|
+
website: "https://chainbounty.io",
|
|
606
|
+
nativeCurrency: {
|
|
607
|
+
name: "ChainBounty",
|
|
608
|
+
symbol: "CBY",
|
|
609
|
+
decimals: 18
|
|
610
|
+
},
|
|
611
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
612
|
+
signSupport: { legacy: true, eip1559: true }
|
|
613
|
+
},
|
|
614
|
+
// ChainBounty Testnet
|
|
615
|
+
56580: {
|
|
616
|
+
chainId: 56580,
|
|
617
|
+
network: "chainbounty_testnet",
|
|
618
|
+
name: "ChainBounty Testnet",
|
|
619
|
+
type: "EVM" /* EVM */,
|
|
620
|
+
isTestnet: true,
|
|
621
|
+
explorer: "https://test.scan.chainbounty.io",
|
|
622
|
+
website: "https://chainbounty.io",
|
|
623
|
+
nativeCurrency: {
|
|
624
|
+
name: "ChainBounty",
|
|
625
|
+
symbol: "CBY",
|
|
626
|
+
decimals: 18
|
|
627
|
+
},
|
|
628
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
629
|
+
signSupport: { legacy: true, eip1559: true }
|
|
630
|
+
},
|
|
631
|
+
// Aptos Mainnet (Non-EVM)
|
|
632
|
+
aptos: {
|
|
633
|
+
chainId: null,
|
|
634
|
+
network: "aptos",
|
|
635
|
+
name: "Aptos",
|
|
636
|
+
type: "Non-EVM" /* NON_EVM */,
|
|
637
|
+
isTestnet: false,
|
|
638
|
+
explorer: "https://explorer.aptoslabs.com/?network=mainnet",
|
|
639
|
+
website: "https://aptos.dev",
|
|
640
|
+
nativeCurrency: {
|
|
641
|
+
name: "Aptos",
|
|
642
|
+
symbol: "APT",
|
|
643
|
+
decimals: 8
|
|
644
|
+
},
|
|
645
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
646
|
+
signSupport: { legacy: true, eip1559: false }
|
|
647
|
+
},
|
|
648
|
+
// Aptos Testnet (Non-EVM)
|
|
649
|
+
aptos_testnet: {
|
|
650
|
+
chainId: null,
|
|
651
|
+
network: "aptos_testnet",
|
|
652
|
+
name: "Aptos Testnet",
|
|
653
|
+
type: "Non-EVM" /* NON_EVM */,
|
|
654
|
+
isTestnet: true,
|
|
655
|
+
explorer: "https://explorer.aptoslabs.com/?network=testnet",
|
|
656
|
+
website: "https://aptos.dev",
|
|
657
|
+
nativeCurrency: {
|
|
658
|
+
name: "Aptos",
|
|
659
|
+
symbol: "APT",
|
|
660
|
+
decimals: 8
|
|
661
|
+
},
|
|
662
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
663
|
+
signSupport: { legacy: true, eip1559: false }
|
|
664
|
+
},
|
|
665
|
+
// Bitcoin Mainnet
|
|
666
|
+
bitcoin: {
|
|
667
|
+
chainId: null,
|
|
668
|
+
network: "bitcoin",
|
|
669
|
+
name: "Bitcoin Mainnet",
|
|
670
|
+
type: "Bitcoin" /* BITCOIN */,
|
|
671
|
+
isTestnet: false,
|
|
672
|
+
explorer: "https://blockstream.info",
|
|
673
|
+
website: "https://bitcoin.org",
|
|
674
|
+
nativeCurrency: {
|
|
675
|
+
name: "Bitcoin",
|
|
676
|
+
symbol: "BTC",
|
|
677
|
+
decimals: 8
|
|
678
|
+
},
|
|
679
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
680
|
+
signSupport: { legacy: true, eip1559: false }
|
|
681
|
+
},
|
|
682
|
+
// Bitcoin Testnet
|
|
683
|
+
bitcoin_testnet: {
|
|
684
|
+
chainId: null,
|
|
685
|
+
network: "bitcoin_testnet",
|
|
686
|
+
name: "Bitcoin Testnet",
|
|
687
|
+
type: "Bitcoin" /* BITCOIN */,
|
|
688
|
+
isTestnet: true,
|
|
689
|
+
explorer: "https://blockstream.info/testnet",
|
|
690
|
+
website: "https://bitcoin.org",
|
|
691
|
+
nativeCurrency: {
|
|
692
|
+
name: "Bitcoin",
|
|
693
|
+
symbol: "BTC",
|
|
694
|
+
decimals: 8
|
|
695
|
+
},
|
|
696
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
697
|
+
signSupport: { legacy: true, eip1559: false }
|
|
698
|
+
},
|
|
699
|
+
// Tron Mainnet
|
|
700
|
+
tron: {
|
|
701
|
+
chainId: null,
|
|
702
|
+
network: "tron",
|
|
703
|
+
name: "Tron Mainnet",
|
|
704
|
+
type: "TRX" /* TRON */,
|
|
705
|
+
isTestnet: false,
|
|
706
|
+
explorer: "https://tronscan.org",
|
|
707
|
+
website: "https://tron.network",
|
|
708
|
+
nativeCurrency: {
|
|
709
|
+
name: "Tronix",
|
|
710
|
+
symbol: "TRX",
|
|
711
|
+
decimals: 6
|
|
712
|
+
},
|
|
713
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
714
|
+
signSupport: { legacy: true, eip1559: true }
|
|
715
|
+
},
|
|
716
|
+
// Tron Nile Testnet
|
|
717
|
+
tron_nile: {
|
|
718
|
+
chainId: null,
|
|
719
|
+
network: "tron_nile",
|
|
720
|
+
name: "Tron Nile Testnet",
|
|
721
|
+
type: "TRX" /* TRON */,
|
|
722
|
+
isTestnet: true,
|
|
723
|
+
explorer: "https://nile.tronscan.org",
|
|
724
|
+
website: "https://tron.network",
|
|
725
|
+
nativeCurrency: {
|
|
726
|
+
name: "Tronix",
|
|
727
|
+
symbol: "TRX",
|
|
728
|
+
decimals: 6
|
|
729
|
+
},
|
|
730
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
731
|
+
signSupport: { legacy: true, eip1559: true }
|
|
732
|
+
},
|
|
733
|
+
// ICP Mainnet
|
|
734
|
+
icp: {
|
|
735
|
+
chainId: null,
|
|
736
|
+
network: "icp",
|
|
737
|
+
name: "Internet Computer",
|
|
738
|
+
type: "ICP" /* ICP */,
|
|
739
|
+
isTestnet: false,
|
|
740
|
+
explorer: "https://dashboard.internetcomputer.org",
|
|
741
|
+
website: "https://internetcomputer.org",
|
|
742
|
+
nativeCurrency: {
|
|
743
|
+
name: "ICP",
|
|
744
|
+
symbol: "ICP",
|
|
745
|
+
decimals: 8
|
|
746
|
+
},
|
|
747
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
748
|
+
signSupport: { legacy: true, eip1559: true }
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
NETWORK_BY_PARAM = Object.values(
|
|
752
|
+
NETWORK_CONFIGS
|
|
753
|
+
).reduce(
|
|
754
|
+
(acc, config2) => {
|
|
755
|
+
acc[config2.network] = config2;
|
|
756
|
+
return acc;
|
|
757
|
+
},
|
|
758
|
+
{}
|
|
759
|
+
);
|
|
760
|
+
}
|
|
761
|
+
});
|
|
25
762
|
|
|
26
763
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
27
764
|
import React70, { useContext as useContext26, useEffect as useEffect21, useState as useState21 } from "react";
|
|
@@ -713,63 +1450,63 @@ var fetchTranslations = async (locale) => {
|
|
|
713
1450
|
switch (locale) {
|
|
714
1451
|
case "ar":
|
|
715
1452
|
case "ar-AR":
|
|
716
|
-
return (await import("./ar_AR-
|
|
1453
|
+
return (await import("./ar_AR-YBBYUEGS.js")).default;
|
|
717
1454
|
case "de":
|
|
718
1455
|
case "de-DE":
|
|
719
|
-
return (await import("./de_DE-
|
|
1456
|
+
return (await import("./de_DE-RUWMVYCQ.js")).default;
|
|
720
1457
|
case "en":
|
|
721
1458
|
case "en-US":
|
|
722
|
-
return (await import("./en_US-
|
|
1459
|
+
return (await import("./en_US-NQ25CUR4.js")).default;
|
|
723
1460
|
case "es":
|
|
724
1461
|
case "es-419":
|
|
725
|
-
return (await import("./es_419-
|
|
1462
|
+
return (await import("./es_419-HKJPYJRI.js")).default;
|
|
726
1463
|
case "fr":
|
|
727
1464
|
case "fr-FR":
|
|
728
|
-
return (await import("./fr_FR-
|
|
1465
|
+
return (await import("./fr_FR-2O5ZDLPQ.js")).default;
|
|
729
1466
|
case "hi":
|
|
730
1467
|
case "hi-IN":
|
|
731
|
-
return (await import("./hi_IN-
|
|
1468
|
+
return (await import("./hi_IN-XRZ4YIUW.js")).default;
|
|
732
1469
|
case "id":
|
|
733
1470
|
case "id-ID":
|
|
734
|
-
return (await import("./id_ID-
|
|
1471
|
+
return (await import("./id_ID-REEY4CSS.js")).default;
|
|
735
1472
|
case "ja":
|
|
736
1473
|
case "ja-JP":
|
|
737
|
-
return (await import("./ja_JP-
|
|
1474
|
+
return (await import("./ja_JP-2OPCVN6X.js")).default;
|
|
738
1475
|
case "ko":
|
|
739
1476
|
case "ko-KR":
|
|
740
|
-
return (await import("./ko_KR-
|
|
1477
|
+
return (await import("./ko_KR-DDXBZTYT.js")).default;
|
|
741
1478
|
case "ms":
|
|
742
1479
|
case "ms-MY":
|
|
743
|
-
return (await import("./ms_MY-
|
|
1480
|
+
return (await import("./ms_MY-PX7G4XTD.js")).default;
|
|
744
1481
|
case "pt":
|
|
745
1482
|
case "pt-BR":
|
|
746
|
-
return (await import("./pt_BR-
|
|
1483
|
+
return (await import("./pt_BR-A5R4SBSC.js")).default;
|
|
747
1484
|
case "ru":
|
|
748
1485
|
case "ru-RU":
|
|
749
|
-
return (await import("./ru_RU-
|
|
1486
|
+
return (await import("./ru_RU-4QDZLRSW.js")).default;
|
|
750
1487
|
case "th":
|
|
751
1488
|
case "th-TH":
|
|
752
|
-
return (await import("./th_TH-
|
|
1489
|
+
return (await import("./th_TH-4TWPYDKX.js")).default;
|
|
753
1490
|
case "tr":
|
|
754
1491
|
case "tr-TR":
|
|
755
|
-
return (await import("./tr_TR-
|
|
1492
|
+
return (await import("./tr_TR-C37KIU7M.js")).default;
|
|
756
1493
|
case "ua":
|
|
757
1494
|
case "uk-UA":
|
|
758
|
-
return (await import("./uk_UA-
|
|
1495
|
+
return (await import("./uk_UA-I77HS4GO.js")).default;
|
|
759
1496
|
case "vi":
|
|
760
1497
|
case "vi-VN":
|
|
761
|
-
return (await import("./vi_VN-
|
|
1498
|
+
return (await import("./vi_VN-KVPDLW26.js")).default;
|
|
762
1499
|
case "zh":
|
|
763
1500
|
case "zh-CN":
|
|
764
1501
|
case "zh-Hans":
|
|
765
|
-
return (await import("./zh_CN-
|
|
1502
|
+
return (await import("./zh_CN-KGLAIP3N.js")).default;
|
|
766
1503
|
case "zh-HK":
|
|
767
|
-
return (await import("./zh_HK-
|
|
1504
|
+
return (await import("./zh_HK-AEXEN6P6.js")).default;
|
|
768
1505
|
case "zh-Hant":
|
|
769
1506
|
case "zh-TW":
|
|
770
|
-
return (await import("./zh_TW-
|
|
1507
|
+
return (await import("./zh_TW-6C7R5V3K.js")).default;
|
|
771
1508
|
default:
|
|
772
|
-
return (await import("./en_US-
|
|
1509
|
+
return (await import("./en_US-NQ25CUR4.js")).default;
|
|
773
1510
|
}
|
|
774
1511
|
};
|
|
775
1512
|
async function setLocale(locale) {
|
|
@@ -838,91 +1575,91 @@ function isNotNullish(value) {
|
|
|
838
1575
|
// src/components/RainbowKitProvider/provideRainbowKitChains.ts
|
|
839
1576
|
var arbitrumIcon = {
|
|
840
1577
|
iconBackground: "#96bedc",
|
|
841
|
-
iconUrl: async () => (await import("./arbitrum-
|
|
1578
|
+
iconUrl: async () => (await import("./arbitrum-D2TUFPZI.js")).default
|
|
842
1579
|
};
|
|
843
1580
|
var avalancheIcon = {
|
|
844
1581
|
iconBackground: "#e84141",
|
|
845
|
-
iconUrl: async () => (await import("./avalanche-
|
|
1582
|
+
iconUrl: async () => (await import("./avalanche-BOOSH35S.js")).default
|
|
846
1583
|
};
|
|
847
1584
|
var baseIcon = {
|
|
848
1585
|
iconBackground: "#0052ff",
|
|
849
|
-
iconUrl: async () => (await import("./base-
|
|
1586
|
+
iconUrl: async () => (await import("./base-3JMRS35B.js")).default
|
|
850
1587
|
};
|
|
851
1588
|
var blastIcon = {
|
|
852
1589
|
iconBackground: "#000000",
|
|
853
|
-
iconUrl: async () => (await import("./blast-
|
|
1590
|
+
iconUrl: async () => (await import("./blast-4GF24NR7.js")).default
|
|
854
1591
|
};
|
|
855
1592
|
var bscIcon = {
|
|
856
1593
|
iconBackground: "#ebac0e",
|
|
857
|
-
iconUrl: async () => (await import("./bsc-
|
|
1594
|
+
iconUrl: async () => (await import("./bsc-KU6MBOYR.js")).default
|
|
858
1595
|
};
|
|
859
1596
|
var celoIcon = {
|
|
860
1597
|
iconBackground: "#FCFF52",
|
|
861
|
-
iconUrl: async () => (await import("./celo-
|
|
1598
|
+
iconUrl: async () => (await import("./celo-5A5VXMPX.js")).default
|
|
862
1599
|
};
|
|
863
1600
|
var cronosIcon = {
|
|
864
1601
|
iconBackground: "#002D74",
|
|
865
|
-
iconUrl: async () => (await import("./cronos-
|
|
1602
|
+
iconUrl: async () => (await import("./cronos-KZAB32FC.js")).default
|
|
866
1603
|
};
|
|
867
1604
|
var ethereumIcon = {
|
|
868
1605
|
iconBackground: "#484c50",
|
|
869
|
-
iconUrl: async () => (await import("./ethereum-
|
|
1606
|
+
iconUrl: async () => (await import("./ethereum-WAFT6DML.js")).default
|
|
870
1607
|
};
|
|
871
1608
|
var flowIcon = {
|
|
872
1609
|
iconBackground: "transparent",
|
|
873
|
-
iconUrl: async () => (await import("./flow-
|
|
1610
|
+
iconUrl: async () => (await import("./flow-XANNOAPJ.js")).default
|
|
874
1611
|
};
|
|
875
1612
|
var gnosisIcon = {
|
|
876
1613
|
iconBackground: "#04795c",
|
|
877
|
-
iconUrl: async () => (await import("./gnosis-
|
|
1614
|
+
iconUrl: async () => (await import("./gnosis-7GFI4V27.js")).default
|
|
878
1615
|
};
|
|
879
1616
|
var hardhatIcon = {
|
|
880
1617
|
iconBackground: "#f9f7ec",
|
|
881
|
-
iconUrl: async () => (await import("./hardhat-
|
|
1618
|
+
iconUrl: async () => (await import("./hardhat-6HKZWC4T.js")).default
|
|
882
1619
|
};
|
|
883
1620
|
var kaiaIcon = {
|
|
884
1621
|
iconBackground: "transparent",
|
|
885
|
-
iconUrl: async () => (await import("./kaia-
|
|
1622
|
+
iconUrl: async () => (await import("./kaia-DQ3OSYXE.js")).default
|
|
886
1623
|
};
|
|
887
1624
|
var optimismIcon = {
|
|
888
1625
|
iconBackground: "#ff5a57",
|
|
889
|
-
iconUrl: async () => (await import("./optimism-
|
|
1626
|
+
iconUrl: async () => (await import("./optimism-6GXRYJDW.js")).default
|
|
890
1627
|
};
|
|
891
1628
|
var mantaIcon = {
|
|
892
1629
|
iconBackground: "#ffffff",
|
|
893
|
-
iconUrl: async () => (await import("./manta-
|
|
1630
|
+
iconUrl: async () => (await import("./manta-OEF3QP66.js")).default
|
|
894
1631
|
};
|
|
895
1632
|
var mantleIcon = {
|
|
896
1633
|
iconBackground: "#000000",
|
|
897
|
-
iconUrl: async () => (await import("./mantle-
|
|
1634
|
+
iconUrl: async () => (await import("./mantle-EYIH4GGM.js")).default
|
|
898
1635
|
};
|
|
899
1636
|
var polygonIcon = {
|
|
900
1637
|
iconBackground: "#9f71ec",
|
|
901
|
-
iconUrl: async () => (await import("./polygon-
|
|
1638
|
+
iconUrl: async () => (await import("./polygon-YNJM552P.js")).default
|
|
902
1639
|
};
|
|
903
1640
|
var xdcIcon = {
|
|
904
1641
|
iconBackground: "#f9f7ec",
|
|
905
|
-
iconUrl: async () => (await import("./xdc-
|
|
1642
|
+
iconUrl: async () => (await import("./xdc-5NQHQJE5.js")).default
|
|
906
1643
|
};
|
|
907
1644
|
var zetachainIcon = {
|
|
908
1645
|
iconBackground: "#000000",
|
|
909
|
-
iconUrl: async () => (await import("./zetachain-
|
|
1646
|
+
iconUrl: async () => (await import("./zetachain-U6IILKZJ.js")).default
|
|
910
1647
|
};
|
|
911
1648
|
var zkSyncIcon = {
|
|
912
1649
|
iconBackground: "#f9f7ec",
|
|
913
|
-
iconUrl: async () => (await import("./zkSync-
|
|
1650
|
+
iconUrl: async () => (await import("./zkSync-TMPB52ZN.js")).default
|
|
914
1651
|
};
|
|
915
1652
|
var zoraIcon = {
|
|
916
1653
|
iconBackground: "#000000",
|
|
917
|
-
iconUrl: async () => (await import("./zora-
|
|
1654
|
+
iconUrl: async () => (await import("./zora-S46CHEOU.js")).default
|
|
918
1655
|
};
|
|
919
1656
|
var roninIcon = {
|
|
920
1657
|
iconBackground: "#1273EA",
|
|
921
|
-
iconUrl: async () => (await import("./ronin-
|
|
1658
|
+
iconUrl: async () => (await import("./ronin-LU7LZPWA.js")).default
|
|
922
1659
|
};
|
|
923
1660
|
var scrollIcon = {
|
|
924
1661
|
iconBackground: "#000000",
|
|
925
|
-
iconUrl: async () => (await import("./scroll-
|
|
1662
|
+
iconUrl: async () => (await import("./scroll-XRP46UTI.js")).default
|
|
926
1663
|
};
|
|
927
1664
|
var chainMetadataByName = {
|
|
928
1665
|
arbitrum: { chainId: 42161, name: "Arbitrum", ...arbitrumIcon },
|
|
@@ -1055,17 +1792,85 @@ var useShowBalance = () => useContext4(ShowBalanceContext);
|
|
|
1055
1792
|
import React69, { useContext as useContext25 } from "react";
|
|
1056
1793
|
import { useAccount as useAccount16, useConfig as useConfig4 } from "wagmi";
|
|
1057
1794
|
|
|
1795
|
+
// src/contexts/MultiChainContext.tsx
|
|
1796
|
+
import { useWallet } from "@solana/wallet-adapter-react";
|
|
1797
|
+
import React11, {
|
|
1798
|
+
createContext as createContext6,
|
|
1799
|
+
useCallback,
|
|
1800
|
+
useContext as useContext5,
|
|
1801
|
+
useEffect as useEffect5,
|
|
1802
|
+
useState as useState5
|
|
1803
|
+
} from "react";
|
|
1804
|
+
import { useAccount as useAccount3, useDisconnect as useWagmiDisconnect } from "wagmi";
|
|
1805
|
+
var MultiChainContext = createContext6(null);
|
|
1806
|
+
function useMultiChain() {
|
|
1807
|
+
const context = useContext5(MultiChainContext);
|
|
1808
|
+
if (!context) {
|
|
1809
|
+
throw new Error("useMultiChain must be used within MultiChainProvider");
|
|
1810
|
+
}
|
|
1811
|
+
return context;
|
|
1812
|
+
}
|
|
1813
|
+
function MultiChainProvider({
|
|
1814
|
+
children,
|
|
1815
|
+
defaultChain = "evm",
|
|
1816
|
+
enableSolana = false
|
|
1817
|
+
}) {
|
|
1818
|
+
const {
|
|
1819
|
+
address: evmAddress,
|
|
1820
|
+
chainId: evmChainId,
|
|
1821
|
+
isConnected: evmConnected
|
|
1822
|
+
} = useAccount3();
|
|
1823
|
+
const solanaWallet = enableSolana ? useWallet() : null;
|
|
1824
|
+
const solanaAddress = solanaWallet?.publicKey?.toBase58();
|
|
1825
|
+
const solanaConnected = solanaWallet?.connected ?? false;
|
|
1826
|
+
const { disconnect: wagmiDisconnect } = useWagmiDisconnect();
|
|
1827
|
+
const solanaDisconnect = solanaWallet?.disconnect;
|
|
1828
|
+
const [activeChain, setActiveChain] = useState5(defaultChain);
|
|
1829
|
+
useEffect5(() => {
|
|
1830
|
+
const stored = localStorage.getItem("talkenkit_active_chain");
|
|
1831
|
+
if (stored && (stored === "evm" || stored === "solana")) {
|
|
1832
|
+
setActiveChain(stored);
|
|
1833
|
+
}
|
|
1834
|
+
}, []);
|
|
1835
|
+
useEffect5(() => {
|
|
1836
|
+
localStorage.setItem("talkenkit_active_chain", activeChain);
|
|
1837
|
+
}, [activeChain]);
|
|
1838
|
+
const disconnectAll = useCallback(async () => {
|
|
1839
|
+
try {
|
|
1840
|
+
if (evmConnected) {
|
|
1841
|
+
wagmiDisconnect();
|
|
1842
|
+
}
|
|
1843
|
+
if (solanaConnected && solanaDisconnect) {
|
|
1844
|
+
await solanaDisconnect();
|
|
1845
|
+
}
|
|
1846
|
+
} catch (error3) {
|
|
1847
|
+
console.error("[MultiChainContext] Failed to disconnect:", error3);
|
|
1848
|
+
}
|
|
1849
|
+
}, [evmConnected, solanaConnected, wagmiDisconnect, solanaDisconnect]);
|
|
1850
|
+
const state = {
|
|
1851
|
+
evmAddress,
|
|
1852
|
+
evmChainId,
|
|
1853
|
+
evmConnected,
|
|
1854
|
+
solanaAddress,
|
|
1855
|
+
solanaConnected,
|
|
1856
|
+
activeChain,
|
|
1857
|
+
setActiveChain,
|
|
1858
|
+
disconnectAll
|
|
1859
|
+
};
|
|
1860
|
+
return /* @__PURE__ */ React11.createElement(MultiChainContext.Provider, { value: state }, children);
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1058
1863
|
// src/hooks/useIsMounted.ts
|
|
1059
|
-
import { useCallback, useEffect as
|
|
1864
|
+
import { useCallback as useCallback2, useEffect as useEffect6, useState as useState6 } from "react";
|
|
1060
1865
|
function useIsMounted() {
|
|
1061
|
-
const [isMounted, setIsMounted] =
|
|
1062
|
-
|
|
1866
|
+
const [isMounted, setIsMounted] = useState6(false);
|
|
1867
|
+
useEffect6(() => {
|
|
1063
1868
|
setIsMounted(true);
|
|
1064
1869
|
return () => {
|
|
1065
1870
|
setIsMounted(false);
|
|
1066
1871
|
};
|
|
1067
1872
|
}, []);
|
|
1068
|
-
return
|
|
1873
|
+
return useCallback2(() => isMounted, [isMounted]);
|
|
1069
1874
|
}
|
|
1070
1875
|
|
|
1071
1876
|
// src/hooks/useProfile.ts
|
|
@@ -1369,19 +2174,19 @@ function useProfile({ address, includeBalance }) {
|
|
|
1369
2174
|
}
|
|
1370
2175
|
|
|
1371
2176
|
// src/transactions/useRecentTransactions.ts
|
|
1372
|
-
import { useEffect as
|
|
1373
|
-
import { useAccount as
|
|
2177
|
+
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
2178
|
+
import { useAccount as useAccount6 } from "wagmi";
|
|
1374
2179
|
|
|
1375
2180
|
// src/hooks/useChainId.ts
|
|
1376
|
-
import { useAccount as
|
|
2181
|
+
import { useAccount as useAccount4 } from "wagmi";
|
|
1377
2182
|
function useChainId() {
|
|
1378
|
-
const { chain: activeChain } =
|
|
2183
|
+
const { chain: activeChain } = useAccount4();
|
|
1379
2184
|
return activeChain?.id ?? null;
|
|
1380
2185
|
}
|
|
1381
2186
|
|
|
1382
2187
|
// src/transactions/TransactionStoreContext.tsx
|
|
1383
|
-
import
|
|
1384
|
-
import { useAccount as
|
|
2188
|
+
import React12 from "react";
|
|
2189
|
+
import { useAccount as useAccount5, useBalance as useBalance2, usePublicClient } from "wagmi";
|
|
1385
2190
|
|
|
1386
2191
|
// src/transactions/transactionStore.ts
|
|
1387
2192
|
var storageKey = "rk-transactions";
|
|
@@ -1537,14 +2342,14 @@ function createTransactionStore({
|
|
|
1537
2342
|
|
|
1538
2343
|
// src/transactions/TransactionStoreContext.tsx
|
|
1539
2344
|
var storeSingleton;
|
|
1540
|
-
var TransactionStoreContext =
|
|
2345
|
+
var TransactionStoreContext = React12.createContext(
|
|
1541
2346
|
null
|
|
1542
2347
|
);
|
|
1543
2348
|
function TransactionStoreProvider({
|
|
1544
2349
|
children
|
|
1545
2350
|
}) {
|
|
1546
2351
|
const provider = usePublicClient();
|
|
1547
|
-
const { address } =
|
|
2352
|
+
const { address } = useAccount5();
|
|
1548
2353
|
const chainId = useChainId();
|
|
1549
2354
|
const { refetch } = useBalance2({
|
|
1550
2355
|
address,
|
|
@@ -1552,33 +2357,33 @@ function TransactionStoreProvider({
|
|
|
1552
2357
|
enabled: false
|
|
1553
2358
|
}
|
|
1554
2359
|
});
|
|
1555
|
-
const [store] =
|
|
2360
|
+
const [store] = React12.useState(
|
|
1556
2361
|
() => storeSingleton ?? (storeSingleton = createTransactionStore({ provider }))
|
|
1557
2362
|
);
|
|
1558
|
-
const onTransactionStatus =
|
|
2363
|
+
const onTransactionStatus = React12.useCallback(
|
|
1559
2364
|
(txStatus) => {
|
|
1560
2365
|
if (txStatus === "success")
|
|
1561
2366
|
refetch();
|
|
1562
2367
|
},
|
|
1563
2368
|
[refetch]
|
|
1564
2369
|
);
|
|
1565
|
-
|
|
2370
|
+
React12.useEffect(() => {
|
|
1566
2371
|
store.setProvider(provider);
|
|
1567
2372
|
}, [store, provider]);
|
|
1568
|
-
|
|
2373
|
+
React12.useEffect(() => {
|
|
1569
2374
|
if (address && chainId) {
|
|
1570
2375
|
store.waitForPendingTransactions(address, chainId);
|
|
1571
2376
|
}
|
|
1572
2377
|
}, [store, address, chainId]);
|
|
1573
|
-
|
|
2378
|
+
React12.useEffect(() => {
|
|
1574
2379
|
if (store && address && chainId) {
|
|
1575
2380
|
return store.onTransactionStatus(onTransactionStatus);
|
|
1576
2381
|
}
|
|
1577
2382
|
}, [store, address, chainId, onTransactionStatus]);
|
|
1578
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ React12.createElement(TransactionStoreContext.Provider, { value: store }, children);
|
|
1579
2384
|
}
|
|
1580
2385
|
function useTransactionStore() {
|
|
1581
|
-
const store =
|
|
2386
|
+
const store = React12.useContext(TransactionStoreContext);
|
|
1582
2387
|
if (!store) {
|
|
1583
2388
|
throw new Error("Transaction hooks must be used within RainbowKitProvider");
|
|
1584
2389
|
}
|
|
@@ -1588,12 +2393,12 @@ function useTransactionStore() {
|
|
|
1588
2393
|
// src/transactions/useRecentTransactions.ts
|
|
1589
2394
|
function useRecentTransactions() {
|
|
1590
2395
|
const store = useTransactionStore();
|
|
1591
|
-
const { address } =
|
|
2396
|
+
const { address } = useAccount6();
|
|
1592
2397
|
const chainId = useChainId();
|
|
1593
|
-
const [transactions, setTransactions] =
|
|
2398
|
+
const [transactions, setTransactions] = useState7(
|
|
1594
2399
|
() => store && address && chainId ? store.getTransactions(address, chainId) : []
|
|
1595
2400
|
);
|
|
1596
|
-
|
|
2401
|
+
useEffect7(() => {
|
|
1597
2402
|
if (store && address && chainId) {
|
|
1598
2403
|
setTransactions(store.getTransactions(address, chainId));
|
|
1599
2404
|
return store.onChange(() => {
|
|
@@ -1619,68 +2424,6 @@ import { useAccount as useAccount15, useAccountEffect as useAccountEffect3, useC
|
|
|
1619
2424
|
import React39, { useContext as useContext12 } from "react";
|
|
1620
2425
|
import { useAccount as useAccount12, useDisconnect } from "wagmi";
|
|
1621
2426
|
|
|
1622
|
-
// src/contexts/MultiChainContext.tsx
|
|
1623
|
-
import React12, { createContext as createContext6, useCallback as useCallback2, useContext as useContext5, useEffect as useEffect7, useState as useState7 } from "react";
|
|
1624
|
-
import { useAccount as useAccount6, useDisconnect as useWagmiDisconnect } from "wagmi";
|
|
1625
|
-
import { useWallet } from "@solana/wallet-adapter-react";
|
|
1626
|
-
var MultiChainContext = createContext6(null);
|
|
1627
|
-
function useMultiChain() {
|
|
1628
|
-
const context = useContext5(MultiChainContext);
|
|
1629
|
-
if (!context) {
|
|
1630
|
-
throw new Error("useMultiChain must be used within MultiChainProvider");
|
|
1631
|
-
}
|
|
1632
|
-
return context;
|
|
1633
|
-
}
|
|
1634
|
-
function MultiChainProvider({
|
|
1635
|
-
children,
|
|
1636
|
-
defaultChain = "evm",
|
|
1637
|
-
enableSolana = false
|
|
1638
|
-
}) {
|
|
1639
|
-
const {
|
|
1640
|
-
address: evmAddress,
|
|
1641
|
-
chainId: evmChainId,
|
|
1642
|
-
isConnected: evmConnected
|
|
1643
|
-
} = useAccount6();
|
|
1644
|
-
const solanaWallet = enableSolana ? useWallet() : null;
|
|
1645
|
-
const solanaAddress = solanaWallet?.publicKey?.toBase58();
|
|
1646
|
-
const solanaConnected = solanaWallet?.connected ?? false;
|
|
1647
|
-
const { disconnect: wagmiDisconnect } = useWagmiDisconnect();
|
|
1648
|
-
const solanaDisconnect = solanaWallet?.disconnect;
|
|
1649
|
-
const [activeChain, setActiveChain] = useState7(defaultChain);
|
|
1650
|
-
useEffect7(() => {
|
|
1651
|
-
const stored = localStorage.getItem("talkenkit_active_chain");
|
|
1652
|
-
if (stored && (stored === "evm" || stored === "solana")) {
|
|
1653
|
-
setActiveChain(stored);
|
|
1654
|
-
}
|
|
1655
|
-
}, []);
|
|
1656
|
-
useEffect7(() => {
|
|
1657
|
-
localStorage.setItem("talkenkit_active_chain", activeChain);
|
|
1658
|
-
}, [activeChain]);
|
|
1659
|
-
const disconnectAll = useCallback2(async () => {
|
|
1660
|
-
try {
|
|
1661
|
-
if (evmConnected) {
|
|
1662
|
-
wagmiDisconnect();
|
|
1663
|
-
}
|
|
1664
|
-
if (solanaConnected && solanaDisconnect) {
|
|
1665
|
-
await solanaDisconnect();
|
|
1666
|
-
}
|
|
1667
|
-
} catch (error3) {
|
|
1668
|
-
console.error("[MultiChainContext] Failed to disconnect:", error3);
|
|
1669
|
-
}
|
|
1670
|
-
}, [evmConnected, solanaConnected, wagmiDisconnect, solanaDisconnect]);
|
|
1671
|
-
const state = {
|
|
1672
|
-
evmAddress,
|
|
1673
|
-
evmChainId,
|
|
1674
|
-
evmConnected,
|
|
1675
|
-
solanaAddress,
|
|
1676
|
-
solanaConnected,
|
|
1677
|
-
activeChain,
|
|
1678
|
-
setActiveChain,
|
|
1679
|
-
disconnectAll
|
|
1680
|
-
};
|
|
1681
|
-
return /* @__PURE__ */ React12.createElement(MultiChainContext.Provider, { value: state }, children);
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
2427
|
// src/components/Dialog/Dialog.tsx
|
|
1685
2428
|
import React27, {
|
|
1686
2429
|
useCallback as useCallback8,
|
|
@@ -1725,6 +2468,32 @@ function cssStringFromTheme(theme, options = {}) {
|
|
|
1725
2468
|
return Object.entries(cssObjectFromTheme(theme, options)).map(([key, value]) => `${key}:${value.replace(/[:;{}</>]/g, "")};`).join("");
|
|
1726
2469
|
}
|
|
1727
2470
|
|
|
2471
|
+
// src/solana/SolanaWalletProvider.tsx
|
|
2472
|
+
import { WalletProvider } from "@solana/wallet-adapter-react";
|
|
2473
|
+
import {
|
|
2474
|
+
PhantomWalletAdapter,
|
|
2475
|
+
SolflareWalletAdapter
|
|
2476
|
+
} from "@solana/wallet-adapter-wallets";
|
|
2477
|
+
import React13, { useMemo as useMemo6 } from "react";
|
|
2478
|
+
function SolanaWalletProvider({
|
|
2479
|
+
children,
|
|
2480
|
+
wallets: customWallets,
|
|
2481
|
+
autoConnect = false
|
|
2482
|
+
}) {
|
|
2483
|
+
const wallets = useMemo6(() => {
|
|
2484
|
+
if (customWallets) {
|
|
2485
|
+
return customWallets;
|
|
2486
|
+
}
|
|
2487
|
+
return [
|
|
2488
|
+
new PhantomWalletAdapter(),
|
|
2489
|
+
new SolflareWalletAdapter()
|
|
2490
|
+
// TODO: Add Backpack when available in wallet-adapter-wallets
|
|
2491
|
+
// TODO: Add AbcSolanaWalletAdapter when ready
|
|
2492
|
+
];
|
|
2493
|
+
}, [customWallets]);
|
|
2494
|
+
return /* @__PURE__ */ React13.createElement(WalletProvider, { wallets, autoConnect }, children);
|
|
2495
|
+
}
|
|
2496
|
+
|
|
1728
2497
|
// src/components/RainbowKitProvider/AppContext.ts
|
|
1729
2498
|
import { createContext as createContext7 } from "react";
|
|
1730
2499
|
var defaultAppInfo = {
|
|
@@ -1739,11 +2508,11 @@ import { createContext as createContext8 } from "react";
|
|
|
1739
2508
|
var CoolModeContext = createContext8(false);
|
|
1740
2509
|
|
|
1741
2510
|
// src/components/RainbowKitProvider/InternalPinProvider.tsx
|
|
1742
|
-
import
|
|
2511
|
+
import React15, { useState as useState9, useCallback as useCallback3, useEffect as useEffect9 } from "react";
|
|
1743
2512
|
import { useAccount as useAccount7 } from "wagmi";
|
|
1744
2513
|
|
|
1745
2514
|
// src/components/AbcAuth/PinInputModal.tsx
|
|
1746
|
-
import
|
|
2515
|
+
import React14, { useState as useState8, useEffect as useEffect8, useMemo as useMemo7 } from "react";
|
|
1747
2516
|
|
|
1748
2517
|
// src/components/AbcAuth/PinInputModal.css.ts
|
|
1749
2518
|
var actions = "_1qacwvac";
|
|
@@ -1801,7 +2570,7 @@ function PinInputModal({
|
|
|
1801
2570
|
const [error3, setError] = useState8("");
|
|
1802
2571
|
const [isLoading, setIsLoading] = useState8(false);
|
|
1803
2572
|
const _isActuallyLoading = isLoading || externalLoading;
|
|
1804
|
-
const keypadNumbers =
|
|
2573
|
+
const keypadNumbers = useMemo7(() => {
|
|
1805
2574
|
return shuffleArray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
|
|
1806
2575
|
}, []);
|
|
1807
2576
|
useEffect8(() => {
|
|
@@ -1844,7 +2613,7 @@ function PinInputModal({
|
|
|
1844
2613
|
};
|
|
1845
2614
|
if (!isOpen)
|
|
1846
2615
|
return null;
|
|
1847
|
-
return /* @__PURE__ */
|
|
2616
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1848
2617
|
"div",
|
|
1849
2618
|
{
|
|
1850
2619
|
className: overlay,
|
|
@@ -1862,7 +2631,7 @@ function PinInputModal({
|
|
|
1862
2631
|
tabIndex: 0,
|
|
1863
2632
|
"aria-label": "Close modal overlay"
|
|
1864
2633
|
},
|
|
1865
|
-
/* @__PURE__ */
|
|
2634
|
+
/* @__PURE__ */ React14.createElement(
|
|
1866
2635
|
"div",
|
|
1867
2636
|
{
|
|
1868
2637
|
className: modal,
|
|
@@ -1871,7 +2640,7 @@ function PinInputModal({
|
|
|
1871
2640
|
role: "dialog",
|
|
1872
2641
|
"aria-modal": "true"
|
|
1873
2642
|
},
|
|
1874
|
-
/* @__PURE__ */
|
|
2643
|
+
/* @__PURE__ */ React14.createElement(
|
|
1875
2644
|
"button",
|
|
1876
2645
|
{
|
|
1877
2646
|
className: closeButton,
|
|
@@ -1880,26 +2649,26 @@ function PinInputModal({
|
|
|
1880
2649
|
},
|
|
1881
2650
|
"\xD7"
|
|
1882
2651
|
),
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
externalLoading ? /* @__PURE__ */
|
|
2652
|
+
/* @__PURE__ */ React14.createElement("h2", { className: title }, title3),
|
|
2653
|
+
/* @__PURE__ */ React14.createElement("p", { className: subtitle }, subtitle2),
|
|
2654
|
+
externalLoading ? /* @__PURE__ */ React14.createElement("div", { className: loadingContainer }, /* @__PURE__ */ React14.createElement("div", { className: spinner }), progressSteps2 && progressSteps2.length > 0 ? /* @__PURE__ */ React14.createElement("div", { className: progressSteps }, progressSteps2.map((step, index) => {
|
|
1886
2655
|
const statusClass = step.status === "active" ? progressStepActive : step.status === "completed" ? progressStepCompleted : progressStepPending;
|
|
1887
|
-
return /* @__PURE__ */
|
|
2656
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1888
2657
|
"div",
|
|
1889
2658
|
{
|
|
1890
2659
|
key: index,
|
|
1891
2660
|
className: `${progressStep} ${statusClass}`
|
|
1892
2661
|
},
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
/* @__PURE__ */
|
|
2662
|
+
/* @__PURE__ */ React14.createElement("span", { className: progressStepIcon }, step.status === "completed" ? "\u2713" : step.status === "active" ? "\u2192" : ""),
|
|
2663
|
+
/* @__PURE__ */ React14.createElement("span", { className: progressStepLabel }, step.label)
|
|
1895
2664
|
);
|
|
1896
|
-
})) : /* @__PURE__ */
|
|
2665
|
+
})) : /* @__PURE__ */ React14.createElement("p", { className: loadingMessage }, loadingMessage2)) : /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement("div", { className: pinDisplay }, [...Array(6)].map((_, i) => /* @__PURE__ */ React14.createElement(
|
|
1897
2666
|
"div",
|
|
1898
2667
|
{
|
|
1899
2668
|
key: i,
|
|
1900
2669
|
className: `${pinDot} ${i < pin.length ? pinDotFilled : ""}`
|
|
1901
2670
|
}
|
|
1902
|
-
))), error3 && /* @__PURE__ */
|
|
2671
|
+
))), error3 && /* @__PURE__ */ React14.createElement("div", { className: error }, error3), /* @__PURE__ */ React14.createElement("form", { onSubmit: handleSubmit }, /* @__PURE__ */ React14.createElement("div", { className: keypad }, keypadNumbers.slice(0, 9).map((num) => /* @__PURE__ */ React14.createElement(
|
|
1903
2672
|
"button",
|
|
1904
2673
|
{
|
|
1905
2674
|
key: num,
|
|
@@ -1909,7 +2678,7 @@ function PinInputModal({
|
|
|
1909
2678
|
disabled: isLoading
|
|
1910
2679
|
},
|
|
1911
2680
|
num
|
|
1912
|
-
)), /* @__PURE__ */
|
|
2681
|
+
)), /* @__PURE__ */ React14.createElement("div", { className: keypadButton }), " ", /* @__PURE__ */ React14.createElement(
|
|
1913
2682
|
"button",
|
|
1914
2683
|
{
|
|
1915
2684
|
key: keypadNumbers[9],
|
|
@@ -1919,7 +2688,7 @@ function PinInputModal({
|
|
|
1919
2688
|
disabled: isLoading
|
|
1920
2689
|
},
|
|
1921
2690
|
keypadNumbers[9]
|
|
1922
|
-
), /* @__PURE__ */
|
|
2691
|
+
), /* @__PURE__ */ React14.createElement(
|
|
1923
2692
|
"button",
|
|
1924
2693
|
{
|
|
1925
2694
|
type: "button",
|
|
@@ -1928,15 +2697,15 @@ function PinInputModal({
|
|
|
1928
2697
|
disabled: isLoading,
|
|
1929
2698
|
"aria-label": "Delete"
|
|
1930
2699
|
},
|
|
1931
|
-
/* @__PURE__ */
|
|
2700
|
+
/* @__PURE__ */ React14.createElement(
|
|
1932
2701
|
"svg",
|
|
1933
2702
|
{
|
|
1934
2703
|
viewBox: "0 0 24 24",
|
|
1935
2704
|
fill: "none",
|
|
1936
2705
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1937
2706
|
},
|
|
1938
|
-
/* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
2707
|
+
/* @__PURE__ */ React14.createElement("title", null, "Delete"),
|
|
2708
|
+
/* @__PURE__ */ React14.createElement(
|
|
1940
2709
|
"path",
|
|
1941
2710
|
{
|
|
1942
2711
|
d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z",
|
|
@@ -1944,7 +2713,7 @@ function PinInputModal({
|
|
|
1944
2713
|
}
|
|
1945
2714
|
)
|
|
1946
2715
|
)
|
|
1947
|
-
)), /* @__PURE__ */
|
|
2716
|
+
)), /* @__PURE__ */ React14.createElement("div", { className: actions }, /* @__PURE__ */ React14.createElement(
|
|
1948
2717
|
"button",
|
|
1949
2718
|
{
|
|
1950
2719
|
type: "button",
|
|
@@ -1953,7 +2722,7 @@ function PinInputModal({
|
|
|
1953
2722
|
disabled: isLoading
|
|
1954
2723
|
},
|
|
1955
2724
|
"Cancel"
|
|
1956
|
-
), /* @__PURE__ */
|
|
2725
|
+
), /* @__PURE__ */ React14.createElement(
|
|
1957
2726
|
"button",
|
|
1958
2727
|
{
|
|
1959
2728
|
type: "submit",
|
|
@@ -1962,8 +2731,8 @@ function PinInputModal({
|
|
|
1962
2731
|
},
|
|
1963
2732
|
isLoading ? title3.includes("Confirm") ? "Creating wallet..." : "Verifying..." : "Confirm"
|
|
1964
2733
|
)))),
|
|
1965
|
-
isLoading && /* @__PURE__ */
|
|
1966
|
-
showForgotPin && onForgotPin && /* @__PURE__ */
|
|
2734
|
+
isLoading && /* @__PURE__ */ React14.createElement("div", { className: loadingOverlay }, /* @__PURE__ */ React14.createElement("div", { className: spinner }), /* @__PURE__ */ React14.createElement("p", { className: loadingText }, title3.includes("Confirm") ? "Creating your wallet..." : "Verifying PIN...")),
|
|
2735
|
+
showForgotPin && onForgotPin && /* @__PURE__ */ React14.createElement(
|
|
1967
2736
|
"button",
|
|
1968
2737
|
{
|
|
1969
2738
|
className: forgotPinButton,
|
|
@@ -1972,7 +2741,7 @@ function PinInputModal({
|
|
|
1972
2741
|
},
|
|
1973
2742
|
"Forgot PIN?"
|
|
1974
2743
|
),
|
|
1975
|
-
/* @__PURE__ */
|
|
2744
|
+
/* @__PURE__ */ React14.createElement("p", { className: securityNote }, "\u{1F512} Your PIN is encrypted and stored locally")
|
|
1976
2745
|
)
|
|
1977
2746
|
);
|
|
1978
2747
|
}
|
|
@@ -2062,7 +2831,7 @@ function InternalPinProvider({
|
|
|
2062
2831
|
cleanup();
|
|
2063
2832
|
};
|
|
2064
2833
|
}, [connector, isConnected, requestPin, disabled]);
|
|
2065
|
-
return /* @__PURE__ */
|
|
2834
|
+
return /* @__PURE__ */ React15.createElement(React15.Fragment, null, children, /* @__PURE__ */ React15.createElement(
|
|
2066
2835
|
PinInputModal,
|
|
2067
2836
|
{
|
|
2068
2837
|
isOpen: isModalOpen,
|
|
@@ -2077,7 +2846,7 @@ function InternalPinProvider({
|
|
|
2077
2846
|
}
|
|
2078
2847
|
|
|
2079
2848
|
// src/components/RainbowKitProvider/ModalSizeContext.tsx
|
|
2080
|
-
import
|
|
2849
|
+
import React17, { createContext as createContext10, useContext as useContext6 } from "react";
|
|
2081
2850
|
|
|
2082
2851
|
// src/hooks/useWindowSize.ts
|
|
2083
2852
|
import { useEffect as useEffect10, useState as useState10 } from "react";
|
|
@@ -2117,7 +2886,7 @@ var useWindowSize = () => {
|
|
|
2117
2886
|
};
|
|
2118
2887
|
|
|
2119
2888
|
// src/components/RainbowKitProvider/WalletButtonContext.tsx
|
|
2120
|
-
import
|
|
2889
|
+
import React16, { createContext as createContext9, useMemo as useMemo8, useState as useState11 } from "react";
|
|
2121
2890
|
var WalletButtonContext = createContext9({
|
|
2122
2891
|
connector: null,
|
|
2123
2892
|
setConnector: () => {
|
|
@@ -2125,10 +2894,10 @@ var WalletButtonContext = createContext9({
|
|
|
2125
2894
|
});
|
|
2126
2895
|
function WalletButtonProvider({ children }) {
|
|
2127
2896
|
const [connector, setConnector] = useState11(null);
|
|
2128
|
-
return /* @__PURE__ */
|
|
2897
|
+
return /* @__PURE__ */ React16.createElement(
|
|
2129
2898
|
WalletButtonContext.Provider,
|
|
2130
2899
|
{
|
|
2131
|
-
value:
|
|
2900
|
+
value: useMemo8(
|
|
2132
2901
|
() => ({
|
|
2133
2902
|
connector,
|
|
2134
2903
|
setConnector
|
|
@@ -2155,7 +2924,7 @@ function ModalSizeProvider({
|
|
|
2155
2924
|
const { width } = useWindowSize();
|
|
2156
2925
|
const isSmallScreen = width && width < largeScreenMinWidth;
|
|
2157
2926
|
const { connector } = useContext6(WalletButtonContext);
|
|
2158
|
-
return /* @__PURE__ */
|
|
2927
|
+
return /* @__PURE__ */ React17.createElement(
|
|
2159
2928
|
ModalSizeContext.Provider,
|
|
2160
2929
|
{
|
|
2161
2930
|
value: isSmallScreen || connector ? ModalSizeOptions.COMPACT : modalSize
|
|
@@ -2176,7 +2945,7 @@ function setRainbowKitVersion({ version }) {
|
|
|
2176
2945
|
}
|
|
2177
2946
|
function useFingerprint() {
|
|
2178
2947
|
const fingerprint = useCallback4(() => {
|
|
2179
|
-
setRainbowKitVersion({ version: "2.3.
|
|
2948
|
+
setRainbowKitVersion({ version: "2.3.8" });
|
|
2180
2949
|
}, []);
|
|
2181
2950
|
useEffect11(() => {
|
|
2182
2951
|
fingerprint();
|
|
@@ -2460,10 +3229,10 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
|
|
|
2460
3229
|
}
|
|
2461
3230
|
|
|
2462
3231
|
// src/components/Icons/Assets.tsx
|
|
2463
|
-
import
|
|
2464
|
-
var src = async () => (await import("./assets-
|
|
3232
|
+
import React18 from "react";
|
|
3233
|
+
var src = async () => (await import("./assets-4NDWRKXE.js")).default;
|
|
2465
3234
|
var preloadAssetsIcon = () => loadImages(src);
|
|
2466
|
-
var AssetsIcon = () => /* @__PURE__ */
|
|
3235
|
+
var AssetsIcon = () => /* @__PURE__ */ React18.createElement(
|
|
2467
3236
|
AsyncImage,
|
|
2468
3237
|
{
|
|
2469
3238
|
background: "#d0d5de",
|
|
@@ -2475,10 +3244,10 @@ var AssetsIcon = () => /* @__PURE__ */ React17.createElement(
|
|
|
2475
3244
|
);
|
|
2476
3245
|
|
|
2477
3246
|
// src/components/Icons/Login.tsx
|
|
2478
|
-
import
|
|
2479
|
-
var src2 = async () => (await import("./login-
|
|
3247
|
+
import React19 from "react";
|
|
3248
|
+
var src2 = async () => (await import("./login-DGIK764Z.js")).default;
|
|
2480
3249
|
var preloadLoginIcon = () => loadImages(src2);
|
|
2481
|
-
var LoginIcon = () => /* @__PURE__ */
|
|
3250
|
+
var LoginIcon = () => /* @__PURE__ */ React19.createElement(
|
|
2482
3251
|
AsyncImage,
|
|
2483
3252
|
{
|
|
2484
3253
|
background: "#d0d5de",
|
|
@@ -2490,16 +3259,16 @@ var LoginIcon = () => /* @__PURE__ */ React18.createElement(
|
|
|
2490
3259
|
);
|
|
2491
3260
|
|
|
2492
3261
|
// src/components/SignIn/SignIn.tsx
|
|
2493
|
-
import
|
|
3262
|
+
import React24, { useCallback as useCallback5, useContext as useContext7, useRef } from "react";
|
|
2494
3263
|
import { UserRejectedRequestError } from "viem";
|
|
2495
3264
|
import { useAccount as useAccount8, useSignMessage } from "wagmi";
|
|
2496
3265
|
|
|
2497
3266
|
// src/components/Button/ActionButton.tsx
|
|
2498
|
-
import
|
|
3267
|
+
import React21 from "react";
|
|
2499
3268
|
|
|
2500
3269
|
// src/components/Text/Text.tsx
|
|
2501
|
-
import
|
|
2502
|
-
var Text =
|
|
3270
|
+
import React20 from "react";
|
|
3271
|
+
var Text = React20.forwardRef(
|
|
2503
3272
|
({
|
|
2504
3273
|
as = "div",
|
|
2505
3274
|
children,
|
|
@@ -2515,7 +3284,7 @@ var Text = React19.forwardRef(
|
|
|
2515
3284
|
weight = "regular",
|
|
2516
3285
|
testId
|
|
2517
3286
|
}, ref) => {
|
|
2518
|
-
return /* @__PURE__ */
|
|
3287
|
+
return /* @__PURE__ */ React20.createElement(
|
|
2519
3288
|
Box,
|
|
2520
3289
|
{
|
|
2521
3290
|
as,
|
|
@@ -2574,7 +3343,7 @@ function ActionButton({
|
|
|
2574
3343
|
const background = !disabled ? isPrimary ? "accentColor" : isNotLarge ? "actionButtonSecondaryBackground" : null : "actionButtonSecondaryBackground";
|
|
2575
3344
|
const { fontSize, height, paddingX, paddingY } = sizeVariants[size];
|
|
2576
3345
|
const hasBorder = !mobile || !isNotLarge;
|
|
2577
|
-
return /* @__PURE__ */
|
|
3346
|
+
return /* @__PURE__ */ React21.createElement(
|
|
2578
3347
|
Box,
|
|
2579
3348
|
{
|
|
2580
3349
|
...href ? !disabled ? { as: "a", href, rel, target } : {} : { as: "button", type: "button" },
|
|
@@ -2596,7 +3365,7 @@ function ActionButton({
|
|
|
2596
3365
|
...background ? { background } : {},
|
|
2597
3366
|
...height ? { height } : {}
|
|
2598
3367
|
},
|
|
2599
|
-
/* @__PURE__ */
|
|
3368
|
+
/* @__PURE__ */ React21.createElement(
|
|
2600
3369
|
Text,
|
|
2601
3370
|
{
|
|
2602
3371
|
color: !disabled ? isPrimary ? "accentColorForeground" : "accentColor" : "modalTextSecondary",
|
|
@@ -2609,12 +3378,12 @@ function ActionButton({
|
|
|
2609
3378
|
}
|
|
2610
3379
|
|
|
2611
3380
|
// src/components/CloseButton/CloseButton.tsx
|
|
2612
|
-
import
|
|
3381
|
+
import React23 from "react";
|
|
2613
3382
|
|
|
2614
3383
|
// src/components/Icons/Close.tsx
|
|
2615
|
-
import
|
|
3384
|
+
import React22 from "react";
|
|
2616
3385
|
var CloseIcon = () => {
|
|
2617
|
-
return isMobile() ? /* @__PURE__ */
|
|
3386
|
+
return isMobile() ? /* @__PURE__ */ React22.createElement(
|
|
2618
3387
|
"svg",
|
|
2619
3388
|
{
|
|
2620
3389
|
"aria-hidden": true,
|
|
@@ -2624,15 +3393,15 @@ var CloseIcon = () => {
|
|
|
2624
3393
|
width: "11.5",
|
|
2625
3394
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2626
3395
|
},
|
|
2627
|
-
/* @__PURE__ */
|
|
2628
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ React22.createElement("title", null, "Close"),
|
|
3397
|
+
/* @__PURE__ */ React22.createElement(
|
|
2629
3398
|
"path",
|
|
2630
3399
|
{
|
|
2631
3400
|
d: "M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",
|
|
2632
3401
|
fill: "currentColor"
|
|
2633
3402
|
}
|
|
2634
3403
|
)
|
|
2635
|
-
) : /* @__PURE__ */
|
|
3404
|
+
) : /* @__PURE__ */ React22.createElement(
|
|
2636
3405
|
"svg",
|
|
2637
3406
|
{
|
|
2638
3407
|
"aria-hidden": true,
|
|
@@ -2642,8 +3411,8 @@ var CloseIcon = () => {
|
|
|
2642
3411
|
width: "10",
|
|
2643
3412
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2644
3413
|
},
|
|
2645
|
-
/* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
3414
|
+
/* @__PURE__ */ React22.createElement("title", null, "Close"),
|
|
3415
|
+
/* @__PURE__ */ React22.createElement(
|
|
2647
3416
|
"path",
|
|
2648
3417
|
{
|
|
2649
3418
|
d: "M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",
|
|
@@ -2659,7 +3428,7 @@ var CloseButton = ({
|
|
|
2659
3428
|
onClose
|
|
2660
3429
|
}) => {
|
|
2661
3430
|
const mobile = isMobile();
|
|
2662
|
-
return /* @__PURE__ */
|
|
3431
|
+
return /* @__PURE__ */ React23.createElement(
|
|
2663
3432
|
Box,
|
|
2664
3433
|
{
|
|
2665
3434
|
alignItems: "center",
|
|
@@ -2681,18 +3450,18 @@ var CloseButton = ({
|
|
|
2681
3450
|
type: "button",
|
|
2682
3451
|
width: mobile ? "30" : "28"
|
|
2683
3452
|
},
|
|
2684
|
-
/* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ React23.createElement(CloseIcon, null)
|
|
2685
3454
|
);
|
|
2686
3455
|
};
|
|
2687
3456
|
|
|
2688
3457
|
// src/components/SignIn/SignIn.tsx
|
|
2689
|
-
var signInIcon = async () => (await import("./sign-
|
|
3458
|
+
var signInIcon = async () => (await import("./sign-PREOQ4RR.js")).default;
|
|
2690
3459
|
function SignIn({
|
|
2691
3460
|
onClose,
|
|
2692
3461
|
onCloseModal
|
|
2693
3462
|
}) {
|
|
2694
3463
|
const { i18n: i18n2 } = useContext7(I18nContext);
|
|
2695
|
-
const [{ status, ...state }, setState] =
|
|
3464
|
+
const [{ status, ...state }, setState] = React24.useState({ status: "idle" });
|
|
2696
3465
|
const authAdapter = useAuthenticationAdapter();
|
|
2697
3466
|
const getNonce = useCallback5(async () => {
|
|
2698
3467
|
try {
|
|
@@ -2707,7 +3476,7 @@ function SignIn({
|
|
|
2707
3476
|
}
|
|
2708
3477
|
}, [authAdapter, i18n2.t]);
|
|
2709
3478
|
const onceRef = useRef(false);
|
|
2710
|
-
|
|
3479
|
+
React24.useEffect(() => {
|
|
2711
3480
|
if (onceRef.current)
|
|
2712
3481
|
return;
|
|
2713
3482
|
onceRef.current = true;
|
|
@@ -2769,7 +3538,7 @@ function SignIn({
|
|
|
2769
3538
|
});
|
|
2770
3539
|
}
|
|
2771
3540
|
};
|
|
2772
|
-
return /* @__PURE__ */
|
|
3541
|
+
return /* @__PURE__ */ React24.createElement(Box, { position: "relative" }, /* @__PURE__ */ React24.createElement(
|
|
2773
3542
|
Box,
|
|
2774
3543
|
{
|
|
2775
3544
|
display: "flex",
|
|
@@ -2778,8 +3547,8 @@ function SignIn({
|
|
|
2778
3547
|
position: "absolute",
|
|
2779
3548
|
right: "0"
|
|
2780
3549
|
},
|
|
2781
|
-
/* @__PURE__ */
|
|
2782
|
-
), /* @__PURE__ */
|
|
3550
|
+
/* @__PURE__ */ React24.createElement(CloseButton, { onClose })
|
|
3551
|
+
), /* @__PURE__ */ React24.createElement(
|
|
2783
3552
|
Box,
|
|
2784
3553
|
{
|
|
2785
3554
|
alignItems: "center",
|
|
@@ -2790,7 +3559,7 @@ function SignIn({
|
|
|
2790
3559
|
paddingX: "18",
|
|
2791
3560
|
style: { paddingTop: mobile ? "60px" : "36px" }
|
|
2792
3561
|
},
|
|
2793
|
-
/* @__PURE__ */
|
|
3562
|
+
/* @__PURE__ */ React24.createElement(
|
|
2794
3563
|
Box,
|
|
2795
3564
|
{
|
|
2796
3565
|
alignItems: "center",
|
|
@@ -2799,7 +3568,7 @@ function SignIn({
|
|
|
2799
3568
|
gap: mobile ? "6" : "4",
|
|
2800
3569
|
style: { maxWidth: mobile ? 320 : 280 }
|
|
2801
3570
|
},
|
|
2802
|
-
/* @__PURE__ */
|
|
3571
|
+
/* @__PURE__ */ React24.createElement(
|
|
2803
3572
|
Box,
|
|
2804
3573
|
{
|
|
2805
3574
|
alignItems: "center",
|
|
@@ -2807,8 +3576,8 @@ function SignIn({
|
|
|
2807
3576
|
flexDirection: "column",
|
|
2808
3577
|
gap: mobile ? "32" : "16"
|
|
2809
3578
|
},
|
|
2810
|
-
/* @__PURE__ */
|
|
2811
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ React24.createElement(AsyncImage, { height: 40, src: signInIcon, width: 40 }),
|
|
3580
|
+
/* @__PURE__ */ React24.createElement(
|
|
2812
3581
|
Text,
|
|
2813
3582
|
{
|
|
2814
3583
|
color: "modalText",
|
|
@@ -2819,7 +3588,7 @@ function SignIn({
|
|
|
2819
3588
|
i18n2.t("sign_in.label")
|
|
2820
3589
|
)
|
|
2821
3590
|
),
|
|
2822
|
-
/* @__PURE__ */
|
|
3591
|
+
/* @__PURE__ */ React24.createElement(
|
|
2823
3592
|
Box,
|
|
2824
3593
|
{
|
|
2825
3594
|
alignItems: "center",
|
|
@@ -2827,7 +3596,7 @@ function SignIn({
|
|
|
2827
3596
|
flexDirection: "column",
|
|
2828
3597
|
gap: mobile ? "16" : "12"
|
|
2829
3598
|
},
|
|
2830
|
-
/* @__PURE__ */
|
|
3599
|
+
/* @__PURE__ */ React24.createElement(
|
|
2831
3600
|
Text,
|
|
2832
3601
|
{
|
|
2833
3602
|
color: "modalTextSecondary",
|
|
@@ -2836,7 +3605,7 @@ function SignIn({
|
|
|
2836
3605
|
},
|
|
2837
3606
|
i18n2.t("sign_in.description")
|
|
2838
3607
|
),
|
|
2839
|
-
status === "idle" && state.errorMessage ? /* @__PURE__ */
|
|
3608
|
+
status === "idle" && state.errorMessage ? /* @__PURE__ */ React24.createElement(
|
|
2840
3609
|
Text,
|
|
2841
3610
|
{
|
|
2842
3611
|
color: "error",
|
|
@@ -2848,7 +3617,7 @@ function SignIn({
|
|
|
2848
3617
|
) : null
|
|
2849
3618
|
)
|
|
2850
3619
|
),
|
|
2851
|
-
/* @__PURE__ */
|
|
3620
|
+
/* @__PURE__ */ React24.createElement(
|
|
2852
3621
|
Box,
|
|
2853
3622
|
{
|
|
2854
3623
|
alignItems: !mobile ? "center" : void 0,
|
|
@@ -2857,7 +3626,7 @@ function SignIn({
|
|
|
2857
3626
|
gap: "8",
|
|
2858
3627
|
width: "full"
|
|
2859
3628
|
},
|
|
2860
|
-
/* @__PURE__ */
|
|
3629
|
+
/* @__PURE__ */ React24.createElement(
|
|
2861
3630
|
ActionButton,
|
|
2862
3631
|
{
|
|
2863
3632
|
disabled: !state.nonce || status === "signing" || status === "verifying",
|
|
@@ -2867,7 +3636,7 @@ function SignIn({
|
|
|
2867
3636
|
testId: "auth-message-button"
|
|
2868
3637
|
}
|
|
2869
3638
|
),
|
|
2870
|
-
mobile ? /* @__PURE__ */
|
|
3639
|
+
mobile ? /* @__PURE__ */ React24.createElement(
|
|
2871
3640
|
ActionButton,
|
|
2872
3641
|
{
|
|
2873
3642
|
label: "Cancel",
|
|
@@ -2875,7 +3644,7 @@ function SignIn({
|
|
|
2875
3644
|
size: "large",
|
|
2876
3645
|
type: "secondary"
|
|
2877
3646
|
}
|
|
2878
|
-
) : /* @__PURE__ */
|
|
3647
|
+
) : /* @__PURE__ */ React24.createElement(
|
|
2879
3648
|
Box,
|
|
2880
3649
|
{
|
|
2881
3650
|
as: "button",
|
|
@@ -2890,7 +3659,7 @@ function SignIn({
|
|
|
2890
3659
|
target: "_blank",
|
|
2891
3660
|
transition: "default"
|
|
2892
3661
|
},
|
|
2893
|
-
/* @__PURE__ */
|
|
3662
|
+
/* @__PURE__ */ React24.createElement(
|
|
2894
3663
|
Text,
|
|
2895
3664
|
{
|
|
2896
3665
|
color: "closeButton",
|
|
@@ -2945,35 +3714,6 @@ function clearWalletConnectDeepLink() {
|
|
|
2945
3714
|
localStorage.removeItem(storageKey4);
|
|
2946
3715
|
}
|
|
2947
3716
|
|
|
2948
|
-
// src/solana/SolanaWalletProvider.tsx
|
|
2949
|
-
import React24, { useMemo as useMemo8 } from "react";
|
|
2950
|
-
import { WalletProvider } from "@solana/wallet-adapter-react";
|
|
2951
|
-
import {
|
|
2952
|
-
PhantomWalletAdapter,
|
|
2953
|
-
SolflareWalletAdapter
|
|
2954
|
-
} from "@solana/wallet-adapter-wallets";
|
|
2955
|
-
function SolanaWalletProvider({
|
|
2956
|
-
children,
|
|
2957
|
-
wallets: customWallets,
|
|
2958
|
-
autoConnect = false
|
|
2959
|
-
}) {
|
|
2960
|
-
const wallets = useMemo8(
|
|
2961
|
-
() => {
|
|
2962
|
-
if (customWallets) {
|
|
2963
|
-
return customWallets;
|
|
2964
|
-
}
|
|
2965
|
-
return [
|
|
2966
|
-
new PhantomWalletAdapter(),
|
|
2967
|
-
new SolflareWalletAdapter()
|
|
2968
|
-
// TODO: Add Backpack when available in wallet-adapter-wallets
|
|
2969
|
-
// TODO: Add AbcSolanaWalletAdapter when ready
|
|
2970
|
-
];
|
|
2971
|
-
},
|
|
2972
|
-
[customWallets]
|
|
2973
|
-
);
|
|
2974
|
-
return /* @__PURE__ */ React24.createElement(WalletProvider, { wallets, autoConnect }, children);
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
3717
|
// src/components/RainbowKitProvider/RainbowKitProvider.tsx
|
|
2978
3718
|
var ThemeIdContext = createContext12(void 0);
|
|
2979
3719
|
var attr = "data-rk";
|
|
@@ -7175,7 +7915,7 @@ var isHexString = (color) => {
|
|
|
7175
7915
|
|
|
7176
7916
|
// src/components/Icons/Connect.tsx
|
|
7177
7917
|
import React54 from "react";
|
|
7178
|
-
var src3 = async () => (await import("./connect-
|
|
7918
|
+
var src3 = async () => (await import("./connect-Q2RLUT5B.js")).default;
|
|
7179
7919
|
var preloadConnectIcon = () => loadImages(src3);
|
|
7180
7920
|
var ConnectIcon = () => /* @__PURE__ */ React54.createElement(
|
|
7181
7921
|
AsyncImage,
|
|
@@ -7191,7 +7931,7 @@ var ConnectIcon = () => /* @__PURE__ */ React54.createElement(
|
|
|
7191
7931
|
|
|
7192
7932
|
// src/components/Icons/Create.tsx
|
|
7193
7933
|
import React55 from "react";
|
|
7194
|
-
var src4 = async () => (await import("./create-
|
|
7934
|
+
var src4 = async () => (await import("./create-HQ4QXTKY.js")).default;
|
|
7195
7935
|
var preloadCreateIcon = () => loadImages(src4);
|
|
7196
7936
|
var CreateIcon = () => /* @__PURE__ */ React55.createElement(
|
|
7197
7937
|
AsyncImage,
|
|
@@ -7207,7 +7947,7 @@ var CreateIcon = () => /* @__PURE__ */ React55.createElement(
|
|
|
7207
7947
|
|
|
7208
7948
|
// src/components/Icons/Refresh.tsx
|
|
7209
7949
|
import React56 from "react";
|
|
7210
|
-
var src5 = async () => (await import("./refresh-
|
|
7950
|
+
var src5 = async () => (await import("./refresh-R5NYTT3S.js")).default;
|
|
7211
7951
|
var preloadRefreshIcon = () => loadImages(src5);
|
|
7212
7952
|
var RefreshIcon = () => /* @__PURE__ */ React56.createElement(
|
|
7213
7953
|
AsyncImage,
|
|
@@ -7223,7 +7963,7 @@ var RefreshIcon = () => /* @__PURE__ */ React56.createElement(
|
|
|
7223
7963
|
|
|
7224
7964
|
// src/components/Icons/Scan.tsx
|
|
7225
7965
|
import React57 from "react";
|
|
7226
|
-
var src6 = async () => (await import("./scan-
|
|
7966
|
+
var src6 = async () => (await import("./scan-BVZ7DVJ4.js")).default;
|
|
7227
7967
|
var preloadScanIcon = () => loadImages(src6);
|
|
7228
7968
|
var ScanIcon = () => /* @__PURE__ */ React57.createElement(
|
|
7229
7969
|
AsyncImage,
|
|
@@ -7385,21 +8125,21 @@ var getBrowserSrc = async () => {
|
|
|
7385
8125
|
const browser = getBrowser();
|
|
7386
8126
|
switch (browser) {
|
|
7387
8127
|
case "Arc" /* Arc */:
|
|
7388
|
-
return (await import("./Arc-
|
|
8128
|
+
return (await import("./Arc-ILTINY4C.js")).default;
|
|
7389
8129
|
case "Brave" /* Brave */:
|
|
7390
|
-
return (await import("./Brave-
|
|
8130
|
+
return (await import("./Brave-4L5B7JJR.js")).default;
|
|
7391
8131
|
case "Chrome" /* Chrome */:
|
|
7392
|
-
return (await import("./Chrome-
|
|
8132
|
+
return (await import("./Chrome-6ZDQIHC5.js")).default;
|
|
7393
8133
|
case "Edge" /* Edge */:
|
|
7394
|
-
return (await import("./Edge-
|
|
8134
|
+
return (await import("./Edge-OAWCEU7H.js")).default;
|
|
7395
8135
|
case "Firefox" /* Firefox */:
|
|
7396
|
-
return (await import("./Firefox-
|
|
8136
|
+
return (await import("./Firefox-O66FZK3V.js")).default;
|
|
7397
8137
|
case "Opera" /* Opera */:
|
|
7398
|
-
return (await import("./Opera-
|
|
8138
|
+
return (await import("./Opera-KTUB3UWN.js")).default;
|
|
7399
8139
|
case "Safari" /* Safari */:
|
|
7400
|
-
return (await import("./Safari-
|
|
8140
|
+
return (await import("./Safari-A3Q6PIT2.js")).default;
|
|
7401
8141
|
default:
|
|
7402
|
-
return (await import("./Browser-
|
|
8142
|
+
return (await import("./Browser-XMB4J5WD.js")).default;
|
|
7403
8143
|
}
|
|
7404
8144
|
};
|
|
7405
8145
|
var preloadBrowserIcon = () => loadImages(getBrowserSrc);
|
|
@@ -7407,13 +8147,13 @@ var getPlatformSrc = async () => {
|
|
|
7407
8147
|
const platform = getPlatform();
|
|
7408
8148
|
switch (platform) {
|
|
7409
8149
|
case "Windows" /* Windows */:
|
|
7410
|
-
return (await import("./Windows-
|
|
8150
|
+
return (await import("./Windows-NL32NG52.js")).default;
|
|
7411
8151
|
case "macOS" /* MacOS */:
|
|
7412
|
-
return (await import("./Macos-
|
|
8152
|
+
return (await import("./Macos-46EJ2NPK.js")).default;
|
|
7413
8153
|
case "Linux" /* Linux */:
|
|
7414
|
-
return (await import("./Linux-
|
|
8154
|
+
return (await import("./Linux-NUJF4EPC.js")).default;
|
|
7415
8155
|
default:
|
|
7416
|
-
return (await import("./Linux-
|
|
8156
|
+
return (await import("./Linux-NUJF4EPC.js")).default;
|
|
7417
8157
|
}
|
|
7418
8158
|
};
|
|
7419
8159
|
var preloadPlatformIcon = () => loadImages(getPlatformSrc);
|
|
@@ -8387,7 +9127,7 @@ function DesktopOptions({
|
|
|
8387
9127
|
const { connect } = useConnect2();
|
|
8388
9128
|
const connectors = useConnectors();
|
|
8389
9129
|
const groupedWallets = groupBy(wallets, (wallet) => wallet.groupName);
|
|
8390
|
-
const
|
|
9130
|
+
const _supportedI18nGroupNames = [
|
|
8391
9131
|
"Recommended",
|
|
8392
9132
|
"Other",
|
|
8393
9133
|
"Popular",
|
|
@@ -10116,15 +10856,17 @@ function DesktopOptions({
|
|
|
10116
10856
|
return installedWallets.length > 0 && /* @__PURE__ */ React60.createElement(Fragment2, null, /* @__PURE__ */ React60.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React60.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, "Ethereum")), /* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, (() => {
|
|
10117
10857
|
const recentWalletIds = getRecentWalletIds();
|
|
10118
10858
|
const mostRecentWalletId = recentWalletIds[0];
|
|
10119
|
-
const sortedWallets = [...installedWallets].sort(
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10859
|
+
const sortedWallets = [...installedWallets].sort(
|
|
10860
|
+
(a, b) => {
|
|
10861
|
+
const aIsRecent = a.id === mostRecentWalletId;
|
|
10862
|
+
const bIsRecent = b.id === mostRecentWalletId;
|
|
10863
|
+
if (aIsRecent && !bIsRecent)
|
|
10864
|
+
return -1;
|
|
10865
|
+
if (!aIsRecent && bIsRecent)
|
|
10866
|
+
return 1;
|
|
10867
|
+
return a.name.localeCompare(b.name);
|
|
10868
|
+
}
|
|
10869
|
+
);
|
|
10128
10870
|
return sortedWallets.map((wallet) => /* @__PURE__ */ React60.createElement(
|
|
10129
10871
|
ModalSelection,
|
|
10130
10872
|
{
|
|
@@ -10141,7 +10883,7 @@ function DesktopOptions({
|
|
|
10141
10883
|
}
|
|
10142
10884
|
));
|
|
10143
10885
|
})()));
|
|
10144
|
-
})(), solanaWallets
|
|
10886
|
+
})(), solanaWallets?.Solana && solanaWallets.Solana.length > 0 && (() => {
|
|
10145
10887
|
const recentWalletIds = getRecentSolanaWalletIds();
|
|
10146
10888
|
const recentWalletId = recentWalletIds[0];
|
|
10147
10889
|
return /* @__PURE__ */ React60.createElement(Fragment2, null, /* @__PURE__ */ React60.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React60.createElement(Text, { color: "accentColor", size: "14", weight: "bold" }, "Solana")), /* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, solanaWallets.Solana.map((wallet, index) => {
|
|
@@ -10174,7 +10916,15 @@ function DesktopOptions({
|
|
|
10174
10916
|
}
|
|
10175
10917
|
return found;
|
|
10176
10918
|
}).filter((w) => w !== void 0);
|
|
10177
|
-
return popularWallets.length > 0 && /* @__PURE__ */ React60.createElement(Fragment2, null, /* @__PURE__ */ React60.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React60.createElement(
|
|
10919
|
+
return popularWallets.length > 0 && /* @__PURE__ */ React60.createElement(Fragment2, null, /* @__PURE__ */ React60.createElement(Box, { marginBottom: "8", marginTop: "16", marginX: "6" }, /* @__PURE__ */ React60.createElement(
|
|
10920
|
+
Text,
|
|
10921
|
+
{
|
|
10922
|
+
color: "modalTextSecondary",
|
|
10923
|
+
size: "14",
|
|
10924
|
+
weight: "bold"
|
|
10925
|
+
},
|
|
10926
|
+
i18n2.t("connector_group.popular")
|
|
10927
|
+
)), /* @__PURE__ */ React60.createElement(Box, { display: "flex", flexDirection: "column", gap: "4" }, popularWallets.map((wallet) => /* @__PURE__ */ React60.createElement(
|
|
10178
10928
|
ModalSelection,
|
|
10179
10929
|
{
|
|
10180
10930
|
currentlySelected: wallet.id === selectedOptionId,
|
|
@@ -10827,12 +11577,12 @@ function ConnectOptions({ onClose }) {
|
|
|
10827
11577
|
}
|
|
10828
11578
|
|
|
10829
11579
|
// src/components/ConnectOptions/MultiChainConnectOptions.tsx
|
|
10830
|
-
import React66, { useContext as useContext22, useCallback as useCallback13, useState as useState19 } from "react";
|
|
10831
11580
|
import { useWallet as useWallet3 } from "@solana/wallet-adapter-react";
|
|
11581
|
+
import React66, { useContext as useContext22, useCallback as useCallback13, useState as useState19 } from "react";
|
|
10832
11582
|
|
|
10833
11583
|
// src/components/ChainSelector/ChainSelector.tsx
|
|
10834
|
-
import React64 from "react";
|
|
10835
11584
|
import clsx3 from "clsx";
|
|
11585
|
+
import React64 from "react";
|
|
10836
11586
|
|
|
10837
11587
|
// src/components/ChainSelector/ChainSelector.css.ts
|
|
10838
11588
|
var chainOption = "_6lfrtn3 kwh1ipa kwh1ip4 kwh1ip2q kwh1ipy kwh1ip8u";
|
|
@@ -10893,8 +11643,8 @@ function ChainSelector({
|
|
|
10893
11643
|
}
|
|
10894
11644
|
|
|
10895
11645
|
// src/components/SolanaWalletList/SolanaWalletList.tsx
|
|
10896
|
-
import React65, { useCallback as useCallback12, useState as useState18 } from "react";
|
|
10897
11646
|
import { useWallet as useWallet2 } from "@solana/wallet-adapter-react";
|
|
11647
|
+
import React65, { useCallback as useCallback12, useState as useState18 } from "react";
|
|
10898
11648
|
|
|
10899
11649
|
// src/components/SolanaWalletList/SolanaWalletList.css.ts
|
|
10900
11650
|
var installButton = "lkxkyzc kwh1ip19 kwh1ip1f";
|
|
@@ -10988,7 +11738,7 @@ function MultiChainConnectOptions({
|
|
|
10988
11738
|
if (!multiChainContext) {
|
|
10989
11739
|
return isMobile() ? connector ? /* @__PURE__ */ React66.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React66.createElement(MobileOptions, { onClose }) : /* @__PURE__ */ React66.createElement(DesktopOptions, { onClose });
|
|
10990
11740
|
}
|
|
10991
|
-
const { activeChain, setActiveChain
|
|
11741
|
+
const { activeChain, setActiveChain } = multiChainContext;
|
|
10992
11742
|
if (isMobile()) {
|
|
10993
11743
|
return connector ? /* @__PURE__ */ React66.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React66.createElement(MobileOptions, { onClose });
|
|
10994
11744
|
}
|
|
@@ -11005,14 +11755,7 @@ function MultiChainConnectOptions({
|
|
|
11005
11755
|
return /* @__PURE__ */ React66.createElement(UnifiedWalletList, { onClose });
|
|
11006
11756
|
}
|
|
11007
11757
|
function UnifiedWalletList({ onClose }) {
|
|
11008
|
-
const {
|
|
11009
|
-
wallets: solanaWallets,
|
|
11010
|
-
select,
|
|
11011
|
-
connecting,
|
|
11012
|
-
wallet: selectedWallet,
|
|
11013
|
-
publicKey,
|
|
11014
|
-
connected: solanaConnected
|
|
11015
|
-
} = useWallet3();
|
|
11758
|
+
const { wallets: solanaWallets, select, connecting } = useWallet3();
|
|
11016
11759
|
const multiChainContext = useContext22(MultiChainContext);
|
|
11017
11760
|
const [connectingWallet, setConnectingWallet] = useState19(null);
|
|
11018
11761
|
const [shouldCloseOnConnect, setShouldCloseOnConnect] = useState19(false);
|
|
@@ -11055,7 +11798,9 @@ function UnifiedWalletList({ onClose }) {
|
|
|
11055
11798
|
console.error("[UnifiedWalletList] \u274C Solana connection error:", err);
|
|
11056
11799
|
const isUserRejection = err?.name === "WalletConnectionError" || err?.name === "WalletNotReadyError" || err?.message?.includes("User rejected") || err?.message?.includes("User canceled");
|
|
11057
11800
|
if (!isUserRejection) {
|
|
11058
|
-
alert(
|
|
11801
|
+
alert(
|
|
11802
|
+
`Failed to connect to ${walletName2}: ${err?.message || "Unknown error"}`
|
|
11803
|
+
);
|
|
11059
11804
|
}
|
|
11060
11805
|
} finally {
|
|
11061
11806
|
setConnectingWallet(null);
|
|
@@ -11175,7 +11920,7 @@ function ModalProvider({ children }) {
|
|
|
11175
11920
|
const { chains } = useConfig3();
|
|
11176
11921
|
const isCurrentChainSupported = chains.some((chain) => chain.id === chainId);
|
|
11177
11922
|
const multiChainContext = useContext24(MultiChainContext);
|
|
11178
|
-
const
|
|
11923
|
+
const _isAnyChainConnected = connectionStatus === "connected" || multiChainContext?.solanaConnected;
|
|
11179
11924
|
const closeModals = useCallback14(
|
|
11180
11925
|
({ keepConnectModalOpen = false } = {}) => {
|
|
11181
11926
|
if (!keepConnectModalOpen) {
|
|
@@ -12089,7 +12834,7 @@ var coinbaseWallet = ({ appName, appIcon }) => {
|
|
|
12089
12834
|
name: "Coinbase Wallet",
|
|
12090
12835
|
shortName: "Coinbase",
|
|
12091
12836
|
rdns: "com.coinbase.wallet",
|
|
12092
|
-
iconUrl: async () => (await import("./coinbaseWallet-
|
|
12837
|
+
iconUrl: async () => (await import("./coinbaseWallet-L4QDZB5W.js")).default,
|
|
12093
12838
|
iconAccent: "#2c5ff6",
|
|
12094
12839
|
iconBackground: "#2c5ff6",
|
|
12095
12840
|
// If the coinbase wallet browser extension is not installed, a popup will appear
|
|
@@ -12261,7 +13006,7 @@ var metaMaskWallet = ({
|
|
|
12261
13006
|
id: "metaMask",
|
|
12262
13007
|
name: "MetaMask",
|
|
12263
13008
|
rdns: "io.metamask",
|
|
12264
|
-
iconUrl: async () => (await import("./metaMaskWallet-
|
|
13009
|
+
iconUrl: async () => (await import("./metaMaskWallet-ZZMFVM52.js")).default,
|
|
12265
13010
|
iconAccent: "#f6851a",
|
|
12266
13011
|
iconBackground: "#fff",
|
|
12267
13012
|
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
@@ -12351,7 +13096,7 @@ var rainbowWallet = ({
|
|
|
12351
13096
|
id: "rainbow",
|
|
12352
13097
|
name: "Rainbow",
|
|
12353
13098
|
rdns: "me.rainbow",
|
|
12354
|
-
iconUrl: async () => (await import("./rainbowWallet-
|
|
13099
|
+
iconUrl: async () => (await import("./rainbowWallet-4ALDT5ZL.js")).default,
|
|
12355
13100
|
iconBackground: "#0c2f78",
|
|
12356
13101
|
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
12357
13102
|
downloadUrls: {
|
|
@@ -12400,7 +13145,7 @@ var safeWallet = () => ({
|
|
|
12400
13145
|
name: "Safe",
|
|
12401
13146
|
iconAccent: "#12ff80",
|
|
12402
13147
|
iconBackground: "#fff",
|
|
12403
|
-
iconUrl: async () => (await import("./safeWallet-
|
|
13148
|
+
iconUrl: async () => (await import("./safeWallet-5NR62MJV.js")).default,
|
|
12404
13149
|
installed: (
|
|
12405
13150
|
// Only allowed in iframe context
|
|
12406
13151
|
// borrowed from wagmi safe connector
|
|
@@ -12429,7 +13174,7 @@ var walletConnectWallet = ({
|
|
|
12429
13174
|
id: "walletConnect",
|
|
12430
13175
|
name: "WalletConnect",
|
|
12431
13176
|
installed: void 0,
|
|
12432
|
-
iconUrl: async () => (await import("./walletConnectWallet-
|
|
13177
|
+
iconUrl: async () => (await import("./walletConnectWallet-AJ36XVBT.js")).default,
|
|
12433
13178
|
iconBackground: "#3b99fc",
|
|
12434
13179
|
qrCode: { getUri },
|
|
12435
13180
|
createConnector: getWalletConnectConnector({
|
|
@@ -14258,91 +15003,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14258
15003
|
console.log(`[BitcoinApi] \u2705 Found ${utxos.length} UTXOs`);
|
|
14259
15004
|
return utxos;
|
|
14260
15005
|
}
|
|
14261
|
-
/**
|
|
14262
|
-
* Sign Bitcoin transaction (PSBT-based)
|
|
14263
|
-
* Bitcoin transactions are signed using PSBT (BIP-174) format
|
|
14264
|
-
* Each input requires individual signature
|
|
14265
|
-
*
|
|
14266
|
-
* @param params - Transaction signing parameters
|
|
14267
|
-
* @returns Signed PSBT with multiple input signatures
|
|
14268
|
-
*/
|
|
14269
|
-
async signBitcoinTransaction(params) {
|
|
14270
|
-
const url = `${this.baseURL}/v3/wallet/sign`;
|
|
14271
|
-
console.log("[BitcoinApi] \u{1F510} Signing Bitcoin transaction (PSBT)...");
|
|
14272
|
-
const response = await fetch(url, {
|
|
14273
|
-
method: "POST",
|
|
14274
|
-
headers: {
|
|
14275
|
-
...DEFAULT_HEADERS,
|
|
14276
|
-
...this.accessToken ? { Authorization: `Bearer ${this.accessToken}` } : {}
|
|
14277
|
-
},
|
|
14278
|
-
body: JSON.stringify({
|
|
14279
|
-
uid: params.uid,
|
|
14280
|
-
share_id: params.shareId,
|
|
14281
|
-
message: params.psbt,
|
|
14282
|
-
// PSBT in base64
|
|
14283
|
-
password: params.pin,
|
|
14284
|
-
network: params.network
|
|
14285
|
-
})
|
|
14286
|
-
});
|
|
14287
|
-
const data = await response.json();
|
|
14288
|
-
if (!response.ok || data.status !== "success") {
|
|
14289
|
-
console.error("[BitcoinApi] \u274C Transaction signing failed:", data);
|
|
14290
|
-
throw createAbcError(
|
|
14291
|
-
"SIGNATURE_FAILED" /* SIGNATURE_FAILED */,
|
|
14292
|
-
"Failed to sign Bitcoin transaction",
|
|
14293
|
-
data
|
|
14294
|
-
);
|
|
14295
|
-
}
|
|
14296
|
-
console.log("[BitcoinApi] \u2705 Transaction signed successfully");
|
|
14297
|
-
return {
|
|
14298
|
-
signedPsbt: data.result?.signedPsbt,
|
|
14299
|
-
signatures: data.result?.signatures || []
|
|
14300
|
-
};
|
|
14301
|
-
}
|
|
14302
|
-
/**
|
|
14303
|
-
* Sign Bitcoin message (BIP-322)
|
|
14304
|
-
* Bitcoin message signing using BIP-322 standard
|
|
14305
|
-
* Supports both legacy and modern address types
|
|
14306
|
-
*
|
|
14307
|
-
* @param params - Message signing parameters
|
|
14308
|
-
* @returns BIP-322 signature
|
|
14309
|
-
*/
|
|
14310
|
-
async signBitcoinMessage(params) {
|
|
14311
|
-
const url = `${this.baseURL}/v3/wallet/sign`;
|
|
14312
|
-
console.log("[BitcoinApi] \u{1F510} Signing Bitcoin message (BIP-322)...");
|
|
14313
|
-
const response = await fetch(url, {
|
|
14314
|
-
method: "POST",
|
|
14315
|
-
headers: {
|
|
14316
|
-
...DEFAULT_HEADERS,
|
|
14317
|
-
...this.accessToken ? { Authorization: `Bearer ${this.accessToken}` } : {}
|
|
14318
|
-
},
|
|
14319
|
-
body: JSON.stringify({
|
|
14320
|
-
uid: params.uid,
|
|
14321
|
-
share_id: params.shareId,
|
|
14322
|
-
message: params.message,
|
|
14323
|
-
// Hex-encoded message
|
|
14324
|
-
password: params.pin,
|
|
14325
|
-
messageType: params.messageType || "bip322",
|
|
14326
|
-
network: params.network
|
|
14327
|
-
})
|
|
14328
|
-
});
|
|
14329
|
-
const data = await response.json();
|
|
14330
|
-
if (!response.ok || data.status !== "success") {
|
|
14331
|
-
console.error("[BitcoinApi] \u274C Message signing failed:", data);
|
|
14332
|
-
throw createAbcError(
|
|
14333
|
-
"SIGNATURE_FAILED" /* SIGNATURE_FAILED */,
|
|
14334
|
-
"Failed to sign Bitcoin message",
|
|
14335
|
-
data
|
|
14336
|
-
);
|
|
14337
|
-
}
|
|
14338
|
-
console.log("[BitcoinApi] \u2705 Message signed successfully");
|
|
14339
|
-
return {
|
|
14340
|
-
signature: data.result?.signature,
|
|
14341
|
-
messageHash: data.result?.messageHash,
|
|
14342
|
-
address: data.result?.address,
|
|
14343
|
-
network: params.network
|
|
14344
|
-
};
|
|
14345
|
-
}
|
|
14346
15006
|
/**
|
|
14347
15007
|
* Send Bitcoin transaction
|
|
14348
15008
|
* Broadcasts signed transaction to Bitcoin network
|
|
@@ -14439,27 +15099,12 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14439
15099
|
{ hasWid: !!wallet.wid, hasPvencstr: !!wallet.pvencstr }
|
|
14440
15100
|
);
|
|
14441
15101
|
}
|
|
14442
|
-
console.log("[BitcoinApi] \u2705 Wallet fields validated for Bitcoin signing");
|
|
14443
|
-
console.log("[BitcoinApi] \u{1F4CB} Wallet PLAINTEXT values:", {
|
|
14444
|
-
hasWid: !!wallet.wid,
|
|
14445
|
-
widLength: wallet.wid?.length,
|
|
14446
|
-
hasPvencstr: !!wallet.pvencstr,
|
|
14447
|
-
pvencstrLength: wallet.pvencstr?.length,
|
|
14448
|
-
hasEncryptDevicePassword: !!wallet.encryptDevicePassword,
|
|
14449
|
-
encryptDevicePasswordLength: wallet.encryptDevicePassword?.length
|
|
14450
|
-
});
|
|
14451
15102
|
const encryptDevicePassword = await secureService.getEncryptPlain(
|
|
14452
15103
|
wallet.encryptDevicePassword || pinHash
|
|
14453
15104
|
);
|
|
14454
15105
|
const pvencstr = await secureService.getEncryptPlain(wallet.pvencstr);
|
|
14455
15106
|
const wid = await secureService.getEncryptPlain(wallet.wid);
|
|
14456
15107
|
const secureChannelId = await secureService.getSecureChannelId();
|
|
14457
|
-
console.log("[BitcoinApi] \u{1F510} Encrypted values:", {
|
|
14458
|
-
encryptDevicePasswordLength: encryptDevicePassword.length,
|
|
14459
|
-
pvencstrLength: pvencstr.length,
|
|
14460
|
-
widLength: wid.length,
|
|
14461
|
-
secureChannelId
|
|
14462
|
-
});
|
|
14463
15108
|
const params = new URLSearchParams({
|
|
14464
15109
|
uid: wallet.uid,
|
|
14465
15110
|
sid: wallet.sid || "",
|
|
@@ -14469,12 +15114,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14469
15114
|
wid,
|
|
14470
15115
|
encryptDevicePassword
|
|
14471
15116
|
});
|
|
14472
|
-
console.log("[BitcoinApi] \u{1F4E4} Request params:", {
|
|
14473
|
-
uid: wallet.uid,
|
|
14474
|
-
sid: wallet.sid || "",
|
|
14475
|
-
hashLength: hash.length,
|
|
14476
|
-
bodyLength: params.toString().length
|
|
14477
|
-
});
|
|
14478
15117
|
const url = `${this.baseURL}/wapi/v2/sign/hash`;
|
|
14479
15118
|
const response = await fetch(url, {
|
|
14480
15119
|
method: "POST",
|
|
@@ -14486,11 +15125,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14486
15125
|
body: params.toString()
|
|
14487
15126
|
});
|
|
14488
15127
|
const responseText = await response.text();
|
|
14489
|
-
console.log("[BitcoinApi] \u{1F4E5} Raw response:", {
|
|
14490
|
-
status: response.status,
|
|
14491
|
-
statusText: response.statusText,
|
|
14492
|
-
text: responseText.substring(0, 200)
|
|
14493
|
-
});
|
|
14494
15128
|
if (!responseText) {
|
|
14495
15129
|
throw createAbcError(
|
|
14496
15130
|
"NETWORK_ERROR" /* NETWORK_ERROR */,
|
|
@@ -14518,7 +15152,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14518
15152
|
data
|
|
14519
15153
|
);
|
|
14520
15154
|
}
|
|
14521
|
-
console.log("[BitcoinApi] \u2705 Sign successful, parsing signature...");
|
|
14522
15155
|
const signstr = JSON.parse(data.signstr);
|
|
14523
15156
|
const sig_list = signstr.sig_list;
|
|
14524
15157
|
const signatures = [];
|
|
@@ -14543,13 +15176,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14543
15176
|
*/
|
|
14544
15177
|
async finalizeTransaction(params) {
|
|
14545
15178
|
const url = `${this.baseURL}/wapi/v2/btc/transaction/finalize`;
|
|
14546
|
-
console.log("[BitcoinApi] \u{1F4E1} Broadcasting transaction...");
|
|
14547
|
-
console.log("[BitcoinApi] \u{1F4E4} Finalize params:", {
|
|
14548
|
-
signatureCount: params.signatureHex.length,
|
|
14549
|
-
amount: params.amount,
|
|
14550
|
-
to: params.to,
|
|
14551
|
-
pubkey: `${params.pubkey.substring(0, 20)}...`
|
|
14552
|
-
});
|
|
14553
15179
|
const response = await fetch(url, {
|
|
14554
15180
|
method: "POST",
|
|
14555
15181
|
headers: {
|
|
@@ -14559,11 +15185,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14559
15185
|
body: JSON.stringify(params)
|
|
14560
15186
|
});
|
|
14561
15187
|
const responseText = await response.text();
|
|
14562
|
-
console.log("[BitcoinApi] \u{1F4E5} Finalize raw response:", {
|
|
14563
|
-
status: response.status,
|
|
14564
|
-
statusText: response.statusText,
|
|
14565
|
-
text: responseText.substring(0, 200)
|
|
14566
|
-
});
|
|
14567
15188
|
if (!responseText) {
|
|
14568
15189
|
throw createAbcError(
|
|
14569
15190
|
"NETWORK_ERROR" /* NETWORK_ERROR */,
|
|
@@ -14582,7 +15203,6 @@ var BitcoinApi = class extends BaseApiClient {
|
|
|
14582
15203
|
{ responseText, parseError }
|
|
14583
15204
|
);
|
|
14584
15205
|
}
|
|
14585
|
-
console.log("[BitcoinApi] \u{1F4CB} Finalize parsed data:", data);
|
|
14586
15206
|
if (!response.ok) {
|
|
14587
15207
|
const errorMsg = data.error || data.message || data.errmsg || "Unknown error";
|
|
14588
15208
|
console.error("[BitcoinApi] \u274C Finalize failed:", errorMsg);
|
|
@@ -16319,6 +16939,82 @@ function configureLogger(options) {
|
|
|
16319
16939
|
function getLoggerConfig() {
|
|
16320
16940
|
return { ...config };
|
|
16321
16941
|
}
|
|
16942
|
+
|
|
16943
|
+
// src/index.ts
|
|
16944
|
+
init_networks();
|
|
16945
|
+
|
|
16946
|
+
// src/utils/abcWaasAdapter.ts
|
|
16947
|
+
init_networks();
|
|
16948
|
+
function bigintToHex(value) {
|
|
16949
|
+
return `0x${value.toString(16)}`;
|
|
16950
|
+
}
|
|
16951
|
+
function wagmiToAbcWaas(wagmiTx) {
|
|
16952
|
+
const abcWaasTx = {
|
|
16953
|
+
to: wagmiTx.to,
|
|
16954
|
+
data: wagmiTx.data,
|
|
16955
|
+
nonce: wagmiTx.nonce
|
|
16956
|
+
};
|
|
16957
|
+
if (wagmiTx.chainId !== void 0) {
|
|
16958
|
+
const network = chainIdToNetwork(wagmiTx.chainId);
|
|
16959
|
+
if (!network) {
|
|
16960
|
+
throw new Error(`Unsupported chain ID: ${wagmiTx.chainId}`);
|
|
16961
|
+
}
|
|
16962
|
+
abcWaasTx.network = network;
|
|
16963
|
+
}
|
|
16964
|
+
if (wagmiTx.value !== void 0) {
|
|
16965
|
+
abcWaasTx.value = bigintToHex(wagmiTx.value);
|
|
16966
|
+
}
|
|
16967
|
+
if (wagmiTx.gas !== void 0) {
|
|
16968
|
+
abcWaasTx.gas = bigintToHex(wagmiTx.gas);
|
|
16969
|
+
}
|
|
16970
|
+
if (wagmiTx.gasPrice !== void 0) {
|
|
16971
|
+
abcWaasTx.gasPrice = bigintToHex(wagmiTx.gasPrice);
|
|
16972
|
+
}
|
|
16973
|
+
if (wagmiTx.maxFeePerGas !== void 0) {
|
|
16974
|
+
abcWaasTx.maxFeePerGas = bigintToHex(wagmiTx.maxFeePerGas);
|
|
16975
|
+
}
|
|
16976
|
+
if (wagmiTx.maxPriorityFeePerGas !== void 0) {
|
|
16977
|
+
abcWaasTx.maxPriorityFeePerGas = bigintToHex(wagmiTx.maxPriorityFeePerGas);
|
|
16978
|
+
}
|
|
16979
|
+
return abcWaasTx;
|
|
16980
|
+
}
|
|
16981
|
+
function abcWaasToWagmi(abcWaasTx) {
|
|
16982
|
+
const wagmiTx = {
|
|
16983
|
+
to: abcWaasTx.to,
|
|
16984
|
+
data: abcWaasTx.data,
|
|
16985
|
+
nonce: abcWaasTx.nonce
|
|
16986
|
+
};
|
|
16987
|
+
if (abcWaasTx.network !== void 0) {
|
|
16988
|
+
const chainId = networkToChainId2(abcWaasTx.network);
|
|
16989
|
+
if (chainId === void 0) {
|
|
16990
|
+
throw new Error(`Unknown network parameter: ${abcWaasTx.network}`);
|
|
16991
|
+
}
|
|
16992
|
+
if (chainId === null) {
|
|
16993
|
+
throw new Error(`Network ${abcWaasTx.network} is not an EVM chain`);
|
|
16994
|
+
}
|
|
16995
|
+
wagmiTx.chainId = chainId;
|
|
16996
|
+
}
|
|
16997
|
+
if (abcWaasTx.value !== void 0) {
|
|
16998
|
+
wagmiTx.value = BigInt(abcWaasTx.value);
|
|
16999
|
+
}
|
|
17000
|
+
if (abcWaasTx.gas !== void 0) {
|
|
17001
|
+
wagmiTx.gas = BigInt(abcWaasTx.gas);
|
|
17002
|
+
}
|
|
17003
|
+
if (abcWaasTx.gasPrice !== void 0) {
|
|
17004
|
+
wagmiTx.gasPrice = BigInt(abcWaasTx.gasPrice);
|
|
17005
|
+
}
|
|
17006
|
+
if (abcWaasTx.maxFeePerGas !== void 0) {
|
|
17007
|
+
wagmiTx.maxFeePerGas = BigInt(abcWaasTx.maxFeePerGas);
|
|
17008
|
+
}
|
|
17009
|
+
if (abcWaasTx.maxPriorityFeePerGas !== void 0) {
|
|
17010
|
+
wagmiTx.maxPriorityFeePerGas = BigInt(abcWaasTx.maxPriorityFeePerGas);
|
|
17011
|
+
}
|
|
17012
|
+
return wagmiTx;
|
|
17013
|
+
}
|
|
17014
|
+
function networkToChainId2(network) {
|
|
17015
|
+
const { networkToChainId: converter } = (init_networks(), __toCommonJS(networks_exports));
|
|
17016
|
+
return converter(network);
|
|
17017
|
+
}
|
|
16322
17018
|
export {
|
|
16323
17019
|
AbcAuthModal,
|
|
16324
17020
|
AbcAuthProvider,
|
|
@@ -16331,6 +17027,9 @@ export {
|
|
|
16331
17027
|
ConnectButton,
|
|
16332
17028
|
Logger,
|
|
16333
17029
|
MultiChainConnectOptions,
|
|
17030
|
+
NETWORK_BY_PARAM,
|
|
17031
|
+
NETWORK_CONFIGS,
|
|
17032
|
+
NetworkType,
|
|
16334
17033
|
PinInputModal,
|
|
16335
17034
|
PinProvider,
|
|
16336
17035
|
RainbowKitAuthenticationProvider,
|
|
@@ -16343,6 +17042,8 @@ export {
|
|
|
16343
17042
|
WalletApi,
|
|
16344
17043
|
WalletButton2 as WalletButton,
|
|
16345
17044
|
__private__,
|
|
17045
|
+
abcWaasToWagmi,
|
|
17046
|
+
chainIdToNetwork,
|
|
16346
17047
|
clearSecureChannel,
|
|
16347
17048
|
configureLogger,
|
|
16348
17049
|
connectorsForWallets,
|
|
@@ -16359,15 +17060,24 @@ export {
|
|
|
16359
17060
|
encryptWithPin2 as encryptWithPin,
|
|
16360
17061
|
getDefaultConfig,
|
|
16361
17062
|
getDefaultWallets,
|
|
17063
|
+
getExplorerAddressUrl,
|
|
17064
|
+
getExplorerTxUrl,
|
|
16362
17065
|
getLoggerConfig,
|
|
17066
|
+
getNetworkByChainId,
|
|
17067
|
+
getNetworkByParam,
|
|
16363
17068
|
getSecureChannel,
|
|
16364
17069
|
getSecureChannelId,
|
|
16365
17070
|
getSolanaConfig,
|
|
17071
|
+
getSupportedChainIds,
|
|
17072
|
+
getSupportedNetworks,
|
|
16366
17073
|
getWalletConnectConnector,
|
|
16367
17074
|
hashPin2 as hashPin,
|
|
17075
|
+
isEvmNetwork,
|
|
17076
|
+
isTestnet,
|
|
16368
17077
|
lightTheme,
|
|
16369
17078
|
loginWithPassword,
|
|
16370
17079
|
midnightTheme,
|
|
17080
|
+
networkToChainId,
|
|
16371
17081
|
registerSnsUser,
|
|
16372
17082
|
registerUser,
|
|
16373
17083
|
resetPassword,
|
|
@@ -16382,5 +17092,6 @@ export {
|
|
|
16382
17092
|
useSolSignMessage,
|
|
16383
17093
|
useSolSignTransaction,
|
|
16384
17094
|
verifyOtpCode,
|
|
16385
|
-
verifyPin
|
|
17095
|
+
verifyPin,
|
|
17096
|
+
wagmiToAbcWaas
|
|
16386
17097
|
};
|