UNPKG

@skalenetwork/metaport

Version:

SKALE Metaport Widget

143 lines (142 loc) 4.75 kB
/** * @license * SKALE Metaport * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * @file constants.ts * @copyright SKALE Labs 2022-Present */ export declare const MAINNET_CHAIN_NAME = "mainnet"; export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; export declare const M2S_POSTFIX = "m2s"; export declare const S2M_POSTFIX = "s2m"; export declare const S2S_POSTFIX = "s2s"; export declare const WRAP_ACTION = "wrap"; export declare const UNWRAP_ACTION = "unwrap"; export declare const ICONS_BASE_URL = "https://raw.githubusercontent.com/spothq/cryptocurrency-icons/master/128/color/"; export declare const MAX_NUMBER: bigint; export declare const MAX_APPROVE_AMOUNT = "115792089237316195423570985008687907853269984665640564039457584007913129639935"; export declare const DEFAULT_MIN_SFUEL_WEI = 21000000000000n; export declare const DEFAULT_ERC20_DECIMALS = "18"; export declare const DEFAULT_ERROR_MSG = "Ooops... Something went wrong..."; export declare const TRANSFER_ERROR_MSG = "Error during the transfer"; export declare const DEFAULT_MP_MARGIN = "20pt"; export declare const DEFAULT_MP_Z_INDEX = 99000; export declare const HTTPS_PREFIX = "https://"; export declare const MAINNET_EXPLORER_URLS: { [skaleNetwork: string]: string; }; export declare const BASE_EXPLORER_URLS: { [skaleNetwork: string]: string; }; export declare const MAINNET_WS_ENDPOINTS: { [skaleNetwork: string]: string; }; export declare const IMA_M2S_WAIT = 5; export declare const IMA_S2S_WAIT = 2; export declare const IMA_HUB_WAIT = 5; export declare const DEFAULT_FAUCET_URL = "https://sfuel.skale.network/"; export declare const SFUEL_CHECKS_INTERVAL = 8; export declare const SFUEL_TEXT: { sfuel: { warning: string; error: string; }; gas: { warning: string; error: string; }; }; export declare const ZERO_FUNCSIG = "0x00000000"; export declare const FAUCET_DATA: { mainnet: { "honorable-steel-rasalhague": { address: string; func: string; }; "affectionate-immediate-pollux": { address: string; func: string; }; "elated-tan-skat": { address: string; func: string; }; "turbulent-unique-scheat": { address: string; func: string; }; "parallel-stormy-spica": { address: string; func: string; }; "wan-red-ain": { address: string; func: string; }; "green-giddy-denebola": { address: string; func: string; }; }; staging: { "staging-perfect-parallel-gacrux": { address: string; func: string; }; "staging-severe-violet-wezen": { address: string; func: string; }; "staging-legal-crazy-castor": { address: string; func: string; }; "staging-utter-unripe-menkar": { address: string; func: string; }; "staging-faint-slimy-achird": { address: string; func: string; }; "staging-fast-active-bellatrix": { address: string; func: string; }; }; legacy: { "skale-innocent-nasty": { address: string; func: string; }; "international-villainous-zaurak": { address: string; func: string; }; }; regression: any; }; export declare const RECHARGE_MULTIPLIER = 1.2; export declare const MINIMUM_RECHARGE_AMOUNT = 0.005; export declare const COMMUNITY_POOL_WITHDRAW_GAS_LIMIT = 150000n; export declare const _BALANCE_UPDATE_INTERVAL_SECONDS = 10; export declare const BALANCE_UPDATE_INTERVAL_MS: number; export declare const SFUEL_RESERVE_AMOUNT = 0.01; export declare const SUCCESS_EMOJIS: string[]; export declare const GRAY_BG = "rgb(136 135 135 / 15%)"; export declare const DEFAULT_SLEEP = 6000; export declare const DEFAULT_ITERATIONS = 60;