@mintmoney/react 0.1.0-alpha.30 → 0.1.0-alpha.31

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.
Files changed (75) hide show
  1. package/dist/esm/api/checkouts.js +3 -10
  2. package/dist/esm/api/checkouts.js.map +1 -1
  3. package/dist/esm/api/generated.js +16 -500
  4. package/dist/esm/api/generated.js.map +1 -1
  5. package/dist/esm/api/payments.js +28 -29
  6. package/dist/esm/api/payments.js.map +1 -1
  7. package/dist/esm/api/types.js.map +1 -1
  8. package/dist/esm/checkout/modal.js +7 -7
  9. package/dist/esm/checkout/modal.js.map +1 -1
  10. package/dist/esm/checkout/views/crypto-intent/direct-details.js +135 -16
  11. package/dist/esm/checkout/views/crypto-intent/direct-details.js.map +1 -1
  12. package/dist/esm/checkout/views/crypto-intent/methods.js +5 -5
  13. package/dist/esm/checkout/views/crypto-intent/methods.js.map +1 -1
  14. package/dist/esm/checkout/views/crypto-intent/wallet-payment-confirmation-amount.js +30 -0
  15. package/dist/esm/checkout/views/crypto-intent/wallet-payment-confirmation-amount.js.map +1 -0
  16. package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js +680 -0
  17. package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js.map +1 -0
  18. package/dist/esm/checkout/views/crypto-intent/wallet-select.js +3 -31
  19. package/dist/esm/checkout/views/crypto-intent/wallet-select.js.map +1 -1
  20. package/dist/esm/checkout/views/initial.js +1 -4
  21. package/dist/esm/checkout/views/initial.js.map +1 -1
  22. package/dist/esm/components/wallet-selector/wallets/wagmi/index.js +8 -1
  23. package/dist/esm/components/wallet-selector/wallets/wagmi/index.js.map +1 -1
  24. package/dist/esm/config.js +1 -1
  25. package/dist/esm/config.js.map +1 -1
  26. package/dist/esm/integrations/evm-chain.js +22 -0
  27. package/dist/esm/integrations/evm-chain.js.map +1 -0
  28. package/dist/esm/integrations/index.js +1 -0
  29. package/dist/esm/integrations/index.js.map +1 -1
  30. package/dist/esm/integrations/lifi.js +200 -0
  31. package/dist/esm/integrations/lifi.js.map +1 -0
  32. package/dist/esm/state/checkout/payment-attempt.js +43 -0
  33. package/dist/esm/state/checkout/payment-attempt.js.map +1 -0
  34. package/dist/esm/state/checkout/store.js +120 -30
  35. package/dist/esm/state/checkout/store.js.map +1 -1
  36. package/dist/types/api/checkouts.d.ts +0 -1
  37. package/dist/types/api/checkouts.d.ts.map +1 -1
  38. package/dist/types/api/generated.d.ts +162 -1406
  39. package/dist/types/api/generated.d.ts.map +1 -1
  40. package/dist/types/api/payments.d.ts +18 -8
  41. package/dist/types/api/payments.d.ts.map +1 -1
  42. package/dist/types/api/types.d.ts +6 -8
  43. package/dist/types/api/types.d.ts.map +1 -1
  44. package/dist/types/checkout/views/crypto-intent/direct-details.d.ts.map +1 -1
  45. package/dist/types/checkout/views/crypto-intent/wallet-payment-confirmation-amount.d.ts +13 -0
  46. package/dist/types/checkout/views/crypto-intent/wallet-payment-confirmation-amount.d.ts.map +1 -0
  47. package/dist/types/checkout/views/crypto-intent/wallet-payment-options.d.ts +3 -0
  48. package/dist/types/checkout/views/crypto-intent/wallet-payment-options.d.ts.map +1 -0
  49. package/dist/types/checkout/views/crypto-intent/wallet-select.d.ts.map +1 -1
  50. package/dist/types/checkout/views/initial.d.ts.map +1 -1
  51. package/dist/types/components/wallet-selector/domain.d.ts +9 -0
  52. package/dist/types/components/wallet-selector/domain.d.ts.map +1 -1
  53. package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts +449 -0
  54. package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts.map +1 -1
  55. package/dist/types/config.d.ts +64 -1
  56. package/dist/types/config.d.ts.map +1 -1
  57. package/dist/types/integrations/evm-chain.d.ts +3 -0
  58. package/dist/types/integrations/evm-chain.d.ts.map +1 -0
  59. package/dist/types/integrations/index.d.ts +1 -0
  60. package/dist/types/integrations/index.d.ts.map +1 -1
  61. package/dist/types/integrations/lifi.d.ts +14 -0
  62. package/dist/types/integrations/lifi.d.ts.map +1 -0
  63. package/dist/types/state/checkout/payment-attempt.d.ts +9 -0
  64. package/dist/types/state/checkout/payment-attempt.d.ts.map +1 -0
  65. package/dist/types/state/checkout/store.d.ts +12 -86
  66. package/dist/types/state/checkout/store.d.ts.map +1 -1
  67. package/package.json +4 -2
  68. package/dist/esm/checkout/views/crypto-intent/currency-select.js +0 -44
  69. package/dist/esm/checkout/views/crypto-intent/currency-select.js.map +0 -1
  70. package/dist/esm/components/crypto/default-currency-selector.js +0 -62
  71. package/dist/esm/components/crypto/default-currency-selector.js.map +0 -1
  72. package/dist/types/checkout/views/crypto-intent/currency-select.d.ts +0 -3
  73. package/dist/types/checkout/views/crypto-intent/currency-select.d.ts.map +0 -1
  74. package/dist/types/components/crypto/default-currency-selector.d.ts +0 -9
  75. package/dist/types/components/crypto/default-currency-selector.d.ts.map +0 -1
