@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
56 lines • 2.96 kB
JavaScript
export class Provider {
name;
uiName;
kyc;
isNative;
availableOnLns;
constructor(name, uiName, kyc, isNative, availableOnLns) {
this.name = name;
this.uiName = uiName;
this.kyc = kyc;
this.isNative = isNative;
this.availableOnLns = availableOnLns;
}
// Swap providers
static CHANGELLY = new Provider("changelly", "Changelly", false, true, true);
static EXODUS = new Provider("exodus", "Exodus", false, true, true);
static ONE_INCH = new Provider("oneinch", "1inch", false, false, true);
static VELORA = new Provider("velora", "Velora", false, false, true);
static MOONPAY = new Provider("moonpay", "MoonPay", true, false, true);
static THORCHAIN = new Provider("thorswap", "THORChain", false, true, false);
static UNISWAP = new Provider("uniswap", "Uniswap", false, false, false);
static LIFI = new Provider("lifi", "LI.FI", false, true, false);
static CIC = new Provider("cic", "CIC", false, true, true);
static NEAR_INTENTS = new Provider("nearintents", "NEAR Intents", false, true, true);
static OKX = new Provider("okx", "OKX", false, false, false);
static SWAPSXYZ = new Provider("swapsxyz", "Swaps.xyz", false, true, true);
// Buy And Sell providers
static REVOLUT = new Provider("revolut", "Revolut", true, true, true);
static MERCURYO = new Provider("mercuryo", "Mercuryo", true, true, true);
static TRANSAK = new Provider("transak", "Transak", true, true, true);
static TOPPER = new Provider("topper", "Topper", true, true, true);
static COINBASE = new Provider("coinbase", "Coinbase", true, true, true);
static COINIFY = new Provider("coinify-buy", "Coinify", true, true, true);
static RAMP_NETWORK = new Provider("ramp", "Ramp Network", true, true, true);
static BTC_DIRECT = new Provider("btc_direct", "BTC Direct", true, true, true);
static SARDINE = new Provider("sardine", "Sardine", true, true, true);
static SIMPLEX = new Provider("simplex", "Simplex", true, true, true);
static BANXA = new Provider("banxa", "Banxa", true, true, true);
static YOU_HODLER = new Provider("youhodler", "YouHodler", true, true, true);
static ALCHEMY_PAY = new Provider("alchemypay", "Alchemy Pay", true, true, true);
static CRYPTO_COM = new Provider("cryptocom", "Crypto.com", true, true, true);
// Earn providers
static KILN = new Provider("kiln_pooling", "Kiln staking Pool", true, true, true);
static STADER_LABS = new Provider("stader-eth", "Stader Labs", true, true, true);
static LIDO = new Provider("lido", "Lido", true, true, true);
static getNameByUiName(uiName) {
const provider = Object.values(Provider).find(p => p.uiName === uiName);
return provider ? provider.name : "";
}
}
export var Rate;
(function (Rate) {
Rate["FIXED"] = "fixed";
Rate["FLOAT"] = "float";
})(Rate || (Rate = {}));
//# sourceMappingURL=Provider.js.map