@lifi/widget 3.14.2 → 3.15.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/CHANGELOG.md +15 -0
- package/dist/esm/AppDrawer.style.d.ts +1 -1
- package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +3 -3
- package/dist/esm/components/AmountInput/AmountInput.style.d.ts +1 -1
- package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +2 -2
- package/dist/esm/components/AppContainer.d.ts +1 -1
- package/dist/esm/components/Avatar/Avatar.style.d.ts +1 -1
- package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
- package/dist/esm/components/ButtonTertiary.d.ts +1 -1
- package/dist/esm/components/Card/Card.d.ts +1 -1
- package/dist/esm/components/Card/CardButton.style.d.ts +2 -2
- package/dist/esm/components/Card/CardHeader.d.ts +1 -1
- package/dist/esm/components/Card/CardIconButton.d.ts +1 -1
- package/dist/esm/components/Card/CardLabel.d.ts +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +1 -1
- package/dist/esm/components/Card/InputCard.d.ts +1 -1
- package/dist/esm/components/ChainSelect/ChainSelect.style.d.ts +1 -1
- package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
- package/dist/esm/components/Header/Header.style.d.ts +3 -3
- package/dist/esm/components/Header/SettingsButton.style.d.ts +2 -2
- package/dist/esm/components/ListItem/ListItem.d.ts +1 -1
- package/dist/esm/components/ListItem/ListItemButton.d.ts +1 -1
- package/dist/esm/components/ListItemButton.d.ts +1 -1
- package/dist/esm/components/Messages/AccountNotDeployedMessage.d.ts +2 -0
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js +10 -0
- package/dist/esm/components/Messages/AccountNotDeployedMessage.js.map +1 -0
- package/dist/esm/components/Messages/AlertMessage.js.map +1 -0
- package/dist/esm/components/Messages/AlertMessage.style.js.map +1 -0
- package/dist/esm/components/Messages/FundsSufficiencyMessage.d.ts +2 -0
- package/dist/esm/components/{GasMessage → Messages}/FundsSufficiencyMessage.js +3 -4
- package/dist/esm/components/Messages/FundsSufficiencyMessage.js.map +1 -0
- package/dist/esm/components/Messages/GasMessage.js.map +1 -0
- package/dist/esm/components/{GasMessage → Messages}/GasRefuelMessage.js +2 -2
- package/dist/esm/components/Messages/GasRefuelMessage.js.map +1 -0
- package/dist/esm/components/{GasMessage/GasMessage.style.js → Messages/GasRefuelMessage.style.js} +1 -1
- package/dist/esm/components/Messages/GasRefuelMessage.style.js.map +1 -0
- package/dist/esm/components/{GasMessage → Messages}/GasSufficiencyMessage.d.ts +2 -1
- package/dist/esm/components/{GasMessage → Messages}/GasSufficiencyMessage.js +3 -3
- package/dist/esm/components/Messages/GasSufficiencyMessage.js.map +1 -0
- package/dist/esm/components/Messages/MainMessages.js +29 -0
- package/dist/esm/components/Messages/MainMessages.js.map +1 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.d.ts +2 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js +13 -0
- package/dist/esm/components/Messages/ToAddressRequiredMessage.js.map +1 -0
- package/dist/esm/components/Messages/types.js.map +1 -0
- package/dist/esm/components/Messages/useMessageQueue.d.ts +11 -0
- package/dist/esm/components/Messages/useMessageQueue.js +48 -0
- package/dist/esm/components/Messages/useMessageQueue.js.map +1 -0
- package/dist/esm/components/PageContainer.d.ts +1 -1
- package/dist/esm/components/PoweredBy/PoweredBy.style.d.ts +1 -1
- package/dist/esm/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
- package/dist/esm/components/Routes/RoutesExpanded.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchInput.style.d.ts +1 -1
- package/dist/esm/components/Search/SearchNotFound.style.d.ts +2 -2
- package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +3 -3
- package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
- package/dist/esm/components/SettingsListItemButton.d.ts +1 -1
- package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +4 -4
- package/dist/esm/components/StepActions/StepActions.style.d.ts +2 -2
- package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
- package/dist/esm/components/Tabs/Tabs.style.d.ts +3 -3
- package/dist/esm/components/Token/Token.style.d.ts +1 -1
- package/dist/esm/components/TokenList/TokenList.style.d.ts +2 -2
- package/dist/esm/components/TokenRate/TokenRate.style.d.ts +1 -1
- package/dist/esm/config/version.d.ts +1 -1
- package/dist/esm/config/version.js +1 -1
- package/dist/esm/hooks/useGasRefuel.js +1 -1
- package/dist/esm/hooks/useGasRefuel.js.map +1 -1
- package/dist/esm/hooks/useGasSufficiency.js +1 -1
- package/dist/esm/hooks/useGasSufficiency.js.map +1 -1
- package/dist/esm/hooks/useIsContractAddress.d.ts +4 -1
- package/dist/esm/hooks/useIsContractAddress.js +1 -2
- package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
- package/dist/esm/hooks/useToAddressRequirements.d.ts +1 -0
- package/dist/esm/hooks/useToAddressRequirements.js +11 -2
- package/dist/esm/hooks/useToAddressRequirements.js.map +1 -1
- package/dist/esm/i18n/en.json +6 -6
- package/dist/esm/pages/MainPage/MainPage.js +2 -2
- package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
- package/dist/esm/pages/MainPage/MainPage.style.d.ts +1 -1
- package/dist/esm/pages/MainPage/ReviewButton.js +3 -2
- package/dist/esm/pages/MainPage/ReviewButton.js.map +1 -1
- package/dist/esm/pages/RoutesPage/RoutesPage.style.d.ts +1 -1
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js +3 -3
- package/dist/esm/pages/SendToWallet/BookmarkAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.d.ts +0 -1
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js +6 -8
- package/dist/esm/pages/SendToWallet/ConfirmAddressSheet.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js +1 -3
- package/dist/esm/pages/SendToWallet/SendToWalletPage.js.map +1 -1
- package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +8 -8
- package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
- package/dist/esm/pages/SettingsPage/SlippageSettings/SlippageSettings.style.d.ts +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js +1 -1
- package/dist/esm/pages/TransactionPage/TransactionPage.js.map +1 -1
- package/dist/esm/utils/eip7702.d.ts +22 -0
- package/dist/esm/utils/eip7702.js +23 -0
- package/dist/esm/utils/eip7702.js.map +1 -0
- package/package.json +7 -7
- package/src/components/Messages/AccountNotDeployedMessage.tsx +22 -0
- package/src/components/{GasMessage → Messages}/FundsSufficiencyMessage.tsx +4 -4
- package/src/components/{GasMessage → Messages}/GasRefuelMessage.tsx +2 -2
- package/src/components/{GasMessage → Messages}/GasSufficiencyMessage.tsx +5 -3
- package/src/components/Messages/MainMessages.tsx +40 -0
- package/src/components/Messages/ToAddressRequiredMessage.tsx +27 -0
- package/src/components/Messages/useMessageQueue.ts +63 -0
- package/src/config/version.ts +1 -1
- package/src/hooks/useGasRefuel.ts +1 -1
- package/src/hooks/useGasSufficiency.ts +1 -1
- package/src/hooks/useIsContractAddress.ts +1 -2
- package/src/hooks/useToAddressRequirements.ts +23 -5
- package/src/i18n/en.json +6 -6
- package/src/pages/MainPage/MainPage.tsx +2 -2
- package/src/pages/MainPage/ReviewButton.tsx +6 -2
- package/src/pages/SendToWallet/BookmarkAddressSheet.tsx +9 -5
- package/src/pages/SendToWallet/ConfirmAddressSheet.tsx +9 -30
- package/src/pages/SendToWallet/SendToWalletPage.tsx +0 -5
- package/src/pages/TransactionPage/TransactionPage.tsx +1 -1
- package/src/utils/eip7702.ts +23 -0
- package/dist/esm/components/AlertMessage/AlertMessage.js.map +0 -1
- package/dist/esm/components/AlertMessage/AlertMessage.style.js.map +0 -1
- package/dist/esm/components/AlertMessage/types.js.map +0 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.d.ts +0 -1
- package/dist/esm/components/GasMessage/FundsSufficiencyMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasMessage.style.js.map +0 -1
- package/dist/esm/components/GasMessage/GasRefuelMessage.js.map +0 -1
- package/dist/esm/components/GasMessage/GasSufficiencyMessage.js.map +0 -1
- package/dist/esm/components/ToAddressRequiredMessage.d.ts +0 -7
- package/dist/esm/components/ToAddressRequiredMessage.js +0 -18
- package/dist/esm/components/ToAddressRequiredMessage.js.map +0 -1
- package/dist/esm/pages/MainPage/MainMessages.js +0 -10
- package/dist/esm/pages/MainPage/MainMessages.js.map +0 -1
- package/src/components/ToAddressRequiredMessage.tsx +0 -44
- package/src/pages/MainPage/MainMessages.tsx +0 -17
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.js +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.style.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/AlertMessage.style.js +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasMessage.d.ts +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasMessage.js +0 -0
- /package/dist/esm/components/{GasMessage → Messages}/GasRefuelMessage.d.ts +0 -0
- /package/dist/esm/components/{GasMessage/GasMessage.style.d.ts → Messages/GasRefuelMessage.style.d.ts} +0 -0
- /package/dist/esm/{pages/MainPage → components/Messages}/MainMessages.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/types.d.ts +0 -0
- /package/dist/esm/components/{AlertMessage → Messages}/types.js +0 -0
- /package/src/components/{AlertMessage → Messages}/AlertMessage.style.tsx +0 -0
- /package/src/components/{AlertMessage → Messages}/AlertMessage.tsx +0 -0
- /package/src/components/{GasMessage → Messages}/GasMessage.tsx +0 -0
- /package/src/components/{GasMessage/GasMessage.style.ts → Messages/GasRefuelMessage.style.ts} +0 -0
- /package/src/components/{AlertMessage → Messages}/types.ts +0 -0
package/dist/esm/i18n/en.json
CHANGED
|
@@ -84,15 +84,13 @@
|
|
|
84
84
|
"message": {
|
|
85
85
|
"autoRefuel": "You're low on {{chainName}} gas. By continuing, you'll get enough gas to complete the transaction.",
|
|
86
86
|
"emptyActiveTransactions": "Transactions in progress will appear here. Once completed, find them in transaction history.",
|
|
87
|
-
"emptyTokenList": "We couldn't find tokens on {{chainName}} chain or you don't have any. Please search by contract address if your token doesn't appear or choose another chain.",
|
|
88
|
-
"emptyChainList": "We couldn't find any chains that match your search",
|
|
89
87
|
"emptyBridgesList": "We couldn't find any bridges that match your search",
|
|
88
|
+
"emptyChainList": "We couldn't find any chains that match your search",
|
|
90
89
|
"emptyExchangesList": "We couldn't find any exchanges that match your search",
|
|
90
|
+
"emptyTokenList": "We couldn't find tokens on {{chainName}} chain or you don't have any. Please search by contract address if your token doesn't appear or choose another chain.",
|
|
91
91
|
"emptyTransactionHistory": "Transaction history is only stored locally and will be deleted if you clear your browser data.",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"toAddressIsRequired": "Please provide the destination wallet address to which the funds will be transferred.",
|
|
95
|
-
"routeNotFound": "Reasons for that could be: low liquidity, amount selected is too low, gas costs are too high or there are no routes for the selected combination."
|
|
92
|
+
"routeNotFound": "Reasons for that could be: low liquidity, amount selected is too low, gas costs are too high or there are no routes for the selected combination.",
|
|
93
|
+
"toAddressIsRequired": "Please provide the destination wallet address to which the funds will be transferred."
|
|
96
94
|
},
|
|
97
95
|
"title": {
|
|
98
96
|
"autoRefuel": "Get {{chainName}} gas",
|
|
@@ -119,8 +117,10 @@
|
|
|
119
117
|
},
|
|
120
118
|
"warning": {
|
|
121
119
|
"message": {
|
|
120
|
+
"accountNotDeployedMessage": "Smart contract account is not deployed on the destination chain. Sending funds to a non-existent contract would result in permanent loss.",
|
|
122
121
|
"deleteActiveTransactions": "Active transactions are only stored locally and can't be recovered if you delete them.",
|
|
123
122
|
"deleteTransactionHistory": "Transaction history is only stored locally and can't be recovered if you delete it.",
|
|
123
|
+
"fundsLossPrevention": "Always ensure smart contract accounts are properly set up on the destination chain and avoid direct transfers to exchanges to prevent fund loss.",
|
|
124
124
|
"highValueLoss": "The value of the received tokens is significantly lower than the exchanged tokens and transaction cost.",
|
|
125
125
|
"insufficientFunds": "You don't have enough funds to complete the transaction.",
|
|
126
126
|
"insufficientGas": "You don't have enough gas to complete the transaction. You need to add at least:",
|
|
@@ -4,7 +4,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { ActiveTransactions } from '../../components/ActiveTransactions/ActiveTransactions.js';
|
|
5
5
|
import { AmountInput } from '../../components/AmountInput/AmountInput.js';
|
|
6
6
|
import { ContractComponent } from '../../components/ContractComponent/ContractComponent.js';
|
|
7
|
-
import { GasRefuelMessage } from '../../components/
|
|
7
|
+
import { GasRefuelMessage } from '../../components/Messages/GasRefuelMessage.js';
|
|
8
|
+
import { MainMessages } from '../../components/Messages/MainMessages.js';
|
|
8
9
|
import { PageContainer } from '../../components/PageContainer.js';
|
|
9
10
|
import { PoweredBy } from '../../components/PoweredBy/PoweredBy.js';
|
|
10
11
|
import { Routes } from '../../components/Routes/Routes.js';
|
|
@@ -15,7 +16,6 @@ import { useHeader } from '../../hooks/useHeader.js';
|
|
|
15
16
|
import { useWideVariant } from '../../hooks/useWideVariant.js';
|
|
16
17
|
import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider.js';
|
|
17
18
|
import { HiddenUI } from '../../types/widget.js';
|
|
18
|
-
import { MainMessages } from './MainMessages.js';
|
|
19
19
|
import { ReviewButton } from './ReviewButton.js';
|
|
20
20
|
export const MainPage = () => {
|
|
21
21
|
const { t } = useTranslation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainPage.js","sourceRoot":"","sources":["../../../../src/pages/MainPage/MainPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAA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,WAAW,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,EAAE,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,kBAAkB,IAAC,EAAE,EAAE,QAAQ,GAAI,EACpC,KAAC,gBAAgB,IAAC,EAAE,EAAE,CAAC,GAAI,EAC3B,KAAC,YAAY,IAAC,EAAE,EAAE,CAAC,GAAI,EACvB,MAAC,GAAG,IACF,EAAE,EAAE;oBACF,OAAO,EAAE,MAAM;oBACf,EAAE,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACzB,GAAG,EAAE,GAAG;iBACT,aAED,KAAC,YAAY,KAAG,EAChB,KAAC,wBAAwB,KAAG,IACxB,EACL,aAAa,CAAC,CAAC,CAAC,KAAC,SAAS,KAAG,CAAC,CAAC,CAAC,IAAI,IACvB,CACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
1
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -17,7 +17,7 @@ export const ReviewButton = () => {
|
|
|
17
17
|
const { subvariant, subvariantOptions } = useWidgetConfig();
|
|
18
18
|
const splitState = useSplitSubvariantStore((state) => state.state);
|
|
19
19
|
const [toAddress] = useFieldValues('toAddress');
|
|
20
|
-
const { requiredToAddress } = useToAddressRequirements();
|
|
20
|
+
const { requiredToAddress, accountNotDeployedAtDestination } = useToAddressRequirements();
|
|
21
21
|
const { routes, setReviewableRoute } = useRoutes();
|
|
22
22
|
const currentRoute = routes?.[0];
|
|
23
23
|
const handleClick = async () => {
|
|
@@ -63,6 +63,7 @@ export const ReviewButton = () => {
|
|
|
63
63
|
return t('button.exchange');
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
return (_jsx(BaseTransactionButton, { text: getButtonText(), onClick: handleClick, disabled: currentRoute && requiredToAddress && !toAddress
|
|
66
|
+
return (_jsx(BaseTransactionButton, { text: getButtonText(), onClick: handleClick, disabled: (currentRoute && requiredToAddress && !toAddress) ||
|
|
67
|
+
accountNotDeployedAtDestination }));
|
|
67
68
|
};
|
|
68
69
|
//# sourceMappingURL=ReviewButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewButton.js","sourceRoot":"","sources":["../../../../src/pages/MainPage/ReviewButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAA;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAA;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,MAAM,CAAC,MAAM,YAAY,GAAa,GAAG,EAAE;IACzC,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAC9B,MAAM,QAAQ,GAAG,WAAW,EAA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,CAAC,CAAA;gBAC7C,CAAC;YACH,CAAC;QACH,CAAC;QACD,QAAQ,UAAU,EAAE,CAAC;YACnB,KAAK,QAAQ;gBACX,OAAO,iBAAiB,EAAE,MAAM,KAAK,SAAS;oBAC5C,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC;oBACrB,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;YACrB,KAAK,QAAQ;gBACX,OAAO,CAAC,CAAC,eAAe,CAAC,CAAA;YAC3B,KAAK,OAAO;gBACV,IAAI,UAAU,EAAE,CAAC;oBACf,OAAO,CAAC,CAAC,UAAU,UAAU,EAAE,CAAC,CAAA;gBAClC,CAAC;gBACD,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAA;YAC7B;gBACE,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC,CAAA;IAED,OAAO,CACL,KAAC,qBAAqB,IACpB,IAAI,EAAE,aAAa,EAAE,EACrB,OAAO,EAAE,WAAW,EACpB,QAAQ,EACN,CAAC,YAAY,IAAI,iBAAiB,IAAI,CAAC,SAAS,CAAC;YACjD,+BAA+B,GAEjC,CACH,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent
|
|
1
|
+
export declare const Stack: import("@emotion/styled").StyledComponent<import("@mui/material").StackOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/material").StackOwnProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Error as ErrorIcon,
|
|
2
|
+
import { Error as ErrorIcon, TurnedIn, WarningRounded, } from '@mui/icons-material';
|
|
3
3
|
import { Button, Typography } from '@mui/material';
|
|
4
4
|
import { forwardRef, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { AlertMessage } from '../../components/AlertMessage/AlertMessage.js';
|
|
7
6
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js';
|
|
8
7
|
import { Input } from '../../components/Input.js';
|
|
8
|
+
import { AlertMessage } from '../../components/Messages/AlertMessage.js';
|
|
9
9
|
import { useAddressValidation } from '../../hooks/useAddressValidation.js';
|
|
10
10
|
import { useBookmarkActions } from '../../stores/bookmarks/useBookmarkActions.js';
|
|
11
11
|
import { AddressInput, BookmarkInputFields, IconContainer, SendToWalletButtonRow, SendToWalletCard, SendToWalletSheetContainer, SheetAddressContainer, SheetTitle, ValidationAlert, } from './SendToWalletPage.style.js';
|
|
@@ -110,6 +110,6 @@ export const BookmarkAddressSheet = forwardRef(({ validatedWallet, onAddBookmark
|
|
|
110
110
|
context: 'long',
|
|
111
111
|
}), "aria-label": t('sendToWallet.enterAddress', {
|
|
112
112
|
context: 'long',
|
|
113
|
-
}), maxRows: 2, inputProps: { maxLength: 128 }, multiline: true }) })), error ? (_jsx(ValidationAlert, { icon: _jsx(ErrorIcon, {}), children: error.message })) : null] }), _jsx(AlertMessage, { title: _jsx(Typography, { variant: "body2", children: t('
|
|
113
|
+
}), maxRows: 2, inputProps: { maxLength: 128 }, multiline: true }) })), error ? (_jsx(ValidationAlert, { icon: _jsx(ErrorIcon, {}), children: error.message })) : null] }), _jsx(AlertMessage, { title: _jsx(Typography, { variant: "body2", sx: { color: 'text.primary' }, children: t('warning.message.fundsLossPrevention') }), icon: _jsx(WarningRounded, {}) }), _jsxs(SendToWalletButtonRow, { children: [_jsx(Button, { variant: "text", onClick: handleCancel, fullWidth: true, children: t('button.cancel') }), _jsx(Button, { variant: "contained", onClick: handleBookmark, loading: isValidating, loadingPosition: "center", fullWidth: true, focusRipple: true, children: t('button.bookmark') })] })] }) }));
|
|
114
114
|
});
|
|
115
115
|
//# sourceMappingURL=BookmarkAddressSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarkAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/BookmarkAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BookmarkAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/BookmarkAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,QAAQ,EACR,cAAc,GACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AAEzE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AACjF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,qBAAqB,EACrB,UAAU,EACV,eAAe,GAChB,MAAM,6BAA6B,CAAA;AAQpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAG5C,CAAC,EAAE,eAAe,EAAE,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5C,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAC9B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,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EAAE,KAAK,EAAE,cAAc,EAAE,YACtD,CAAC,CAAC,qCAAqC,CAAC,GAC9B,EAEf,IAAI,EAAE,KAAC,cAAc,KAAG,GACxB,EACF,MAAC,qBAAqB,eACpB,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,kBACpD,CAAC,CAAC,eAAe,CAAC,GACZ,EACT,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,YAAY,EACrB,eAAe,EAAC,QAAQ,EACxB,SAAS,QACT,WAAW,kBAEV,CAAC,CAAC,iBAAiB,CAAC,GACd,IACa,IACG,GACjB,CACf,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -3,7 +3,6 @@ import type { Bookmark } from '../../stores/bookmarks/types.js';
|
|
|
3
3
|
interface ConfirmAddressSheetProps {
|
|
4
4
|
onConfirm: (wallet: Bookmark) => void;
|
|
5
5
|
validatedBookmark?: Bookmark;
|
|
6
|
-
chainId?: number;
|
|
7
6
|
}
|
|
8
7
|
export declare const ConfirmAddressSheet: import("react").ForwardRefExoticComponent<ConfirmAddressSheetProps & import("react").RefAttributes<BottomSheetBase>>;
|
|
9
8
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Wallet, WarningRounded } from '@mui/icons-material';
|
|
3
|
+
import { Button, Typography } from '@mui/material';
|
|
4
4
|
import { forwardRef, useRef } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { AlertMessage } from '../../components/AlertMessage/AlertMessage.js';
|
|
7
6
|
import { BottomSheet } from '../../components/BottomSheet/BottomSheet.js';
|
|
8
|
-
import {
|
|
7
|
+
import { AlertMessage } from '../../components/Messages/AlertMessage.js';
|
|
9
8
|
import { useNavigateBack } from '../../hooks/useNavigateBack.js';
|
|
10
9
|
import { useSetContentHeight } from '../../hooks/useSetContentHeight.js';
|
|
11
10
|
import { useFieldActions } from '../../stores/form/useFieldActions.js';
|
|
@@ -18,14 +17,13 @@ export const ConfirmAddressSheet = forwardRef((props, ref) => {
|
|
|
18
17
|
};
|
|
19
18
|
return (_jsx(BottomSheet, { ref: ref, children: _jsx(ConfirmAddressSheetContent, { ...props, onClose: handleClose }) }));
|
|
20
19
|
});
|
|
21
|
-
const ConfirmAddressSheetContent = ({ validatedBookmark, onConfirm,
|
|
20
|
+
const ConfirmAddressSheetContent = ({ validatedBookmark, onConfirm, onClose, }) => {
|
|
22
21
|
const { t } = useTranslation();
|
|
23
22
|
const { navigateBack } = useNavigateBack();
|
|
24
23
|
const { setFieldValue } = useFieldActions();
|
|
25
24
|
const { setSendToWallet } = useSendToWalletActions();
|
|
26
|
-
const isContractAddress = useIsContractAddress(validatedBookmark?.address, chainId, validatedBookmark?.chainType);
|
|
27
25
|
const containerRef = useRef(null);
|
|
28
|
-
useSetContentHeight(containerRef
|
|
26
|
+
useSetContentHeight(containerRef);
|
|
29
27
|
const handleConfirm = () => {
|
|
30
28
|
if (validatedBookmark) {
|
|
31
29
|
setFieldValue('toAddress', validatedBookmark.address, {
|
|
@@ -41,6 +39,6 @@ const ConfirmAddressSheetContent = ({ validatedBookmark, onConfirm, chainId, onC
|
|
|
41
39
|
return (_jsxs(SendToWalletSheetContainer, { ref: containerRef, children: [_jsx(IconContainer, { children: _jsx(Wallet, { sx: { fontSize: 40 } }) }), _jsx(SheetTitle, { children: t('sendToWallet.confirmWalletAddress') }), _jsxs(SheetAddressContainer, { children: [validatedBookmark?.name ? (_jsx(Typography, { sx: {
|
|
42
40
|
fontWeight: 600,
|
|
43
41
|
mb: 0.5,
|
|
44
|
-
}, children: validatedBookmark?.name })) : null, _jsx(Typography, { children: validatedBookmark?.address })] }), _jsx(AlertMessage, {
|
|
42
|
+
}, children: validatedBookmark?.name })) : null, _jsx(Typography, { children: validatedBookmark?.address })] }), _jsx(AlertMessage, { severity: "warning", title: _jsx(Typography, { variant: "body2", sx: { color: 'text.primary' }, children: t('warning.message.fundsLossPrevention') }), icon: _jsx(WarningRounded, {}), multiline: true }), _jsxs(SendToWalletButtonRow, { children: [_jsx(Button, { variant: "text", onClick: onClose, fullWidth: true, children: t('button.cancel') }), _jsx(Button, { variant: "contained", onClick: handleConfirm, fullWidth: true, children: t('button.confirm') })] })] }));
|
|
45
43
|
};
|
|
46
44
|
//# sourceMappingURL=ConfirmAddressSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/ConfirmAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ConfirmAddressSheet.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/ConfirmAddressSheet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAA;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,UAAU,GACX,MAAM,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AAE,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAI,GAClB,EAChB,KAAC,UAAU,cAAE,CAAC,CAAC,mCAAmC,CAAC,GAAc,EACjE,MAAC,qBAAqB,eACnB,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,CACzB,KAAC,UAAU,IACT,EAAE,EAAE;4BACF,UAAU,EAAE,GAAG;4BACf,EAAE,EAAE,GAAG;yBACR,YAEA,iBAAiB,EAAE,IAAI,GACb,CACd,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,UAAU,cAAE,iBAAiB,EAAE,OAAO,GAAc,IAC/B,EACxB,KAAC,YAAY,IACX,QAAQ,EAAC,SAAS,EAClB,KAAK,EACH,KAAC,UAAU,IAAC,OAAO,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,YACtD,CAAC,CAAC,qCAAqC,CAAC,GAC9B,EAEf,IAAI,EAAE,KAAC,cAAc,KAAG,EACxB,SAAS,SACT,EACF,MAAC,qBAAqB,eACpB,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,kBAC/C,CAAC,CAAC,eAAe,CAAC,GACZ,EACT,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,aAAa,EAAE,SAAS,kBAC1D,CAAC,CAAC,gBAAgB,CAAC,GACb,IACa,IACG,CAC9B,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ChainType } from '@lifi/sdk';
|
|
3
2
|
import { useAccount } from '@lifi/wallet-management';
|
|
4
3
|
import { Error as ErrorIcon, History, TurnedIn, Wallet, } from '@mui/icons-material';
|
|
5
4
|
import { Box, Tooltip, Typography } from '@mui/material';
|
|
@@ -41,7 +40,6 @@ export const SendToWalletPage = () => {
|
|
|
41
40
|
const { variant } = useWidgetConfig();
|
|
42
41
|
const { accounts } = useAccount();
|
|
43
42
|
const connectedWallets = accounts.filter((account) => account.isConnected);
|
|
44
|
-
const connectedEVMChainId = connectedWallets.find((account) => account.chainType === ChainType.EVM)?.chainId;
|
|
45
43
|
useHeader(t('header.sendToWallet'));
|
|
46
44
|
const handleInputChange = (e) => {
|
|
47
45
|
if (errorMessage) {
|
|
@@ -144,7 +142,7 @@ export const SendToWalletPage = () => {
|
|
|
144
142
|
});
|
|
145
143
|
return (_jsxs(FullHeightAdjustablePageContainer, { bottomGutters: true, enableFullHeight: variant !== 'drawer', children: [_jsxs(SendToWalletCard, { type: errorMessage ? 'error' : 'default', sx: {
|
|
146
144
|
marginBottom: 6,
|
|
147
|
-
}, children: [_jsx(AddressInput, { size: "small", autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: "false", onChange: handleInputChange, value: inputAddressValue, placeholder: placeholder, "aria-label": placeholder, maxRows: 2, inputProps: { maxLength: 128 }, multiline: true }), errorMessage ? (_jsx(ValidationAlert, { icon: _jsx(ErrorIcon, {}), sx: { pb: 2, paddingX: 2 }, children: errorMessage })) : null, _jsxs(SendToWalletButtonRow, { sx: { paddingX: 2, paddingBottom: 2 }, children: [_jsx(ButtonTertiary, { variant: "text", onClick: handleDone, loading: isDoneButtonLoading, loadingPosition: "center", sx: { flexGrow: 1 }, children: t('button.done') }), _jsx(Tooltip, { title: t('button.bookmark'), children: _jsx(SendToWalletIconButton, { onClick: handleBookmarkAddress, loading: isBookmarkButtonLoading, loadingPosition: "center", children: _jsx(TurnedIn, { fontSize: "small" }) }) })] }), _jsx(ConfirmAddressSheet, { ref: confirmAddressSheetRef, validatedBookmark: validatedWallet, onConfirm: handleOnConfirm
|
|
145
|
+
}, children: [_jsx(AddressInput, { size: "small", autoComplete: "off", autoCorrect: "off", autoCapitalize: "off", spellCheck: "false", onChange: handleInputChange, value: inputAddressValue, placeholder: placeholder, "aria-label": placeholder, maxRows: 2, inputProps: { maxLength: 128 }, multiline: true }), errorMessage ? (_jsx(ValidationAlert, { icon: _jsx(ErrorIcon, {}), sx: { pb: 2, paddingX: 2 }, children: errorMessage })) : null, _jsxs(SendToWalletButtonRow, { sx: { paddingX: 2, paddingBottom: 2 }, children: [_jsx(ButtonTertiary, { variant: "text", onClick: handleDone, loading: isDoneButtonLoading, loadingPosition: "center", sx: { flexGrow: 1 }, children: t('button.done') }), _jsx(Tooltip, { title: t('button.bookmark'), children: _jsx(SendToWalletIconButton, { onClick: handleBookmarkAddress, loading: isBookmarkButtonLoading, loadingPosition: "center", children: _jsx(TurnedIn, { fontSize: "small" }) }) })] }), _jsx(ConfirmAddressSheet, { ref: confirmAddressSheetRef, validatedBookmark: validatedWallet, onConfirm: handleOnConfirm }), _jsx(BookmarkAddressSheet, { ref: bookmarkAddressSheetRef, validatedWallet: validatedWallet, onAddBookmark: handleAddBookmark })] }), _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 1 }, children: [_jsx(CardButton, { title: t('header.recentWallets'), icon: _jsx(History, {}), onClick: handleRecentWalletsClick, children: !!recentWallets.length && (_jsx(Typography, { sx: {
|
|
148
146
|
color: 'text.secondary',
|
|
149
147
|
}, children: recentWallets.length })) }), _jsx(CardButton, { title: t('sendToWallet.connectedWallets'), icon: _jsx(Wallet, {}), onClick: handleConnectedWalletsClick, children: !!connectedWallets.length && (_jsx(Typography, { sx: {
|
|
150
148
|
color: 'text.secondary',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendToWalletPage.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/SendToWalletPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SendToWalletPage.js","sourceRoot":"","sources":["../../../../src/pages/SendToWallet/SendToWalletPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EACL,KAAK,IAAI,SAAS,EAClB,OAAO,EACP,QAAQ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AG,EAAE,CAAC,EAAE,aAC3D,KAAC,UAAU,IACT,KAAK,EAAE,CAAC,CAAC,sBAAsB,CAAC,EAChC,IAAI,EAAE,KAAC,OAAO,KAAG,EACjB,OAAO,EAAE,wBAAwB,YAEhC,CAAC,CAAC,aAAa,CAAC,MAAM,IAAI,CACzB,KAAC,UAAU,IACT,EAAE,EAAE;gCACF,KAAK,EAAE,gBAAgB;6BACxB,YAEA,aAAa,CAAC,MAAM,GACV,CACd,GACU,EACb,KAAC,UAAU,IACT,KAAK,EAAE,CAAC,CAAC,+BAA+B,CAAC,EACzC,IAAI,EAAE,KAAC,MAAM,KAAG,EAChB,OAAO,EAAE,2BAA2B,YAEnC,CAAC,CAAC,gBAAgB,CAAC,MAAM,IAAI,CAC5B,KAAC,UAAU,IACT,EAAE,EAAE;gCACF,KAAK,EAAE,gBAAgB;6BACxB,YAEA,gBAAgB,CAAC,MAAM,GACb,CACd,GACU,EACb,KAAC,UAAU,IACT,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EACpC,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,OAAO,EAAE,4BAA4B,YAEpC,CAAC,CAAC,SAAS,CAAC,MAAM,IAAI,CACrB,KAAC,UAAU,IACT,EAAE,EAAE;gCACF,KAAK,EAAE,gBAAgB;6BACxB,YAEA,SAAS,CAAC,MAAM,GACN,CACd,GACU,IACT,IAC4B,CACrC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { PageContainerProps } from '../../components/PageContainer.js';
|
|
2
2
|
export declare const AddressInput: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
3
|
export declare const BookmarkInputFields: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
-
export declare const SendToWalletPageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
4
|
+
export declare const SendToWalletPageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps, {}, {}>;
|
|
5
5
|
interface FullHeightAdjustablePageContainerProps extends PageContainerProps {
|
|
6
6
|
enableFullHeight?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const FullHeightAdjustablePageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent
|
|
9
|
-
export declare const SendToWalletCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent
|
|
8
|
+
export declare const FullHeightAdjustablePageContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "fixed" | "maxWidth" | "children" | "sx" | "style" | "className" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & PageContainerProps & FullHeightAdjustablePageContainerProps, {}, {}>;
|
|
9
|
+
export declare const SendToWalletCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "classes" | "variant" | "elevation" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../../components/Card/Card.js").CardProps, "title" | "theme" | "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "type" | "classes" | "variant" | "elevation" | "component" | "square" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
10
|
export declare const SendToWalletSheetContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
11
|
export declare const SendToWalletButtonRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
12
|
-
export declare const SendToWalletIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
12
|
+
export declare const SendToWalletIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "variant" | "href" | "action" | "size" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
13
|
export declare const IconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
14
|
-
export declare const SheetTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent
|
|
14
|
+
export declare const SheetTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "children" | "sx" | "style" | "className" | "classes" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
15
15
|
export declare const SheetAddressContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
-
export declare const ListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent
|
|
17
|
-
export declare const BookmarksListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent
|
|
16
|
+
export declare const ListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "children" | "sx" | "style" | "className" | "classes" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
|
+
export declare const BookmarksListContainer: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "children" | "sx" | "style" | "className" | "classes" | "dense" | "disablePadding" | "subheader"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
18
|
export declare const BookmarkButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
19
19
|
export declare const EmptyContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
20
|
export declare const ValidationAlert: import("@emotion/styled").StyledComponent<import("@mui/material").AlertProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
21
|
-
export declare const OptionsMenuButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
21
|
+
export declare const OptionsMenuButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "action" | "size" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loading" | "loadingIndicator" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
22
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const SettingsList: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
|
-
export declare const Badge: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent
|
|
2
|
+
export declare const Badge: import("@emotion/styled").StyledComponent<import("@mui/material").BadgeOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "max" | "color" | "children" | "sx" | "style" | "className" | "classes" | "variant" | "slots" | "slotProps" | "componentsProps" | "anchorOrigin" | "badgeContent" | "components" | "invisible" | "overlap" | "showZero"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -3,7 +3,7 @@ export declare const SettingsFieldSet: import("@emotion/styled").StyledComponent
|
|
|
3
3
|
interface SlippageDefaultProps {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const SlippageDefaultButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent
|
|
6
|
+
export declare const SlippageDefaultButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonBaseOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "sx" | "style" | "className" | "tabIndex" | "classes" | "action" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/system").MUIStyledCommonProps<Theme> & SlippageDefaultProps, {}, {}>;
|
|
7
7
|
export declare const SlippageCustomInput: import("@emotion/styled").StyledComponent<import("@mui/material").InputBaseProps & import("@mui/system").MUIStyledCommonProps<Theme> & SlippageDefaultProps, {}, {}>;
|
|
8
8
|
export declare const SlippageLimitsWarningContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
9
9
|
export {};
|
|
@@ -5,7 +5,7 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { useLocation } from 'react-router-dom';
|
|
7
7
|
import { ContractComponent } from '../../components/ContractComponent/ContractComponent.js';
|
|
8
|
-
import { GasMessage } from '../../components/
|
|
8
|
+
import { GasMessage } from '../../components/Messages/GasMessage.js';
|
|
9
9
|
import { PageContainer } from '../../components/PageContainer.js';
|
|
10
10
|
import { getStepList } from '../../components/Step/StepList.js';
|
|
11
11
|
import { TransactionDetails } from '../../components/TransactionDetails.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionPage.js","sourceRoot":"","sources":["../../../../src/pages/TransactionPage/TransactionPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,UAA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AG,IACF,EAAE,EAAE;4BACF,EAAE,EAAE,CAAC;4BACL,OAAO,EAAE,MAAM;yBAChB,aAED,KAAC,sBAAsB,IACrB,IAAI,EAAE,aAAa,EAAE,EACrB,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,eAAe,GACxB,EACD,MAAM,KAAK,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CACxC,KAAC,OAAO,IACN,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EACpC,SAAS,EAAC,YAAY,YAEtB,KAAC,MAAM,IACL,OAAO,EAAE,iBAAiB,EAC1B,EAAE,EAAE;wCACF,QAAQ,EAAE,EAAE;wCACZ,UAAU,EAAE,CAAC;qCACd,YAED,KAAC,MAAM,KAAG,GACH,GACD,CACX,CAAC,CAAC,CAAC,IAAI,IACJ,IACL,CACJ,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,CAAC,CAAC,KAAC,iBAAiB,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACnE,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CACzB,KAAC,qBAAqB,IACpB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,wBAAwB,EAC7B,UAAU,EAAE,kBAAkB,GAC9B,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,uBAAuB,IAAC,GAAG,EAAE,0BAA0B,GAAI,IAC9C,CACjB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
3
|
+
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
4
|
+
*
|
|
5
|
+
* When an EOA has this code, it means:
|
|
6
|
+
* - The EOA can still send transactions (unlike other contract accounts)
|
|
7
|
+
* - All contract calls are delegated to the target address
|
|
8
|
+
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
9
|
+
*
|
|
10
|
+
* Delegation Designator Structure:
|
|
11
|
+
*
|
|
12
|
+
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
13
|
+
* │ │ │ │
|
|
14
|
+
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
15
|
+
* │ │ └───────────────────────────────────────┘
|
|
16
|
+
* │ │ Target Address
|
|
17
|
+
* │ └── 7702
|
|
18
|
+
* └── 3541
|
|
19
|
+
*
|
|
20
|
+
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
21
|
+
*/
|
|
22
|
+
export declare const isDelegationDesignatorCode: (code?: string) => boolean | undefined;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-7702 introduces delegation designators that allow EOAs to delegate execution to other contracts.
|
|
3
|
+
* A delegation designator starts with 0xef0100 followed by the target contract address.
|
|
4
|
+
*
|
|
5
|
+
* When an EOA has this code, it means:
|
|
6
|
+
* - The EOA can still send transactions (unlike other contract accounts)
|
|
7
|
+
* - All contract calls are delegated to the target address
|
|
8
|
+
* - The code itself remains as the delegation designator (0xef0100 || address)
|
|
9
|
+
*
|
|
10
|
+
* Delegation Designator Structure:
|
|
11
|
+
*
|
|
12
|
+
* ─────┬───┬──┬───────────────────────────────────────┐
|
|
13
|
+
* │ │ │ │
|
|
14
|
+
* 0x ef 0100 a94f5374fce5edbc8e2a8697c15331677e6ebf0b
|
|
15
|
+
* │ │ └───────────────────────────────────────┘
|
|
16
|
+
* │ │ Target Address
|
|
17
|
+
* │ └── 7702
|
|
18
|
+
* └── 3541
|
|
19
|
+
*
|
|
20
|
+
* @see https://eips.ethereum.org/EIPS/eip-7702
|
|
21
|
+
*/
|
|
22
|
+
export const isDelegationDesignatorCode = (code) => code?.startsWith('0xef0100');
|
|
23
|
+
//# sourceMappingURL=eip7702.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eip7702.js","sourceRoot":"","sources":["../../../src/utils/eip7702.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,IAAa,EAAE,EAAE,CAC1D,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.1",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"@emotion/styled": "^11.14.0",
|
|
37
37
|
"@lifi/sdk": "^3.5.2",
|
|
38
38
|
"@mui/icons-material": "6.0.2",
|
|
39
|
-
"@mui/material": "^6.4.
|
|
40
|
-
"@mui/system": "^6.4.
|
|
39
|
+
"@mui/material": "^6.4.2",
|
|
40
|
+
"@mui/system": "^6.4.2",
|
|
41
41
|
"@solana/wallet-adapter-base": "^0.9.23",
|
|
42
42
|
"@solana/web3.js": "^1.98.0",
|
|
43
|
-
"@tanstack/react-virtual": "^3.11.
|
|
44
|
-
"i18next": "^24.2.
|
|
43
|
+
"@tanstack/react-virtual": "^3.11.3",
|
|
44
|
+
"i18next": "^24.2.2",
|
|
45
45
|
"microdiff": "^1.5.0",
|
|
46
46
|
"mitt": "^3.0.1",
|
|
47
47
|
"react-i18next": "^15.4.0",
|
|
48
48
|
"react-intersection-observer": "^9.15.1",
|
|
49
49
|
"react-router-dom": "^6.28.0",
|
|
50
|
-
"viem": "^2.22.
|
|
50
|
+
"viem": "^2.22.17",
|
|
51
51
|
"zustand": "^5.0.3",
|
|
52
|
-
"@lifi/wallet-management": "^3.6.
|
|
52
|
+
"@lifi/wallet-management": "^3.6.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@bigmi/react": ">=0.1.0",
|