@zerodev/smart-routing-address-react-ui 0.0.1
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/README.md +117 -0
- package/dist/_types/components/AddressDisplay/index.d.ts +43 -0
- package/dist/_types/components/AddressDisplay/index.d.ts.map +1 -0
- package/dist/_types/components/ErrorRetryCard/index.d.ts +21 -0
- package/dist/_types/components/ErrorRetryCard/index.d.ts.map +1 -0
- package/dist/_types/components/FeeBreakdown/feeInfo.d.ts +24 -0
- package/dist/_types/components/FeeBreakdown/feeInfo.d.ts.map +1 -0
- package/dist/_types/components/FeeBreakdown/index.d.ts +28 -0
- package/dist/_types/components/FeeBreakdown/index.d.ts.map +1 -0
- package/dist/_types/components/LoadingCard/index.d.ts +6 -0
- package/dist/_types/components/LoadingCard/index.d.ts.map +1 -0
- package/dist/_types/components/PendingDeposits/index.d.ts +14 -0
- package/dist/_types/components/PendingDeposits/index.d.ts.map +1 -0
- package/dist/_types/components/QrSheet/QrCode.d.ts +28 -0
- package/dist/_types/components/QrSheet/QrCode.d.ts.map +1 -0
- package/dist/_types/components/QrSheet/index.d.ts +16 -0
- package/dist/_types/components/QrSheet/index.d.ts.map +1 -0
- package/dist/_types/components/TxnItem/ExplorerLink.d.ts +16 -0
- package/dist/_types/components/TxnItem/ExplorerLink.d.ts.map +1 -0
- package/dist/_types/components/TxnItem/index.d.ts +19 -0
- package/dist/_types/components/TxnItem/index.d.ts.map +1 -0
- package/dist/_types/constants.d.ts +20 -0
- package/dist/_types/constants.d.ts.map +1 -0
- package/dist/_types/context/SmartRoutingAddressContext.d.ts +32 -0
- package/dist/_types/context/SmartRoutingAddressContext.d.ts.map +1 -0
- package/dist/_types/context/SmartRoutingAddressProvider.d.ts +13 -0
- package/dist/_types/context/SmartRoutingAddressProvider.d.ts.map +1 -0
- package/dist/_types/hooks/useCreateSmartRoutingAddress.d.ts +23 -0
- package/dist/_types/hooks/useCreateSmartRoutingAddress.d.ts.map +1 -0
- package/dist/_types/hooks/useDepositStatus.d.ts +25 -0
- package/dist/_types/hooks/useDepositStatus.d.ts.map +1 -0
- package/dist/_types/hooks/useNewDeposits.d.ts +8 -0
- package/dist/_types/hooks/useNewDeposits.d.ts.map +1 -0
- package/dist/_types/hooks/useProviderFees.d.ts +22 -0
- package/dist/_types/hooks/useProviderFees.d.ts.map +1 -0
- package/dist/_types/hooks/useSmartRoutingAddress.d.ts +20 -0
- package/dist/_types/hooks/useSmartRoutingAddress.d.ts.map +1 -0
- package/dist/_types/iconAssets.d.ts +7 -0
- package/dist/_types/iconAssets.d.ts.map +1 -0
- package/dist/_types/index.d.ts +14 -0
- package/dist/_types/index.d.ts.map +1 -0
- package/dist/_types/pages/Deposit.d.ts +12 -0
- package/dist/_types/pages/Deposit.d.ts.map +1 -0
- package/dist/_types/pages/PastDeposits.d.ts +14 -0
- package/dist/_types/pages/PastDeposits.d.ts.map +1 -0
- package/dist/_types/pages/TransactionDetails.d.ts +11 -0
- package/dist/_types/pages/TransactionDetails.d.ts.map +1 -0
- package/dist/_types/pages/index.d.ts +25 -0
- package/dist/_types/pages/index.d.ts.map +1 -0
- package/dist/_types/types.d.ts +75 -0
- package/dist/_types/types.d.ts.map +1 -0
- package/dist/_types/utils/chains.d.ts +8 -0
- package/dist/_types/utils/chains.d.ts.map +1 -0
- package/dist/_types/utils/config.d.ts +35 -0
- package/dist/_types/utils/config.d.ts.map +1 -0
- package/dist/_types/utils/deposits.d.ts +29 -0
- package/dist/_types/utils/deposits.d.ts.map +1 -0
- package/dist/_types/utils/fees.d.ts +14 -0
- package/dist/_types/utils/fees.d.ts.map +1 -0
- package/dist/_types/utils/format.d.ts +27 -0
- package/dist/_types/utils/format.d.ts.map +1 -0
- package/dist/_types/utils/providerFees.d.ts +103 -0
- package/dist/_types/utils/providerFees.d.ts.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +2180 -0
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +91 -0
- package/src/components/AddressDisplay/index.tsx +108 -0
- package/src/components/ErrorRetryCard/index.tsx +68 -0
- package/src/components/FeeBreakdown/feeInfo.ts +25 -0
- package/src/components/FeeBreakdown/index.tsx +218 -0
- package/src/components/LoadingCard/index.tsx +27 -0
- package/src/components/PendingDeposits/index.tsx +152 -0
- package/src/components/QrSheet/QrCode.tsx +163 -0
- package/src/components/QrSheet/index.tsx +80 -0
- package/src/components/TxnItem/ExplorerLink.tsx +37 -0
- package/src/components/TxnItem/index.tsx +178 -0
- package/src/constants.ts +102 -0
- package/src/context/SmartRoutingAddressContext.ts +48 -0
- package/src/context/SmartRoutingAddressProvider.tsx +145 -0
- package/src/hooks/useCreateSmartRoutingAddress.ts +28 -0
- package/src/hooks/useDepositStatus.ts +110 -0
- package/src/hooks/useNewDeposits.ts +25 -0
- package/src/hooks/useProviderFees.ts +235 -0
- package/src/hooks/useSmartRoutingAddress.ts +25 -0
- package/src/iconAssets.ts +130 -0
- package/src/index.ts +27 -0
- package/src/pages/Deposit.tsx +605 -0
- package/src/pages/PastDeposits.tsx +232 -0
- package/src/pages/TransactionDetails.tsx +466 -0
- package/src/pages/index.tsx +165 -0
- package/src/types.ts +84 -0
- package/src/utils/chains.ts +26 -0
- package/src/utils/config.ts +142 -0
- package/src/utils/deposits.ts +106 -0
- package/src/utils/fees.ts +51 -0
- package/src/utils/format.ts +108 -0
- package/src/utils/providerFees.ts +301 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAA;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAA;AAMnF,YAAY,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAA;AACnF,YAAY,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAG7C,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DepositedToken } from '@zerodev/smart-routing-address';
|
|
2
|
+
export interface DepositProps {
|
|
3
|
+
onQrClick?: () => void;
|
|
4
|
+
/** Navigate to the "Past deposits" view. When omitted, the row is hidden. */
|
|
5
|
+
onViewPastDeposits?: () => void;
|
|
6
|
+
/** Fired when a pending-deposit row is tapped. Wires through to
|
|
7
|
+
* `PendingDeposits` so an in-flight deposit opens the transaction-details
|
|
8
|
+
* view, matching the past-deposits behaviour. */
|
|
9
|
+
onSelectDeposit?: (deposit: DepositedToken) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function Deposit({ onQrClick, onViewPastDeposits, onSelectDeposit, }: DepositProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Deposit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Deposit.d.ts","sourceRoot":"","sources":["../../../src/pages/Deposit.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,gCAAgC,CAAA;AAiChF,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC/B;;qDAEiD;IACjD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;CACpD;AAYD,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,kBAAkB,EAClB,eAAe,GAChB,EAAE,YAAY,+BA4fd"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DepositedToken } from '@zerodev/smart-routing-address';
|
|
2
|
+
export interface PastDepositsProps {
|
|
3
|
+
/** Fired when a row is tapped — the widget uses this to open the
|
|
4
|
+
* transaction-details view for the selected deposit. When omitted, rows
|
|
5
|
+
* render as static (non-interactive). */
|
|
6
|
+
onSelectDeposit?: (deposit: DepositedToken) => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Past deposits view — full history, grouped by day, newest first. Each row
|
|
10
|
+
* is a `TxnItem`; layout matches the deposit's `PendingDeposits` card so the
|
|
11
|
+
* two views share one visual language.
|
|
12
|
+
*/
|
|
13
|
+
export declare function PastDeposits({ onSelectDeposit }: PastDepositsProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=PastDeposits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PastDeposits.d.ts","sourceRoot":"","sources":["../../../src/pages/PastDeposits.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAuEpE,MAAM,WAAW,iBAAiB;IAChC;;6CAEyC;IACzC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;CACpD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,eAAe,EAAE,EAAE,iBAAiB,+BAmJlE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DepositWithTimestamp } from '../types';
|
|
2
|
+
export interface TransactionDetailsProps {
|
|
3
|
+
deposit: DepositWithTimestamp;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Transaction details view (Figma `17634:105049`) — token hero pair via
|
|
7
|
+
* `ArrowCardPair` + `InfoCard`, a "Transaction details" `Section` with the
|
|
8
|
+
* route metadata, and a "Transaction Progress" `Section` with the step trail.
|
|
9
|
+
*/
|
|
10
|
+
export declare function TransactionDetails({ deposit: initialDeposit, }: TransactionDetailsProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=TransactionDetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionDetails.d.ts","sourceRoot":"","sources":["../../../src/pages/TransactionDetails.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAapD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAyCD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EAAE,cAAc,GACxB,EAAE,uBAAuB,+BAqNzB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Address } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Steps rendered by `SmartRoutingAddress`. Sub-views advance/rewind local
|
|
4
|
+
* step state; the widget owns navigation and the `TopNav` chrome accordingly.
|
|
5
|
+
*/
|
|
6
|
+
export type SmartRoutingAddressStep = 'deposit' | 'past' | 'transaction';
|
|
7
|
+
/**
|
|
8
|
+
* The Figma "Deposit funds" flow (`17634:104268` / `18721:96092`).
|
|
9
|
+
*
|
|
10
|
+
* Owns the shared `Screen` + `TopNav` chrome and delegates the body to the
|
|
11
|
+
* current page in this directory. Mirrors the layout of `wallet-react-ui`'s
|
|
12
|
+
* `auth/index.tsx` and `signing/index.tsx`.
|
|
13
|
+
*
|
|
14
|
+
* Wrap the subtree with `<SmartRoutingAddressProvider config={…}>` first.
|
|
15
|
+
*/
|
|
16
|
+
export interface SmartRoutingAddressProps {
|
|
17
|
+
/** Recipient address the smart routing address is created for. */
|
|
18
|
+
recipient: Address;
|
|
19
|
+
/** Called when the top-right × close button is clicked. */
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
export declare function SmartRoutingAddress({ recipient, onClose, className, size, }: SmartRoutingAddressProps): import("react").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAOnC;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,CAAA;AA4CxE;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACvC,kEAAkE;IAClE,SAAS,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,OAAO,EACP,SAAS,EACT,IAAI,GACL,EAAE,wBAAwB,+BAmF1B"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { CreateSmartRoutingAddressParams, DepositedToken, GetSmartRoutingAddressFeeEstimatesReturns, SmartRoutingAddressVersion, TOKEN_TYPE } from '@zerodev/smart-routing-address';
|
|
2
|
+
import type { Address, Chain } from 'viem';
|
|
3
|
+
/** `DepositedToken` with the optional `createdAt` some SRA servers ship
|
|
4
|
+
* alongside the response. The SDK's public type doesn't include it yet, so
|
|
5
|
+
* we model it as an optional augmentation here — one canonical shape shared
|
|
6
|
+
* by the pending/past/detail views. */
|
|
7
|
+
export type DepositWithTimestamp = DepositedToken & {
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
};
|
|
10
|
+
export type EstimatedFee = GetSmartRoutingAddressFeeEstimatesReturns['estimatedFees'][number];
|
|
11
|
+
export type EstimatedFeeData = EstimatedFee['data'][number];
|
|
12
|
+
/** Internal chain-object form of a source token */
|
|
13
|
+
export type SourceToken = {
|
|
14
|
+
tokenType: TOKEN_TYPE;
|
|
15
|
+
chain: Chain;
|
|
16
|
+
minAmount?: bigint;
|
|
17
|
+
};
|
|
18
|
+
export type SmartRoutingAddressConfig = {
|
|
19
|
+
/**
|
|
20
|
+
* ZeroDev project id; when non-empty it is appended to the server URL
|
|
21
|
+
* for every request
|
|
22
|
+
*/
|
|
23
|
+
projectId?: string;
|
|
24
|
+
/** Chain id where funds settle */
|
|
25
|
+
targetChainId: number;
|
|
26
|
+
/** Smart routing address version, defaults to the latest stable */
|
|
27
|
+
version?: SmartRoutingAddressVersion;
|
|
28
|
+
/**
|
|
29
|
+
* Destination actions per token type. When omitted, funds are simply
|
|
30
|
+
* transferred to the owner.
|
|
31
|
+
*/
|
|
32
|
+
actions?: CreateSmartRoutingAddressParams['actions'];
|
|
33
|
+
/** Max slippage in basis points (50 = 0.5%) */
|
|
34
|
+
slippage?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Override the smart routing address server root URL; the projectId is
|
|
37
|
+
* appended to it
|
|
38
|
+
*/
|
|
39
|
+
baseUrl?: string;
|
|
40
|
+
};
|
|
41
|
+
export type AddressState = {
|
|
42
|
+
status: 'idle';
|
|
43
|
+
} | {
|
|
44
|
+
status: 'loading';
|
|
45
|
+
} | {
|
|
46
|
+
status: 'success';
|
|
47
|
+
address: Address;
|
|
48
|
+
estimatedFees: EstimatedFee[];
|
|
49
|
+
} | {
|
|
50
|
+
status: 'error';
|
|
51
|
+
error: Error;
|
|
52
|
+
};
|
|
53
|
+
export type DepositStage = 'pending' | 'bridging' | 'completed' | 'failed';
|
|
54
|
+
/**
|
|
55
|
+
* The route the deposit UI is currently showing (selected source token +
|
|
56
|
+
* chain + estimated fee), surfaced through context so hosts can mirror it —
|
|
57
|
+
* e.g. a demo "send" panel that matches the chosen token, or analytics.
|
|
58
|
+
*/
|
|
59
|
+
export type ActiveRoute = {
|
|
60
|
+
/** Source chain id the deposit would come from */
|
|
61
|
+
sourceChainId: number;
|
|
62
|
+
/** Source chain display name (e.g. "Base") */
|
|
63
|
+
sourceChainName: string;
|
|
64
|
+
/** On-chain address of the selected source token */
|
|
65
|
+
token: Address;
|
|
66
|
+
/** Display symbol of the selected source token (e.g. "USDC", "ETH") */
|
|
67
|
+
symbol: string;
|
|
68
|
+
/** Decimals of the selected source token */
|
|
69
|
+
decimals: number;
|
|
70
|
+
/** Estimated all-in fee amount in source-token atomic units, as a
|
|
71
|
+
* base-10 string (e.g. `"250000"` for 0.25 USDC). Consumers can pass it
|
|
72
|
+
* straight to `BigInt()` or `parseInt(x, 10)`. */
|
|
73
|
+
feeAmount: string;
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,cAAc,EACd,yCAAyC,EACzC,0BAA0B,EAC1B,UAAU,EACX,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AAE1C;;;uCAGuC;AACvC,MAAM,MAAM,oBAAoB,GAAG,cAAc,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1E,MAAM,MAAM,YAAY,GACtB,yCAAyC,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpE,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D,mDAAmD;AACnD,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,EAAE,UAAU,CAAA;IACrB,KAAK,EAAE,KAAK,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAA;IACrB,mEAAmE;IACnE,OAAO,CAAC,EAAE,0BAA0B,CAAA;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAA;IACpD,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,YAAY,GACpB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IACE,MAAM,EAAE,SAAS,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,aAAa,EAAE,YAAY,EAAE,CAAA;CAC9B,GACD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAA;AAErC,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAA;AAE1E;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,eAAe,EAAE,MAAM,CAAA;IACvB,oDAAoD;IACpD,KAAK,EAAE,OAAO,CAAA;IACd,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB;;sDAEkD;IAClD,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Chain } from 'viem';
|
|
2
|
+
/** Resolve a chain id to its viem chain object, throwing for unknown ids */
|
|
3
|
+
export declare function getChainById(chainId: number): Chain;
|
|
4
|
+
/** Block explorer URL for a transaction, or `undefined` when no explorer is
|
|
5
|
+
* known. Returns `undefined` (not `null`) so the value can be passed straight
|
|
6
|
+
* to optional link `href` props under `exactOptionalPropertyTypes`. */
|
|
7
|
+
export declare function getTxUrl(chainId: number, transactionHash: string): string | undefined;
|
|
8
|
+
//# sourceMappingURL=chains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/utils/chains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAA;AAGjC,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CASnD;AAED;;uEAEuE;AACvE,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,GACtB,MAAM,GAAG,SAAS,CAIpB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CreateSmartRoutingAddressParams, SmartRoutingAddressVersion } from '@zerodev/smart-routing-address';
|
|
2
|
+
import { type Address, type Chain } from 'viem';
|
|
3
|
+
import type { EstimatedFee, SmartRoutingAddressConfig, SourceToken } from '../types';
|
|
4
|
+
export declare function resolveVersion(config: SmartRoutingAddressConfig): SmartRoutingAddressVersion;
|
|
5
|
+
/**
|
|
6
|
+
* Server URL for all smart routing address requests: the server root
|
|
7
|
+
* (default or `config.baseUrl`) with the ZeroDev project id appended.
|
|
8
|
+
* Without a project id the URL is only overridden when `config.baseUrl`
|
|
9
|
+
* is set; undefined leaves the SDK default in place.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveBaseUrl(config: SmartRoutingAddressConfig): string | undefined;
|
|
12
|
+
export declare function resolveDashboardUrl(address?: string): string;
|
|
13
|
+
/** Chain where the routed funds settle */
|
|
14
|
+
export declare function resolveDestChain(config: SmartRoutingAddressConfig): Chain;
|
|
15
|
+
/**
|
|
16
|
+
* The DEFAULT_SOURCE_TOKENS, excluding token types that do not exist on the
|
|
17
|
+
* destination chain (the default actions deliver the deposited token type
|
|
18
|
+
* there, so a missing destination token would make the deposit unfulfillable).
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveSourceTokens(config: SmartRoutingAddressConfig): SourceToken[];
|
|
21
|
+
/**
|
|
22
|
+
* Source tokens the server actually returned routes for, taken straight from
|
|
23
|
+
* the fee estimates. Each returned (chain, token address) pair is matched back
|
|
24
|
+
* to a DEFAULT_SOURCE_TOKENS entry to recover its TOKEN_TYPE.
|
|
25
|
+
*/
|
|
26
|
+
export declare function sourceTokensFromFees(estimatedFees: EstimatedFee[]): SourceToken[];
|
|
27
|
+
/**
|
|
28
|
+
* Destination actions for every resolved source token type: ERC-20 deposits
|
|
29
|
+
* are transferred to the recipient and native deposits are forwarded as
|
|
30
|
+
* value. FLEX placeholders are resolved by the server per deposit.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveActions(config: SmartRoutingAddressConfig, recipient: Address): CreateSmartRoutingAddressParams['actions'];
|
|
33
|
+
/** Display symbol for a source token (native tokens use the chain symbol) */
|
|
34
|
+
export declare function getSourceTokenSymbol(source: SourceToken): string;
|
|
35
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,0BAA0B,EAE3B,MAAM,gCAAgC,CAAA;AAQvC,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,MAAM,CAAA;AAEzD,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,WAAW,EACZ,MAAM,UAAU,CAAA;AAIjB,wBAAgB,cAAc,CAC5B,MAAM,EAAE,yBAAyB,GAChC,0BAA0B,CAE5B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,yBAAyB,GAChC,MAAM,GAAG,SAAS,CAIpB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED,0CAA0C;AAC1C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,yBAAyB,GAAG,KAAK,CAEzE;AAYD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,yBAAyB,GAChC,WAAW,EAAE,CAKf;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,YAAY,EAAE,GAC5B,WAAW,EAAE,CAWf;AAMD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,yBAAyB,EACjC,SAAS,EAAE,OAAO,GACjB,+BAA+B,CAAC,SAAS,CAAC,CAsB5C;AAED,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAQhE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DepositedToken } from '@zerodev/smart-routing-address';
|
|
2
|
+
import type { DepositStage, EstimatedFee, SmartRoutingAddressConfig } from '../types';
|
|
3
|
+
export declare const DEPOSIT_STAGE_LABELS: Record<DepositStage, string>;
|
|
4
|
+
/**
|
|
5
|
+
* Newer SRA servers split a deposit into legs that each carry their own
|
|
6
|
+
* bridge/execution status; the published SDK types don't include the
|
|
7
|
+
* field yet, so it is modeled here as an optional extension.
|
|
8
|
+
*/
|
|
9
|
+
export type DepositSplitLeg = Pick<DepositedToken, 'bridge' | 'execution'> & {
|
|
10
|
+
splitIndex: number;
|
|
11
|
+
amount: string;
|
|
12
|
+
};
|
|
13
|
+
export type DepositWithSplits = DepositedToken & {
|
|
14
|
+
splits?: DepositSplitLeg[];
|
|
15
|
+
};
|
|
16
|
+
export declare function getDepositKey(deposit: DepositedToken): string;
|
|
17
|
+
export declare function getDepositStage(deposit: DepositWithSplits): DepositStage;
|
|
18
|
+
export declare function getNewDeposits(deposits: DepositedToken[], baseline: ReadonlySet<string>): DepositedToken[];
|
|
19
|
+
export type DepositSummary = {
|
|
20
|
+
key: string;
|
|
21
|
+
stage: DepositStage;
|
|
22
|
+
stageLabel: string;
|
|
23
|
+
chainName: string;
|
|
24
|
+
symbol: string;
|
|
25
|
+
amount: string;
|
|
26
|
+
transactionHash: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function summarizeDeposit(deposit: DepositedToken, estimatedFees: EstimatedFee[], config: SmartRoutingAddressConfig): DepositSummary;
|
|
29
|
+
//# sourceMappingURL=deposits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../../../src/utils/deposits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AAKjB,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAK7D,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG;IAC3E,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG;IAC/C,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;CAC3B,CAAA;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAE7D;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,YAAY,CAoBxE;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EAAE,EAC1B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,GAC5B,cAAc,EAAE,CAElB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,YAAY,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAcD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,cAAc,EACvB,aAAa,EAAE,YAAY,EAAE,EAC7B,MAAM,EAAE,yBAAyB,GAChC,cAAc,CAehB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TOKEN_TYPE } from '@zerodev/smart-routing-address';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
import type { EstimatedFee, EstimatedFeeData } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Resolve the on-chain token address used by the routing server for a given
|
|
6
|
+
* token type on a chain. Returns null when the type cannot be resolved
|
|
7
|
+
* (generic ERC20 or unknown token on that chain).
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveTokenAddress(tokenType: TOKEN_TYPE, chainId: number): Address | null;
|
|
10
|
+
/** Whether the token type resolves to the given on-chain address on a chain. */
|
|
11
|
+
export declare function tokenAddressMatches(tokenType: TOKEN_TYPE, chainId: number, token: Address): boolean;
|
|
12
|
+
export declare function findFeeDataByToken(estimatedFees: EstimatedFee[], chainId: number, token: Address): EstimatedFeeData | null;
|
|
13
|
+
export declare function findFeeData(estimatedFees: EstimatedFee[], chainId: number, tokenType: TOKEN_TYPE): EstimatedFeeData | null;
|
|
14
|
+
//# sourceMappingURL=fees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../../src/utils/fees.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAE9D;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,GAAG,IAAI,CAIhB;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,GACb,OAAO,CAGT;AAED,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,YAAY,EAAE,EAC7B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,GACb,gBAAgB,GAAG,IAAI,CAMzB;AAED,wBAAgB,WAAW,CACzB,aAAa,EAAE,YAAY,EAAE,EAC7B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,UAAU,GACpB,gBAAgB,GAAG,IAAI,CAIzB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a raw token amount (decimal string, hex string or bigint) into a
|
|
3
|
+
* human readable unit string. Falls back to the raw value if parsing fails.
|
|
4
|
+
*/
|
|
5
|
+
export declare function formatTokenAmount(value: string | bigint, decimals: number): string;
|
|
6
|
+
/** Rounding direction for display amounts. `'up'` / `'down'` are ceil / floor
|
|
7
|
+
* — use them for values where over- or under-stating is unsafe (fees, min
|
|
8
|
+
* deposit). `'nearest'` is `Math.round` — use for values the user reads as a
|
|
9
|
+
* final quantity ("you received X") so 249.9996… reads as 250.00. */
|
|
10
|
+
export type RoundDirection = 'up' | 'down' | 'nearest';
|
|
11
|
+
/**
|
|
12
|
+
* Format a raw token amount for display: thousands grouping and a
|
|
13
|
+
* magnitude-aware precision (whole numbers above 1000, two decimals above 1,
|
|
14
|
+
* two significant digits below). Rounds in the given direction so limits and
|
|
15
|
+
* fees are never overstated/understated. Falls back to the raw value if
|
|
16
|
+
* parsing fails.
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatDisplayAmount(value: string | bigint, decimals: number, round: RoundDirection): string;
|
|
19
|
+
export declare function truncateAddress(address: string): string;
|
|
20
|
+
export declare function formatSlippage(basisPoints: number): string;
|
|
21
|
+
export declare function formatDuration(seconds: number): string;
|
|
22
|
+
/** Symbols treated as ~$1, so a USD equivalent can be shown for their amounts */
|
|
23
|
+
export declare const STABLE_SYMBOLS: Set<string>;
|
|
24
|
+
/** ISO timestamp → compact "N unit ago" ("just now", "2 m ago", "3 h ago",
|
|
25
|
+
* "5 d ago", "2 mo ago", "1 y ago"). Returns `null` on invalid input. */
|
|
26
|
+
export declare function formatRelativeTime(iso: string, now?: number): string | null;
|
|
27
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/utils/format.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,EAAE,MAAM,GACf,MAAM,CAOR;AAED;;;qEAGqE;AACrE,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;AAStD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,cAAc,GACpB,MAAM,CAmBR;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED,iFAAiF;AACjF,eAAO,MAAM,cAAc,aAMzB,CAAA;AAEF;yEACyE;AACzE,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,GAAG,GAAE,MAAmB,GACvB,MAAM,GAAG,IAAI,CAgBf"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { z } from 'zod/mini';
|
|
2
|
+
import type { EstimatedFeeData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Standardised fee breakdown shared across routing providers. Each provider
|
|
5
|
+
* (Across, Relay, …) exposes fees in its own shape; the parsers below map
|
|
6
|
+
* them onto this single model so the fees view can render any of them
|
|
7
|
+
* identically.
|
|
8
|
+
*
|
|
9
|
+
* A leg is either a `rate` (proportional to the deposit, e.g. capital / LP)
|
|
10
|
+
* or `flat` (a fixed cost, e.g. destination gas). Because the deposit amount
|
|
11
|
+
* is not known up front, each leg is shown only in its amount-invariant
|
|
12
|
+
* form: a percentage for rates, a fixed USD value for flat costs.
|
|
13
|
+
*/
|
|
14
|
+
export type FeeKind = 'rate' | 'flat';
|
|
15
|
+
export type FeeLine = {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
kind: FeeKind;
|
|
19
|
+
/** Right-aligned accent: gas pump for gas legs, $ disc otherwise */
|
|
20
|
+
accent: 'gas' | 'usd';
|
|
21
|
+
/** Proportional rate as a percent (e.g. 0.01 for 0.01%); rate legs only */
|
|
22
|
+
pct: number | null;
|
|
23
|
+
/** USD value at the quoted amount; the display value for flat legs */
|
|
24
|
+
usd: number | null;
|
|
25
|
+
/** Raw fallback text (e.g. a token amount) when neither pct nor usd applies */
|
|
26
|
+
text?: string;
|
|
27
|
+
/** True when the leg is waived (shown as "Sponsored") */
|
|
28
|
+
sponsored?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type FeeBreakdown = {
|
|
31
|
+
/** Routing provider, or null when no itemised provider data is available */
|
|
32
|
+
provider: string | null;
|
|
33
|
+
lines: FeeLine[];
|
|
34
|
+
/** Combined proportional rate as a percent, e.g. 0.013 for "0.013%" */
|
|
35
|
+
ratePct: number | null;
|
|
36
|
+
/** Combined flat (fixed) cost in USD */
|
|
37
|
+
flatUsd: number | null;
|
|
38
|
+
/** Full cost in USD at the quoted amount — used to compare routes */
|
|
39
|
+
quotedTotalUsd: number | null;
|
|
40
|
+
/** Headline fallback when USD isn't derivable (e.g. "0.00002 ETH") */
|
|
41
|
+
totalText: string | null;
|
|
42
|
+
/** Estimated fill time in seconds, when the provider reports it */
|
|
43
|
+
fillTimeSec: number | null;
|
|
44
|
+
};
|
|
45
|
+
export declare const AcrossSuggestedFeesSchema: z.ZodMiniObject<{
|
|
46
|
+
totalRelayFee: z.ZodMiniObject<{
|
|
47
|
+
pct: z.ZodMiniString<string>;
|
|
48
|
+
total: z.ZodMiniString<string>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
relayerCapitalFee: z.ZodMiniObject<{
|
|
51
|
+
pct: z.ZodMiniString<string>;
|
|
52
|
+
total: z.ZodMiniString<string>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
relayerGasFee: z.ZodMiniObject<{
|
|
55
|
+
pct: z.ZodMiniString<string>;
|
|
56
|
+
total: z.ZodMiniString<string>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
lpFee: z.ZodMiniObject<{
|
|
59
|
+
pct: z.ZodMiniString<string>;
|
|
60
|
+
total: z.ZodMiniString<string>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
estimatedFillTimeSec: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type AcrossSuggestedFees = z.infer<typeof AcrossSuggestedFeesSchema>;
|
|
65
|
+
export declare function parseAcrossFees(res: AcrossSuggestedFees, symbol: string, decimals: number): FeeBreakdown;
|
|
66
|
+
export declare const RelayQuoteSchema: z.ZodMiniObject<{
|
|
67
|
+
fees: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
68
|
+
gas: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
69
|
+
amountUsd: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
relayer: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
72
|
+
amountUsd: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
relayerGas: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
75
|
+
amountUsd: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
relayerService: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
78
|
+
amountUsd: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
app: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
81
|
+
amountUsd: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
details: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
85
|
+
timeEstimate: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
timeEstimate: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type RelayQuote = z.infer<typeof RelayQuoteSchema>;
|
|
90
|
+
export declare function parseRelayFees(res: RelayQuote): FeeBreakdown;
|
|
91
|
+
/**
|
|
92
|
+
* Present the SRA fee as the actual all-in charge, with the provider's
|
|
93
|
+
* bridge legs as a breakdown *of* it (not added on top — the SRA server fee
|
|
94
|
+
* already covers bridging + execution). The execution portion is derived as
|
|
95
|
+
* `SRA fee − bridge cost` so the legs sum back to the SRA fee. Without
|
|
96
|
+
* provider data, the whole SRA fee is shown as a single execution line.
|
|
97
|
+
*/
|
|
98
|
+
export declare function buildFeeBreakdown(feeData: EstimatedFeeData, symbol: string, provider?: FeeBreakdown | null): FeeBreakdown;
|
|
99
|
+
/** Format a percent number for display, trimming to a sensible precision */
|
|
100
|
+
export declare function formatFeePct(pct: number): string;
|
|
101
|
+
/** Format a USD number for display */
|
|
102
|
+
export declare function formatFeeUsd(usd: number): string;
|
|
103
|
+
//# sourceMappingURL=providerFees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerFees.d.ts","sourceRoot":"","sources":["../../../src/utils/providerFees.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,UAAU,CAAA;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,oEAAoE;IACpE,MAAM,EAAE,KAAK,GAAG,KAAK,CAAA;IACrB,2EAA2E;IAC3E,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,sEAAsE;IACtE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,KAAK,EAAE,OAAO,EAAE,CAAA;IAChB,uEAAuE;IACvE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,wCAAwC;IACxC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,qEAAqE;IACrE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,sEAAsE;IACtE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,mEAAmE;IACnE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AA4BD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAMpC,CAAA;AAGF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AA6B3E,wBAAgB,eAAe,CAC7B,GAAG,EAAE,mBAAmB,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,YAAY,CAkCd;AAaD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAgB3B,CAAA;AAGF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAQzD,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,YAAY,CAgC5D;AAMD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,YAAY,GAAG,IAAW,GACnC,YAAY,CA4Cd;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,sCAAsC;AACtC,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhD"}
|