@parifi/synthetix-sdk-ts
Version:
A Typescript SDK for interactions with the Synthetix protocol
46 lines (45 loc) • 1.7 kB
JavaScript
;
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/protocol.ts
var protocol_exports = {};
__export(protocol_exports, {
DEFAULT_DECIMALS: () => DEFAULT_DECIMALS,
DEFAULT_GAS_MULTIPLIER: () => DEFAULT_GAS_MULTIPLIER,
DEFAULT_NETWORK_ID: () => DEFAULT_NETWORK_ID,
DEFAULT_PYTH_TIMEOUT: () => DEFAULT_PYTH_TIMEOUT,
DEFAULT_SLIPPAGE: () => DEFAULT_SLIPPAGE,
PUBLIC_PYTH_ENDPOINT: () => PUBLIC_PYTH_ENDPOINT
});
module.exports = __toCommonJS(protocol_exports);
var DEFAULT_NETWORK_ID = 8453;
var DEFAULT_DECIMALS = 18;
var DEFAULT_SLIPPAGE = 2;
var DEFAULT_GAS_MULTIPLIER = 2;
var PUBLIC_PYTH_ENDPOINT = "https://hermes.pyth.network";
var DEFAULT_PYTH_TIMEOUT = 15e3;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
DEFAULT_DECIMALS,
DEFAULT_GAS_MULTIPLIER,
DEFAULT_NETWORK_ID,
DEFAULT_PYTH_TIMEOUT,
DEFAULT_SLIPPAGE,
PUBLIC_PYTH_ENDPOINT
});
//# sourceMappingURL=protocol.js.map