@mintmoney/react 0.1.0-alpha.32 → 0.1.0-alpha.33
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/dist/css/styles.css +8 -6
- package/dist/esm/api/generated.js +31 -0
- package/dist/esm/api/generated.js.map +1 -1
- package/dist/esm/api/index.js +1 -0
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/payments.js +39 -0
- package/dist/esm/api/payments.js.map +1 -1
- package/dist/esm/checkout/index.js +22 -18
- package/dist/esm/checkout/index.js.map +1 -1
- package/dist/esm/checkout/modal.js +4 -3
- package/dist/esm/checkout/modal.js.map +1 -1
- package/dist/esm/checkout/providers/wagmi-config.js +82 -0
- package/dist/esm/checkout/providers/wagmi-config.js.map +1 -0
- package/dist/esm/checkout/surplus-refund.js +38 -0
- package/dist/esm/checkout/surplus-refund.js.map +1 -0
- package/dist/esm/checkout/views/back.js +2 -2
- package/dist/esm/checkout/views/back.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/direct-details.js +941 -102
- package/dist/esm/checkout/views/crypto-intent/direct-details.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/methods.js +84 -31
- package/dist/esm/checkout/views/crypto-intent/methods.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/processing.js +51 -3
- package/dist/esm/checkout/views/crypto-intent/processing.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/success.js +58 -9
- package/dist/esm/checkout/views/crypto-intent/success.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js +684 -226
- package/dist/esm/checkout/views/crypto-intent/wallet-payment-options.js.map +1 -1
- package/dist/esm/checkout/views/crypto-intent/wallet-select.js +104 -20
- package/dist/esm/checkout/views/crypto-intent/wallet-select.js.map +1 -1
- package/dist/esm/checkout/views/failed.js +83 -1
- package/dist/esm/checkout/views/failed.js.map +1 -1
- package/dist/esm/checkout/views/initial.js +46 -6
- package/dist/esm/checkout/views/initial.js.map +1 -1
- package/dist/esm/checkout/views/method-select.js +16 -4
- package/dist/esm/checkout/views/method-select.js.map +1 -1
- package/dist/esm/checkout/views/restart.js +1 -1
- package/dist/esm/checkout/views/restart.js.map +1 -1
- package/dist/esm/components/buttons/index.js +4 -1
- package/dist/esm/components/buttons/index.js.map +1 -1
- package/dist/esm/components/icons/clock.js +4 -0
- package/dist/esm/components/icons/clock.js.map +1 -0
- package/dist/esm/components/icons/edit.js +6 -0
- package/dist/esm/components/icons/edit.js.map +1 -0
- package/dist/esm/components/icons/index.js +3 -0
- package/dist/esm/components/icons/index.js.map +1 -1
- package/dist/esm/components/icons/send.js +6 -0
- package/dist/esm/components/icons/send.js.map +1 -0
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/quote-expiry/index.js +2 -0
- package/dist/esm/components/quote-expiry/index.js.map +1 -0
- package/dist/esm/components/quote-expiry/quote-expiry-countdown.js +35 -0
- package/dist/esm/components/quote-expiry/quote-expiry-countdown.js.map +1 -0
- package/dist/esm/components/quote-expiry/styles.js +109 -0
- package/dist/esm/components/quote-expiry/styles.js.map +1 -0
- package/dist/esm/components/quote-expiry/tiers.js +31 -0
- package/dist/esm/components/quote-expiry/tiers.js.map +1 -0
- package/dist/esm/components/wallet-selector/component.js +3 -5
- package/dist/esm/components/wallet-selector/component.js.map +1 -1
- package/dist/esm/components/wallet-selector/wallets/wagmi/index.js.map +1 -1
- package/dist/esm/config.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrations/lifi.js +52 -34
- package/dist/esm/integrations/lifi.js.map +1 -1
- package/dist/esm/refund/index.js +791 -0
- package/dist/esm/refund/index.js.map +1 -0
- package/dist/esm/state/checkout/payment-attempt.js +3 -0
- package/dist/esm/state/checkout/payment-attempt.js.map +1 -1
- package/dist/esm/state/checkout/payment-lifecycle.js +43 -35
- package/dist/esm/state/checkout/payment-lifecycle.js.map +1 -1
- package/dist/esm/state/checkout/store.js +318 -198
- package/dist/esm/state/checkout/store.js.map +1 -1
- package/dist/esm/state/checkout/wallet-payment-options.js +30 -0
- package/dist/esm/state/checkout/wallet-payment-options.js.map +1 -0
- package/dist/esm/themes/default.js +6 -0
- package/dist/esm/themes/default.js.map +1 -1
- package/dist/esm/utils/string.js +1 -0
- package/dist/esm/utils/string.js.map +1 -1
- package/dist/esm/utils/wallet-errors.js +15 -0
- package/dist/esm/utils/wallet-errors.js.map +1 -0
- package/dist/types/api/generated.d.ts +207 -4
- package/dist/types/api/generated.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +2 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/payments.d.ts +36 -1
- package/dist/types/api/payments.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +4 -0
- package/dist/types/api/types.d.ts.map +1 -1
- package/dist/types/checkout/index.d.ts +4 -1
- package/dist/types/checkout/index.d.ts.map +1 -1
- package/dist/types/checkout/modal.d.ts.map +1 -1
- package/dist/types/checkout/providers/wagmi-config.d.ts +12 -0
- package/dist/types/checkout/providers/wagmi-config.d.ts.map +1 -0
- package/dist/types/checkout/surplus-refund.d.ts +10 -0
- package/dist/types/checkout/surplus-refund.d.ts.map +1 -0
- package/dist/types/checkout/views/back.d.ts +2 -1
- package/dist/types/checkout/views/back.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/direct-details.d.ts +10 -1
- package/dist/types/checkout/views/crypto-intent/direct-details.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/methods.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/processing.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/success.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/wallet-payment-options.d.ts.map +1 -1
- package/dist/types/checkout/views/crypto-intent/wallet-select.d.ts.map +1 -1
- package/dist/types/checkout/views/failed.d.ts.map +1 -1
- package/dist/types/checkout/views/initial.d.ts +2 -0
- package/dist/types/checkout/views/initial.d.ts.map +1 -1
- package/dist/types/checkout/views/method-select.d.ts +2 -0
- package/dist/types/checkout/views/method-select.d.ts.map +1 -1
- package/dist/types/components/buttons/index.d.ts.map +1 -1
- package/dist/types/components/icons/clock.d.ts +6 -0
- package/dist/types/components/icons/clock.d.ts.map +1 -0
- package/dist/types/components/icons/edit.d.ts +6 -0
- package/dist/types/components/icons/edit.d.ts.map +1 -0
- package/dist/types/components/icons/index.d.ts +3 -0
- package/dist/types/components/icons/index.d.ts.map +1 -1
- package/dist/types/components/icons/send.d.ts +6 -0
- package/dist/types/components/icons/send.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/quote-expiry/index.d.ts +2 -0
- package/dist/types/components/quote-expiry/index.d.ts.map +1 -0
- package/dist/types/components/quote-expiry/quote-expiry-countdown.d.ts +15 -0
- package/dist/types/components/quote-expiry/quote-expiry-countdown.d.ts.map +1 -0
- package/dist/types/components/quote-expiry/styles.d.ts +22 -0
- package/dist/types/components/quote-expiry/styles.d.ts.map +1 -0
- package/dist/types/components/quote-expiry/tiers.d.ts +10 -0
- package/dist/types/components/quote-expiry/tiers.d.ts.map +1 -0
- package/dist/types/components/wallet-selector/component.d.ts +1 -2
- package/dist/types/components/wallet-selector/component.d.ts.map +1 -1
- package/dist/types/components/wallet-selector/domain.d.ts +3 -2
- package/dist/types/components/wallet-selector/domain.d.ts.map +1 -1
- package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts +41 -5
- package/dist/types/components/wallet-selector/wallets/wagmi/index.d.ts.map +1 -1
- package/dist/types/config.d.ts +3 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrations/lifi.d.ts.map +1 -1
- package/dist/types/refund/index.d.ts +82 -0
- package/dist/types/refund/index.d.ts.map +1 -0
- package/dist/types/state/checkout/payment-attempt.d.ts.map +1 -1
- package/dist/types/state/checkout/payment-lifecycle.d.ts +27 -10
- package/dist/types/state/checkout/payment-lifecycle.d.ts.map +1 -1
- package/dist/types/state/checkout/store.d.ts +35 -16
- package/dist/types/state/checkout/store.d.ts.map +1 -1
- package/dist/types/state/checkout/wallet-payment-options.d.ts +18 -0
- package/dist/types/state/checkout/wallet-payment-options.d.ts.map +1 -0
- package/dist/types/themes/default.d.ts.map +1 -1
- package/dist/types/themes/types.d.ts +11 -0
- package/dist/types/themes/types.d.ts.map +1 -1
- package/dist/types/utils/string.d.ts +1 -0
- package/dist/types/utils/string.d.ts.map +1 -1
- package/dist/types/utils/wallet-errors.d.ts +2 -0
- package/dist/types/utils/wallet-errors.d.ts.map +1 -0
- package/package.json +25 -18
- package/LICENSE +0 -21
|
@@ -1,7 +1,42 @@
|
|
|
1
|
-
import { PaymentsCryptoPayCreateData, PaymentsCryptoPayCreatePayload } from "../api/generated.js";
|
|
1
|
+
import { PaymentsCryptoPayCreateData, PaymentsCryptoPayCreatePayload, PaymentsCryptoPayRefundDetailData, PaymentsCryptoPayRefundConfirmCreateData } from "../api/generated.js";
|
|
2
2
|
import { Payment, SettlementConfig } from "./types.js";
|
|
3
|
+
export type ManualPaymentOption = {
|
|
4
|
+
id: string;
|
|
5
|
+
kind: "direct" | "swap" | "bridge";
|
|
6
|
+
estimated_duration_minutes: number | null;
|
|
7
|
+
from_chain: {
|
|
8
|
+
caip2: string;
|
|
9
|
+
name: string;
|
|
10
|
+
logo_url: string;
|
|
11
|
+
chain_hex: string;
|
|
12
|
+
};
|
|
13
|
+
from_token: {
|
|
14
|
+
caip21: string;
|
|
15
|
+
name: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
logo_url: string;
|
|
18
|
+
is_native: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
3
21
|
export declare function getRequiredSettlementConfig(payment: Payment): SettlementConfig;
|
|
4
22
|
export declare function createPaymentAttempt(paymentId: string, data: PaymentsCryptoPayCreatePayload, confirmations?: number): Promise<PaymentsCryptoPayCreateData["data"]>;
|
|
23
|
+
export declare function getPaymentRefundStatus(paymentId: string, options?: {
|
|
24
|
+
connectedAddress?: string;
|
|
25
|
+
attemptId?: string;
|
|
26
|
+
apiUrl?: string;
|
|
27
|
+
}): Promise<PaymentsCryptoPayRefundDetailData["data"]>;
|
|
28
|
+
export declare function confirmPaymentRefund(paymentId: string, data: {
|
|
29
|
+
transactionHash: string;
|
|
30
|
+
attemptId?: string;
|
|
31
|
+
connectedAddress?: string;
|
|
32
|
+
apiUrl?: string;
|
|
33
|
+
}): Promise<PaymentsCryptoPayRefundConfirmCreateData["data"]>;
|
|
34
|
+
export declare function preparePaymentRefund(paymentId: string, data: {
|
|
35
|
+
attemptId?: string;
|
|
36
|
+
connectedAddress: string;
|
|
37
|
+
apiUrl?: string;
|
|
38
|
+
}): Promise<PaymentsCryptoPayRefundDetailData["data"]>;
|
|
39
|
+
export declare function getManualPaymentOptions(paymentId: string): Promise<ManualPaymentOption[]>;
|
|
5
40
|
export declare function createTestPaymentAttempt(paymentId: string, address: "0xfail" | "0xsuccess", payment: Payment): Promise<PaymentsCryptoPayCreateData["data"]>;
|
|
6
41
|
export type FiatPaymentMethod = "card" | "bank";
|
|
7
42
|
export type FiatPaymentAttempt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../src/api/payments.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../../src/api/payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,2BAA2B,EAC3B,8BAA8B,EAC9B,iCAAiC,EACjC,wCAAwC,EAEzC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAIvD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,GAAG,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_family?: string;
|
|
22
|
+
token_standard?: string;
|
|
21
23
|
};
|
|
22
24
|
export type CryptoCurrency = {
|
|
23
25
|
chain: string;
|
|
@@ -25,6 +27,8 @@ export type CryptoCurrency = {
|
|
|
25
27
|
chain_name: string;
|
|
26
28
|
asset_name: string;
|
|
27
29
|
asset_id?: string;
|
|
30
|
+
chain_family?: string;
|
|
31
|
+
token_standard?: string;
|
|
28
32
|
logo_url?: string | null;
|
|
29
33
|
chain_logo_url?: string | null;
|
|
30
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,OAAO,GAAG,IAAI,CACxB,kBAAkB,CAAC,MAAM,CAAC,EACxB,IAAI,GACJ,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,QAAQ,GACR,SAAS,GACT,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,UAAU,GACV,YAAY,GACZ,aAAa,GACb,UAAU,GACV,YAAY,GACZ,QAAQ,CACX,CAAC;AAEF,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,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U,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Payment } from "../api/types.js";
|
|
3
|
+
import { type CheckoutWagmiConfig } from "./providers/wagmi-config.js";
|
|
3
4
|
export type CheckoutProps = {
|
|
4
5
|
createPayment: () => Promise<Payment>;
|
|
5
6
|
onError?: (err: Error) => Promise<void>;
|
|
6
7
|
onSuccess?: (paymentId: string) => Promise<void>;
|
|
8
|
+
wagmiConfig?: CheckoutWagmiConfig;
|
|
9
|
+
walletConnectProjectId?: string;
|
|
7
10
|
asChild?: boolean;
|
|
8
11
|
children?: ReactNode;
|
|
9
12
|
};
|
|
10
|
-
export declare function Checkout({ createPayment, onError, onSuccess, asChild, children, }: CheckoutProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function Checkout({ createPayment, onError, onSuccess, wagmiConfig, walletConnectProjectId, asChild, children, }: CheckoutProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checkout/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA0B,SAAS,EAAU,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checkout/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA0B,SAAS,EAAU,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAM1C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,aAAa,EACb,OAAO,EACP,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,OAAO,EACP,QAAQ,GACT,EAAE,aAAa,2CAsGf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/checkout/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAmB1C,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/checkout/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAmB1C,UAAU,kBAAkB;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CA8GtD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AppKitNetwork } from "@reown/appkit/networks";
|
|
2
|
+
import { createAppKit } from "@reown/appkit/react";
|
|
3
|
+
import { Config, type CreateConfigParameters } from "wagmi";
|
|
4
|
+
import type { ThemeConfig } from "../../themes/types.js";
|
|
5
|
+
export type CheckoutWagmiConfig = Partial<CreateConfigParameters> & {
|
|
6
|
+
networks?: [AppKitNetwork, ...AppKitNetwork[]];
|
|
7
|
+
};
|
|
8
|
+
type AppKitThemeVariables = NonNullable<Parameters<typeof createAppKit>[0]["themeVariables"]>;
|
|
9
|
+
export declare const getAppKitThemeVariables: (theme?: ThemeConfig) => AppKitThemeVariables;
|
|
10
|
+
export declare const getAppKitWagmiConfig: (projectId: string, theme?: ThemeConfig, override?: CheckoutWagmiConfig) => Config;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=wagmi-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wagmi-config.d.ts","sourceRoot":"","sources":["../../../../src/checkout/providers/wagmi-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAI5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;CAChD,CAAC;AAEF,KAAK,oBAAoB,GAAG,WAAW,CACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CACrD,CAAC;AAuBF,eAAO,MAAM,uBAAuB,GAClC,QAAO,WAA0B,KAChC,oBAkBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,WAAW,MAAM,EACjB,QAAO,WAA0B,EACjC,WAAW,mBAAmB,KAC7B,MAgDF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PaymentsCryptoPayRefundDetailData } from "../api/generated.js";
|
|
2
|
+
export type RefundStatus = PaymentsCryptoPayRefundDetailData["data"];
|
|
3
|
+
export type SurplusRefundMinimum = {
|
|
4
|
+
token?: string;
|
|
5
|
+
symbol?: string;
|
|
6
|
+
minimumBaseUnits: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DEFAULT_SURPLUS_REFUND_MINIMUMS: SurplusRefundMinimum[];
|
|
9
|
+
export declare const isSurplusRefundAtOrAboveMinimum: (refundStatus: RefundStatus, minimums?: SurplusRefundMinimum[]) => boolean;
|
|
10
|
+
//# sourceMappingURL=surplus-refund.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surplus-refund.d.ts","sourceRoot":"","sources":["../../../src/checkout/surplus-refund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG,iCAAiC,CAAC,MAAM,CAAC,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,oBAAoB,EAOjE,CAAC;AAqBF,eAAO,MAAM,+BAA+B,GAC1C,cAAc,YAAY,EAC1B,WAAW,oBAAoB,EAAE,YAgBlC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
type BackButtonProps = {
|
|
2
2
|
view: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
4
5
|
};
|
|
5
|
-
declare const ModalBackButton: ({ view, disabled }: BackButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const ModalBackButton: ({ view, disabled, label, }: BackButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export { ModalBackButton };
|
|
7
8
|
//# sourceMappingURL=back.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/back.tsx"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/back.tsx"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,4BAItB,eAAe,4CAYjB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { CryptoCurrency, CryptoPaymentAttempt } from "../../../api/types.js";
|
|
2
|
+
declare const shouldLoadManualPaymentOptions: (currency: CryptoCurrency) => boolean;
|
|
3
|
+
declare const uniqueSourceOptions: (settlementCurrency: CryptoCurrency, configuredSources: CryptoCurrency[] | undefined) => CryptoCurrency[];
|
|
4
|
+
declare const getManualPaymentAttemptMode: (source: Pick<CryptoCurrency, "asset" | "chain">, settlementCurrency: Pick<CryptoCurrency, "asset" | "chain">) => "relay_deposit" | undefined;
|
|
5
|
+
type ManualInstructionSource = {
|
|
6
|
+
chain: string;
|
|
7
|
+
token: string;
|
|
8
|
+
};
|
|
9
|
+
declare const getManualInstructionSource: (instructions: CryptoPaymentAttempt["payment_instructions"]) => ManualInstructionSource | null;
|
|
1
10
|
declare const CryptoIntentDirectDetailsViewContent: () => import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
-
export { CryptoIntentDirectDetailsViewContent };
|
|
11
|
+
export { CryptoIntentDirectDetailsViewContent, getManualPaymentAttemptMode, getManualInstructionSource, shouldLoadManualPaymentOptions, uniqueSourceOptions, };
|
|
3
12
|
//# sourceMappingURL=direct-details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direct-details.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/direct-details.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"direct-details.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/direct-details.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AA0yB7E,QAAA,MAAM,8BAA8B,GAAI,UAAU,cAAc,YAE5B,CAAC;AAQrC,QAAA,MAAM,mBAAmB,GACvB,oBAAoB,cAAc,EAClC,mBAAmB,cAAc,EAAE,GAAG,SAAS,qBAUhD,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,EAC/C,oBAAoB,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,CAAC,gCAKxC,CAAC;AA6DtB,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,0BAA0B,GAC9B,cAAc,oBAAoB,CAAC,sBAAsB,CAAC,KACzD,uBAAuB,GAAG,IA+B5B,CAAC;AAmBF,QAAA,MAAM,oCAAoC,sDA+4BzC,CAAC;AAEF,OAAO,EACL,oCAAoC,EACpC,2BAA2B,EAC3B,0BAA0B,EAC1B,8BAA8B,EAC9B,mBAAmB,GACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/methods.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/methods.tsx"],"names":[],"mappings":"AA6GA,QAAA,MAAM,uBAAuB,+CA0C5B,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processing.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/processing.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"processing.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/processing.tsx"],"names":[],"mappings":"AA4DA,QAAA,MAAM,oCAAoC,+CAqFzC,CAAC;AAEF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/success.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/success.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAuB,MAAM,OAAO,CAAC;AAetD,UAAU,KAAK;IACb,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AA+BD,QAAA,MAAM,qCAAqC,GAAI,yBAG5C,KAAK,4CAoFP,CAAC;AAEF,OAAO,EAAE,qCAAqC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-payment-options.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/wallet-payment-options.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wallet-payment-options.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/wallet-payment-options.tsx"],"names":[],"mappings":"AAwiDA,QAAA,MAAM,2CAA2C,+CAEhD,CAAC;AAEF,OAAO,EAAE,2CAA2C,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-select.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/wallet-select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wallet-select.d.ts","sourceRoot":"","sources":["../../../../../src/checkout/views/crypto-intent/wallet-select.tsx"],"names":[],"mappings":"AAyLA,QAAA,MAAM,mCAAmC,+CAExC,CAAC;AAEF,OAAO,EAAE,mCAAmC,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"failed.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/failed.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"failed.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/failed.tsx"],"names":[],"mappings":"AA0DA,eAAO,MAAM,iBAAiB,+CA2G7B,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { Payment } from "../../api/types.js";
|
|
|
2
2
|
type InitialProps = {
|
|
3
3
|
payment: Payment;
|
|
4
4
|
};
|
|
5
|
+
export declare const shouldResumeRelayProcessing: (payment: Payment | null) => boolean;
|
|
6
|
+
export declare const getInitialCheckoutView: (payment: Payment | null) => "methods" | "paymentStatus";
|
|
5
7
|
declare const InitialiseCheckoutViewContent: (props: InitialProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
8
|
export { InitialiseCheckoutViewContent };
|
|
7
9
|
//# sourceMappingURL=initial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initial.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/initial.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initial.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/initial.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAiB,MAAM,oBAAoB,CAAC;AAQ5D,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAgBF,eAAO,MAAM,2BAA2B,GACtC,SAAS,OAAO,GAAG,IAAI,KACtB,OAuBF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,GAAG,IAAI,gCACM,CAAC;AAErE,QAAA,MAAM,6BAA6B,GAAI,OAAO,YAAY,mDAwCzD,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CheckoutMethod } from "../../api/types.js";
|
|
1
2
|
declare const MethodSelectViewContent: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const shouldUseTestPaymentStatusView: (method: CheckoutMethod, testMode: boolean) => boolean;
|
|
2
4
|
export { MethodSelectViewContent };
|
|
3
5
|
//# sourceMappingURL=method-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-select.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/method-select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"method-select.d.ts","sourceRoot":"","sources":["../../../../src/checkout/views/method-select.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAuBpD,QAAA,MAAM,uBAAuB,+CAmC5B,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,QAAQ,cAAc,EACtB,UAAU,OAAO,KAChB,OAA2D,CAAC;AAE/D,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAClD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B;AAED,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,S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ts","sourceRoot":"","sources":["../../../../src/components/icons/edit.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,GAAI,UAAe,aAAa,4CAyB7C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/send.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,GAAI,UAAe,aAAa,4CAyB7C,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/quote-expiry/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface QuoteExpiryCountdownProps {
|
|
2
|
+
remainingMs: number | null;
|
|
3
|
+
totalDurationMs?: number | null;
|
|
4
|
+
primaryColor: string;
|
|
5
|
+
thresholdMs?: number;
|
|
6
|
+
visibleThresholdMs?: number;
|
|
7
|
+
visibleThresholdRatio?: number;
|
|
8
|
+
urgentThresholdMs?: number;
|
|
9
|
+
urgentThresholdRatio?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
exhaustedLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const QuoteExpiryCountdown: ({ remainingMs, totalDurationMs, primaryColor, thresholdMs, visibleThresholdMs, visibleThresholdRatio, urgentThresholdMs, urgentThresholdRatio, label, exhaustedLabel, }: QuoteExpiryCountdownProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export { QuoteExpiryCountdown };
|
|
15
|
+
//# sourceMappingURL=quote-expiry-countdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quote-expiry-countdown.d.ts","sourceRoot":"","sources":["../../../../src/components/quote-expiry/quote-expiry-countdown.tsx"],"names":[],"mappings":"AAMA,UAAU,yBAAyB;IACjC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,QAAA,MAAM,oBAAoB,GAAI,yKAW3B,yBAAyB,mDA6D3B,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Tier } from "./tiers.js";
|
|
2
|
+
export declare const Ribbon: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$tier: Tier;
|
|
4
|
+
$primaryColor: string;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const IconWrap: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
7
|
+
$tier: Tier;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export declare const Label: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
10
|
+
export declare const Countdown: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
11
|
+
$tier: Tier;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const Track: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
14
|
+
$tier: Tier;
|
|
15
|
+
$primaryColor: string;
|
|
16
|
+
}>> & string;
|
|
17
|
+
export declare const Fill: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
|
+
$percent: number;
|
|
19
|
+
$tier: Tier;
|
|
20
|
+
$primaryColor: string;
|
|
21
|
+
}>> & string;
|
|
22
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/quote-expiry/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2C,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAYhF,eAAO,MAAM,MAAM;WAAuB,IAAI;mBAAiB,MAAM;YAsBpE,CAAC;AAEF,eAAO,MAAM,QAAQ;WAAwB,IAAI;YAchD,CAAC;AAEF,eAAO,MAAM,KAAK,kOAOjB,CAAC;AAEF,eAAO,MAAM,SAAS;WAAwB,IAAI;YAYjD,CAAC;AAEF,eAAO,MAAM,KAAK;WAAuB,IAAI;mBAAiB,MAAM;YAYnE,CAAC;AAEF,eAAO,MAAM,IAAI;cACL,MAAM;WACT,IAAI;mBACI,MAAM;YA4BtB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const QUOTE_EXPIRY_NEAR_THRESHOLD_MS: number;
|
|
2
|
+
export declare const HEADS_UP_THRESHOLD_MS: number;
|
|
3
|
+
export declare const URGENT_THRESHOLD_MS: number;
|
|
4
|
+
export type Tier = "calm" | "headsUp" | "urgent";
|
|
5
|
+
export declare const TIER_FG: Record<Tier, string>;
|
|
6
|
+
export declare const TIER_BG: Record<Tier, string | null>;
|
|
7
|
+
export declare const TIER_TRACK: Record<Tier, string | null>;
|
|
8
|
+
export declare const TIER_FILL: Record<Tier, string | null>;
|
|
9
|
+
export declare const getTier: (remainingMs: number, headsUpThresholdMs?: number, urgentThresholdMs?: number) => Tier;
|
|
10
|
+
//# sourceMappingURL=tiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiers.d.ts","sourceRoot":"","sources":["../../../../src/components/quote-expiry/tiers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,QAAgB,CAAC;AAE5D,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAC/C,eAAO,MAAM,mBAAmB,QAAY,CAAC;AAE7C,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEjD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAIxC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI/C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIlD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIjD,CAAC;AAEF,eAAO,MAAM,OAAO,GAClB,aAAa,MAAM,EACnB,2BAA0C,EAC1C,0BAAuC,KACtC,IAIF,CAAC"}
|
|
@@ -6,8 +6,7 @@ type WalletSelectorProps = {
|
|
|
6
6
|
recommendWallets?: boolean;
|
|
7
7
|
enableTabs?: boolean;
|
|
8
8
|
onWalletSelect: (wallet: WalletInterface) => Promise<void>;
|
|
9
|
-
transformWallets?: (wallets: WalletInterface[]) => WalletInterface[];
|
|
10
9
|
};
|
|
11
|
-
declare const WalletSelector: ({ className, loading: propsLoading, walletProviders, recommendWallets, onWalletSelect,
|
|
10
|
+
declare const WalletSelector: ({ className, loading: propsLoading, walletProviders, recommendWallets, onWalletSelect, }: WalletSelectorProps) => string | number | boolean | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
12
11
|
export default WalletSelector;
|
|
13
12
|
//# sourceMappingURL=component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/wallet-selector/component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK/D,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/components/wallet-selector/component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK/D,KAAK,mBAAmB,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,0FAMrB,mBAAmB,iIAyErB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Client } from "viem";
|
|
3
3
|
export type Address = string;
|
|
4
|
+
export type BaseUnitAmount = number | string | bigint;
|
|
4
5
|
export type Transfer = {
|
|
5
6
|
blockchainId?: number;
|
|
6
7
|
sendingAddress: Address;
|
|
7
8
|
destinationAddress: Address;
|
|
8
|
-
amount:
|
|
9
|
+
amount: BaseUnitAmount;
|
|
9
10
|
stacks?: {
|
|
10
11
|
memo?: string;
|
|
11
12
|
};
|
|
@@ -53,7 +54,7 @@ export interface WalletInterface {
|
|
|
53
54
|
* If the existing allowance is insufficient,
|
|
54
55
|
* it prompts the user to approve the contract for the desired token amount by sending an approve transaction.
|
|
55
56
|
*/
|
|
56
|
-
approveTokenTransfer?: (amount:
|
|
57
|
+
approveTokenTransfer?: (amount: BaseUnitAmount, spenderAddress: string, currencyAddress: string) => Promise<string | undefined>;
|
|
57
58
|
/**
|
|
58
59
|
* Execute a transaction using the users connected wallet.
|
|
59
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/components/wallet-selector/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/components/wallet-selector/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAC7B,MAAM,MAAM,cAAc,GAAG,M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sonRpcSigner } from "ethers";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import type { Address, Transfer, WalletInterface } from "../../domain.js";
|
|
4
|
+
import type { Address, BaseUnitAmount, Transfer, WalletInterface } from "../../domain.js";
|
|
5
5
|
import type { Account, Chain, Client, Transport } from "viem";
|
|
6
|
-
export declare const transferNativeCoin: (wagmiConfig: Config, address: string, amount:
|
|
7
|
-
export declare const transferCoins: (wagmiConfig: Config, address: string, amount:
|
|
6
|
+
export declare const transferNativeCoin: (wagmiConfig: Config, address: string, amount: BaseUnitAmount) => Promise<`0x${string}`>;
|
|
7
|
+
export declare const transferCoins: (wagmiConfig: Config, address: string, amount: BaseUnitAmount, contractAddress: string, currency: string) => Promise<`0x${string}`>;
|
|
8
8
|
export declare function clientToSigner(client: Client<Transport, Chain, Account>): JsonRpcSigner;
|
|
9
9
|
export declare class WagmiWalletInterface implements WalletInterface {
|
|
10
10
|
connector: Connector;
|
|
@@ -16,7 +16,7 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
16
16
|
connect(networkId?: number): Promise<`0x${string}`>;
|
|
17
17
|
signMessage(message: string): Promise<`0x${string}`>;
|
|
18
18
|
getAddress(): Promise<`0x${string}` | null>;
|
|
19
|
-
approveTokenTransfer(amount:
|
|
19
|
+
approveTokenTransfer(amount: BaseUnitAmount, spenderAddress: string, currencyAddress: string): Promise<`0x${string}` | undefined>;
|
|
20
20
|
executeTransfer(transfer: Transfer): Promise<`0x${string}`>;
|
|
21
21
|
switchChain(chainId: number): Promise<void>;
|
|
22
22
|
getWalletClient(): Promise<{
|
|
@@ -29,6 +29,8 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
29
29
|
request?: (parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>;
|
|
30
30
|
} | undefined;
|
|
31
31
|
chain: Chain;
|
|
32
|
+
dataSuffix?: import("viem").DataSuffix | undefined;
|
|
33
|
+
experimental_blockTag?: import("viem").BlockTag | undefined;
|
|
32
34
|
key: string;
|
|
33
35
|
name: string;
|
|
34
36
|
pollingInterval: number;
|
|
@@ -83,6 +85,13 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
83
85
|
Method: "eth_estimateGas";
|
|
84
86
|
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
87
|
ReturnType: import("viem").Quantity;
|
|
88
|
+
}, {
|
|
89
|
+
Method: "eth_fillTransaction";
|
|
90
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
91
|
+
ReturnType: {
|
|
92
|
+
raw: import("viem").Hex;
|
|
93
|
+
tx: import("viem").RpcTransaction;
|
|
94
|
+
};
|
|
86
95
|
}, {
|
|
87
96
|
Method: "eth_feeHistory";
|
|
88
97
|
Parameters: [blockCount: import("viem").Quantity, newestBlock: import("viem").RpcBlockNumber | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
@@ -158,6 +167,10 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
158
167
|
Method: "eth_getTransactionByHash";
|
|
159
168
|
Parameters: [hash: import("viem").Hash];
|
|
160
169
|
ReturnType: import("viem").RpcTransaction | null;
|
|
170
|
+
}, {
|
|
171
|
+
Method: "eth_getTransactionBySenderAndNonce";
|
|
172
|
+
Parameters: [sender: import("viem").Address, nonce: import("viem").Quantity];
|
|
173
|
+
ReturnType: import("viem").RpcTransaction | null;
|
|
161
174
|
}, {
|
|
162
175
|
Method: "eth_getTransactionCount";
|
|
163
176
|
Parameters: [address: import("viem").Address, block: import("viem").RpcBlockNumber | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
@@ -211,6 +224,10 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
211
224
|
Method: "eth_sendRawTransaction";
|
|
212
225
|
Parameters: [signedTransaction: import("viem").Hex];
|
|
213
226
|
ReturnType: import("viem").Hash;
|
|
227
|
+
}, {
|
|
228
|
+
Method: "eth_sendRawTransactionSync";
|
|
229
|
+
Parameters: [signedTransaction: import("viem").Hex] | [signedTransaction: import("viem").Hex, timeout: number];
|
|
230
|
+
ReturnType: import("viem").RpcTransactionReceipt;
|
|
214
231
|
}, {
|
|
215
232
|
Method: "eth_simulateV1";
|
|
216
233
|
Parameters: [{
|
|
@@ -252,6 +269,13 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
252
269
|
Method: "eth_estimateGas";
|
|
253
270
|
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
271
|
ReturnType: import("viem").Quantity;
|
|
272
|
+
}, {
|
|
273
|
+
Method: "eth_fillTransaction";
|
|
274
|
+
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
275
|
+
ReturnType: {
|
|
276
|
+
raw: import("viem").Hex;
|
|
277
|
+
tx: import("viem").RpcTransaction;
|
|
278
|
+
};
|
|
255
279
|
}, {
|
|
256
280
|
Method: "eth_requestAccounts";
|
|
257
281
|
Parameters?: undefined;
|
|
@@ -264,6 +288,10 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
264
288
|
Method: "eth_sendRawTransaction";
|
|
265
289
|
Parameters: [signedTransaction: import("viem").Hex];
|
|
266
290
|
ReturnType: import("viem").Hash;
|
|
291
|
+
}, {
|
|
292
|
+
Method: "eth_sendRawTransactionSync";
|
|
293
|
+
Parameters: [signedTransaction: import("viem").Hex] | [signedTransaction: import("viem").Hex, timeout: number];
|
|
294
|
+
ReturnType: import("viem").RpcTransactionReceipt;
|
|
267
295
|
}, {
|
|
268
296
|
Method: "eth_sign";
|
|
269
297
|
Parameters: [address: import("viem").Address, data: import("viem").Hex];
|
|
@@ -331,6 +359,10 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
331
359
|
Method: "wallet_disconnect";
|
|
332
360
|
Parameters?: undefined;
|
|
333
361
|
ReturnType: void;
|
|
362
|
+
}, {
|
|
363
|
+
Method: "wallet_getAssets";
|
|
364
|
+
Parameters?: [import("viem").WalletGetAssetsParameters];
|
|
365
|
+
ReturnType: import("viem").WalletGetAssetsReturnType;
|
|
334
366
|
}, {
|
|
335
367
|
Method: "wallet_getCallsStatus";
|
|
336
368
|
Parameters?: [string];
|
|
@@ -444,6 +476,8 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
444
476
|
cacheTime?: undefined;
|
|
445
477
|
ccipRead?: undefined;
|
|
446
478
|
chain?: undefined;
|
|
479
|
+
dataSuffix?: undefined;
|
|
480
|
+
experimental_blockTag?: undefined;
|
|
447
481
|
key?: undefined;
|
|
448
482
|
name?: undefined;
|
|
449
483
|
pollingInterval?: undefined;
|
|
@@ -451,13 +485,15 @@ export declare class WagmiWalletInterface implements WalletInterface {
|
|
|
451
485
|
transport?: undefined;
|
|
452
486
|
type?: undefined;
|
|
453
487
|
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" | "
|
|
488
|
+
} & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("@wagmi/core").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn>, Chain, Account>, "getChainId" | "prepareTransactionRequest" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "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
489
|
[x: string]: unknown;
|
|
456
490
|
account?: undefined;
|
|
457
491
|
batch?: undefined;
|
|
458
492
|
cacheTime?: undefined;
|
|
459
493
|
ccipRead?: undefined;
|
|
460
494
|
chain?: undefined;
|
|
495
|
+
dataSuffix?: undefined;
|
|
496
|
+
experimental_blockTag?: undefined;
|
|
461
497
|
key?: undefined;
|
|
462
498
|
name?: undefined;
|
|
463
499
|
pollingInterval?: undefined;
|
|
@@ -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,EAWT,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAmB,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/wallet-selector/wallets/wagmi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAWT,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAmB,aAAa,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,QAAQ,EACR,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EA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