@parifi/sdk
Version:
Parifi SDK with common utility functions
62 lines (61 loc) • 2.34 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/interfaces/subgraphTypes.ts
var subgraphTypes_exports = {};
__export(subgraphTypes_exports, {
OrderStatus: () => OrderStatus,
OrderType: () => OrderType,
PositionStatus: () => PositionStatus,
SnxAccountType: () => SnxAccountType
});
module.exports = __toCommonJS(subgraphTypes_exports);
var OrderType = /* @__PURE__ */ ((OrderType2) => {
OrderType2["OPEN_NEW_POSITION"] = "OPEN_NEW_POSITION";
OrderType2["CLOSE_POSITION"] = "CLOSE_POSITION";
OrderType2["INCREASE_POSITION"] = "INCREASE_POSITION";
OrderType2["DECREASE_POSITION"] = "DECREASE_POSITION";
OrderType2["CANCEL_ORDER"] = "CANCEL_ORDER";
return OrderType2;
})(OrderType || {});
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
OrderStatus2["PENDING"] = "PENDING";
OrderStatus2["CANCELLED"] = "CANCELLED";
OrderStatus2["SETTLED"] = "SETTLED";
OrderStatus2["INVALID"] = "INVALID";
return OrderStatus2;
})(OrderStatus || {});
var PositionStatus = /* @__PURE__ */ ((PositionStatus2) => {
PositionStatus2["OPEN"] = "OPEN";
PositionStatus2["CLOSED"] = "CLOSED";
PositionStatus2["LIQUIDATED"] = "LIQUIDATED";
return PositionStatus2;
})(PositionStatus || {});
var SnxAccountType = /* @__PURE__ */ ((SnxAccountType2) => {
SnxAccountType2["CORE"] = "CORE";
SnxAccountType2["PERP"] = "PERP";
return SnxAccountType2;
})(SnxAccountType || {});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
OrderStatus,
OrderType,
PositionStatus,
SnxAccountType
});
//# sourceMappingURL=subgraphTypes.js.map