UNPKG

@parifi/synthetix-sdk-ts

Version:

A Typescript SDK for interactions with the Synthetix protocol

81 lines (80 loc) 2.41 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/constants/common.ts var common_exports = {}; __export(common_exports, { CUSTOM_DECIMALS: () => CUSTOM_DECIMALS, DEFAULT_LOGGER_LEVEL: () => DEFAULT_LOGGER_LEVEL, DISABLED_MARKETS: () => DISABLED_MARKETS, MAX_ERC7412_RETRIES: () => MAX_ERC7412_RETRIES, SIG_ERRORS: () => SIG_ERRORS, SIG_FEE_REQUIRED: () => SIG_FEE_REQUIRED, SIG_ORACLE_DATA_REQUIRED: () => SIG_ORACLE_DATA_REQUIRED, ZERO_ADDRESS: () => ZERO_ADDRESS, publicRpcEndpoints: () => publicRpcEndpoints }); module.exports = __toCommonJS(common_exports); var import_viem = require("viem"); var ZERO_ADDRESS = import_viem.zeroAddress; var SIG_ORACLE_DATA_REQUIRED = "0xcf2cabdf"; var SIG_FEE_REQUIRED = "0x0e7186fb"; var SIG_ERRORS = "0x0b42fd17"; var MAX_ERC7412_RETRIES = 80; var DISABLED_MARKETS = { 84532: [3, 6300], 8453: [6300] }; var publicRpcEndpoints = { 8453: "https://base.llamarpc.com", 84532: "https://sepolia.base.org", 42161: "https://arbitrum.llamarpc.com", 421614: "https://sepolia-rollup.arbitrum.io/rpc" }; var DEFAULT_LOGGER_LEVEL = 4; var CUSTOM_DECIMALS = { [421614 /* ARBITUM_SEPOLIA */]: { 2: 6, USDC: 6 }, [42161 /* ARBITRUM */]: { 2: 6, USDC: 6 }, [84532 /* BASE_SEPOLIA */]: { 1: 6, USDC: 6 }, [8453 /* BASE */]: { 1: 6, USDC: 6 } }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { CUSTOM_DECIMALS, DEFAULT_LOGGER_LEVEL, DISABLED_MARKETS, MAX_ERC7412_RETRIES, SIG_ERRORS, SIG_FEE_REQUIRED, SIG_ORACLE_DATA_REQUIRED, ZERO_ADDRESS, publicRpcEndpoints }); //# sourceMappingURL=common.js.map