olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
145 lines • 7.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var FundType;
(function (FundType) {
FundType[FundType["Index"] = 0] = "Index";
FundType[FundType["Fund"] = 1] = "Fund";
FundType[FundType["Future"] = 2] = "Future";
FundType[FundType["BinaryFuture"] = 3] = "BinaryFuture";
})(FundType = exports.FundType || (exports.FundType = {}));
var DerivativeStatus;
(function (DerivativeStatus) {
DerivativeStatus[DerivativeStatus["New"] = 0] = "New";
DerivativeStatus[DerivativeStatus["Active"] = 1] = "Active";
DerivativeStatus[DerivativeStatus["Paused"] = 2] = "Paused";
DerivativeStatus[DerivativeStatus["Closed"] = 3] = "Closed";
})(DerivativeStatus = exports.DerivativeStatus || (exports.DerivativeStatus = {}));
var DerivativeProviders;
(function (DerivativeProviders) {
DerivativeProviders["MARKET"] = "MarketProvider";
DerivativeProviders["PRICE"] = "PriceProvider";
DerivativeProviders["EXCHANGE"] = "ExchangeProvider";
DerivativeProviders["WITHDRAW"] = "WithdrawProvider";
DerivativeProviders["RISK"] = "RiskProvider";
DerivativeProviders["WHITELIST"] = "WhitelistProvider";
DerivativeProviders["FEE"] = "FeeProvider";
DerivativeProviders["REIMBURSABLE"] = "Reimbursable";
DerivativeProviders["REBALANCE"] = "RebalanceProvider";
DerivativeProviders["STEP"] = "StepProvider";
DerivativeProviders["LOCKER"] = "LockerProvider";
DerivativeProviders["BUYTOKENS"] = "BuyTokens";
DerivativeProviders["TOKENBROKEN"] = "TokenBroken";
DerivativeProviders["GETETH"] = "GetEth";
DerivativeProviders["CHECK_POSITION"] = "CheckPosition";
DerivativeProviders["CLEAR"] = "Clear";
DerivativeProviders["CHAINLINK"] = "ChainlinkOracle";
})(DerivativeProviders = exports.DerivativeProviders || (exports.DerivativeProviders = {}));
var WhitelistType;
(function (WhitelistType) {
WhitelistType[WhitelistType["Investment"] = 0] = "Investment";
WhitelistType[WhitelistType["Maintenance"] = 1] = "Maintenance";
WhitelistType[WhitelistType["Admin"] = 2] = "Admin";
})(WhitelistType = exports.WhitelistType || (exports.WhitelistType = {}));
var TxStatus;
(function (TxStatus) {
TxStatus["NEW"] = "NEW";
TxStatus["PENDING"] = "PENDING";
TxStatus["SUCCESS"] = "SUCCESS";
TxStatus["FAIL"] = "FAIL";
TxStatus["PAUSE"] = "PAUSE";
})(TxStatus = exports.TxStatus || (exports.TxStatus = {}));
var IndexProductStatus;
(function (IndexProductStatus) {
IndexProductStatus[IndexProductStatus["AVAILABLE"] = 0] = "AVAILABLE";
IndexProductStatus[IndexProductStatus["WITHDRAWING"] = 1] = "WITHDRAWING";
IndexProductStatus[IndexProductStatus["REBALANCING"] = 2] = "REBALANCING";
IndexProductStatus[IndexProductStatus["BUYING"] = 3] = "BUYING";
IndexProductStatus[IndexProductStatus["SELLING_TOKENS"] = 4] = "SELLING_TOKENS";
})(IndexProductStatus = exports.IndexProductStatus || (exports.IndexProductStatus = {}));
var FundProductStatus;
(function (FundProductStatus) {
FundProductStatus[FundProductStatus["AVAILABLE"] = 0] = "AVAILABLE";
FundProductStatus[FundProductStatus["WITHDRAWING"] = 1] = "WITHDRAWING";
FundProductStatus[FundProductStatus["SELLING_TOKENS"] = 2] = "SELLING_TOKENS";
})(FundProductStatus = exports.FundProductStatus || (exports.FundProductStatus = {}));
var FutureProductStatus;
(function (FutureProductStatus) {
FutureProductStatus[FutureProductStatus["AVAILABLE"] = 0] = "AVAILABLE";
FutureProductStatus[FutureProductStatus["CHECK_POSITION"] = 1] = "CHECK_POSITION";
FutureProductStatus[FutureProductStatus["CLEAR"] = 2] = "CLEAR";
FutureProductStatus[FutureProductStatus["SELLING_TOKENS"] = -1] = "SELLING_TOKENS";
FutureProductStatus[FutureProductStatus["WITHDRAWING"] = -1] = "WITHDRAWING";
})(FutureProductStatus = exports.FutureProductStatus || (exports.FutureProductStatus = {}));
var FutureDirection;
(function (FutureDirection) {
FutureDirection[FutureDirection["Long"] = -1] = "Long";
FutureDirection[FutureDirection["Short"] = 1] = "Short";
})(FutureDirection = exports.FutureDirection || (exports.FutureDirection = {}));
var FutureLockers;
(function (FutureLockers) {
FutureLockers["Clear"] = "Clear";
FutureLockers["CheckPosition"] = "CheckPosition";
})(FutureLockers = exports.FutureLockers || (exports.FutureLockers = {}));
var DerivativeTypeName;
(function (DerivativeTypeName) {
DerivativeTypeName["Index"] = "index";
DerivativeTypeName["Fund"] = "fund";
})(DerivativeTypeName = exports.DerivativeTypeName || (exports.DerivativeTypeName = {}));
var DerivativeType;
(function (DerivativeType) {
DerivativeType[DerivativeType["Index"] = 0] = "Index";
DerivativeType[DerivativeType["Fund"] = 1] = "Fund";
DerivativeType[DerivativeType["Future"] = 2] = "Future";
})(DerivativeType = exports.DerivativeType || (exports.DerivativeType = {}));
var RebalanceStatus;
(function (RebalanceStatus) {
RebalanceStatus[RebalanceStatus["Initial"] = 0] = "Initial";
RebalanceStatus[RebalanceStatus["Calculated"] = 1] = "Calculated";
RebalanceStatus[RebalanceStatus["Recalculated"] = 2] = "Recalculated";
})(RebalanceStatus = exports.RebalanceStatus || (exports.RebalanceStatus = {}));
var LoggingOptions;
(function (LoggingOptions) {
LoggingOptions[LoggingOptions["NONE"] = 0] = "NONE";
LoggingOptions[LoggingOptions["ERROR"] = 1] = "ERROR";
LoggingOptions[LoggingOptions["WARNING"] = 2] = "WARNING";
LoggingOptions[LoggingOptions["INFO"] = 3] = "INFO";
LoggingOptions[LoggingOptions["VERBOSE"] = 4] = "VERBOSE";
})(LoggingOptions = exports.LoggingOptions || (exports.LoggingOptions = {}));
var TokenExchanges;
(function (TokenExchanges) {
TokenExchanges["KYBER"] = "Kyber";
TokenExchanges["SHAPE_SHIFT"] = "Shape_shift";
})(TokenExchanges = exports.TokenExchanges || (exports.TokenExchanges = {}));
var AbiName;
(function (AbiName) {
AbiName["INDEX_ABI"] = "OlympusIndex";
AbiName["FUND_ABI"] = "OlympusFund";
AbiName["WHITELIST_ABI"] = "WhitelistProvider";
AbiName["LOCKER_ABI"] = "Locker";
AbiName["FUTURE_ABI"] = "FutureContract";
AbiName["BINARY_FUTURE_ABI"] = "BinaryFuture";
AbiName["REBALANCE_ABI"] = "RebalanceProvider";
AbiName["MARKETPLACE_ABI"] = "Marketplace";
AbiName["WITHDRAW_ABI"] = "AsyncWithdraw";
AbiName["EXCHANGE_PROVIDER"] = "ExchangeProvider";
AbiName["STEP_PROVIDER"] = "StepProvider";
AbiName["TOKEN_BROKEN_PROVIDER"] = "TokenBroken";
AbiName["CHAINLINK_ABI"] = "Chainlink";
})(AbiName = exports.AbiName || (exports.AbiName = {}));
var TemplateType;
(function (TemplateType) {
TemplateType["Index"] = "Index";
TemplateType["Fund"] = "Fund";
TemplateType["Future"] = "Future";
})(TemplateType = exports.TemplateType || (exports.TemplateType = {}));
var TemplateContractName;
(function (TemplateContractName) {
TemplateContractName["OlympusFund"] = "OlympusFund";
TemplateContractName["OlympusIndex"] = "OlympusIndex";
TemplateContractName["OlympusBasicFund"] = "OlympusBasicFund";
TemplateContractName["OlympusBasicIndex"] = "OlympusBasicIndex";
TemplateContractName["OlympusFastFund"] = "OlympusFund_Fast";
TemplateContractName["OlympusFastIndex"] = "OlympusIndex_Fast";
TemplateContractName["FutureContract"] = "FutureContract";
})(TemplateContractName = exports.TemplateContractName || (exports.TemplateContractName = {}));
//# sourceMappingURL=Enums.js.map