@@ -18,6 +18,455 @@ export declare class WagmiWalletInterface implements WalletInterface {
18
18
  getAddress(): Promise<`0x${string}` | null>;
19
19
  approveTokenTransfer(amount: number, spenderAddress: string, currencyAddress: string): Promise<`0x${string}` | undefined>;
20
20
  executeTransfer(transfer: Transfer): Promise<`0x${string}`>;
21
+ switchChain(chainId: number): Promise<void>;
22
+ getWalletClient(): Promise<{
23
+ account: Account;
24
+ batch?: {
25
+ multicall?: boolean | import("viem").Prettify<import("viem").MulticallBatchOptions> | undefined;
26
+ } | undefined;
27
+ cacheTime: number;
28
+ ccipRead?: false | {
29
+ request?: (parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>;
30
+ } | undefined;
31
+ chain: Chain;
32
+ key: string;
33
+ name: string;
34
+ pollingInterval: number;
35
+ request: import("viem").EIP1193RequestFn<[{
36
+ Method: "web3_clientVersion";
37
+ Parameters?: undefined;
38
+ ReturnType: string;
39
+ }, {
40
+ Method: "web3_sha3";
41
+ Parameters: [data: import("viem").Hash];
42
+ ReturnType: string;
43
+ }, {
44
+ Method: "net_listening";
45
+ Parameters?: undefined;
46
+ ReturnType: boolean;
47
+ }, {
48
+ Method: "net_peerCount";
49
+ Parameters?: undefined;
50
+ ReturnType: import("viem").Quantity;
51
+ }, {
52
+ Method: "net_version";
53
+ Parameters?: undefined;
54
+ ReturnType: import("viem").Quantity;
55
+ }, {
56
+ Method: "eth_blobBaseFee";
57
+ Parameters?: undefined;
58
+ ReturnType: import("viem").Quantity;
59
+ }, {
60
+ Method: "eth_blockNumber";
61
+ Parameters?: undefined;
62
+ ReturnType: import("viem").Quantity;
63
+ }, {
64
+ Method: "eth_call";
65
+ Parameters: readonly [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | readonly [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier] | readonly [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride] | readonly [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier, stateOverrideSet: import("viem").RpcStateOverride, blockOverrides: import("viem").RpcBlockOverrides];
66
+ ReturnType: import("viem").Hex;
67
+ }, {
68
+ Method: "eth_createAccessList";
69
+ Parameters: [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>] | [transaction: import("viem").ExactPartial<import("viem").RpcTransactionRequest>, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
70
+ ReturnType: {
71
+ accessList: import("viem").AccessList;
72
+ gasUsed: import("viem").Quantity;
73
+ };
74
+ }, {
75
+ Method: "eth_chainId";
76
+ Parameters?: undefined;
77
+ ReturnType: import("viem").Quantity;
78
+ }, {
79
+ Method: "eth_coinbase";
80
+ Parameters?: undefined;
81
+ ReturnType: import("viem").Address;
82
+ }, {
83
+ Method: "eth_estimateGas";
84
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
85
+ ReturnType: import("viem").Quantity;
86
+ }, {
87
+ Method: "eth_feeHistory";
88
+ Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
89
+ ReturnType: import("viem").RpcFeeHistory;
90
+ }, {
91
+ Method: "eth_gasPrice";
92
+ Parameters?: undefined;
93
+ ReturnType: import("viem").Quantity;
94
+ }, {
95
+ Method: "eth_getBalance";
96
+ Parameters: [address: import("viem").Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
97
+ ReturnType: import("viem").Quantity;
98
+ }, {
99
+ Method: "eth_getBlockByHash";
100
+ Parameters: [hash: import("viem").Hash, includeTransactionObjects: boolean];
101
+ ReturnType: import("viem").RpcBlock | null;
102
+ }, {
103
+ Method: "eth_getBlockByNumber";
104
+ Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, includeTransactionObjects: boolean];
105
+ ReturnType: import("viem").RpcBlock | null;
106
+ }, {
107
+ Method: "eth_getBlockTransactionCountByHash";
108
+ Parameters: [hash: import("viem").Hash];
109
+ ReturnType: import("viem").Quantity;
110
+ }, {
111
+ Method: "eth_getBlockTransactionCountByNumber";
112
+ Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
113
+ ReturnType: import("viem").Quantity;
114
+ }, {
115
+ Method: "eth_getCode";
116
+ Parameters: [address: import("viem").Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
117
+ ReturnType: import("viem").Hex;
118
+ }, {
119
+ Method: "eth_getFilterChanges";
120
+ Parameters: [filterId: import("viem").Quantity];
121
+ ReturnType: import("viem").RpcLog[] | import("viem").Hex[];
122
+ }, {
123
+ Method: "eth_getFilterLogs";
124
+ Parameters: [filterId: import("viem").Quantity];
125
+ ReturnType: import("viem").RpcLog[];
126
+ }, {
127
+ Method: "eth_getLogs";
128
+ Parameters: [{
129
+ address?: import("viem").Address | import("viem").Address[] | undefined;
130
+ topics?: import("viem").LogTopic[] | undefined;
131
+ } & ({
132
+ fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
133
+ toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
134
+ blockHash?: undefined;
135
+ } | {
136
+ fromBlock?: undefined;
137
+ toBlock?: undefined;
138
+ blockHash?: import("viem").Hash | undefined;
139
+ })];
140
+ ReturnType: import("viem").RpcLog[];
141
+ }, {
142
+ Method: "eth_getProof";
143
+ Parameters: [address: import("viem").Address, storageKeys: import("viem").Hash[], block: import("viem").RpcBlockNumber | import("viem").BlockTag];
144
+ ReturnType: import("viem").RpcProof;
145
+ }, {
146
+ Method: "eth_getStorageAt";
147
+ Parameters: [address: import("viem").Address, index: import("viem").Quantity, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
148
+ ReturnType: import("viem").Hex;
149
+ }, {
150
+ Method: "eth_getTransactionByBlockHashAndIndex";
151
+ Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
152
+ ReturnType: import("viem").RpcTransaction | null;
153
+ }, {
154
+ Method: "eth_getTransactionByBlockNumberAndIndex";
155
+ Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
156
+ ReturnType: import("viem").RpcTransaction | null;
157
+ }, {
158
+ Method: "eth_getTransactionByHash";
159
+ Parameters: [hash: import("viem").Hash];
160
+ ReturnType: import("viem").RpcTransaction | null;
161
+ }, {
162
+ Method: "eth_getTransactionCount";
163
+ Parameters: [address: import("viem").Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
164
+ ReturnType: import("viem").Quantity;
165
+ }, {
166
+ Method: "eth_getTransactionReceipt";
167
+ Parameters: [hash: import("viem").Hash];
168
+ ReturnType: import("viem").RpcTransactionReceipt | null;
169
+ }, {
170
+ Method: "eth_getUncleByBlockHashAndIndex";
171
+ Parameters: [hash: import("viem").Hash, index: import("viem").Quantity];
172
+ ReturnType: import("viem").RpcUncle | null;
173
+ }, {
174
+ Method: "eth_getUncleByBlockNumberAndIndex";
175
+ Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag, index: import("viem").Quantity];
176
+ ReturnType: import("viem").RpcUncle | null;
177
+ }, {
178
+ Method: "eth_getUncleCountByBlockHash";
179
+ Parameters: [hash: import("viem").Hash];
180
+ ReturnType: import("viem").Quantity;
181
+ }, {
182
+ Method: "eth_getUncleCountByBlockNumber";
183
+ Parameters: [block: import("viem").RpcBlockNumber | import("viem").BlockTag];
184
+ ReturnType: import("viem").Quantity;
185
+ }, {
186
+ Method: "eth_maxPriorityFeePerGas";
187
+ Parameters?: undefined;
188
+ ReturnType: import("viem").Quantity;
189
+ }, {
190
+ Method: "eth_newBlockFilter";
191
+ Parameters?: undefined;
192
+ ReturnType: import("viem").Quantity;
193
+ }, {
194
+ Method: "eth_newFilter";
195
+ Parameters: [filter: {
196
+ fromBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
197
+ toBlock?: import("viem").RpcBlockNumber | import("viem").BlockTag | undefined;
198
+ address?: import("viem").Address | import("viem").Address[] | undefined;
199
+ topics?: import("viem").LogTopic[] | undefined;
200
+ }];
201
+ ReturnType: import("viem").Quantity;
202
+ }, {
203
+ Method: "eth_newPendingTransactionFilter";
204
+ Parameters?: undefined;
205
+ ReturnType: import("viem").Quantity;
206
+ }, {
207
+ Method: "eth_protocolVersion";
208
+ Parameters?: undefined;
209
+ ReturnType: string;
210
+ }, {
211
+ Method: "eth_sendRawTransaction";
212
+ Parameters: [signedTransaction: import("viem").Hex];
213
+ ReturnType: import("viem").Hash;
214
+ }, {
215
+ Method: "eth_simulateV1";
216
+ Parameters: [{
217
+ blockStateCalls: readonly {
218
+ blockOverrides?: import("viem").RpcBlockOverrides | undefined;
219
+ calls?: readonly import("viem").ExactPartial<import("viem").RpcTransactionRequest>[] | undefined;
220
+ stateOverrides?: import("viem").RpcStateOverride | undefined;
221
+ }[];
222
+ returnFullTransactions?: boolean | undefined;
223
+ traceTransfers?: boolean | undefined;
224
+ validation?: boolean | undefined;
225
+ }, import("viem").RpcBlockNumber | import("viem").BlockTag];
226
+ ReturnType: readonly (import("viem").RpcBlock & {
227
+ calls: readonly {
228
+ error?: {
229
+ data?: import("viem").Hex | undefined;
230
+ code: number;
231
+ message: string;
232
+ } | undefined;
233
+ logs?: readonly import("viem").RpcLog[] | undefined;
234
+ gasUsed: import("viem").Hex;
235
+ returnData: import("viem").Hex;
236
+ status: import("viem").Hex;
237
+ }[];
238
+ })[];
239
+ }, {
240
+ Method: "eth_uninstallFilter";
241
+ Parameters: [filterId: import("viem").Quantity];
242
+ ReturnType: boolean;
243
+ }, {
244
+ Method: "eth_accounts";
245
+ Parameters?: undefined;
246
+ ReturnType: import("viem").Address[];
247
+ }, {
248
+ Method: "eth_chainId";
249
+ Parameters?: undefined;
250
+ ReturnType: import("viem").Quantity;
251
+ }, {
252
+ Method: "eth_estimateGas";
253
+ Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag] | [transaction: import("viem").RpcTransactionRequest, block: import("viem").RpcBlockNumber | import("viem").BlockTag, stateOverride: import("viem").RpcStateOverride];
254
+ ReturnType: import("viem").Quantity;
255
+ }, {
256
+ Method: "eth_requestAccounts";
257
+ Parameters?: undefined;
258
+ ReturnType: import("viem").Address[];
259
+ }, {
260
+ Method: "eth_sendTransaction";
261
+ Parameters: [transaction: import("viem").RpcTransactionRequest];
262
+ ReturnType: import("viem").Hash;
263
+ }, {
264
+ Method: "eth_sendRawTransaction";
265
+ Parameters: [signedTransaction: import("viem").Hex];
266
+ ReturnType: import("viem").Hash;
267
+ }, {
268
+ Method: "eth_sign";
269
+ Parameters: [address: import("viem").Address, data: import("viem").Hex];
270
+ ReturnType: import("viem").Hex;
271
+ }, {
272
+ Method: "eth_signTransaction";
273
+ Parameters: [request: import("viem").RpcTransactionRequest];
274
+ ReturnType: import("viem").Hex;
275
+ }, {
276
+ Method: "eth_signTypedData_v4";
277
+ Parameters: [address: import("viem").Address, message: string];
278
+ ReturnType: import("viem").Hex;
279
+ }, {
280
+ Method: "eth_syncing";
281
+ Parameters?: undefined;
282
+ ReturnType: import("viem").NetworkSync | false;
283
+ }, {
284
+ Method: "personal_sign";
285
+ Parameters: [data: import("viem").Hex, address: import("viem").Address];
286
+ ReturnType: import("viem").Hex;
287
+ }, {
288
+ Method: "wallet_addEthereumChain";
289
+ Parameters: [chain: import("viem").AddEthereumChainParameter];
290
+ ReturnType: null;
291
+ }, {
292
+ Method: "wallet_addSubAccount";
293
+ Parameters: [{
294
+ account: import("viem").OneOf<{
295
+ keys: readonly {
296
+ publicKey: import("viem").Hex;
297
+ type: "address" | "p256" | "webcrypto-p256" | "webauthn-p256";
298
+ }[];
299
+ type: "create";
300
+ } | {
301
+ address: import("viem").Address;
302
+ chainId?: number | undefined;
303
+ type: "deployed";
304
+ } | {
305
+ address: import("viem").Address;
306
+ chainId?: number | undefined;
307
+ factory: import("viem").Address;
308
+ factoryData: import("viem").Hex;
309
+ type: "undeployed";
310
+ }>;
311
+ version: string;
312
+ }];
313
+ ReturnType: {
314
+ address: import("viem").Address;
315
+ factory?: import("viem").Address | undefined;
316
+ factoryData?: import("viem").Hex | undefined;
317
+ };
318
+ }, {
319
+ Method: "wallet_connect";
320
+ Parameters: [{
321
+ capabilities?: import("viem").Capabilities | undefined;
322
+ version: string;
323
+ }];
324
+ ReturnType: {
325
+ accounts: readonly {
326
+ address: import("viem").Address;
327
+ capabilities?: import("viem").Capabilities | undefined;
328
+ }[];
329
+ };
330
+ }, {
331
+ Method: "wallet_disconnect";
332
+ Parameters?: undefined;
333
+ ReturnType: void;
334
+ }, {
335
+ Method: "wallet_getCallsStatus";
336
+ Parameters?: [string];
337
+ ReturnType: import("viem").WalletGetCallsStatusReturnType;
338
+ }, {
339
+ Method: "wallet_getCapabilities";
340
+ Parameters?: readonly [] | readonly [import("viem").Address | undefined] | readonly [import("viem").Address | undefined, readonly import("viem").Hex[] | undefined] | undefined;
341
+ ReturnType: import("viem").Prettify<import("viem").WalletCapabilitiesRecord>;
342
+ }, {
343
+ Method: "wallet_getPermissions";
344
+ Parameters?: undefined;
345
+ ReturnType: import("viem").WalletPermission[];
346
+ }, {
347
+ Method: "wallet_grantPermissions";
348
+ Parameters?: [import("viem").WalletGrantPermissionsParameters];
349
+ ReturnType: import("viem").Prettify<import("viem").WalletGrantPermissionsReturnType>;
350
+ }, {
351
+ Method: "wallet_requestPermissions";
352
+ Parameters: [permissions: {
353
+ eth_accounts: Record<string, any>;
354
+ }];
355
+ ReturnType: import("viem").WalletPermission[];
356
+ }, {
357
+ Method: "wallet_revokePermissions";
358
+ Parameters: [permissions: {
359
+ eth_accounts: Record<string, any>;
360
+ }];
361
+ ReturnType: null;
362
+ }, {
363
+ Method: "wallet_sendCalls";
364
+ Parameters?: import("viem").WalletSendCallsParameters;
365
+ ReturnType: import("viem").WalletSendCallsReturnType;
366
+ }, {
367
+ Method: "wallet_sendTransaction";
368
+ Parameters: [transaction: import("viem").RpcTransactionRequest];
369
+ ReturnType: import("viem").Hash;
370
+ }, {
371
+ Method: "wallet_showCallsStatus";
372
+ Parameters?: [string];
373
+ ReturnType: void;
374
+ }, {
375
+ Method: "wallet_switchEthereumChain";
376
+ Parameters: [chain: {
377
+ chainId: string;
378
+ }];
379
+ ReturnType: null;
380
+ }, {
381
+ Method: "wallet_watchAsset";
382
+ Parameters: import("viem").WatchAssetParams;
383
+ ReturnType: boolean;
384
+ }, {
385
+ Method: "eth_chainId";
386
+ Parameters?: undefined;
387
+ ReturnType: import("viem").Hex;
388
+ }, {
389
+ Method: "eth_estimateUserOperationGas";
390
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: import("viem").Address] | [userOperation: import("viem").RpcUserOperation, entrypoint: import("viem").Address, stateOverrideSet: import("viem").RpcStateOverride];
391
+ ReturnType: import("viem").RpcEstimateUserOperationGasReturnType;
392
+ }, {
393
+ Method: "eth_getUserOperationByHash";
394
+ Parameters: [hash: import("viem").Hash];
395
+ ReturnType: import("viem").RpcGetUserOperationByHashReturnType | null;
396
+ }, {
397
+ Method: "eth_getUserOperationReceipt";
398
+ Parameters: [hash: import("viem").Hash];
399
+ ReturnType: import("viem").RpcUserOperationReceipt | null;
400
+ }, {
401
+ Method: "eth_sendUserOperation";
402
+ Parameters: [userOperation: import("viem").RpcUserOperation, entrypoint: import("viem").Address];
403
+ ReturnType: import("viem").Hash;
404
+ }, {
405
+ Method: "eth_supportedEntryPoints";
406
+ Parameters?: undefined;
407
+ ReturnType: readonly import("viem").Address[];
408
+ }, {
409
+ Method: "pm_getPaymasterStubData";
410
+ Parameters?: [userOperation: import("viem").OneOf<import("viem").PartialBy<Pick<import("viem").RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit"> | import("viem").PartialBy<Pick<import("viem").RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit">>, entrypoint: import("viem").Address, chainId: import("viem").Hex, context: unknown];
411
+ ReturnType: import("viem").OneOf<{
412
+ paymasterAndData: import("viem").Hex;
413
+ } | {
414
+ paymaster: import("viem").Address;
415
+ paymasterData: import("viem").Hex;
416
+ paymasterVerificationGasLimit: import("viem").Hex;
417
+ paymasterPostOpGasLimit: import("viem").Hex;
418
+ }> & {
419
+ sponsor?: {
420
+ name: string;
421
+ icon?: string | undefined;
422
+ } | undefined;
423
+ isFinal?: boolean | undefined;
424
+ };
425
+ }, {
426
+ Method: "pm_getPaymasterData";
427
+ Parameters?: [userOperation: Pick<import("viem").RpcUserOperation<"0.6">, "callData" | "callGasLimit" | "initCode" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit"> | Pick<import("viem").RpcUserOperation<"0.7">, "callData" | "callGasLimit" | "factory" | "factoryData" | "maxFeePerGas" | "maxPriorityFeePerGas" | "nonce" | "sender" | "preVerificationGas" | "verificationGasLimit">, entrypoint: import("viem").Address, chainId: import("viem").Hex, context: unknown];
428
+ ReturnType: import("viem").OneOf<{
429
+ paymasterAndData: import("viem").Hex;
430
+ } | {
431
+ paymaster: import("viem").Address;
432
+ paymasterData: import("viem").Hex;
433
+ paymasterVerificationGasLimit: import("viem").Hex;
434
+ paymasterPostOpGasLimit: import("viem").Hex;
435
+ }>;
436
+ }]>;
437
+ transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
438
+ type: string;
439
+ uid: string;
440
+ extend: <const client extends {
441
+ [x: string]: unknown;
442
+ account?: undefined;
443
+ batch?: undefined;
444
+ cacheTime?: undefined;
445
+ ccipRead?: undefined;
446
+ chain?: undefined;
447
+ key?: undefined;
448
+ name?: undefined;
449
+ pollingInterval?: undefined;
450
+ request?: undefined;
451
+ transport?: undefined;
452
+ type?: undefined;
453
+ uid?: undefined;
454
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("@wagmi/core").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn>, Chain, Account>, "getChainId" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<Chain, Account>, "sendTransaction" | "writeContract">>>(fn: (client: Client<import("@wagmi/core").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn>, Chain, Account, undefined, {
455
+ [x: string]: unknown;
456
+ account?: undefined;
457
+ batch?: undefined;
458
+ cacheTime?: undefined;
459
+ ccipRead?: undefined;
460
+ chain?: undefined;
461
+ key?: undefined;
462
+ name?: undefined;
463
+ pollingInterval?: undefined;
464
+ request?: undefined;
465
+ transport?: undefined;
466
+ type?: undefined;
467
+ uid?: undefined;
468
+ } | undefined>) => client) => Client<import("@wagmi/core").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn>, Chain, Account, undefined, { [K in keyof client]: client[K]; }>;
469
+ }>;
21
470
  getBalance(address: Address, tokenAddress?: Address): Promise<{
22
471
  uiAmount: string;
23
472
  intAmount: bigint;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/wagmi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAUT,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAmB,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE9D,eAAO,MAAM,kBAAkB,GAC7B,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,QAAQ,MAAM,2BAiBZ,CAAC;AA8EL,eAAO,MAAM,aAAa,GACxB,aAAa,MAAM,EACnB,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CryptoCurrency, CryptoPaymentAttempt, Payment, PaymentStatus } from "./api/types.js";
2
2
  import { ThemeConfig } from "./themes/types.js";
3
+ export type WalletPaymentOption = {
4
+ id: string;
5
+ label: string;
6
+ subtitle?: string;
7
+ badge?: string;
8
+ fromChain: string;
9
+ fromChainName: string;
10
+ fromToken: string;
11
+ fromTokenName: string;
12
+ fromTokenSymbol?: string;
13
+ fromTokenIconUrl?: string | null;
14
+ fromChainIconUrl?: string | null;
15
+ fromAmount?: string | null;
16
+ estimatedDurationMinutes?: number | null;
17
+ quoteId: string | null;
18
+ routeId: string | null;
19
+ kind: "direct" | "swap" | "bridge";
20
+ raw?: unknown;
21
+ };
22
+ export type WalletPaymentDiscoveryContext = {
23
+ checkout: Checkout;
24
+ payment: Payment;
25
+ settlementCurrency: CryptoCurrency;
26
+ walletAddress: string;
27
+ };
28
+ export type WalletPaymentContext = WalletPaymentDiscoveryContext & {
29
+ cryptoPaymentAttempt: CryptoPaymentAttempt;
30
+ };
31
+ export type WalletPaymentExecutionResult = {
32
+ sourceTxHash?: string | null;
33
+ destinationTxHash?: string | null;
34
+ quoteId?: string | null;
35
+ routeId?: string | null;
36
+ };
37
+ export type WalletPaymentQuote = {
38
+ quoteId: string | null;
39
+ routeId: string | null;
40
+ toolName?: string | null;
41
+ toolLogoUrl?: string | null;
42
+ fromAmount: string;
43
+ fromAmountDisplay: string;
44
+ toAmount: string;
45
+ toAmountDisplay: string;
46
+ toAmountMin?: string | null;
47
+ toAmountMinDisplay?: string | null;
48
+ gasFeeDisplay?: string | null;
49
+ bridgeFeeDisplay?: string | null;
50
+ estimatedDurationMinutes?: number | null;
51
+ raw?: unknown;
52
+ };
53
+ export type WalletPaymentState = {
54
+ status: "idle" | "loading" | "ready" | "executing" | "submitted" | "failed";
55
+ options: WalletPaymentOption[];
56
+ selectedOptionId: string | null;
57
+ quoteId: string | null;
58
+ routeId: string | null;
59
+ sourceTxHash: string | null;
60
+ destinationTxHash: string | null;
61
+ quoteStatus: "idle" | "loading" | "ready" | "failed";
62
+ quote: WalletPaymentQuote | null;
63
+ quoteError: string | null;
64
+ error: string | null;
65
+ };
3
66
  export type CryptoCheckoutConfig = {
4
67
  numBlockConfirmations: number;
5
68
  paymentConfirmationStatus: PaymentStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,oBAAoB,GAAG;IACjC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,aAAa,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC7B,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAIF,eAAO,MAAM,YAAY,GACvB,WAAW,MAAM,EACjB,UAAU,aAAa,KACtB,MAiBF,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,OAAO,EACP,aAAa,EACd,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MA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C1C,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC7B,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C,CAAC;AAIF,eAAO,MAAM,YAAY,GACvB,WAAW,MAAM,EACjB,UAAU,aAAa,KACtB,MAiBF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const resolveEvmChainId: (chainHex: string | undefined | null) => number | null;
2
+ export declare const switchEvmWalletChain: (chainHex: string | undefined | null) => Promise<void>;
3
+ //# sourceMappingURL=evm-chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evm-chain.d.ts","sourceRoot":"","sources":["../../../src/integrations/evm-chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,GAAG,SAAS,GAAG,IAAI,kBAOpE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,GAAG,SAAS,GAAG,IAAI,kBAyBpC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from "./types.js";
2
2
  export * from "./instaxchange.js";
3
+ export * from "./lifi.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { WalletInterface } from "../components/wallet-selector/domain.js";
2
+ import { WalletPaymentContext, WalletPaymentDiscoveryContext, WalletPaymentExecutionResult, WalletPaymentOption, WalletPaymentQuote } from "../config.js";
3
+ export declare function findWalletPaymentOptions(context: WalletPaymentDiscoveryContext): Promise<WalletPaymentOption[]>;
4
+ export declare function fetchWalletPaymentQuote(args: {
5
+ option: WalletPaymentOption;
6
+ context: WalletPaymentContext;
7
+ }): Promise<WalletPaymentQuote>;
8
+ export declare function executeWalletPaymentOption(args: {
9
+ option: WalletPaymentOption;
10
+ wallet: WalletInterface;
11
+ context: WalletPaymentContext;
12
+ quote?: WalletPaymentQuote | null;
13
+ }): Promise<WalletPaymentExecutionResult | void>;
14
+ //# sourceMappingURL=lifi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lifi.d.ts","sourceRoot":"","sources":["../../../src/integrations/lifi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,cAAc,CAAC;AA+GtB,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CA4ChC;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,EAAE,oBAAoB,CAAC;CAC/B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAyF9B;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACnC,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC,CAyC/C"}
@@ -0,0 +1,9 @@
1
+ import type { PaymentsCryptoPayCreatePayload } from "../../api/generated.js";
2
+ import type { WalletPaymentOption, WalletPaymentQuote } from "../../config.js";
3
+ export declare function buildWalletPaymentAttemptPayload(args: {
4
+ option: WalletPaymentOption;
5
+ sendingAddress: string;
6
+ quote?: WalletPaymentQuote | null;
7
+ requiredConfirmations?: number;
8
+ }): PaymentsCryptoPayCreatePayload;
9
+ //# sourceMappingURL=payment-attempt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-attempt.d.ts","sourceRoot":"","sources":["../../../../src/state/checkout/payment-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE/E,wBAAgB,gCAAgC,CAAC,IAAI,EAAE;IACrD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,8BAA8B,CA6CjC"}