doloresqui
Version:
71 lines (61 loc) • 2.04 kB
text/typescript
import { constants } from "@socket.tech/ll-core";
export * from "./time";
// API-KEY needed for calling socket apis.
export const SOCKET_API_KEY = process.env.REACT_APP_SOCKET_API_KEY;
// SOCKET API URL
export const SOCKET_API = process.env.REACT_APP_SOCKET_API;
// Socket uses this address for native tokens. For example -> ETH on Ethereum, MATIC on Polygon, etc.
export const NATIVE_TOKEN_ADDRESS =
"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
// Types of Txs possible in a route.
export enum UserTxType {
FUND_MOVR = "fund-movr",
DEX_SWAP = "dex-swap",
APPROVE = "approve",
CLAIM = "claim",
SIGN = "sign",
}
// Labels for the tx types.
export const USER_TX_LABELS = {
[]: "Approve",
[]: "Bridge",
[]: "Swap",
[]: "Claim",
[]: "Sign",
};
// Display Names for bridges.
export const BRIDGE_DISPLAY_NAMES = {
[]: "Polygon",
[]: "Hop",
[]: "Across",
[]: "Hyphen",
[]: "Refuel",
[]: "Multichain",
[]: "Celer",
[]: "Arbitrum",
[]: "Optimism",
};
// Status of the prepare API.
export enum PrepareTxStatus {
COMPLETED = 'completed',
PENDING = 'pending',
READY = 'ready',
}
export enum QuoteStatus {
FETCHING_QUOTE = 'Fetching best quote...',
NO_ROUTES_AVAILABLE = 'No routes available',
ENTER_AMOUNT = 'Enter amount',
}
export enum ButtonTexts {
NOT_ENOUGH_NATIVE_BALANCE = "Native token not enough",
NOT_ENOUGH_BALANCE = 'Not enough balance',
REVIEW_QUOTE = 'Review Quote',
CHECKING_APPROVAL = 'Checking approval',
APPROVING = 'Approving',
APPROVE = 'Approve',
APPROVAL_DONE = 'Approved',
BRIDGE_IN_PROGRESS = 'Bridging in progress',
INITIATING = 'Initiating...',
IN_PROGRESS = 'In progress',
REFETCHING = 'Refetching...'
}