@gearbox-protocol/ui-kit 3.14.0-next.60 → 3.14.0-next.61
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/cjs/components/assets-list-cell/assets-list-cell.cjs +1 -1
- package/dist/cjs/components/block-sync/block-sync.cjs +1 -1
- package/dist/cjs/components/block-sync-pill/block-sync-pill.cjs +1 -1
- package/dist/cjs/components/checkbox/checkbox-labeled.cjs +1 -1
- package/dist/cjs/components/client-adapters/styled-rounded-image/styled-rounded-image.cjs +1 -1
- package/dist/cjs/components/complex-input/complex-input.cjs +1 -1
- package/dist/cjs/components/composites/index.cjs +1 -1
- package/dist/cjs/components/composites/pool-table/columns.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.cjs +1 -0
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/ProgressStepper.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/constants.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/index.cjs +1 -1
- package/dist/cjs/components/composites/tx-preview/index.cjs +1 -1
- package/dist/cjs/components/compound-apy/compound-apy.cjs +1 -1
- package/dist/cjs/components/detailed-page-title/detailed-page-title.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/components/markdown-viewer/markdown-viewer.cjs +1 -1
- package/dist/cjs/components/time-to-liquidation/time-to-liquidation.cjs +1 -1
- package/dist/cjs/components/tokens-list-cell/tokens-list-cell.cjs +1 -1
- package/dist/cjs/components/with-copy/with-copy.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/assets-list-cell/assets-list-cell.js +7 -5
- package/dist/esm/components/block-sync/block-sync.js +7 -5
- package/dist/esm/components/block-sync-pill/block-sync-pill.js +8 -6
- package/dist/esm/components/checkbox/checkbox-labeled.js +5 -3
- package/dist/esm/components/client-adapters/styled-rounded-image/styled-rounded-image.js +5 -3
- package/dist/esm/components/complex-input/complex-input.js +7 -5
- package/dist/esm/components/composites/index.js +100 -62
- package/dist/esm/components/composites/pool-table/columns.js +20 -18
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.js +26 -25
- package/dist/esm/components/composites/tx-preview/confirm/amounts/index.js +0 -2
- package/dist/esm/components/composites/tx-preview/confirm/{preview/OperationPreviewContent.js → dialog/TransactionConfirmModalView.js} +51 -33
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.js +32 -49
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.js +43 -39
- package/dist/esm/components/composites/tx-preview/confirm/dialog/index.js +4 -10
- package/dist/esm/components/composites/tx-preview/confirm/index.js +35 -52
- package/dist/esm/components/composites/tx-preview/confirm/stepper/ProgressStepper.js +37 -32
- package/dist/esm/components/composites/tx-preview/confirm/stepper/constants.js +2 -6
- package/dist/esm/components/composites/tx-preview/confirm/stepper/index.js +5 -8
- package/dist/esm/components/composites/tx-preview/index.js +38 -96
- package/dist/esm/components/compound-apy/compound-apy.js +7 -5
- package/dist/esm/components/detailed-page-title/detailed-page-title.js +5 -3
- package/dist/esm/components/index.js +686 -648
- package/dist/esm/components/markdown-viewer/markdown-viewer.js +7 -5
- package/dist/esm/components/time-to-liquidation/time-to-liquidation.js +5 -3
- package/dist/esm/components/tokens-list-cell/tokens-list-cell.js +7 -5
- package/dist/esm/components/with-copy/with-copy.js +7 -5
- package/dist/esm/index.js +837 -799
- package/dist/globals.css +1 -1
- package/dist/types/components/composites/index.d.ts +1 -0
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountField.d.ts +3 -3
- package/dist/types/components/composites/tx-preview/confirm/amounts/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmModalView.d.ts +17 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmPageView.d.ts +12 -20
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.d.ts +4 -0
- package/dist/types/components/composites/tx-preview/confirm/dialog/index.d.ts +1 -4
- package/dist/types/components/composites/tx-preview/confirm/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/confirm/stepper/ProgressStepper.d.ts +12 -5
- package/dist/types/components/composites/tx-preview/confirm/stepper/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/stepper/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/index.d.ts +0 -16
- package/package.json +1 -11
- package/dist/cjs/components/composites/tx-preview/components/AddressAvatar.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AddressParty.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AddressRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/AmountRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/CollapsibleCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/SectionDivider.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/TransferList.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/TransferRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/addressLabel.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/components/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/OperationPreviewContent.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/preview/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/constants.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/confirm/summary/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationBody.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/OperationsCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolDepositView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/PoolWithdrawView.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/operations/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeGroup.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/BalanceChangeRow.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/PoolStateChangeCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/StateChangeCard.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/state-change/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/types.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/addressLabels.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/index.cjs +0 -1
- package/dist/cjs/components/composites/tx-preview/utils/poolTokenInfo.cjs +0 -1
- package/dist/esm/components/composites/tx-preview/components/AddressAvatar.js +0 -47
- package/dist/esm/components/composites/tx-preview/components/AddressParty.js +0 -17
- package/dist/esm/components/composites/tx-preview/components/AddressRow.js +0 -16
- package/dist/esm/components/composites/tx-preview/components/AmountRow.js +0 -30
- package/dist/esm/components/composites/tx-preview/components/CollapsibleCard.js +0 -45
- package/dist/esm/components/composites/tx-preview/components/SectionDivider.js +0 -12
- package/dist/esm/components/composites/tx-preview/components/TransferList.js +0 -25
- package/dist/esm/components/composites/tx-preview/components/TransferRow.js +0 -52
- package/dist/esm/components/composites/tx-preview/components/addressLabel.js +0 -7
- package/dist/esm/components/composites/tx-preview/components/index.js +0 -20
- package/dist/esm/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.js +0 -63
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.js +0 -50
- package/dist/esm/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.js +0 -6
- package/dist/esm/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.js +0 -20
- package/dist/esm/components/composites/tx-preview/confirm/preview/index.js +0 -4
- package/dist/esm/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.js +0 -67
- package/dist/esm/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.js +0 -65
- package/dist/esm/components/composites/tx-preview/confirm/summary/constants.js +0 -6
- package/dist/esm/components/composites/tx-preview/confirm/summary/index.js +0 -6
- package/dist/esm/components/composites/tx-preview/operations/OperationBody.js +0 -10
- package/dist/esm/components/composites/tx-preview/operations/OperationsCard.js +0 -195
- package/dist/esm/components/composites/tx-preview/operations/PoolDepositView.js +0 -204
- package/dist/esm/components/composites/tx-preview/operations/PoolRow.js +0 -20
- package/dist/esm/components/composites/tx-preview/operations/PoolWithdrawView.js +0 -198
- package/dist/esm/components/composites/tx-preview/operations/index.js +0 -13
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeGroup.js +0 -185
- package/dist/esm/components/composites/tx-preview/state-change/BalanceChangeRow.js +0 -61
- package/dist/esm/components/composites/tx-preview/state-change/PoolStateChangeCard.js +0 -23
- package/dist/esm/components/composites/tx-preview/state-change/StateChangeCard.js +0 -200
- package/dist/esm/components/composites/tx-preview/state-change/index.js +0 -10
- package/dist/esm/components/composites/tx-preview/types.js +0 -1
- package/dist/esm/components/composites/tx-preview/utils/addressLabels.js +0 -41
- package/dist/esm/components/composites/tx-preview/utils/index.js +0 -6
- package/dist/esm/components/composites/tx-preview/utils/poolTokenInfo.js +0 -12
- package/dist/types/components/composites/tx-preview/components/AddressAvatar.d.ts +0 -12
- package/dist/types/components/composites/tx-preview/components/AddressParty.d.ts +0 -14
- package/dist/types/components/composites/tx-preview/components/AddressRow.d.ts +0 -7
- package/dist/types/components/composites/tx-preview/components/AmountRow.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/components/CollapsibleCard.d.ts +0 -22
- package/dist/types/components/composites/tx-preview/components/SectionDivider.d.ts +0 -10
- package/dist/types/components/composites/tx-preview/components/TransferList.d.ts +0 -19
- package/dist/types/components/composites/tx-preview/components/TransferRow.d.ts +0 -30
- package/dist/types/components/composites/tx-preview/components/addressLabel.d.ts +0 -27
- package/dist/types/components/composites/tx-preview/components/index.d.ts +0 -9
- package/dist/types/components/composites/tx-preview/confirm/amounts/TransactionConfirmAmountPair.d.ts +0 -16
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts +0 -24
- package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmShell.constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.d.ts +0 -8
- package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts +0 -12
- package/dist/types/components/composites/tx-preview/confirm/preview/index.d.ts +0 -1
- package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts +0 -7
- package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/confirm/summary/constants.d.ts +0 -3
- package/dist/types/components/composites/tx-preview/confirm/summary/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/operations/OperationBody.d.ts +0 -15
- package/dist/types/components/composites/tx-preview/operations/OperationsCard.d.ts +0 -21
- package/dist/types/components/composites/tx-preview/operations/PoolDepositView.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/operations/PoolRow.d.ts +0 -8
- package/dist/types/components/composites/tx-preview/operations/PoolWithdrawView.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/operations/index.d.ts +0 -5
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeGroup.d.ts +0 -11
- package/dist/types/components/composites/tx-preview/state-change/BalanceChangeRow.d.ts +0 -14
- package/dist/types/components/composites/tx-preview/state-change/PoolStateChangeCard.d.ts +0 -18
- package/dist/types/components/composites/tx-preview/state-change/StateChangeCard.d.ts +0 -21
- package/dist/types/components/composites/tx-preview/state-change/index.d.ts +0 -4
- package/dist/types/components/composites/tx-preview/types.d.ts +0 -19
- package/dist/types/components/composites/tx-preview/utils/addressLabels.d.ts +0 -16
- package/dist/types/components/composites/tx-preview/utils/index.d.ts +0 -2
- package/dist/types/components/composites/tx-preview/utils/poolTokenInfo.d.ts +0 -14
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { AddressLabels } from './addressLabel';
|
|
3
|
-
import { Transfer, TransferListToken } from './TransferRow';
|
|
4
|
-
export interface TransferListProps {
|
|
5
|
-
transfers: Transfer[];
|
|
6
|
-
/** Resolved labels for the involved addresses (drives names, avatars, color). */
|
|
7
|
-
labels: AddressLabels;
|
|
8
|
-
/** Resolves token metadata (symbol/decimals) for a token address. */
|
|
9
|
-
resolveToken: (token: Address) => TransferListToken;
|
|
10
|
-
/** Section heading shown in the divider; pass `null` to omit it. */
|
|
11
|
-
title?: string | null;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Renders a list of {@link TransferRow}s, separated from the rest of the card by
|
|
15
|
-
* a labeled divider. All rows share one symmetric five-column grid so the
|
|
16
|
-
* arrows, amounts and avatars align across rows. Renders nothing when there are
|
|
17
|
-
* no transfers.
|
|
18
|
-
*/
|
|
19
|
-
export declare function TransferList({ transfers, labels, resolveToken, title, }: TransferListProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { AddressLabels } from './addressLabel';
|
|
3
|
-
export interface TransferListToken {
|
|
4
|
-
symbol: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
}
|
|
7
|
-
export interface Transfer {
|
|
8
|
-
token: Address;
|
|
9
|
-
amount: bigint;
|
|
10
|
-
from: Address;
|
|
11
|
-
to: Address;
|
|
12
|
-
}
|
|
13
|
-
export interface TransferRowProps {
|
|
14
|
-
transfer: Transfer;
|
|
15
|
-
/** Resolved labels for the involved addresses (drives names, avatars, color). */
|
|
16
|
-
labels: AddressLabels;
|
|
17
|
-
token: TransferListToken;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* One transfer as five grid cells (the parent `TransferList` owns the shared,
|
|
21
|
-
* left-right symmetric grid template so columns line up across rows): sender,
|
|
22
|
-
* arrow, token amount, arrow, receiver. Sender/receiver are left-aligned in the
|
|
23
|
-
* flexible outer columns; the centered amount sits at the row's horizontal
|
|
24
|
-
* center with the two arrows symmetric around it. The arrows and amount are
|
|
25
|
-
* colored by direction relative to "our" addresses: red when an owned address
|
|
26
|
-
* is the sender (outgoing), green when it is the receiver (incoming), muted
|
|
27
|
-
* otherwise. Purely presentational; labels/token metadata are resolved by the
|
|
28
|
-
* caller.
|
|
29
|
-
*/
|
|
30
|
-
export declare function TransferRow({ transfer, labels, token }: TransferRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* Visual category for a labeled address; drives the avatar rendering.
|
|
4
|
-
* `external` is the fallback for addresses we do not specifically recognize.
|
|
5
|
-
*/
|
|
6
|
-
export type AddressRole = "wallet" | "creditAccount" | "pool" | "external";
|
|
7
|
-
/**
|
|
8
|
-
* UI-only description of an address involved in an operation.
|
|
9
|
-
*
|
|
10
|
-
* `ours` is a presentation-layer concept (it colors transfers red/green) and is
|
|
11
|
-
* derived by the feature that builds the labels; it is intentionally decoupled
|
|
12
|
-
* from the simulation watch set in `src/simulate`.
|
|
13
|
-
*/
|
|
14
|
-
export interface AddressLabel {
|
|
15
|
-
/** Label shown in transfer rows, e.g. "Your wallet", "LP shares receiver", "Pool XYZ". */
|
|
16
|
-
transferLabel?: string;
|
|
17
|
-
/** Label shown as the state-changes divider, e.g. "Wallet balances", "Receiver balances". */
|
|
18
|
-
balancesLabel?: string;
|
|
19
|
-
/** Visual category, drives the avatar. */
|
|
20
|
-
role: AddressRole;
|
|
21
|
-
/** Whether this is one of "our" addresses; drives transfer color (red/green). */
|
|
22
|
-
ours: boolean;
|
|
23
|
-
}
|
|
24
|
-
/** Address -> label lookup, keyed by checksummed address. */
|
|
25
|
-
export type AddressLabels = ReadonlyMap<Address, AddressLabel>;
|
|
26
|
-
/** Resolves an address's label, normalizing the key to checksummed form. */
|
|
27
|
-
export declare function getAddressLabel(labels: AddressLabels, address: Address): AddressLabel | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './AddressAvatar';
|
|
2
|
-
export * from './AddressParty';
|
|
3
|
-
export * from './AddressRow';
|
|
4
|
-
export * from './AmountRow';
|
|
5
|
-
export * from './addressLabel';
|
|
6
|
-
export * from './CollapsibleCard';
|
|
7
|
-
export * from './SectionDivider';
|
|
8
|
-
export * from './TransferList';
|
|
9
|
-
export * from './TransferRow';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TokenFullData } from '../../../../../types/common';
|
|
3
|
-
export interface TransactionConfirmAmountPairProps {
|
|
4
|
-
readonly primaryLabel: React.ReactNode;
|
|
5
|
-
readonly primaryAmount: bigint;
|
|
6
|
-
readonly primaryToken?: Omit<TokenFullData, "address">;
|
|
7
|
-
readonly primaryUsdMoney?: bigint;
|
|
8
|
-
readonly receiveLabel: React.ReactNode;
|
|
9
|
-
readonly receiveAmount: bigint;
|
|
10
|
-
readonly receiveToken?: Omit<TokenFullData, "address">;
|
|
11
|
-
readonly receiveUsdMoney?: bigint;
|
|
12
|
-
readonly loading?: boolean;
|
|
13
|
-
readonly size?: "sm" | "md";
|
|
14
|
-
readonly maxLength?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function TransactionConfirmAmountPair({ primaryLabel, primaryAmount, primaryToken, primaryUsdMoney, receiveLabel, receiveAmount, receiveToken, receiveUsdMoney, loading, size, maxLength, }: TransactionConfirmAmountPairProps): React.ReactElement;
|
package/dist/types/components/composites/tx-preview/confirm/dialog/TransactionConfirmDialogView.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TransactionExecutionStepView } from '../stepper/transactionExecutionStepTypes';
|
|
3
|
-
import { TransactionConfirmPhase } from './transactionConfirmPhase';
|
|
4
|
-
export interface TransactionConfirmDialogViewProps {
|
|
5
|
-
readonly open: boolean;
|
|
6
|
-
readonly onClose: () => void;
|
|
7
|
-
readonly phase?: TransactionConfirmPhase;
|
|
8
|
-
readonly title: React.ReactNode;
|
|
9
|
-
readonly titleAddon?: React.ReactNode;
|
|
10
|
-
readonly preview: React.ReactNode;
|
|
11
|
-
readonly previewLoading?: boolean;
|
|
12
|
-
readonly previewError?: Error | null;
|
|
13
|
-
readonly previewErrorTitle?: string;
|
|
14
|
-
readonly previewClassName?: string;
|
|
15
|
-
readonly containerClassName?: string;
|
|
16
|
-
readonly containerTestId?: string;
|
|
17
|
-
readonly shellTestId?: string;
|
|
18
|
-
readonly execution: React.ReactNode;
|
|
19
|
-
readonly progressSteps?: ReadonlyArray<TransactionExecutionStepView>;
|
|
20
|
-
readonly renderProgressStepLabel?: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
21
|
-
readonly result?: React.ReactNode;
|
|
22
|
-
readonly hideTitleAddonOnResult?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare function TransactionConfirmDialogView({ open, onClose, phase, title, titleAddon, preview, previewLoading, previewError, previewErrorTitle, previewClassName, containerClassName, containerTestId, shellTestId, execution, progressSteps, renderProgressStepLabel, result, hideTitleAddonOnResult, }: TransactionConfirmDialogViewProps): React.ReactElement | null;
|
package/dist/types/components/composites/tx-preview/confirm/dialog/useTransactionConfirmDialog.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface UseTransactionConfirmDialogReturn {
|
|
2
|
-
open: boolean;
|
|
3
|
-
openDialog: () => void;
|
|
4
|
-
closeDialog: () => void;
|
|
5
|
-
refreshNonce: number;
|
|
6
|
-
bumpRefreshNonce: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useTransactionConfirmDialog(): UseTransactionConfirmDialogReturn;
|
package/dist/types/components/composites/tx-preview/confirm/preview/OperationPreviewContent.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Operation, PoolSimulationResult } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { Address } from 'viem';
|
|
4
|
-
import { GearboxSDKLike } from '../../types';
|
|
5
|
-
export interface OperationPreviewContentProps {
|
|
6
|
-
sdk: GearboxSDKLike;
|
|
7
|
-
operation: Operation;
|
|
8
|
-
simulation: PoolSimulationResult | undefined;
|
|
9
|
-
isSimulating: boolean;
|
|
10
|
-
wallet: Address;
|
|
11
|
-
}
|
|
12
|
-
export declare function OperationPreviewContent({ sdk, operation, simulation, isSimulating, wallet, }: OperationPreviewContentProps): React.ReactElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './OperationPreviewContent';
|
package/dist/types/components/composites/tx-preview/confirm/stepper/TransactionProgressStepper.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TransactionExecutionStepView } from './transactionExecutionStepTypes';
|
|
3
|
-
export interface TransactionProgressStepperProps {
|
|
4
|
-
readonly steps: ReadonlyArray<TransactionExecutionStepView>;
|
|
5
|
-
readonly renderLabel: (step: TransactionExecutionStepView) => React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export declare function TransactionProgressStepper({ steps, renderLabel, }: TransactionProgressStepperProps): React.ReactElement;
|
package/dist/types/components/composites/tx-preview/confirm/summary/PoolOperationConfirmDetails.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface PoolOperationConfirmDetailsProps {
|
|
3
|
-
readonly apyLabel?: React.ReactNode;
|
|
4
|
-
readonly apy?: React.ReactNode;
|
|
5
|
-
readonly apyLoading?: boolean;
|
|
6
|
-
readonly poolTvlLabel: React.ReactNode;
|
|
7
|
-
readonly poolTvl: React.ReactNode;
|
|
8
|
-
readonly poolUtilizationLabel: React.ReactNode;
|
|
9
|
-
readonly poolUtilization: React.ReactNode;
|
|
10
|
-
readonly curatorLabel: React.ReactNode;
|
|
11
|
-
readonly curatorValue: React.ReactNode;
|
|
12
|
-
readonly poolLabel: React.ReactNode;
|
|
13
|
-
readonly poolContractValue: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare function PoolOperationConfirmDetails({ apyLabel, apy, apyLoading, poolTvlLabel, poolTvl, poolUtilizationLabel, poolUtilization, curatorLabel, curatorValue, poolLabel, poolContractValue, }: PoolOperationConfirmDetailsProps): React.ReactElement;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Operation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface OperationBodyProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
operation: Operation;
|
|
7
|
-
/** Wallet whose transfers are highlighted; populated after simulation. */
|
|
8
|
-
wallet: Address;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Renders the body of the outer operation (rows only, no card chrome).
|
|
12
|
-
* Currently handles pool deposit/redeem; credit-facade operations
|
|
13
|
-
* ({@link OuterFacadeOperation}) are a future branch.
|
|
14
|
-
*/
|
|
15
|
-
export declare function OperationBody({ sdk, operation, wallet }: OperationBodyProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Operation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface OperationsCardProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
transaction: Operation;
|
|
7
|
-
wallet: Address;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Whether a dedicated custom operation view exists for the parsed transaction.
|
|
11
|
-
* Drives both whether {@link OperationsCard} renders and whether the raw
|
|
12
|
-
* transaction card starts expanded. Currently only pool operations have a view.
|
|
13
|
-
*/
|
|
14
|
-
export declare function hasOperationView(tx: Operation): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Collapsible card (open by default) for a decoded transaction. Renders the
|
|
17
|
-
* outer operation in its content. Pool operations have no inner operations, so
|
|
18
|
-
* the card body is just the operation rows; credit-facade operations will later
|
|
19
|
-
* render their {@link InnerOperation}s as nested non-collapsible cards here.
|
|
20
|
-
*/
|
|
21
|
-
export declare function OperationsCard({ sdk, transaction, wallet, }: OperationsCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PoolDepositOperation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface PoolDepositViewProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
operation: PoolDepositOperation;
|
|
7
|
-
/** Wallet whose transfers are highlighted; populated after simulation. */
|
|
8
|
-
wallet: Address;
|
|
9
|
-
}
|
|
10
|
-
/** Human-readable body of a Gearbox pool deposit operation (rows only). */
|
|
11
|
-
export declare function PoolDepositView({ sdk, operation, wallet, }: PoolDepositViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { TokenInfo } from '../utils';
|
|
3
|
-
export interface PoolRowProps {
|
|
4
|
-
pool: TokenInfo;
|
|
5
|
-
address: Address;
|
|
6
|
-
}
|
|
7
|
-
/** Pool row: shows the pool's human label plus the copyable pool address. */
|
|
8
|
-
export declare function PoolRow({ pool, address }: PoolRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PoolRedeemOperation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface PoolWithdrawViewProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
operation: PoolRedeemOperation;
|
|
7
|
-
/** Wallet whose transfers are highlighted; populated after simulation. */
|
|
8
|
-
wallet: Address;
|
|
9
|
-
}
|
|
10
|
-
/** Human-readable body of a Gearbox pool withdraw (redeem) operation (rows only). */
|
|
11
|
-
export declare function PoolWithdrawView({ sdk, operation, wallet, }: PoolWithdrawViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AddressBalanceChanges } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { AddressLabels } from '../components';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface BalanceChangeGroupProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
group: AddressBalanceChanges;
|
|
7
|
-
/** Resolved labels for the involved addresses (drives the group divider). */
|
|
8
|
-
labels: AddressLabels;
|
|
9
|
-
}
|
|
10
|
-
/** One labeled section of balance changes for a single address. */
|
|
11
|
-
export declare function BalanceChangeGroup({ sdk, group, labels, }: BalanceChangeGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TokenBalanceChange } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { GearboxSDKLike } from '../types';
|
|
3
|
-
export interface BalanceChangeRowProps {
|
|
4
|
-
sdk: GearboxSDKLike;
|
|
5
|
-
change: TokenBalanceChange;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* One token balance change as three grid cells (the parent group owns the shared
|
|
9
|
-
* grid template so columns line up across rows): the token (symbol + name,
|
|
10
|
-
* left-aligned and flexible), the struck-through before value with an arrow to
|
|
11
|
-
* the after value, and the signed diff in brackets. The whole row is colored
|
|
12
|
-
* green for a positive delta and red for a negative one.
|
|
13
|
-
*/
|
|
14
|
-
export declare function BalanceChangeRow({ sdk, change }: BalanceChangeRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AddressBalanceChanges, PoolOperation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface PoolStateChangeCardProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
/** The decoded pool deposit/redeem operation. */
|
|
7
|
-
operation: PoolOperation;
|
|
8
|
-
/** Balance changes grouped by watched address (from a successful simulation). */
|
|
9
|
-
balanceChanges: AddressBalanceChanges[];
|
|
10
|
-
/** Wallet whose balances are highlighted. */
|
|
11
|
-
wallet: Address;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Pool-specific state-change content: balance changes grouped by address (wallet
|
|
15
|
-
* and, when distinct, the recipient). Renders content only; the surrounding card
|
|
16
|
-
* chrome, loading, and error handling live in {@link StateChangeCard}.
|
|
17
|
-
*/
|
|
18
|
-
export declare function PoolStateChangeCard({ sdk, operation, balanceChanges, wallet, }: PoolStateChangeCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Operation, PoolSimulationResult } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { GearboxSDKLike } from '../types';
|
|
4
|
-
export interface StateChangeCardProps {
|
|
5
|
-
sdk: GearboxSDKLike;
|
|
6
|
-
/** Parsed operation that drives which specific state-change card is shown. */
|
|
7
|
-
data: Operation;
|
|
8
|
-
/** Stage-2 simulation outcome; `undefined` while it is loading. */
|
|
9
|
-
simulation: PoolSimulationResult | undefined;
|
|
10
|
-
/** Whether the simulation is still running. */
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
/** Wallet whose balances/transfers are highlighted. */
|
|
13
|
-
wallet: Address;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Parent card for transaction state changes. Owns the common logic (collapsible
|
|
17
|
-
* card shell, loading skeleton, card-styled error, and no-data handling) and
|
|
18
|
-
* decides which specific state-change card to render: pool balance changes,
|
|
19
|
-
* credit account changes (not yet supported), or the decoded revert reason.
|
|
20
|
-
*/
|
|
21
|
-
export declare function StateChangeCard({ sdk, data, simulation, isLoading, wallet, }: StateChangeCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal SDK surface for tx-preview UI + hooks.
|
|
4
|
-
* Satisfied by verify OnchainSDK and client preview SDK instances.
|
|
5
|
-
*/
|
|
6
|
-
export interface GearboxSDKLike {
|
|
7
|
-
chainId: number;
|
|
8
|
-
tokensMeta: {
|
|
9
|
-
get(address: Address): {
|
|
10
|
-
symbol?: string;
|
|
11
|
-
decimals?: number;
|
|
12
|
-
name?: string;
|
|
13
|
-
} | undefined;
|
|
14
|
-
};
|
|
15
|
-
readonly plugins: {
|
|
16
|
-
adapters: unknown;
|
|
17
|
-
};
|
|
18
|
-
client: unknown;
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PoolOperation } from '@gearbox-protocol/sdk/preview';
|
|
2
|
-
import { Address } from 'viem';
|
|
3
|
-
import { AddressLabels } from '../components';
|
|
4
|
-
import { GearboxSDKLike } from '../types';
|
|
5
|
-
/**
|
|
6
|
-
* Builds the UI label map for a pool deposit/redeem operation.
|
|
7
|
-
*
|
|
8
|
-
* "Our" addresses (wallet, receiver, redeem owner) are flagged `ours: true`; the
|
|
9
|
-
* pool is labeled with its name and flagged `ours: false`. When the receiver /
|
|
10
|
-
* owner coincides with the wallet, it is labeled "Your wallet".
|
|
11
|
-
*
|
|
12
|
-
* Note: the `ours` flag is a UI-only concept and is derived locally here; it is
|
|
13
|
-
* intentionally decoupled from the simulation watch set in the SDK preview
|
|
14
|
-
* `simulate` module.
|
|
15
|
-
*/
|
|
16
|
-
export declare function buildPoolOperationLabels(sdk: GearboxSDKLike, op: PoolOperation, wallet: Address): AddressLabels;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
import { GearboxSDKLike } from '../types';
|
|
3
|
-
export interface TokenInfo {
|
|
4
|
-
symbol: string;
|
|
5
|
-
decimals: number;
|
|
6
|
-
/** Human-readable token/pool name, when available. */
|
|
7
|
-
name?: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Resolves a token's symbol, decimals and name from `sdk.tokensMeta`, falling
|
|
11
|
-
* back to a shortened address / 18 decimals when the token is not in the
|
|
12
|
-
* registry. For pools, the diesel-token meta carries the pool name.
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveToken(sdk: GearboxSDKLike, address: Address): TokenInfo;
|