@funkit/connect 7.1.0-next.16 → 7.1.0-next.19
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 +30 -0
- package/dist/__generated__/default_configs.d.ts +117 -12
- package/dist/components/Dropdown/ReceiveTokenDropdown.d.ts +3 -1
- package/dist/hooks/usePaymentSources.d.ts +1 -0
- package/dist/index.js +369 -83
- package/dist/utils/flags/config.d.ts +2 -2
- package/dist/utils/lighter.d.ts +5 -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 +27 -27
- 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 +3 -3
- package/dist/wallets/walletConnectors/{chunk-FT5BX7TL.js → chunk-2E4PDCEJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LGT6IAXI.js → chunk-47QF6EET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5AV2NSL3.js → chunk-5EAOMOTO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4SC3PZVM.js → chunk-77UTBHGP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GXTI2PZD.js → chunk-CZYUE3AR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-O6YFVGVQ.js → chunk-FA5DTT5R.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PRGCIJ7Y.js → chunk-HPHADOYD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GEMN6DM5.js → chunk-JFHP4YJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-75A4Q5E5.js → chunk-MRRZOQGZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6677RKVT.js → chunk-R6Y36CMA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5FWURLPF.js → chunk-RA7MCWF4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TLOROKED.js → chunk-RLRQYUYC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3ZWIUCOI.js → chunk-T5KHVUFR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ENLR4LXN.js → chunk-U5QP7MI5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OCM5YHT5.js → chunk-UOTQQJJD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RNIMZDHW.js → chunk-VYNVAGSV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N7475PGA.js → chunk-W7Y6I22Y.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WNQ3NPHX.js → chunk-YLJDPTYF.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 7.1.0-next.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [bb6bfce]
|
|
8
|
+
- @funkit/api-base@1.12.22-next.6
|
|
9
|
+
|
|
10
|
+
## 7.1.0-next.18
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e2b103e: Unified checkout item display logic to use same itemName derivation for both arbitrary action checkouts and basic buy checkouts
|
|
15
|
+
|
|
16
|
+
## 7.1.0-next.17
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- a979216: remove target asset check in lighter
|
|
21
|
+
- 52406e3: feat(connect,fun-relay): add new lighter spot assets
|
|
22
|
+
- 57356c6: feat(connect): add SKY asset
|
|
23
|
+
- 2f57830: feat: implemented revoke/reset approval mechanics for tokens with non-standard approval implementation
|
|
24
|
+
- ab9c1e9: chore: update assets
|
|
25
|
+
- d7c0812: feat(connect): show payment sources in disabled state w/coming soon badge for unsupported target assets
|
|
26
|
+
- Updated dependencies [320236b]
|
|
27
|
+
- Updated dependencies [52406e3]
|
|
28
|
+
- Updated dependencies [2f57830]
|
|
29
|
+
- Updated dependencies [ab9c1e9]
|
|
30
|
+
- Updated dependencies [d4b9ea5]
|
|
31
|
+
- @funkit/fun-relay@2.2.0-next.6
|
|
32
|
+
|
|
3
33
|
## 7.1.0-next.16
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -137,6 +137,91 @@ declare const _default: {
|
|
|
137
137
|
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
138
138
|
};
|
|
139
139
|
}];
|
|
140
|
+
}, {
|
|
141
|
+
readonly routeId: "LIGHTER_LINK_SPOT_NEW_USER";
|
|
142
|
+
readonly rules: readonly [{
|
|
143
|
+
readonly when: {
|
|
144
|
+
readonly chainId: "1";
|
|
145
|
+
readonly tokenAddress: "0x514910771AF9Ca656af840dff83E8264EcF986CA";
|
|
146
|
+
};
|
|
147
|
+
readonly use: {
|
|
148
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
149
|
+
readonly badge: "NATIVE";
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
readonly when: "*";
|
|
153
|
+
readonly use: {
|
|
154
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
155
|
+
};
|
|
156
|
+
}];
|
|
157
|
+
}, {
|
|
158
|
+
readonly routeId: "LIGHTER_UNI_SPOT_NEW_USER";
|
|
159
|
+
readonly rules: readonly [{
|
|
160
|
+
readonly when: {
|
|
161
|
+
readonly chainId: "1";
|
|
162
|
+
readonly tokenAddress: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984";
|
|
163
|
+
};
|
|
164
|
+
readonly use: {
|
|
165
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
166
|
+
readonly badge: "NATIVE";
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
readonly when: "*";
|
|
170
|
+
readonly use: {
|
|
171
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
172
|
+
};
|
|
173
|
+
}];
|
|
174
|
+
}, {
|
|
175
|
+
readonly routeId: "LIGHTER_AAVE_SPOT_NEW_USER";
|
|
176
|
+
readonly rules: readonly [{
|
|
177
|
+
readonly when: {
|
|
178
|
+
readonly chainId: "1";
|
|
179
|
+
readonly tokenAddress: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9";
|
|
180
|
+
};
|
|
181
|
+
readonly use: {
|
|
182
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
183
|
+
readonly badge: "NATIVE";
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
readonly when: "*";
|
|
187
|
+
readonly use: {
|
|
188
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
189
|
+
};
|
|
190
|
+
}];
|
|
191
|
+
}, {
|
|
192
|
+
readonly routeId: "LIGHTER_SKY_SPOT_NEW_USER";
|
|
193
|
+
readonly rules: readonly [{
|
|
194
|
+
readonly when: {
|
|
195
|
+
readonly chainId: "1";
|
|
196
|
+
readonly tokenAddress: "0x56072C95FAA701256059aa122697B133aDEd9279";
|
|
197
|
+
};
|
|
198
|
+
readonly use: {
|
|
199
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
200
|
+
readonly badge: "NATIVE";
|
|
201
|
+
};
|
|
202
|
+
}, {
|
|
203
|
+
readonly when: "*";
|
|
204
|
+
readonly use: {
|
|
205
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
206
|
+
};
|
|
207
|
+
}];
|
|
208
|
+
}, {
|
|
209
|
+
readonly routeId: "LIGHTER_LDO_SPOT_NEW_USER";
|
|
210
|
+
readonly rules: readonly [{
|
|
211
|
+
readonly when: {
|
|
212
|
+
readonly chainId: "1";
|
|
213
|
+
readonly tokenAddress: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32";
|
|
214
|
+
};
|
|
215
|
+
readonly use: {
|
|
216
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
217
|
+
readonly badge: "NATIVE";
|
|
218
|
+
};
|
|
219
|
+
}, {
|
|
220
|
+
readonly when: "*";
|
|
221
|
+
readonly use: {
|
|
222
|
+
readonly path: "FUN_MAINNET_DEPOSIT";
|
|
223
|
+
};
|
|
224
|
+
}];
|
|
140
225
|
}];
|
|
141
226
|
};
|
|
142
227
|
readonly enablebitcoin: {
|
|
@@ -146,6 +231,13 @@ declare const _default: {
|
|
|
146
231
|
readonly value: false;
|
|
147
232
|
};
|
|
148
233
|
readonly enablefiatdeposit: {
|
|
234
|
+
readonly variants: readonly [{
|
|
235
|
+
readonly condition: {
|
|
236
|
+
readonly type: "country";
|
|
237
|
+
readonly countryCodes: readonly ["US"];
|
|
238
|
+
};
|
|
239
|
+
readonly value: false;
|
|
240
|
+
}];
|
|
149
241
|
readonly value: true;
|
|
150
242
|
};
|
|
151
243
|
readonly enablemeldpayment: {
|
|
@@ -154,18 +246,6 @@ declare const _default: {
|
|
|
154
246
|
readonly enabletokentransfer: {
|
|
155
247
|
readonly value: true;
|
|
156
248
|
};
|
|
157
|
-
readonly enabletokentransfertest: {
|
|
158
|
-
readonly variants: readonly [{
|
|
159
|
-
readonly conditions: {
|
|
160
|
-
readonly all: readonly [{
|
|
161
|
-
readonly type: "allowedCountries";
|
|
162
|
-
readonly countries: readonly ["SG", "DE"];
|
|
163
|
-
}];
|
|
164
|
-
};
|
|
165
|
-
readonly value: true;
|
|
166
|
-
}];
|
|
167
|
-
readonly value: false;
|
|
168
|
-
};
|
|
169
249
|
readonly ismexico: {
|
|
170
250
|
readonly value: {
|
|
171
251
|
readonly mexico: false;
|
|
@@ -193,6 +273,31 @@ declare const _default: {
|
|
|
193
273
|
readonly SGD: readonly [130, 645, 1285];
|
|
194
274
|
};
|
|
195
275
|
};
|
|
276
|
+
readonly mintokentransfervalue: {
|
|
277
|
+
readonly variants: readonly [{
|
|
278
|
+
readonly condition: {
|
|
279
|
+
readonly type: "country";
|
|
280
|
+
readonly countryCodes: readonly ["CA"];
|
|
281
|
+
};
|
|
282
|
+
readonly value: {
|
|
283
|
+
readonly mainnet: 15;
|
|
284
|
+
readonly nonMainnet: 3;
|
|
285
|
+
};
|
|
286
|
+
}, {
|
|
287
|
+
readonly condition: {
|
|
288
|
+
readonly type: "country";
|
|
289
|
+
readonly countryCodes: readonly ["AU"];
|
|
290
|
+
};
|
|
291
|
+
readonly value: {
|
|
292
|
+
readonly mainnet: 15;
|
|
293
|
+
readonly nonMainnet: 3;
|
|
294
|
+
};
|
|
295
|
+
}];
|
|
296
|
+
readonly value: {
|
|
297
|
+
readonly mainnet: 10;
|
|
298
|
+
readonly nonMainnet: 2.5;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
196
301
|
readonly showinfobanner: {
|
|
197
302
|
readonly value: {
|
|
198
303
|
readonly message: "";
|
|
@@ -3,12 +3,14 @@ import type { DynamicTargetAssetCandidate } from '../../providers/FunkitCheckout
|
|
|
3
3
|
import { type BaseDropdownProps } from './BaseDropdown';
|
|
4
4
|
interface ReceiveTokenDropdownProps {
|
|
5
5
|
chainId: number;
|
|
6
|
+
displayedChainId?: number;
|
|
6
7
|
tokens: DynamicTargetAssetCandidate[];
|
|
7
8
|
onTokenSelected: (token: DynamicTargetAssetCandidate) => void;
|
|
8
9
|
selectedToken?: string;
|
|
9
10
|
label?: string;
|
|
10
11
|
activeItemLabel?: string;
|
|
11
12
|
activeItemProps?: BaseDropdownProps['activeItemProps'];
|
|
13
|
+
maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
|
|
12
14
|
}
|
|
13
|
-
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
15
|
+
export declare const ReceiveTokenDropdown: ({ tokens, chainId, selectedToken, onTokenSelected, label, activeItemLabel, activeItemProps, maxDropdownHeight, displayedChainId, }: ReceiveTokenDropdownProps) => React.JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -11,4 +11,5 @@ export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
|
11
11
|
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string, checkoutConfig?: FunkitCheckoutConfig) => {
|
|
12
12
|
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
13
13
|
moreSources: PaymentMethod[];
|
|
14
|
+
comingSoon: PaymentMethod[];
|
|
14
15
|
};
|