@parifi/synthetix-sdk-ts
Version:
A Typescript SDK for interactions with the Synthetix protocol
48 lines • 1.01 kB
JavaScript
// src/constants/common.ts
import { zeroAddress } from "viem";
var ZERO_ADDRESS = 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
}
};
export {
CUSTOM_DECIMALS,
DEFAULT_LOGGER_LEVEL,
DISABLED_MARKETS,
MAX_ERC7412_RETRIES,
SIG_ERRORS,
SIG_FEE_REQUIRED,
SIG_ORACLE_DATA_REQUIRED,
ZERO_ADDRESS,
publicRpcEndpoints
};
//# sourceMappingURL=common.mjs.map