types
The submodule is a part of monorepo Dexknot.
Contains types used in different applications.
Install
- yarn
yarn add --dev @dexknot/types
or
- npm
npm install --dev @dexknot/types
Importing
Individual components can be imported:
import {
//Interfaces
AllowanceParams,
BuildApproveTxParams,
ExtendedPaletteOptions,
ExtendedTypographyOptions,
IProtocol,
ITxStatus,
IUserTokenInfo,
NetworkError,
QuoteInfo,
Route,
SwapInfo,
Token,
Tokens,
UpdateQuoteParams,
WidgetColors,
//Types
AdvancedSettings,
AllowanceParamsWithSpender,
CustomGasPriceSettings,
DefaultRpcJsonEndpoint,
DefaultTokenOptions,
DefaultTypedValueOptions,
FieldErrorState,
GasOption,
GasOptions,
NetworkConfig,
NetworkListBtnType,
ReferrerOptions,
RouteItem,
Routes,
TxBuilder,
UsdStablecoins,
//Enums
ApproveStatus,
FailedReasonType,
Field,
ProtocolName,
SupportedChainId,
SupportedChainIdInHex,
SupportedGasOptions,
SupportedWallets,
TxStatusType,
} from '@dexknot/types';