@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
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
hexToNumber,
|
|
4
|
+
numberToHex
|
|
5
|
+
} from "./chunk-W2VDZD74.js";
|
|
6
|
+
|
|
7
|
+
// src/wallets/walletConnectors/abcWallet/abcProvider.ts
|
|
8
|
+
var EventEmitter = class {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.events = /* @__PURE__ */ new Map();
|
|
11
|
+
}
|
|
12
|
+
on(event, listener) {
|
|
13
|
+
if (!this.events.has(event)) {
|
|
14
|
+
this.events.set(event, []);
|
|
15
|
+
}
|
|
16
|
+
this.events.get(event).push(listener);
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
off(event, listener) {
|
|
20
|
+
const listeners = this.events.get(event);
|
|
21
|
+
if (listeners) {
|
|
22
|
+
const index = listeners.indexOf(listener);
|
|
23
|
+
if (index !== -1) {
|
|
24
|
+
listeners.splice(index, 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
removeListener(event, listener) {
|
|
30
|
+
return this.off(event, listener);
|
|
31
|
+
}
|
|
32
|
+
emit(event, ...args) {
|
|
33
|
+
const listeners = this.events.get(event);
|
|
34
|
+
if (listeners) {
|
|
35
|
+
for (const listener of listeners) {
|
|
36
|
+
listener(...args);
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
removeAllListeners(event) {
|
|
43
|
+
if (event) {
|
|
44
|
+
this.events.delete(event);
|
|
45
|
+
} else {
|
|
46
|
+
this.events.clear();
|
|
47
|
+
}
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var ProviderRpcError = class extends Error {
|
|
52
|
+
constructor(code, message, data) {
|
|
53
|
+
super(message);
|
|
54
|
+
this.code = code;
|
|
55
|
+
this.data = data;
|
|
56
|
+
this.name = "ProviderRpcError";
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var ErrorCode = {
|
|
60
|
+
USER_REJECTED: 4001,
|
|
61
|
+
UNAUTHORIZED: 4100,
|
|
62
|
+
UNSUPPORTED_METHOD: 4200,
|
|
63
|
+
DISCONNECTED: 4900,
|
|
64
|
+
CHAIN_DISCONNECTED: 4901,
|
|
65
|
+
INVALID_PARAMS: -32602,
|
|
66
|
+
INTERNAL_ERROR: -32603
|
|
67
|
+
};
|
|
68
|
+
var AbcEvmProvider = class extends EventEmitter {
|
|
69
|
+
constructor(client) {
|
|
70
|
+
super();
|
|
71
|
+
this.wallet = null;
|
|
72
|
+
this.chainId = 1;
|
|
73
|
+
// Default to Ethereum mainnet
|
|
74
|
+
this.connected = false;
|
|
75
|
+
this.client = client;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Set wallet information
|
|
79
|
+
*/
|
|
80
|
+
setWallet(wallet) {
|
|
81
|
+
const previousAddress = this.wallet?.address;
|
|
82
|
+
const previousChainId = this.chainId;
|
|
83
|
+
this.wallet = wallet;
|
|
84
|
+
this.chainId = wallet.chainId;
|
|
85
|
+
this.connected = true;
|
|
86
|
+
if (previousAddress !== wallet.address) {
|
|
87
|
+
this.emit("accountsChanged", [wallet.address]);
|
|
88
|
+
}
|
|
89
|
+
if (previousChainId !== wallet.chainId) {
|
|
90
|
+
this.emit("chainChanged", numberToHex(wallet.chainId));
|
|
91
|
+
}
|
|
92
|
+
this.emit("connect", { chainId: numberToHex(wallet.chainId) });
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Clear wallet (disconnect)
|
|
96
|
+
*/
|
|
97
|
+
clearWallet() {
|
|
98
|
+
this.wallet = null;
|
|
99
|
+
this.connected = false;
|
|
100
|
+
this.emit("disconnect", {
|
|
101
|
+
code: ErrorCode.DISCONNECTED,
|
|
102
|
+
message: "User disconnected"
|
|
103
|
+
});
|
|
104
|
+
this.emit("accountsChanged", []);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Set PIN request callback
|
|
108
|
+
*/
|
|
109
|
+
setRequestPinCallback(callback) {
|
|
110
|
+
this.requestPinCallback = callback;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Request PIN from user
|
|
114
|
+
*/
|
|
115
|
+
async requestPin() {
|
|
116
|
+
if (!this.requestPinCallback) {
|
|
117
|
+
throw new ProviderRpcError(
|
|
118
|
+
ErrorCode.INTERNAL_ERROR,
|
|
119
|
+
"PIN request callback not configured"
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
return this.requestPinCallback();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* EIP-1193 request method
|
|
126
|
+
*/
|
|
127
|
+
async request(args) {
|
|
128
|
+
const { method, params } = args;
|
|
129
|
+
switch (method) {
|
|
130
|
+
case "eth_requestAccounts":
|
|
131
|
+
return this.eth_requestAccounts();
|
|
132
|
+
case "eth_accounts":
|
|
133
|
+
return this.eth_accounts();
|
|
134
|
+
case "eth_chainId":
|
|
135
|
+
return this.eth_chainId();
|
|
136
|
+
case "eth_sendTransaction":
|
|
137
|
+
case "wallet_sendTransaction":
|
|
138
|
+
return this.eth_sendTransaction(params);
|
|
139
|
+
case "eth_signTransaction":
|
|
140
|
+
return this.eth_signTransaction(params);
|
|
141
|
+
case "personal_sign":
|
|
142
|
+
return this.personal_sign(params);
|
|
143
|
+
case "eth_sign":
|
|
144
|
+
return this.eth_sign(params);
|
|
145
|
+
case "eth_signTypedData":
|
|
146
|
+
case "eth_signTypedData_v3":
|
|
147
|
+
case "eth_signTypedData_v4":
|
|
148
|
+
return this.eth_signTypedData(params);
|
|
149
|
+
case "wallet_switchEthereumChain":
|
|
150
|
+
return this.wallet_switchEthereumChain(params);
|
|
151
|
+
case "wallet_addEthereumChain":
|
|
152
|
+
return this.wallet_addEthereumChain(params);
|
|
153
|
+
case "eth_blockNumber":
|
|
154
|
+
case "eth_call":
|
|
155
|
+
case "eth_estimateGas":
|
|
156
|
+
case "eth_gasPrice":
|
|
157
|
+
case "eth_getBalance":
|
|
158
|
+
case "eth_getBlockByHash":
|
|
159
|
+
case "eth_getBlockByNumber":
|
|
160
|
+
case "eth_getCode":
|
|
161
|
+
case "eth_getStorageAt":
|
|
162
|
+
case "eth_getTransactionByHash":
|
|
163
|
+
case "eth_getTransactionCount":
|
|
164
|
+
case "eth_getTransactionReceipt":
|
|
165
|
+
throw new ProviderRpcError(
|
|
166
|
+
ErrorCode.UNSUPPORTED_METHOD,
|
|
167
|
+
`Method ${method} should be handled by RPC provider`
|
|
168
|
+
);
|
|
169
|
+
default:
|
|
170
|
+
throw new ProviderRpcError(
|
|
171
|
+
ErrorCode.UNSUPPORTED_METHOD,
|
|
172
|
+
`Method ${method} not supported`
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Request accounts (EIP-1193)
|
|
178
|
+
*/
|
|
179
|
+
async eth_requestAccounts() {
|
|
180
|
+
if (!this.wallet) {
|
|
181
|
+
throw new ProviderRpcError(
|
|
182
|
+
ErrorCode.UNAUTHORIZED,
|
|
183
|
+
"Wallet not connected"
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
return [this.wallet.address];
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Get accounts
|
|
190
|
+
*/
|
|
191
|
+
async eth_accounts() {
|
|
192
|
+
if (!this.wallet) {
|
|
193
|
+
return [];
|
|
194
|
+
}
|
|
195
|
+
return [this.wallet.address];
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Get chain ID
|
|
199
|
+
*/
|
|
200
|
+
async eth_chainId() {
|
|
201
|
+
return numberToHex(this.chainId);
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Send transaction
|
|
205
|
+
*/
|
|
206
|
+
async eth_sendTransaction(params) {
|
|
207
|
+
if (!this.wallet) {
|
|
208
|
+
throw new ProviderRpcError(
|
|
209
|
+
ErrorCode.UNAUTHORIZED,
|
|
210
|
+
"Wallet not connected"
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
if (!Array.isArray(params) || params.length === 0) {
|
|
214
|
+
throw new ProviderRpcError(
|
|
215
|
+
ErrorCode.INVALID_PARAMS,
|
|
216
|
+
"Invalid transaction params"
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
const tx = params[0];
|
|
220
|
+
const isContractDeployment = !tx.to || tx.to === "0x" || tx.to === "0x0" || tx.to === "0x0000000000000000000000000000000000000000";
|
|
221
|
+
if (isContractDeployment) {
|
|
222
|
+
tx.to = "0x";
|
|
223
|
+
} else if (!tx.to) {
|
|
224
|
+
throw new ProviderRpcError(
|
|
225
|
+
ErrorCode.INVALID_PARAMS,
|
|
226
|
+
'Transaction must have "to" field'
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
const pin = await this.requestPin();
|
|
230
|
+
const signParams = {
|
|
231
|
+
chainId: this.chainId,
|
|
232
|
+
transaction: tx,
|
|
233
|
+
keyId: this.wallet.keyId,
|
|
234
|
+
encryptedShare: this.wallet.encryptedShare,
|
|
235
|
+
pin
|
|
236
|
+
};
|
|
237
|
+
const signResult = await this.client.signTransaction(signParams);
|
|
238
|
+
if (!signResult.signature) {
|
|
239
|
+
throw new ProviderRpcError(
|
|
240
|
+
ErrorCode.INTERNAL_ERROR,
|
|
241
|
+
"Failed to get signed transaction from ABC WaaS"
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
const sendResult = await this.client.sendRawTransaction(
|
|
245
|
+
this.chainId,
|
|
246
|
+
signResult.signature
|
|
247
|
+
// serializedTx
|
|
248
|
+
);
|
|
249
|
+
return sendResult.txHash;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Sign transaction (without sending)
|
|
253
|
+
*/
|
|
254
|
+
async eth_signTransaction(params) {
|
|
255
|
+
if (!this.wallet) {
|
|
256
|
+
throw new ProviderRpcError(
|
|
257
|
+
ErrorCode.UNAUTHORIZED,
|
|
258
|
+
"Wallet not connected"
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
if (!Array.isArray(params) || params.length === 0) {
|
|
262
|
+
throw new ProviderRpcError(
|
|
263
|
+
ErrorCode.INVALID_PARAMS,
|
|
264
|
+
"Invalid transaction params"
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
const tx = params[0];
|
|
268
|
+
const pin = await this.requestPin();
|
|
269
|
+
const signParams = {
|
|
270
|
+
chainId: this.chainId,
|
|
271
|
+
transaction: tx,
|
|
272
|
+
keyId: this.wallet.keyId,
|
|
273
|
+
encryptedShare: this.wallet.encryptedShare,
|
|
274
|
+
pin
|
|
275
|
+
};
|
|
276
|
+
const result = await this.client.signTransaction(signParams);
|
|
277
|
+
return result.signature;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Personal sign (EIP-191)
|
|
281
|
+
*/
|
|
282
|
+
async personal_sign(params) {
|
|
283
|
+
if (!this.wallet) {
|
|
284
|
+
console.error("[AbcProvider] \u274C Wallet not connected");
|
|
285
|
+
throw new ProviderRpcError(
|
|
286
|
+
ErrorCode.UNAUTHORIZED,
|
|
287
|
+
"Wallet not connected"
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
if (!Array.isArray(params) || params.length < 2) {
|
|
291
|
+
console.error("[AbcProvider] \u274C Invalid params:", params);
|
|
292
|
+
throw new ProviderRpcError(
|
|
293
|
+
ErrorCode.INVALID_PARAMS,
|
|
294
|
+
"Invalid personal_sign params"
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
const [message, address] = params;
|
|
298
|
+
if (address.toLowerCase() !== this.wallet.address.toLowerCase()) {
|
|
299
|
+
console.error("[AbcProvider] \u274C Address mismatch");
|
|
300
|
+
throw new ProviderRpcError(
|
|
301
|
+
ErrorCode.INVALID_PARAMS,
|
|
302
|
+
"Address does not match connected wallet"
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
if (!this.wallet.sid) {
|
|
306
|
+
console.error("[AbcProvider] \u274C Missing sid");
|
|
307
|
+
throw new ProviderRpcError(
|
|
308
|
+
ErrorCode.INTERNAL_ERROR,
|
|
309
|
+
"Wallet session ID (sid) is missing - please reconnect wallet"
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
if (!this.wallet.pvencstr) {
|
|
313
|
+
console.error("[AbcProvider] \u274C Missing pvencstr");
|
|
314
|
+
throw new ProviderRpcError(
|
|
315
|
+
ErrorCode.INTERNAL_ERROR,
|
|
316
|
+
"Wallet pvencstr is missing - please reconnect wallet"
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
if (!this.wallet.wid) {
|
|
320
|
+
console.error("[AbcProvider] \u274C Missing wid");
|
|
321
|
+
throw new ProviderRpcError(
|
|
322
|
+
ErrorCode.INTERNAL_ERROR,
|
|
323
|
+
"Wallet wid is missing - please reconnect wallet"
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
const result = await this.client.signMessage({
|
|
327
|
+
message,
|
|
328
|
+
address: this.wallet.address,
|
|
329
|
+
// ciphertext removed - not needed for message signing
|
|
330
|
+
sid: this.wallet.sid,
|
|
331
|
+
uid: this.wallet.uid,
|
|
332
|
+
pvencstr: this.wallet.pvencstr,
|
|
333
|
+
wid: this.wallet.wid
|
|
334
|
+
});
|
|
335
|
+
return result.signature;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Eth sign
|
|
339
|
+
*/
|
|
340
|
+
async eth_sign(params) {
|
|
341
|
+
if (!Array.isArray(params) || params.length < 2) {
|
|
342
|
+
throw new ProviderRpcError(
|
|
343
|
+
ErrorCode.INVALID_PARAMS,
|
|
344
|
+
"Invalid eth_sign params"
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
const [address, message] = params;
|
|
348
|
+
return this.personal_sign([message, address]);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Sign typed data (EIP-712)
|
|
352
|
+
*/
|
|
353
|
+
async eth_signTypedData(params) {
|
|
354
|
+
if (!this.wallet) {
|
|
355
|
+
throw new ProviderRpcError(
|
|
356
|
+
ErrorCode.UNAUTHORIZED,
|
|
357
|
+
"Wallet not connected"
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
if (!Array.isArray(params) || params.length < 2) {
|
|
361
|
+
throw new ProviderRpcError(
|
|
362
|
+
ErrorCode.INVALID_PARAMS,
|
|
363
|
+
"Invalid signTypedData params"
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
const [address, typedData] = params;
|
|
367
|
+
if (address.toLowerCase() !== this.wallet.address.toLowerCase()) {
|
|
368
|
+
throw new ProviderRpcError(
|
|
369
|
+
ErrorCode.INVALID_PARAMS,
|
|
370
|
+
"Address does not match connected wallet"
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
const result = await this.client.signTypedData({
|
|
374
|
+
typedData: typeof typedData === "string" ? typedData : JSON.stringify(typedData)
|
|
375
|
+
// ciphertext removed - not needed for typed data signing
|
|
376
|
+
});
|
|
377
|
+
return result.signature;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Switch Ethereum chain
|
|
381
|
+
*/
|
|
382
|
+
async wallet_switchEthereumChain(params) {
|
|
383
|
+
if (!Array.isArray(params) || params.length === 0) {
|
|
384
|
+
throw new ProviderRpcError(
|
|
385
|
+
ErrorCode.INVALID_PARAMS,
|
|
386
|
+
"Invalid switchEthereumChain params"
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
const { chainId } = params[0];
|
|
390
|
+
const newChainId = hexToNumber(chainId);
|
|
391
|
+
if (this.chainId === newChainId) {
|
|
392
|
+
return null;
|
|
393
|
+
}
|
|
394
|
+
const _previousChainId = this.chainId;
|
|
395
|
+
this.chainId = newChainId;
|
|
396
|
+
if (this.wallet) {
|
|
397
|
+
this.wallet.chainId = newChainId;
|
|
398
|
+
}
|
|
399
|
+
this.emit("chainChanged", numberToHex(newChainId));
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Add Ethereum chain
|
|
404
|
+
*/
|
|
405
|
+
async wallet_addEthereumChain(params) {
|
|
406
|
+
return this.wallet_switchEthereumChain(params);
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Check if connected
|
|
410
|
+
*/
|
|
411
|
+
isConnected() {
|
|
412
|
+
return this.connected;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Get current wallet
|
|
416
|
+
*/
|
|
417
|
+
getWallet() {
|
|
418
|
+
return this.wallet;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Get current chain ID
|
|
422
|
+
*/
|
|
423
|
+
getChainId() {
|
|
424
|
+
return this.chainId;
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
function createAbcEvmProvider(client) {
|
|
428
|
+
return new AbcEvmProvider(client);
|
|
429
|
+
}
|
|
430
|
+
var createAbcProvider = createAbcEvmProvider;
|
|
431
|
+
|
|
432
|
+
export {
|
|
433
|
+
AbcEvmProvider,
|
|
434
|
+
createAbcEvmProvider,
|
|
435
|
+
createAbcProvider
|
|
436
|
+
};
|
|
@@ -24,6 +24,9 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
wigwamWallet
|
|
26
26
|
} from "./chunk-EFYKBPOB.js";
|
|
27
|
+
import {
|
|
28
|
+
zealWallet
|
|
29
|
+
} from "./chunk-DVLTKWTZ.js";
|
|
27
30
|
import {
|
|
28
31
|
xdefiWallet
|
|
29
32
|
} from "./chunk-26RJNF7V.js";
|
|
@@ -31,8 +34,8 @@ import {
|
|
|
31
34
|
zerionWallet
|
|
32
35
|
} from "./chunk-CCZUA25H.js";
|
|
33
36
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
safeWallet
|
|
38
|
+
} from "./chunk-Z2QCE6O6.js";
|
|
36
39
|
import {
|
|
37
40
|
safeheronWallet
|
|
38
41
|
} from "./chunk-PHF4VWKP.js";
|
|
@@ -40,32 +43,29 @@ import {
|
|
|
40
43
|
safepalWallet
|
|
41
44
|
} from "./chunk-LRYS2XBT.js";
|
|
42
45
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./chunk-
|
|
46
|
+
tahoWallet
|
|
47
|
+
} from "./chunk-UXRQQZ2M.js";
|
|
45
48
|
import {
|
|
46
49
|
subWallet
|
|
47
50
|
} from "./chunk-OWSLCYOF.js";
|
|
48
51
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
tokenPocketWallet
|
|
53
|
+
} from "./chunk-RCZCJUTR.js";
|
|
51
54
|
import {
|
|
52
55
|
talismanWallet
|
|
53
56
|
} from "./chunk-B4IG5R5M.js";
|
|
54
|
-
import {
|
|
55
|
-
tokenPocketWallet
|
|
56
|
-
} from "./chunk-RCZCJUTR.js";
|
|
57
57
|
import {
|
|
58
58
|
tokenaryWallet
|
|
59
59
|
} from "./chunk-U24COF36.js";
|
|
60
60
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
61
|
+
mewWallet
|
|
62
|
+
} from "./chunk-ZRY6ILYP.js";
|
|
63
63
|
import {
|
|
64
64
|
paraSwapWallet
|
|
65
65
|
} from "./chunk-FF7ZXD5C.js";
|
|
66
66
|
import {
|
|
67
|
-
|
|
68
|
-
} from "./chunk-
|
|
67
|
+
ramperWallet
|
|
68
|
+
} from "./chunk-OX3PQBV2.js";
|
|
69
69
|
import {
|
|
70
70
|
rabbyWallet
|
|
71
71
|
} from "./chunk-3RMYBZQG.js";
|
|
@@ -73,71 +73,71 @@ import {
|
|
|
73
73
|
rainbowWallet
|
|
74
74
|
} from "./chunk-6C3GUS6I.js";
|
|
75
75
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
76
|
+
phantomWallet
|
|
77
|
+
} from "./chunk-DMQ4RXIY.js";
|
|
78
78
|
import {
|
|
79
79
|
roninWallet
|
|
80
80
|
} from "./chunk-DSTY7YNG.js";
|
|
81
81
|
import {
|
|
82
|
-
|
|
83
|
-
} from "./chunk-
|
|
84
|
-
import {
|
|
85
|
-
magicEdenWallet
|
|
86
|
-
} from "./chunk-WB7EEKPS.js";
|
|
82
|
+
seifWallet
|
|
83
|
+
} from "./chunk-Y3E6EZ7J.js";
|
|
87
84
|
import {
|
|
88
85
|
metaMaskWallet
|
|
89
86
|
} from "./chunk-VUMT22HL.js";
|
|
90
87
|
import {
|
|
91
|
-
|
|
92
|
-
} from "./chunk-
|
|
88
|
+
oktoWallet
|
|
89
|
+
} from "./chunk-7SSXG35M.js";
|
|
93
90
|
import {
|
|
94
91
|
nestWallet
|
|
95
92
|
} from "./chunk-NN4KGG3I.js";
|
|
96
93
|
import {
|
|
97
|
-
|
|
98
|
-
} from "./chunk-
|
|
94
|
+
omniWallet
|
|
95
|
+
} from "./chunk-RGPO7AY3.js";
|
|
99
96
|
import {
|
|
100
97
|
okxWallet
|
|
101
98
|
} from "./chunk-GF7RKBNV.js";
|
|
102
99
|
import {
|
|
103
|
-
|
|
104
|
-
} from "./chunk-
|
|
100
|
+
oneKeyWallet
|
|
101
|
+
} from "./chunk-6UGYPEQE.js";
|
|
105
102
|
import {
|
|
106
103
|
oneInchWallet
|
|
107
104
|
} from "./chunk-OJT577AY.js";
|
|
108
105
|
import {
|
|
109
|
-
|
|
110
|
-
} from "./chunk-
|
|
106
|
+
frontierWallet
|
|
107
|
+
} from "./chunk-NHZMJSPE.js";
|
|
111
108
|
import {
|
|
112
109
|
injectedWallet
|
|
113
110
|
} from "./chunk-GDGRUMZB.js";
|
|
114
111
|
import {
|
|
115
|
-
|
|
116
|
-
} from "./chunk-
|
|
112
|
+
kaikasWallet
|
|
113
|
+
} from "./chunk-MUJPEDFF.js";
|
|
114
|
+
import {
|
|
115
|
+
kresusWallet
|
|
116
|
+
} from "./chunk-CM3VR7OM.js";
|
|
117
117
|
import {
|
|
118
118
|
kaiaWallet
|
|
119
119
|
} from "./chunk-KE6RMEB7.js";
|
|
120
|
-
import {
|
|
121
|
-
kaikasWallet
|
|
122
|
-
} from "./chunk-MUJPEDFF.js";
|
|
123
120
|
import {
|
|
124
121
|
krakenWallet
|
|
125
122
|
} from "./chunk-CYOZFCR6.js";
|
|
126
|
-
import {
|
|
127
|
-
kresusWallet
|
|
128
|
-
} from "./chunk-CM3VR7OM.js";
|
|
129
123
|
import {
|
|
130
124
|
ledgerWallet
|
|
131
125
|
} from "./chunk-BF3VSNPL.js";
|
|
132
126
|
import {
|
|
133
|
-
|
|
134
|
-
} from "./chunk-
|
|
127
|
+
magicEdenWallet
|
|
128
|
+
} from "./chunk-WB7EEKPS.js";
|
|
135
129
|
import {
|
|
136
|
-
|
|
137
|
-
} from "./chunk-
|
|
130
|
+
iopayWallet
|
|
131
|
+
} from "./chunk-A2XAHJNR.js";
|
|
138
132
|
import {
|
|
139
133
|
desigWallet
|
|
140
134
|
} from "./chunk-DVXPOWEC.js";
|
|
135
|
+
import {
|
|
136
|
+
dawnWallet
|
|
137
|
+
} from "./chunk-YMP3W2MO.js";
|
|
138
|
+
import {
|
|
139
|
+
coreWallet
|
|
140
|
+
} from "./chunk-I6ONK6DO.js";
|
|
141
141
|
import {
|
|
142
142
|
enkryptWallet
|
|
143
143
|
} from "./chunk-5QHPQU7J.js";
|
|
@@ -148,53 +148,53 @@ import {
|
|
|
148
148
|
frameWallet
|
|
149
149
|
} from "./chunk-CP45RGL4.js";
|
|
150
150
|
import {
|
|
151
|
-
|
|
152
|
-
} from "./chunk-
|
|
151
|
+
imTokenWallet
|
|
152
|
+
} from "./chunk-EHE2536P.js";
|
|
153
153
|
import {
|
|
154
154
|
gateWallet
|
|
155
155
|
} from "./chunk-PKSDTWUF.js";
|
|
156
156
|
import {
|
|
157
|
-
|
|
158
|
-
} from "./chunk-
|
|
157
|
+
braveWallet
|
|
158
|
+
} from "./chunk-EYN3CVFM.js";
|
|
159
159
|
import {
|
|
160
160
|
bloomWallet
|
|
161
161
|
} from "./chunk-3KPCADAF.js";
|
|
162
162
|
import {
|
|
163
|
-
|
|
164
|
-
} from "./chunk-
|
|
165
|
-
import {
|
|
166
|
-
bybitWallet
|
|
167
|
-
} from "./chunk-DW37ROR6.js";
|
|
163
|
+
bitverseWallet
|
|
164
|
+
} from "./chunk-6HCSSBZY.js";
|
|
168
165
|
import {
|
|
169
166
|
clvWallet
|
|
170
167
|
} from "./chunk-DPME4O44.js";
|
|
171
|
-
import {
|
|
172
|
-
coin98Wallet
|
|
173
|
-
} from "./chunk-ZFVYS64S.js";
|
|
174
168
|
import {
|
|
175
169
|
coinbaseWallet
|
|
176
170
|
} from "./chunk-PNEDRY6O.js";
|
|
171
|
+
import {
|
|
172
|
+
bybitWallet
|
|
173
|
+
} from "./chunk-DW37ROR6.js";
|
|
174
|
+
import {
|
|
175
|
+
coin98Wallet
|
|
176
|
+
} from "./chunk-ZFVYS64S.js";
|
|
177
177
|
import {
|
|
178
178
|
compassWallet
|
|
179
179
|
} from "./chunk-3OO564GS.js";
|
|
180
|
-
import {
|
|
181
|
-
berasigWallet
|
|
182
|
-
} from "./chunk-UZWMFUJU.js";
|
|
183
180
|
import {
|
|
184
181
|
argentWallet
|
|
185
182
|
} from "./chunk-XT2WYPN5.js";
|
|
186
183
|
import {
|
|
187
184
|
bestWallet
|
|
188
185
|
} from "./chunk-OPAPBEA5.js";
|
|
186
|
+
import {
|
|
187
|
+
berasigWallet
|
|
188
|
+
} from "./chunk-UZWMFUJU.js";
|
|
189
189
|
import {
|
|
190
190
|
bifrostWallet
|
|
191
191
|
} from "./chunk-WXXI4WBF.js";
|
|
192
|
-
import {
|
|
193
|
-
bitgetWallet
|
|
194
|
-
} from "./chunk-ITLTDJ3D.js";
|
|
195
192
|
import {
|
|
196
193
|
binanceWallet
|
|
197
194
|
} from "./chunk-TUDZHFVC.js";
|
|
195
|
+
import {
|
|
196
|
+
bitgetWallet
|
|
197
|
+
} from "./chunk-ITLTDJ3D.js";
|
|
198
198
|
import "./chunk-RETKWSKD.js";
|
|
199
199
|
import "./chunk-PODFK4OS.js";
|
|
200
200
|
import {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-TJX4M23U.js";
|
|
3
|
+
|
|
4
|
+
// src/wallets/walletConnectors/wigwamWallet/wigwamWallet.svg
|
|
5
|
+
var wigwamWallet_default = 'data:image/svg+xml,<svg width="800" height="800" viewBox="0 0 800 800" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <rect width="800" height="800" fill="%2380EF6E" />%0A <path%0A d="M30 306.266C30 209.564 30 161.213 48.8195 124.277C65.3736 91.7881 91.7881 65.3736 124.277 48.8195C161.213 30 209.564 30 306.266 30H493.734C590.436 30 638.787 30 675.723 48.8195C708.212 65.3736 734.626 91.7881 751.18 124.277C770 161.213 770 209.564 770 306.266V493.734C770 590.436 770 638.787 751.18 675.723C734.626 708.212 708.212 734.626 675.723 751.18C638.787 770 590.436 770 493.734 770H306.266C209.564 770 161.213 770 124.277 751.18C91.7881 734.626 65.3736 708.212 48.8195 675.723C30 638.787 30 590.436 30 493.734V306.266Z"%0A fill="%2380EF6E" />%0A <path%0A d="M564.444 264.236C565.179 260.829 568.191 258.397 571.676 258.397H671.999C676.899 258.397 680.445 263.073 679.123 267.791L588.092 592.73C587.197 595.924 584.285 598.133 580.968 598.133H486.038C482.757 598.133 479.867 595.971 478.941 592.824L404.114 338.667C402.548 333.348 395.01 333.362 393.463 338.686L319.648 592.798C318.729 595.958 315.834 598.133 312.543 598.133H219.116C215.799 598.133 212.888 595.925 211.992 592.731L120.886 267.793C119.563 263.074 123.109 258.397 128.009 258.397H228.209C231.713 258.397 234.736 260.855 235.451 264.285L269.133 425.801C270.296 431.375 278.096 431.792 279.846 426.374L350.687 206.989C351.673 203.935 354.517 201.865 357.727 201.865H442.075C445.298 201.865 448.15 203.95 449.126 207.022L518.875 426.433C520.598 431.853 528.388 431.481 529.587 425.921L564.444 264.236Z"%0A fill="%230D1311" />%0A</svg>%0A';
|
|
6
|
+
export {
|
|
7
|
+
wigwamWallet_default as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-TJX4M23U.js";
|
|
3
|
+
|
|
4
|
+
// src/components/RainbowKitProvider/chainIcons/xdc.svg
|
|
5
|
+
var xdc_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 28 28"><g clip-path="url(%23a)"><path fill="%23B7B5B1" d="M8 8h12v12H8z"/><path fill="%23B7B5B1" d="M28 12.667C24.786-5.97.448-2.363.011 12.667c1.4.728 2.285 1.176 2.285 1.176s-.74.448-2.296 1.434c2.8 18.278 26.723 15.624 28-.023-1.523-.93-2.352-1.422-2.352-1.422s.717-.336 2.352-1.165Zm-11.973 6.507-2.285-3.92-2.318 3.92-1.758-.123 3.304-5.566L9.99 8.68l1.792-.157 2.117 3.562 2.117-3.405 1.669.045-2.778 4.726 3.058 5.69-1.96.045.022-.012Z"/><path fill="%23244B81" d="M26.869 11.94C22.512-4.627 2.52-.147 1.154 11.94a249.514 249.514 0 0 1 3.404 1.926l-3.416 2.172c2.98 15.927 24.54 12.858 25.727-.022-2.173-1.366-3.461-2.162-3.461-2.162s2.934-1.635 3.46-1.915Zm-10.842 7.246-2.285-3.92-2.318 3.92-1.747-.124 3.304-5.566L10 8.691l1.793-.157 2.116 3.562 2.117-3.405 1.669.045-2.766 4.726 3.057 5.69-1.96.045v-.011Z"/></g><defs><clipPath id="a"><path fill="%23fff" d="M0 0h28v28H0z"/></clipPath></defs></svg>';
|
|
6
|
+
export {
|
|
7
|
+
xdc_default as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-TJX4M23U.js";
|
|
3
|
+
|
|
4
|
+
// src/wallets/walletConnectors/xdefiWallet/xdefiWallet.svg
|
|
5
|
+
var xdefiWallet_default = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 28 28"><g clip-path="url(%23a)"><path fill="%23335DE5" d="M0 0h28v28H0z"/><mask id="b" width="28" height="28" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="%23fff" d="M28 0H0v28h28V0Z"/></mask><g mask="url(%23b)"><path fill="%23335DE5" d="M22.313 0H5.688A5.687 5.687 0 0 0 0 5.688v16.625A5.688 5.688 0 0 0 5.688 28h16.625A5.688 5.688 0 0 0 28 22.312V5.688A5.688 5.688 0 0 0 22.312 0Z"/><path fill="%23ECECEC" d="M25.344 13.193a11.282 11.282 0 0 0-1.933-5.522 11.52 11.52 0 0 0-4.458-3.854 11.73 11.73 0 0 0-11.45.641A11.463 11.463 0 0 0 3.52 8.785l-.044.088a6.357 6.357 0 0 0-.585 1.884c-.273 1.932.15 3.651 1.257 4.975 1.21 1.447 3.18 2.308 5.544 2.421 2.878.143 5.739-.63 7.77-2.05l1.203.705c-1.15.981-3.809 2.748-8.213 2.99-4.943.269-7.003-1.314-7.023-1.33l-.346.421-.457.54c.088.073 2.063 1.644 6.703 1.644.38 0 .78 0 1.195-.032 5.33-.293 8.26-2.58 9.287-3.561l1.006.602a9.165 9.165 0 0 1-2.459 2.206c-3.345 2.126-7.6 2.4-10.578 2.252l-.063 1.24c.5.024.981.035 1.449.035 8.392 0 11.788-3.76 12.74-5.109l.786.461a10.22 10.22 0 0 1-3.007 3.197 10.417 10.417 0 0 1-4.967 1.776l.11 1.235a11.69 11.69 0 0 0 5.576-1.992 11.444 11.444 0 0 0 3.843-4.45 11.25 11.25 0 0 0 1.098-5.74Zm-4.847.191a1 1 0 0 1-1.008-.993 1 1 0 0 1 1.008-.992 1 1 0 0 1 1.009.992 1 1 0 0 1-1.009.993Z"/></g></g><defs><clipPath id="a"><path fill="%23fff" d="M0 0h28v28H0z"/></clipPath></defs></svg>';
|
|
6
|
+
export {
|
|
7
|
+
xdefiWallet_default as default
|
|
8
|
+
};
|