@funkit/connect 10.1.0-next.0 → 10.1.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 +8 -1
- package/dist/clients/{chunk-ETB2YYFT.js → chunk-2NBYHUIW.js} +1 -1
- package/dist/clients/{chunk-JNZY3GAA.js → chunk-E3USJY7A.js} +1 -1
- package/dist/clients/{chunk-HD4Y4NKC.js → chunk-ZAXSDMDU.js} +2 -2
- package/dist/clients/fanatics.css +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/lighter.css +11 -11
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +11 -11
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +3 -3
- package/dist/clients/polymarket/index.css +11 -11
- package/dist/clients/polymarket/index.js +3 -3
- package/dist/index.css +11 -11
- package/dist/index.js +73 -86
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +46 -46
- package/package.json +4 -4
- package/dist/clients/chunk-42XZD2Y3.js +0 -1112
- package/dist/clients/chunk-5UIZBNLC.js +0 -1175
- package/dist/clients/chunk-BO7AZVPG.js +0 -1112
- package/dist/clients/chunk-BUCJRBW7.js +0 -1472
- package/dist/clients/chunk-ME4OAQIY.js +0 -696
- package/dist/clients/chunk-PEVDOGEA.js +0 -109
- package/dist/clients/chunk-QIWGVVAW.js +0 -1113
- package/dist/clients/chunk-VJZW3MA3.js +0 -94
- package/dist/clients/chunk-WEETVC7U.js +0 -1113
- package/dist/clients/chunk-Y2KXVS36.js +0 -230
- package/dist/clients/polymarket/usePolymarketAccountBalances.d.ts +0 -66
- package/dist/hooks/useIsTokenWhitelisted.d.ts +0 -30
- package/dist/modals/CheckoutModal/buildRelayChains.d.ts +0 -12
- package/dist/providers/FunkitFlagsProvider.d.ts +0 -26
- package/dist/utils/flags/config.d.ts +0 -333
- package/dist/utils/flags/endpoint.d.ts +0 -22
- package/dist/utils/flags/hash.d.ts +0 -13
- package/dist/utils/flags/impl.d.ts +0 -10
- package/dist/utils/flags/types.d.ts +0 -49
- package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +0 -70
- package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +0 -96
- package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +0 -218
- package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +0 -99
- package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +0 -98
- package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +0 -92
- package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +0 -93
- package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +0 -66
- package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +0 -95
- package/dist/wallets/walletConnectors/chunk-RVOY537T.js +0 -100
- package/dist/wallets/walletConnectors/chunk-STVVP43G.js +0 -94
- package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +0 -87
- package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +0 -92
- package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +0 -110
- package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +0 -103
- package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +0 -96
- package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +0 -106
- /package/dist/clients/{chunk-HMP3LHMW.js → chunk-LUHEVXPD.js} +0 -0
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
import type { Override } from './types';
|
|
2
|
-
export declare const flagConfig: {
|
|
3
|
-
readonly blocked_countries: {
|
|
4
|
-
readonly type: "string";
|
|
5
|
-
readonly default_value: string;
|
|
6
|
-
readonly overrides: [{
|
|
7
|
-
readonly if_any: [{
|
|
8
|
-
readonly key: "apiKey";
|
|
9
|
-
readonly type: "isAnyOf";
|
|
10
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
11
|
-
}];
|
|
12
|
-
readonly value: "";
|
|
13
|
-
}];
|
|
14
|
-
};
|
|
15
|
-
readonly address_blacklist: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
readonly default_value: string;
|
|
18
|
-
};
|
|
19
|
-
readonly show_powered_tagline: {
|
|
20
|
-
readonly type: "boolean";
|
|
21
|
-
readonly default_value: false;
|
|
22
|
-
readonly overrides: [{
|
|
23
|
-
readonly if_any: [{
|
|
24
|
-
readonly key: "apiKey";
|
|
25
|
-
readonly type: "isAnyOf";
|
|
26
|
-
readonly values: ["2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"];
|
|
27
|
-
}];
|
|
28
|
-
readonly value: true;
|
|
29
|
-
}];
|
|
30
|
-
};
|
|
31
|
-
readonly enable_token_transfer: {
|
|
32
|
-
readonly type: "boolean";
|
|
33
|
-
readonly default_value: true;
|
|
34
|
-
readonly overrides: [{
|
|
35
|
-
readonly if_any: [{
|
|
36
|
-
readonly key: "apiKey";
|
|
37
|
-
readonly type: "isAnyOf";
|
|
38
|
-
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
39
|
-
}];
|
|
40
|
-
readonly value: true;
|
|
41
|
-
}, Override<boolean>];
|
|
42
|
-
};
|
|
43
|
-
readonly enable_fiat_deposit: {
|
|
44
|
-
readonly type: "boolean";
|
|
45
|
-
readonly default_value: true;
|
|
46
|
-
readonly overrides: [{
|
|
47
|
-
readonly if_any: [{
|
|
48
|
-
readonly key: "apiKey";
|
|
49
|
-
readonly type: "isAnyOf";
|
|
50
|
-
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
51
|
-
}];
|
|
52
|
-
readonly value: true;
|
|
53
|
-
}, Override<boolean>];
|
|
54
|
-
};
|
|
55
|
-
readonly token_transfer_source_chains_and_assets: {
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
readonly default_value: string;
|
|
58
|
-
readonly overrides: [{
|
|
59
|
-
readonly if_any: [{
|
|
60
|
-
readonly key: "apiKey";
|
|
61
|
-
readonly type: "isAnyOf";
|
|
62
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
63
|
-
}];
|
|
64
|
-
readonly value: string;
|
|
65
|
-
}, {
|
|
66
|
-
readonly if_any: [{
|
|
67
|
-
readonly key: "apiKey";
|
|
68
|
-
readonly type: "isAnyOf";
|
|
69
|
-
readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
|
|
70
|
-
}];
|
|
71
|
-
readonly value: string;
|
|
72
|
-
}, {
|
|
73
|
-
readonly if_any: [{
|
|
74
|
-
readonly key: "apiKey";
|
|
75
|
-
readonly type: "isAnyOf";
|
|
76
|
-
readonly values: ["i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
|
|
77
|
-
}];
|
|
78
|
-
readonly value: string;
|
|
79
|
-
}, {
|
|
80
|
-
readonly if_any: [{
|
|
81
|
-
readonly key: "apiKey";
|
|
82
|
-
readonly type: "isAnyOf";
|
|
83
|
-
readonly values: ["M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
84
|
-
}];
|
|
85
|
-
readonly value: string;
|
|
86
|
-
}, {
|
|
87
|
-
readonly if_any: [{
|
|
88
|
-
readonly key: "apiKey";
|
|
89
|
-
readonly type: "isAnyOf";
|
|
90
|
-
readonly values: ["2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc"];
|
|
91
|
-
}];
|
|
92
|
-
readonly value: string;
|
|
93
|
-
}, {
|
|
94
|
-
readonly if_any: [{
|
|
95
|
-
readonly key: "apiKey";
|
|
96
|
-
readonly type: "isAnyOf";
|
|
97
|
-
readonly values: ["pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW"];
|
|
98
|
-
}];
|
|
99
|
-
readonly value: string;
|
|
100
|
-
}, {
|
|
101
|
-
readonly if_any: [{
|
|
102
|
-
readonly key: "apiKey";
|
|
103
|
-
readonly type: "isAnyOf";
|
|
104
|
-
readonly values: ["clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
105
|
-
}];
|
|
106
|
-
readonly value: string;
|
|
107
|
-
}, {
|
|
108
|
-
readonly if_any: [{
|
|
109
|
-
readonly key: "apiKey";
|
|
110
|
-
readonly type: "isAnyOf";
|
|
111
|
-
readonly values: ["5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
112
|
-
}];
|
|
113
|
-
readonly value: string;
|
|
114
|
-
}, {
|
|
115
|
-
readonly if_any: [{
|
|
116
|
-
readonly key: "apiKey";
|
|
117
|
-
readonly type: "isAnyOf";
|
|
118
|
-
readonly values: ["57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
119
|
-
}];
|
|
120
|
-
readonly value: string;
|
|
121
|
-
}];
|
|
122
|
-
};
|
|
123
|
-
readonly withdrawal_chains_and_assets: {
|
|
124
|
-
readonly type: "string";
|
|
125
|
-
readonly default_value: string;
|
|
126
|
-
};
|
|
127
|
-
readonly enable_token_transfer_universal_deposit_address: {
|
|
128
|
-
readonly type: "boolean";
|
|
129
|
-
readonly default_value: true;
|
|
130
|
-
};
|
|
131
|
-
readonly max_checkout_usd: {
|
|
132
|
-
readonly type: "string";
|
|
133
|
-
readonly default_value: string;
|
|
134
|
-
readonly overrides: [{
|
|
135
|
-
readonly if_any: [{
|
|
136
|
-
readonly key: "userId";
|
|
137
|
-
readonly type: "isAnyOf";
|
|
138
|
-
readonly values: ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807"];
|
|
139
|
-
}];
|
|
140
|
-
readonly value: string;
|
|
141
|
-
}];
|
|
142
|
-
};
|
|
143
|
-
readonly checkout_time_estimate_overrides: {
|
|
144
|
-
readonly type: "string";
|
|
145
|
-
readonly default_value: string;
|
|
146
|
-
};
|
|
147
|
-
readonly token_transfer_default_chain_id: {
|
|
148
|
-
readonly type: "string";
|
|
149
|
-
readonly default_value: string;
|
|
150
|
-
readonly overrides: [{
|
|
151
|
-
readonly if_any: [{
|
|
152
|
-
readonly key: "apiKey";
|
|
153
|
-
readonly type: "isAnyOf";
|
|
154
|
-
readonly values: ["SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um"];
|
|
155
|
-
}];
|
|
156
|
-
readonly value: string;
|
|
157
|
-
}, {
|
|
158
|
-
readonly if_any: [{
|
|
159
|
-
readonly key: "apiKey";
|
|
160
|
-
readonly type: "isAnyOf";
|
|
161
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2"];
|
|
162
|
-
}];
|
|
163
|
-
readonly value: string;
|
|
164
|
-
}, {
|
|
165
|
-
readonly if_any: [{
|
|
166
|
-
readonly key: "apiKey";
|
|
167
|
-
readonly type: "isAnyOf";
|
|
168
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
169
|
-
}];
|
|
170
|
-
readonly value: string;
|
|
171
|
-
}, {
|
|
172
|
-
readonly if_any: [{
|
|
173
|
-
readonly key: "apiKey";
|
|
174
|
-
readonly type: "isAnyOf";
|
|
175
|
-
readonly values: ["0IEOb9q4Kd9akgyPbIdW17HGYLY7MWEB2yRHyMxo"];
|
|
176
|
-
}];
|
|
177
|
-
readonly value: string;
|
|
178
|
-
}];
|
|
179
|
-
};
|
|
180
|
-
readonly is_checkout_activated: {
|
|
181
|
-
readonly type: "boolean";
|
|
182
|
-
readonly default_value: true;
|
|
183
|
-
};
|
|
184
|
-
readonly show_info_banner: {
|
|
185
|
-
readonly type: "string";
|
|
186
|
-
readonly default_value: string;
|
|
187
|
-
};
|
|
188
|
-
readonly checkout_notifications_refresh_interval: {
|
|
189
|
-
readonly type: "string";
|
|
190
|
-
readonly default_value: string;
|
|
191
|
-
};
|
|
192
|
-
readonly token_transfer_new_tokens: {
|
|
193
|
-
readonly type: "string";
|
|
194
|
-
readonly default_value: string;
|
|
195
|
-
readonly overrides: [];
|
|
196
|
-
};
|
|
197
|
-
readonly new_token_asset_selection_banner: {
|
|
198
|
-
readonly type: "string";
|
|
199
|
-
readonly default_value: "";
|
|
200
|
-
};
|
|
201
|
-
readonly is_relay_bypass_enabled: {
|
|
202
|
-
readonly type: "boolean";
|
|
203
|
-
readonly default_value: true;
|
|
204
|
-
};
|
|
205
|
-
readonly relay_bypass_source_chains_and_assets: {
|
|
206
|
-
readonly type: "string";
|
|
207
|
-
readonly default_value: string;
|
|
208
|
-
};
|
|
209
|
-
readonly relay_bypass_target_chains_and_assets: {
|
|
210
|
-
readonly type: "string";
|
|
211
|
-
readonly default_value: string;
|
|
212
|
-
};
|
|
213
|
-
readonly enable_card: {
|
|
214
|
-
readonly type: "boolean";
|
|
215
|
-
readonly default_value: false;
|
|
216
|
-
readonly overrides: [];
|
|
217
|
-
};
|
|
218
|
-
readonly enable_brokerage: {
|
|
219
|
-
readonly type: "boolean";
|
|
220
|
-
readonly default_value: false;
|
|
221
|
-
};
|
|
222
|
-
readonly enable_bluvo_brokerage: {
|
|
223
|
-
readonly type: "boolean";
|
|
224
|
-
readonly default_value: false;
|
|
225
|
-
readonly overrides: [{
|
|
226
|
-
readonly if_any: [{
|
|
227
|
-
readonly key: "userId";
|
|
228
|
-
readonly type: "isAnyOf";
|
|
229
|
-
readonly values: string[];
|
|
230
|
-
}];
|
|
231
|
-
readonly value: true;
|
|
232
|
-
}, {
|
|
233
|
-
readonly if_any: [{
|
|
234
|
-
readonly key: "apiKey";
|
|
235
|
-
readonly type: "isAnyOf";
|
|
236
|
-
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
237
|
-
}];
|
|
238
|
-
readonly value: true;
|
|
239
|
-
}, Override<boolean>, {
|
|
240
|
-
readonly if_any: [{
|
|
241
|
-
readonly key: "apiKey";
|
|
242
|
-
readonly type: "isAnyOf";
|
|
243
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "lI7amueGK94QtGa7sGGVf8n0XhIcn4sHFAZRu5Jj", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
244
|
-
}];
|
|
245
|
-
readonly value: true;
|
|
246
|
-
}];
|
|
247
|
-
};
|
|
248
|
-
readonly enable_meld_payment: {
|
|
249
|
-
readonly type: "boolean";
|
|
250
|
-
readonly default_value: false;
|
|
251
|
-
readonly overrides: [{
|
|
252
|
-
readonly if_any: [{
|
|
253
|
-
readonly key: "apiKey";
|
|
254
|
-
readonly type: "isAnyOf";
|
|
255
|
-
readonly values: ["di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG"];
|
|
256
|
-
}];
|
|
257
|
-
readonly value: true;
|
|
258
|
-
}, Override<boolean>, {
|
|
259
|
-
readonly if_any: [{
|
|
260
|
-
readonly key: "apiKey";
|
|
261
|
-
readonly type: "isAnyOf";
|
|
262
|
-
readonly values: ["6TUi99Tq3O9MWj1IFX8Pv6spmPXzcvhy9NvBoeW2", "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e", "SLFrOWqgUK3XO8kVN11Is8QBXX9VnNjh3kKsCwy6", "57G91zNoew4nYxIoqSCpS1vWr8JT3gGVasNqMwgG", "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um", "cGlmpTmNh657m8TiV5RFdwna6FG5pxM6ajiNHvw3", "USyZhcp7kB2mMsbRsaHDs3i52cE6srZw8KD8jZd0", "vte0gvTFGH7hPyPED46oV8TyJlyE8p6D7Q73TSx0", "ODW4jUppoG3H87YcY9GZhoGj4hX5W0w9mr24LEU8", "pLQBJsA6zS9tg990rbdBD6UdABkWRv5O60vlrVcW", "53OWivH0fK2VIAuMZTycr52EnSEnPWj97Jy3Dpiz", "AH7lRIhbsL167nptv6eub9xDJXVHnYUm2vL7FLjK", "TY2G63jFfd7H29aHiJIzg5RqdXNdog2Q5jgb8tr7", "i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2", "1cRIX8XoWP801OILra02i13IJ08IARBP5B6ydcnp", "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc", "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN", "Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6", "wQDLu86Qab61vbtru7thf8Yj0xaeqVUH4ohoXESu", "iMTsSsgDdI2FC0FjeEejS9LMxuJgDhFO3OHlwVjT", "HKHvPSPDezaxsTohFgDuG4WpKW6hB4SFYyztm9vc", "5UzOrcAE2F3rcuMX2EeIlaYv5VUcDe6Lyh0PeZX2"];
|
|
263
|
-
}];
|
|
264
|
-
readonly value: true;
|
|
265
|
-
}, {
|
|
266
|
-
readonly if_any: [{
|
|
267
|
-
readonly key: "userId";
|
|
268
|
-
readonly type: "pctRollout";
|
|
269
|
-
readonly pct: 100;
|
|
270
|
-
}];
|
|
271
|
-
readonly value: false;
|
|
272
|
-
}];
|
|
273
|
-
};
|
|
274
|
-
readonly meld_quick_options: {
|
|
275
|
-
readonly type: "string";
|
|
276
|
-
readonly default_value: string;
|
|
277
|
-
};
|
|
278
|
-
readonly min_token_transfer_value: {
|
|
279
|
-
readonly type: "string";
|
|
280
|
-
readonly default_value: string;
|
|
281
|
-
readonly overrides: [{
|
|
282
|
-
readonly if_any: [{
|
|
283
|
-
readonly key: "apiKey";
|
|
284
|
-
readonly type: "isAnyOf";
|
|
285
|
-
readonly values: ["i6e1I8cfX625TTwRJlD2DshKyAoaUtO8aeoaR4i2"];
|
|
286
|
-
}];
|
|
287
|
-
readonly value: string;
|
|
288
|
-
}];
|
|
289
|
-
};
|
|
290
|
-
readonly withdrawal_exclude_tokens: {
|
|
291
|
-
readonly type: "string";
|
|
292
|
-
readonly default_value: string;
|
|
293
|
-
};
|
|
294
|
-
readonly token_transfer_default_tokens: {
|
|
295
|
-
readonly type: "string";
|
|
296
|
-
readonly default_value: "";
|
|
297
|
-
readonly overrides: [{
|
|
298
|
-
readonly if_any: [{
|
|
299
|
-
readonly key: "apiKey";
|
|
300
|
-
readonly type: "isAnyOf";
|
|
301
|
-
readonly values: ["Y53dikxXdT4E3afI1l8BMBSWgyhKvf65k6Dut1k6"];
|
|
302
|
-
}];
|
|
303
|
-
readonly value: string;
|
|
304
|
-
}];
|
|
305
|
-
};
|
|
306
|
-
readonly chain_id_sort_order: {
|
|
307
|
-
readonly type: "string";
|
|
308
|
-
readonly default_value: string;
|
|
309
|
-
};
|
|
310
|
-
readonly enable_bitcoin: {
|
|
311
|
-
readonly type: "boolean";
|
|
312
|
-
readonly default_value: false;
|
|
313
|
-
readonly overrides: [];
|
|
314
|
-
};
|
|
315
|
-
readonly chain_info_banners: {
|
|
316
|
-
readonly type: "string";
|
|
317
|
-
readonly default_value: string;
|
|
318
|
-
};
|
|
319
|
-
/** @deprecated Use frog quoteConfig */
|
|
320
|
-
readonly permit2_tokens: {
|
|
321
|
-
readonly type: "string";
|
|
322
|
-
readonly default_value: string;
|
|
323
|
-
readonly overrides: [{
|
|
324
|
-
readonly if_any: [{
|
|
325
|
-
readonly key: "apiKey";
|
|
326
|
-
readonly type: "isAnyOf";
|
|
327
|
-
readonly values: ["clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e"];
|
|
328
|
-
}];
|
|
329
|
-
readonly value: string;
|
|
330
|
-
}];
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
export type FlagConfig = typeof flagConfig;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { AbstractFlags } from './types';
|
|
2
|
-
export declare const FLAG_ENDPOINT_HOST = "sdk-cdn.fun.xyz";
|
|
3
|
-
export declare const FLAG_PROD_ENDPOINT_PATH = "flags/v0/config.json";
|
|
4
|
-
export declare const FLAG_DEV_ENDPOINT_PATH = "flags/dev/config.json";
|
|
5
|
-
export declare const FLAG_PROD_ENDPOINT = "https://sdk-cdn.fun.xyz/flags/v0/config.json";
|
|
6
|
-
export type EndpointData<F extends AbstractFlags> = {
|
|
7
|
-
__meta__: {
|
|
8
|
-
build_time: string;
|
|
9
|
-
git_branch: string;
|
|
10
|
-
git_sha: string;
|
|
11
|
-
npm_version: string;
|
|
12
|
-
};
|
|
13
|
-
flags: F;
|
|
14
|
-
};
|
|
15
|
-
interface Env {
|
|
16
|
-
GIT_COMMIT_TIME: string;
|
|
17
|
-
GIT_BRANCH: string;
|
|
18
|
-
GIT_SHA: string;
|
|
19
|
-
npm_package_version: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const generateEndpointJson: <F extends AbstractFlags>(env: Env, flags: F) => EndpointData<F>;
|
|
22
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
cyrb53 (c) 2018 bryc (github.com/bryc)
|
|
3
|
-
License: Public domain (or MIT if needed). Attribution appreciated.
|
|
4
|
-
A fast and simple 53-bit string hash function with decent collision resistance.
|
|
5
|
-
Largely inspired by MurmurHash2/3, but with a focus on speed/simplicity.
|
|
6
|
-
*/
|
|
7
|
-
export declare const cyrb53: (str: string, seed?: number) => number;
|
|
8
|
-
/**
|
|
9
|
-
* Be careful changing this function, it will affect the rollout percentage.
|
|
10
|
-
* This hash function was picked because it's simple and fast and only needs
|
|
11
|
-
* to split across 100 buckets.
|
|
12
|
-
*/
|
|
13
|
-
export declare const hashPct: (flag_key: string, value: string, pct: number) => boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AbstractFlags, InferFlagType } from './types';
|
|
2
|
-
export interface UserContext {
|
|
3
|
-
apiKey: string;
|
|
4
|
-
userId?: string;
|
|
5
|
-
ipCountry: string | undefined;
|
|
6
|
-
}
|
|
7
|
-
export declare function fetchConfigFromServer<F extends AbstractFlags>(): Promise<F>;
|
|
8
|
-
export declare function deriveAllFlags<T extends AbstractFlags>(config: T, userContext: UserContext): {
|
|
9
|
-
[K in keyof T]?: InferFlagType<T[K]>;
|
|
10
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These are the data types that a feature flag can return.
|
|
3
|
-
* Note: they need to be values that can be expressed in JSON
|
|
4
|
-
*/
|
|
5
|
-
export type FlagConfig = BooleanFlagConfig | NumberFlagConfig | StringFlagConfig;
|
|
6
|
-
export interface BooleanFlagConfig {
|
|
7
|
-
type: 'boolean';
|
|
8
|
-
default_value: boolean;
|
|
9
|
-
overrides?: Override<boolean>[];
|
|
10
|
-
}
|
|
11
|
-
export interface NumberFlagConfig {
|
|
12
|
-
type: 'number';
|
|
13
|
-
default_value: number;
|
|
14
|
-
overrides?: Override<number>[];
|
|
15
|
-
}
|
|
16
|
-
export interface StringFlagConfig {
|
|
17
|
-
type: 'string';
|
|
18
|
-
default_value: string;
|
|
19
|
-
overrides?: Override<string>[];
|
|
20
|
-
}
|
|
21
|
-
export type InferFlagType<F extends FlagConfig> = F['type'] extends 'number' ? number : F['type'] extends 'string' ? string : F['type'] extends 'boolean' ? boolean : never;
|
|
22
|
-
export type Override<T> = {
|
|
23
|
-
/** non-empty list of conditions, any condition will cause the value to match */
|
|
24
|
-
if_any: Condition[];
|
|
25
|
-
/** non-empty list of conditions, all condition will cause the value to match */
|
|
26
|
-
if_all?: Condition[];
|
|
27
|
-
value: T;
|
|
28
|
-
};
|
|
29
|
-
type ConditionKey = 'userId' | 'apiKey' | 'ipCountry';
|
|
30
|
-
export type Condition = {
|
|
31
|
-
type: 'pctRollout';
|
|
32
|
-
key: ConditionKey;
|
|
33
|
-
/** whole number from 0 - 100 inclusive */
|
|
34
|
-
pct: number;
|
|
35
|
-
} | {
|
|
36
|
-
type: 'isAnyOf';
|
|
37
|
-
key: ConditionKey;
|
|
38
|
-
/** non-empty list of API keys */
|
|
39
|
-
values: string[];
|
|
40
|
-
};
|
|
41
|
-
export type AbstractFlags = Record<string, FlagConfig>;
|
|
42
|
-
export type AssetSelectionBannerConfig = {
|
|
43
|
-
chainId: number;
|
|
44
|
-
symbol: string;
|
|
45
|
-
name: string;
|
|
46
|
-
isChainNew?: boolean;
|
|
47
|
-
};
|
|
48
|
-
export type TokenTransferNewBadgeConfig = Record<number, string[]>;
|
|
49
|
-
export {};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
11
|
-
import { isAndroid, isIOS } from "@funkit/utils";
|
|
12
|
-
var rainbowWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
|
|
17
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
20
|
-
uri
|
|
21
|
-
)}&connector=rainbowkit`;
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
id: "rainbow",
|
|
25
|
-
name: "Rainbow",
|
|
26
|
-
rdns: "me.rainbow",
|
|
27
|
-
iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
|
|
28
|
-
iconBackground: "#0c2f78",
|
|
29
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
30
|
-
downloadUrls: {
|
|
31
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
32
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
33
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
34
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
35
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
36
|
-
},
|
|
37
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
38
|
-
qrCode: shouldUseWalletConnect ? {
|
|
39
|
-
getUri,
|
|
40
|
-
instructions: {
|
|
41
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
42
|
-
steps: [
|
|
43
|
-
{
|
|
44
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
45
|
-
step: "install",
|
|
46
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
50
|
-
step: "create",
|
|
51
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
55
|
-
step: "scan",
|
|
56
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
57
|
-
}
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
} : void 0,
|
|
61
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
62
|
-
projectId,
|
|
63
|
-
walletConnectParameters
|
|
64
|
-
}) : getInjectedConnector({ flag: "isRainbow" })
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
rainbowWallet
|
|
70
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { isAndroid } from "@funkit/utils";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
projectId,
|
|
14
|
-
walletConnectParameters
|
|
15
|
-
}) => {
|
|
16
|
-
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
17
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
18
|
-
const getUri = (uri) => {
|
|
19
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5NQVDZ5P.js")).default,
|
|
25
|
-
iconBackground: "#fff",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
-
},
|
|
32
|
-
mobile: {
|
|
33
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
34
|
-
},
|
|
35
|
-
qrCode: shouldUseWalletConnect ? {
|
|
36
|
-
getUri: (uri) => uri,
|
|
37
|
-
instructions: {
|
|
38
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
39
|
-
steps: [
|
|
40
|
-
{
|
|
41
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
42
|
-
step: "install",
|
|
43
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
47
|
-
step: "create",
|
|
48
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
52
|
-
step: "scan",
|
|
53
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
} : void 0,
|
|
58
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
59
|
-
projectId,
|
|
60
|
-
walletConnectParameters
|
|
61
|
-
}) : getInjectedConnector({
|
|
62
|
-
flag: "isBifrost"
|
|
63
|
-
})
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
bifrostWallet
|
|
69
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-OLZ7626J.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector
|
|
8
|
-
} from "./chunk-N4IJLYFY.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
|
|
11
|
-
var coin98Wallet = ({
|
|
12
|
-
projectId,
|
|
13
|
-
walletConnectParameters
|
|
14
|
-
}) => {
|
|
15
|
-
const isCoin98WalletInjected = hasInjectedProvider({
|
|
16
|
-
namespace: "coin98.provider",
|
|
17
|
-
flag: "isCoin98"
|
|
18
|
-
});
|
|
19
|
-
const shouldUseWalletConnect = !isCoin98WalletInjected;
|
|
20
|
-
return {
|
|
21
|
-
id: "coin98",
|
|
22
|
-
name: "Coin98 Wallet",
|
|
23
|
-
iconUrl: async () => (await import("./coin98Wallet-I5CP5KYZ.js")).default,
|
|
24
|
-
installed: isCoin98WalletInjected,
|
|
25
|
-
iconAccent: "#CDA349",
|
|
26
|
-
iconBackground: "#fff",
|
|
27
|
-
rdns: "coin98.com",
|
|
28
|
-
downloadUrls: {
|
|
29
|
-
android: "https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",
|
|
30
|
-
ios: "https://apps.apple.com/vn/app/coin98-super-app/id1561969966",
|
|
31
|
-
mobile: "https://coin98.com/wallet",
|
|
32
|
-
qrCode: "https://coin98.com/wallet",
|
|
33
|
-
chrome: "https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",
|
|
34
|
-
browserExtension: "https://coin98.com/wallet"
|
|
35
|
-
},
|
|
36
|
-
mobile: {
|
|
37
|
-
getUri: shouldUseWalletConnect ? (uri) => uri : void 0
|
|
38
|
-
},
|
|
39
|
-
qrCode: shouldUseWalletConnect ? {
|
|
40
|
-
getUri: (uri) => uri,
|
|
41
|
-
instructions: {
|
|
42
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
43
|
-
steps: [
|
|
44
|
-
{
|
|
45
|
-
description: "wallet_connectors.coin98.qr_code.step1.description",
|
|
46
|
-
step: "install",
|
|
47
|
-
title: "wallet_connectors.coin98.qr_code.step1.title"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
description: "wallet_connectors.coin98.qr_code.step2.description",
|
|
51
|
-
step: "create",
|
|
52
|
-
title: "wallet_connectors.coin98.qr_code.step2.title"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
description: "wallet_connectors.coin98.qr_code.step3.description",
|
|
56
|
-
step: "scan",
|
|
57
|
-
title: "wallet_connectors.coin98.qr_code.step3.title"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
} : void 0,
|
|
62
|
-
extension: {
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://coin98.com/wallet",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.coin98.extension.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.coin98.extension.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.coin98.extension.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.coin98.extension.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.coin98.extension.step3.description",
|
|
78
|
-
step: "refresh",
|
|
79
|
-
title: "wallet_connectors.coin98.extension.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
85
|
-
projectId,
|
|
86
|
-
walletConnectParameters
|
|
87
|
-
}) : getInjectedConnector({
|
|
88
|
-
namespace: "coin98Wallet",
|
|
89
|
-
flag: "isCoin98"
|
|
90
|
-
})
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
coin98Wallet
|
|
96
|
-
};
|