@exodus/models
Advanced tools
Comparing version 11.16.1 to 11.17.0-hotfix.account-colors
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.STATUS_MAP = exports.STALE_STATUS = exports.SARDINE_ORDER_STATUS = exports.RAMP_ORDER_STATUS = exports.PROVIDERS = exports.PAYPAL_ORDER_STATUS = exports.ORDER_TYPES = exports.ORDER_STATUS_TO_SARDINE_STATUS = exports.ORDER_STATUS_TO_RAMP_STATUS = exports.ORDER_STATUS_TO_PAYPAL_STATUS = exports.ORDER_STATUS_TO_MOONPAY_STATUS = exports.ORDER_STATUS_TO_BLOCKCHAIN_STATUS = exports.ORDER_STATUS = exports.MOONPAY_ORDER_STATUS = exports.COMPLETE_STATUS = exports.BLOCKCHAIN_ORDER_STATUS = void 0; | ||
exports.STATUS_MAP = exports.STALE_STATUS = exports.SARDINE_ORDER_STATUS = exports.RAMP_ORDER_STATUS = exports.PROVIDERS = exports.PAYPAL_ORDER_STATUS = exports.ORDER_TYPES = exports.ORDER_STATUS_TO_SARDINE_STATUS = exports.ORDER_STATUS_TO_RAMP_STATUS = exports.ORDER_STATUS_TO_PAYPAL_STATUS = exports.ORDER_STATUS_TO_ONRAMPER_STATUS = exports.ORDER_STATUS_TO_MOONPAY_STATUS = exports.ORDER_STATUS_TO_BLOCKCHAIN_STATUS = exports.ORDER_STATUS = exports.ONRAMPER_ORDER_STATUS = exports.MOONPAY_ORDER_STATUS = exports.COMPLETE_STATUS = exports.BLOCKCHAIN_ORDER_STATUS = void 0; | ||
const ORDER_TYPES = { | ||
@@ -26,2 +26,3 @@ __proto__: null, | ||
moonpay: 'moonpay', | ||
onramper: 'onramper', | ||
paypal: 'paypal', | ||
@@ -115,10 +116,28 @@ ramp: 'ramp', | ||
__proto__: null, | ||
complete: [BLOCKCHAIN_ORDER_STATUS.completed], | ||
failed: [BLOCKCHAIN_ORDER_STATUS.failed], | ||
'in-progress': [BLOCKCHAIN_ORDER_STATUS.pending, BLOCKCHAIN_ORDER_STATUS.withdrawing] | ||
[ORDER_STATUS.complete]: [BLOCKCHAIN_ORDER_STATUS.completed], | ||
[ORDER_STATUS.failed]: [BLOCKCHAIN_ORDER_STATUS.failed], | ||
[ORDER_STATUS.in_progress]: [BLOCKCHAIN_ORDER_STATUS.pending, BLOCKCHAIN_ORDER_STATUS.withdrawing] | ||
}; | ||
exports.ORDER_STATUS_TO_BLOCKCHAIN_STATUS = ORDER_STATUS_TO_BLOCKCHAIN_STATUS; | ||
const ONRAMPER_ORDER_STATUS = { | ||
__proto__: null, | ||
new: 'new', | ||
pending: 'pending', | ||
paid: 'paid', | ||
completed: 'completed', | ||
canceled: 'canceled', | ||
failed: 'failed' | ||
}; | ||
exports.ONRAMPER_ORDER_STATUS = ONRAMPER_ORDER_STATUS; | ||
const ORDER_STATUS_TO_ONRAMPER_STATUS = { | ||
__proto__: null, | ||
[ORDER_STATUS.complete]: [ONRAMPER_ORDER_STATUS.completed], | ||
[ORDER_STATUS.failed]: [ONRAMPER_ORDER_STATUS.failed, ONRAMPER_ORDER_STATUS.canceled], | ||
[ORDER_STATUS.in_progress]: [ONRAMPER_ORDER_STATUS.new, ONRAMPER_ORDER_STATUS.paid, ONRAMPER_ORDER_STATUS.pending] | ||
}; | ||
exports.ORDER_STATUS_TO_ONRAMPER_STATUS = ORDER_STATUS_TO_ONRAMPER_STATUS; | ||
const STALE_STATUS = { | ||
__proto__: null, | ||
[PROVIDERS.blockchain]: BLOCKCHAIN_ORDER_STATUS.failed, | ||
[PROVIDERS.onramper]: ONRAMPER_ORDER_STATUS.failed, | ||
[PROVIDERS.ramp]: RAMP_ORDER_STATUS.expired, | ||
@@ -133,2 +152,3 @@ [PROVIDERS.paypal]: PAYPAL_ORDER_STATUS.failed, | ||
[PROVIDERS.blockchain]: BLOCKCHAIN_ORDER_STATUS.completed, | ||
[PROVIDERS.onramper]: ONRAMPER_ORDER_STATUS.completed, | ||
[PROVIDERS.ramp]: RAMP_ORDER_STATUS.released, | ||
@@ -143,2 +163,3 @@ [PROVIDERS.paypal]: PAYPAL_ORDER_STATUS.completed, | ||
[PROVIDERS.blockchain]: ORDER_STATUS_TO_BLOCKCHAIN_STATUS, | ||
[PROVIDERS.onramper]: ORDER_STATUS_TO_ONRAMPER_STATUS, | ||
[PROVIDERS.moonpay]: ORDER_STATUS_TO_MOONPAY_STATUS, | ||
@@ -145,0 +166,0 @@ [PROVIDERS.paypal]: ORDER_STATUS_TO_PAYPAL_STATUS, |
@@ -49,2 +49,4 @@ "use strict"; | ||
status, | ||
subProvider, | ||
subProviderId, | ||
to, | ||
@@ -84,2 +86,4 @@ totalFee = 0, | ||
providerRate: rate, | ||
subProvider, | ||
subProviderOrderId: subProviderId, | ||
status, | ||
@@ -86,0 +90,0 @@ toAddress: isBuy ? walletAddress : null, |
@@ -33,5 +33,5 @@ "use strict"; | ||
const DEFAULT_COLORS = Object.freeze({ | ||
exodus: '#ff3974', | ||
seed: '#ff3974', | ||
trezor: '#7b39ff', | ||
exodus: '#7b39ff', | ||
seed: '#7b39ff', | ||
trezor: '#30d968', | ||
ledger: '#f5e400', | ||
@@ -38,0 +38,0 @@ ftx: '#00b4c2' |
{ | ||
"name": "@exodus/models", | ||
"version": "11.16.1", | ||
"version": "11.17.0-hotfix.account-colors", | ||
"description": "Exodus models", | ||
@@ -40,4 +40,3 @@ "main": "lib/index.js", | ||
"url": "https://github.com/ExodusMovement/exodus-core/issues?q=is%3Aissue+is%3Aopen+label%3Amodels" | ||
}, | ||
"gitHead": "80fcd7d62e3c7380355ab655cb2459976c57c4fc" | ||
} | ||
} | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
123944
26
2653
2