@funkit/connect 3.4.10 → 3.5.0
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/CHANGELOG.md +29 -0
- package/dist/components/Dialog/Dialog.css.d.ts +0 -4
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Icons/StatusIcons.d.ts +2 -1
- package/dist/css/modalTransitionStyles.css.d.ts +6 -5
- package/dist/hooks/useAnimatedNavigation.d.ts +15 -5
- package/dist/hooks/useIsCheckoutRisky.d.ts +3 -1
- package/dist/hooks/useWalletAssets.d.ts +1 -1
- package/dist/index.css +109 -60
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3879 -3426
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +1 -2
- package/dist/modals/CheckoutModal/stepTransition.d.ts +4 -2
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +0 -5
- package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext.d.ts +1 -37
- package/dist/providers/FunkitConfigContext.d.ts +4 -0
- package/dist/providers/FunkitHistoryContext.d.ts +43 -0
- package/dist/utils/assets.d.ts +3 -11
- package/dist/utils/flags/config.d.ts +87 -10
- package/dist/utils/formatTimestamp.d.ts +11 -8
- package/dist/utils/safeJSON.d.ts +1 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +78 -78
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -5
- package/dist/utils/memoize.d.ts +0 -3
- package/dist/wallets/walletConnectors/chunk-2FMXQV4Z.js +0 -73
- package/dist/wallets/walletConnectors/chunk-5HDXDGN6.js +0 -71
- package/dist/wallets/walletConnectors/chunk-5VJOQHWP.js +0 -94
- package/dist/wallets/walletConnectors/chunk-C2LMEELG.js +0 -95
- package/dist/wallets/walletConnectors/chunk-R22FP4XP.js +0 -108
- package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +0 -96
- package/dist/wallets/walletConnectors/chunk-VCLXOHT7.js +0 -149
- package/dist/wallets/walletConnectors/chunk-VPGILWUS.js +0 -98
- package/dist/wallets/walletConnectors/chunk-VVELVSSD.js +0 -27
- package/dist/wallets/walletConnectors/chunk-W53AHFUK.js +0 -102
- package/dist/wallets/walletConnectors/chunk-YILR6Q5Q.js +0 -101
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zerionWallet
|
|
4
|
+
} from "./chunk-RMNN2RIV.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
walletConnectWallet
|
|
7
|
+
} from "./chunk-NP5QGWNL.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
xdefiWallet
|
|
10
|
+
} from "./chunk-NO7XMBB5.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-4UM4GTKZ.js";
|
|
14
14
|
import {
|
|
15
15
|
tokenPocketWallet
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N2UFM6FI.js";
|
|
17
|
+
import {
|
|
18
|
+
safepalWallet
|
|
19
|
+
} from "./chunk-6LPM6LUQ.js";
|
|
17
20
|
import {
|
|
18
21
|
tahoWallet
|
|
19
22
|
} from "./chunk-6P2EMPZI.js";
|
|
@@ -21,134 +24,131 @@ import {
|
|
|
21
24
|
uniswapWallet
|
|
22
25
|
} from "./chunk-LH7BMNFZ.js";
|
|
23
26
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
safeheronWallet
|
|
28
|
+
} from "./chunk-R6RWZRFF.js";
|
|
26
29
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
trustWallet
|
|
31
|
+
} from "./chunk-NMB62FCH.js";
|
|
29
32
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
zealWallet
|
|
34
|
+
} from "./chunk-JROWU5BP.js";
|
|
32
35
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
roninWallet
|
|
37
|
+
} from "./chunk-25VW5TZP.js";
|
|
35
38
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
oneKeyWallet
|
|
40
|
+
} from "./chunk-4AD7VI2P.js";
|
|
41
|
+
import {
|
|
42
|
+
safeWallet
|
|
43
|
+
} from "./chunk-BQQQL6UD.js";
|
|
38
44
|
import {
|
|
39
45
|
ramperWallet
|
|
40
46
|
} from "./chunk-PIUNLQJG.js";
|
|
41
|
-
import {
|
|
42
|
-
roninWallet
|
|
43
|
-
} from "./chunk-63YLN6R5.js";
|
|
44
47
|
import {
|
|
45
48
|
rabbyWallet
|
|
46
49
|
} from "./chunk-BVX4XGNP.js";
|
|
47
50
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
phantomWallet
|
|
52
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
50
53
|
import {
|
|
51
|
-
|
|
52
|
-
} from "./chunk-
|
|
54
|
+
talismanWallet
|
|
55
|
+
} from "./chunk-ABFSXBE6.js";
|
|
53
56
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
tokenaryWallet
|
|
58
|
+
} from "./chunk-7GGVFQBD.js";
|
|
56
59
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
foxWallet
|
|
61
|
+
} from "./chunk-XYBEMO3C.js";
|
|
59
62
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
63
|
+
injectedWallet
|
|
64
|
+
} from "./chunk-VCVVV2K7.js";
|
|
62
65
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
metaMaskWallet
|
|
67
|
+
} from "./chunk-QQEO4YQS.js";
|
|
65
68
|
import {
|
|
66
69
|
mewWallet
|
|
67
70
|
} from "./chunk-V57WLZEE.js";
|
|
68
|
-
import {
|
|
69
|
-
omniWallet
|
|
70
|
-
} from "./chunk-24OBTKSN.js";
|
|
71
71
|
import {
|
|
72
72
|
oneInchWallet
|
|
73
73
|
} from "./chunk-OESTDX6I.js";
|
|
74
74
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
okxWallet
|
|
76
|
+
} from "./chunk-VU6B3HMD.js";
|
|
77
77
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
78
|
+
omniWallet
|
|
79
|
+
} from "./chunk-24OBTKSN.js";
|
|
80
80
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
rainbowWallet
|
|
82
|
+
} from "./chunk-DWOWRRNZ.js";
|
|
83
83
|
import {
|
|
84
84
|
frameWallet
|
|
85
85
|
} from "./chunk-ZMYVTWDF.js";
|
|
86
86
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
frontierWallet
|
|
91
|
-
} from "./chunk-E2VPHAWU.js";
|
|
92
|
-
import {
|
|
93
|
-
injectedWallet
|
|
94
|
-
} from "./chunk-VCVVV2K7.js";
|
|
87
|
+
imTokenWallet
|
|
88
|
+
} from "./chunk-COZ7MIQS.js";
|
|
95
89
|
import {
|
|
96
90
|
gateWallet
|
|
97
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-C7PUODSS.js";
|
|
98
92
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
93
|
+
frontierWallet
|
|
94
|
+
} from "./chunk-R6TLOQL3.js";
|
|
101
95
|
import {
|
|
102
96
|
kresusWallet
|
|
103
97
|
} from "./chunk-MJXPRJZT.js";
|
|
104
98
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
99
|
+
oktoWallet
|
|
100
|
+
} from "./chunk-UJVBNAKM.js";
|
|
101
|
+
import {
|
|
102
|
+
ledgerWallet
|
|
103
|
+
} from "./chunk-GDXRZB7A.js";
|
|
107
104
|
import {
|
|
108
105
|
bloomWallet
|
|
109
106
|
} from "./chunk-CV5FY7VL.js";
|
|
110
107
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
bifrostWallet
|
|
109
|
+
} from "./chunk-HA5KAB4M.js";
|
|
113
110
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
111
|
+
dawnWallet
|
|
112
|
+
} from "./chunk-IKPUD375.js";
|
|
116
113
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-BDI5G6GA.js";
|
|
119
116
|
import {
|
|
120
|
-
|
|
121
|
-
} from "./chunk-
|
|
117
|
+
bybitWallet
|
|
118
|
+
} from "./chunk-W5O4YSZN.js";
|
|
119
|
+
import {
|
|
120
|
+
coreWallet
|
|
121
|
+
} from "./chunk-JXP2QPW7.js";
|
|
122
122
|
import {
|
|
123
123
|
enkryptWallet
|
|
124
124
|
} from "./chunk-SJTXS4ZW.js";
|
|
125
125
|
import {
|
|
126
|
-
|
|
127
|
-
} from "./chunk-
|
|
128
|
-
import {
|
|
129
|
-
bifrostWallet
|
|
130
|
-
} from "./chunk-LVBXKMWP.js";
|
|
126
|
+
desigWallet
|
|
127
|
+
} from "./chunk-CTU6JCOK.js";
|
|
131
128
|
import {
|
|
132
|
-
|
|
133
|
-
} from "./chunk-
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-HRDRUWYF.js";
|
|
134
131
|
import {
|
|
135
132
|
braveWallet
|
|
136
133
|
} from "./chunk-PB254NQ4.js";
|
|
137
|
-
import {
|
|
138
|
-
bybitWallet
|
|
139
|
-
} from "./chunk-6ONTSPEY.js";
|
|
140
134
|
import {
|
|
141
135
|
clvWallet
|
|
142
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-LEXSM5KI.js";
|
|
143
137
|
import {
|
|
144
|
-
|
|
145
|
-
} from "./chunk-
|
|
138
|
+
coin98Wallet
|
|
139
|
+
} from "./chunk-KFFJPS5R.js";
|
|
140
|
+
import {
|
|
141
|
+
bitgetWallet
|
|
142
|
+
} from "./chunk-SIPHIY4F.js";
|
|
146
143
|
import "./chunk-RETKWSKD.js";
|
|
147
|
-
import "./chunk-23WIEY36.js";
|
|
148
144
|
import {
|
|
149
145
|
bitskiWallet
|
|
150
146
|
} from "./chunk-P74YPRF6.js";
|
|
151
147
|
import "./chunk-WRA2DVJ7.js";
|
|
148
|
+
import {
|
|
149
|
+
bitverseWallet
|
|
150
|
+
} from "./chunk-3HZRRP4Y.js";
|
|
151
|
+
import "./chunk-23WIEY36.js";
|
|
152
152
|
export {
|
|
153
153
|
argentWallet,
|
|
154
154
|
bifrostWallet,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
metaMaskWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-QQEO4YQS.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
metaMaskWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
okxWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VU6B3HMD.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
okxWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
rainbowWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DWOWRRNZ.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
rainbowWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tokenPocketWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-N2UFM6FI.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
tokenPocketWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
trustWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NMB62FCH.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
trustWallet
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
zerionWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RMNN2RIV.js";
|
|
5
5
|
import "../chunk-RETKWSKD.js";
|
|
6
|
-
import "../chunk-23WIEY36.js";
|
|
7
6
|
import "../chunk-WRA2DVJ7.js";
|
|
7
|
+
import "../chunk-23WIEY36.js";
|
|
8
8
|
export {
|
|
9
9
|
zerionWallet
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"prop-types": "^15.8.1",
|
|
72
72
|
"react": "^18.3.0",
|
|
73
73
|
"storybook": "^8.2.7",
|
|
74
|
-
"svgo": "^3.3.2",
|
|
75
74
|
"tsx": "^4.15.7",
|
|
76
75
|
"vitest": "^2.0.5"
|
|
77
76
|
},
|
|
@@ -92,9 +91,9 @@
|
|
|
92
91
|
"react-virtuoso": "4.10.1",
|
|
93
92
|
"ua-parser-js": "^1.0.37",
|
|
94
93
|
"uuid": "^9.0.1",
|
|
95
|
-
"@funkit/
|
|
96
|
-
"@funkit/
|
|
97
|
-
"@funkit/
|
|
94
|
+
"@funkit/api-base": "1.3.3",
|
|
95
|
+
"@funkit/core": "2.2.5",
|
|
96
|
+
"@funkit/wagmi-tools": "3.0.16"
|
|
98
97
|
},
|
|
99
98
|
"repository": {
|
|
100
99
|
"type": "git",
|
package/dist/utils/memoize.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-RETKWSKD.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector
|
|
12
|
-
} from "./chunk-23WIEY36.js";
|
|
13
|
-
|
|
14
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
15
|
-
var rainbowWallet = ({
|
|
16
|
-
projectId,
|
|
17
|
-
walletConnectParameters
|
|
18
|
-
}) => {
|
|
19
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
20
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
21
|
-
const getUri = (uri) => {
|
|
22
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
23
|
-
uri
|
|
24
|
-
)}&connector=rainbowkit`;
|
|
25
|
-
};
|
|
26
|
-
return {
|
|
27
|
-
id: "rainbow",
|
|
28
|
-
name: "Rainbow",
|
|
29
|
-
rdns: "me.rainbow",
|
|
30
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
31
|
-
iconBackground: "#0c2f78",
|
|
32
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
33
|
-
downloadUrls: {
|
|
34
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
35
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
36
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
37
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
38
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
39
|
-
},
|
|
40
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
41
|
-
qrCode: shouldUseWalletConnect ? {
|
|
42
|
-
getUri,
|
|
43
|
-
instructions: {
|
|
44
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
45
|
-
steps: [
|
|
46
|
-
{
|
|
47
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
48
|
-
step: "install",
|
|
49
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
53
|
-
step: "create",
|
|
54
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
58
|
-
step: "scan",
|
|
59
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
60
|
-
}
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
} : void 0,
|
|
64
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
65
|
-
projectId,
|
|
66
|
-
walletConnectParameters
|
|
67
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
rainbowWallet
|
|
73
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-RETKWSKD.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
-
var bifrostWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
19
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
20
|
-
const getUri = (uri) => {
|
|
21
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "bifrostWallet",
|
|
25
|
-
name: "Bifrost Wallet",
|
|
26
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
27
|
-
iconBackground: "#fff",
|
|
28
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
29
|
-
downloadUrls: {
|
|
30
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
31
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
32
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
33
|
-
},
|
|
34
|
-
mobile: {
|
|
35
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
36
|
-
},
|
|
37
|
-
qrCode: shouldUseWalletConnect ? {
|
|
38
|
-
getUri: (uri) => uri,
|
|
39
|
-
instructions: {
|
|
40
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
41
|
-
steps: [
|
|
42
|
-
{
|
|
43
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
44
|
-
step: "install",
|
|
45
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
49
|
-
step: "create",
|
|
50
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
54
|
-
step: "scan",
|
|
55
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
} : void 0,
|
|
60
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
61
|
-
projectId,
|
|
62
|
-
walletConnectParameters
|
|
63
|
-
}) : getInjectedConnector({
|
|
64
|
-
flag: "isBifrost"
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
bifrostWallet
|
|
71
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-WRA2DVJ7.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-RETKWSKD.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector
|
|
11
|
-
} from "./chunk-23WIEY36.js";
|
|
12
|
-
|
|
13
|
-
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
14
|
-
var gateWallet = ({
|
|
15
|
-
projectId,
|
|
16
|
-
walletConnectParameters
|
|
17
|
-
}) => {
|
|
18
|
-
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
19
|
-
const shouldUseWalletConnect = !isGateInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "gate",
|
|
22
|
-
name: "Gate Wallet",
|
|
23
|
-
rdns: "io.gate.wallet",
|
|
24
|
-
iconUrl: async () => (await import("./gateWallet-CJNGQQCV.js")).default,
|
|
25
|
-
iconAccent: "#fff",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
30
|
-
mobile: "https://www.gate.io/mobileapp",
|
|
31
|
-
qrCode: "https://www.gate.io/web3",
|
|
32
|
-
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
33
|
-
browserExtension: "https://www.gate.io/web3"
|
|
34
|
-
},
|
|
35
|
-
mobile: {
|
|
36
|
-
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
-
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
-
} : void 0
|
|
39
|
-
},
|
|
40
|
-
qrCode: shouldUseWalletConnect ? {
|
|
41
|
-
getUri: (uri) => uri,
|
|
42
|
-
instructions: {
|
|
43
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
44
|
-
steps: [
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
47
|
-
step: "install",
|
|
48
|
-
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
52
|
-
step: "create",
|
|
53
|
-
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
57
|
-
step: "scan",
|
|
58
|
-
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
} : void 0,
|
|
63
|
-
extension: {
|
|
64
|
-
instructions: {
|
|
65
|
-
learnMoreUrl: "https://www.gate.io/learn",
|
|
66
|
-
steps: [
|
|
67
|
-
{
|
|
68
|
-
description: "wallet_connectors.gate.extension.step1.description",
|
|
69
|
-
step: "install",
|
|
70
|
-
title: "wallet_connectors.gate.extension.step1.title"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
description: "wallet_connectors.gate.extension.step2.description",
|
|
74
|
-
step: "create",
|
|
75
|
-
title: "wallet_connectors.gate.extension.step2.title"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
description: "wallet_connectors.gate.extension.step3.description",
|
|
79
|
-
step: "refresh",
|
|
80
|
-
title: "wallet_connectors.gate.extension.step3.title"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
-
projectId,
|
|
87
|
-
walletConnectParameters
|
|
88
|
-
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export {
|
|
93
|
-
gateWallet
|
|
94
|
-
};
|