Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitgo/statics

Package Overview
Dependencies
Maintainers
8
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/statics - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/src/map.d.ts

7

dist/src/account.d.ts

@@ -30,3 +30,2 @@ import { BaseCoin, CoinFeature, UnderlyingAsset } from './base';

contractAddress: string;
isToken: true;
}

@@ -57,3 +56,3 @@ export interface ContractAddress extends String {

*/
export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, prefix?: string, suffix?: string, isToken?: boolean, features?: CoinFeature[]): Readonly<AccountCoin>;
export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>;
/**

@@ -72,3 +71,3 @@ * Factory function for erc20 token instances.

*/
export declare function erc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, prefix?: string, suffix?: string, network?: AccountNetwork, features?: CoinFeature[]): Readonly<Erc20Coin>;
export declare function erc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<Erc20Coin>;
/**

@@ -87,2 +86,2 @@ * Factory function for testnet erc20 token instances.

*/
export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, prefix?: string, suffix?: string, network?: AccountNetwork, features?: CoinFeature[]): Readonly<Erc20Coin>;
export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<Erc20Coin>;

@@ -40,3 +40,3 @@ "use strict";

function AccountCoin(options) {
var _this = _super.call(this, __assign({ kind: "crypto" /* CRYPTO */, family: options.network.family, decimalPlaces: options.decimalPlaces, asset: options.asset, prefix: '', suffix: options.name }, options)) || this;
var _this = _super.call(this, __assign({ isToken: false }, options, { kind: "crypto" /* CRYPTO */ })) || this;
_this.network = options.network;

@@ -67,3 +67,3 @@ return _this;

function Erc20Coin(options) {
var _this = _super.call(this, __assign({}, options)) || this;
var _this = _super.call(this, __assign({}, options, { isToken: true })) || this;
// valid ERC 20 contract addresses are "0x" followed by 40 lowercase hex characters

@@ -92,5 +92,7 @@ if (!options.contractAddress.match(/^0x[a-f0-9]{40}$/)) {

*/
function account(name, fullName, network, decimalPlaces, asset, prefix, suffix, isToken, features) {
function account(name, fullName, network, decimalPlaces, asset, features, prefix, suffix, isToken) {
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
if (prefix === void 0) { prefix = ''; }
if (suffix === void 0) { suffix = name; }
if (isToken === void 0) { isToken = false; }
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
return Object.freeze(new AccountCoin({

@@ -122,5 +124,7 @@ name: name,

*/
function erc20(name, fullName, decimalPlaces, contractAddress, asset, prefix, suffix, network, features) {
function erc20(name, fullName, decimalPlaces, contractAddress, asset, features, prefix, suffix, network) {
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
if (prefix === void 0) { prefix = ''; }
if (suffix === void 0) { suffix = name; }
if (network === void 0) { network = networks_1.Networks.main.ethereum; }
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
return Object.freeze(new Erc20Coin({

@@ -135,4 +139,4 @@ name: name,

decimalPlaces: decimalPlaces,
asset: asset,
isToken: true,
asset: asset,
}));

@@ -154,8 +158,10 @@ }

*/
function terc20(name, fullName, decimalPlaces, contractAddress, asset, prefix, suffix, network, features) {
function terc20(name, fullName, decimalPlaces, contractAddress, asset, features, prefix, suffix, network) {
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
if (prefix === void 0) { prefix = ''; }
if (suffix === void 0) { suffix = name; }
if (network === void 0) { network = networks_1.Networks.test.kovan; }
if (features === void 0) { features = AccountCoin.DEFAULT_FEATURES; }
return erc20(name, fullName, decimalPlaces, contractAddress, asset, prefix, suffix, network, features);
return erc20(name, fullName, decimalPlaces, contractAddress, asset, features, prefix, suffix, network);
}
exports.terc20 = terc20;
//# sourceMappingURL=account.js.map

@@ -0,1 +1,2 @@

import { BaseNetwork } from './networks';
export declare const enum CoinKind {

@@ -61,12 +62,247 @@ CRYPTO = "crypto",

export declare const enum UnderlyingAsset {
BCH = "bch",
BSV = "bsv",
BTC = "btc",
BTG = "btg",
DASH = "dash",
USD = "usd",
ETH = "eth",
LTC = "ltc",
XRP = "xrp",
XLM = "xlm",
ZEC = "zec",
ABT = "abt",
AE = "ae",
AERGO = "aergo",
AGI = "agi",
AION = "aion",
AMN = "amn",
AMON = "amon",
ANA = "ana",
ANT = "ant",
AOA = "aoa",
APPC = "appc",
AST = "ast",
AUDX = "audx",
AUTO = "auto",
AXPR = "axpr",
BAT = "bat",
BAX = "bax",
BBX = "bbx",
BCAP = "bcap",
BCIO = "bcio",
BID = "bid",
BIRD = "bird",
BLZ = "blz",
BNB = "bnb",
BNK = "bnk",
BNT = "bnt",
BNTY = "bnty",
BOX = "box",
BRD = "brd",
BST = "bst",
BTM = "btm",
BTT = "btt",
BTU = "btu",
BUY = "buy",
CADX = "cadx",
CAG = "cag",
CBC = "cbc",
CDAG = "cdag",
CDT = "cdt",
CEL = "cel",
CENNZ = "cennz",
CGLD = "cgld",
CHFX = "chfx",
CHSB = "chsb",
CLN = "cln",
CMT = "cmt",
CND = "cnd",
CNYX = "cnyx",
CPAY = "cpay",
CPLT = "cplt",
CQX = "cqx",
CRPT = "crpt",
CS = "cs",
CSLV = "cslv",
CVC = "cvc",
DAI = "dai",
DATA = "data",
DCN = "dcn",
DENT = "dent",
DEW = "dew",
DGD = "dgd",
DGX = "dgx",
DRGN = "drgn",
DROP = "drop",
DRV = "drv",
DTR = "dtr",
ECHT = "echt",
EDR = "edr",
EGL = "egl",
ELF = "elf",
ENG = "eng",
ENJ = "enj",
ERC = "erc",
ETHOS = "ethos",
ETO = "eto",
EURS = "eurs",
EURX = "eurx",
EUX = "eux",
FET = "fet",
FMF = "fmf",
FSN = "fsn",
FUN = "fun",
FXRT = "fxrt",
GBPX = "gbpx",
GEN = "gen",
GLDX = "gldx",
GNO = "gno",
GNT = "gnt",
GNX = "gnx",
GOT = "got",
GTO = "gto",
GUSD = "gusd",
GVT = "gvt",
HEDG = "hedg",
HLC = "hlc",
HOLD = "hold",
HOT = "hot",
HPB = "hpb",
HQT = "hqt",
HST = "hst",
HT = "ht",
HXRO = "hxro",
HYB = "hyb",
HYDRO = "hydro",
ICN = "icn",
ICX = "icx",
INCX = "incx",
IND = "ind",
IOST = "iost",
ISR = "isr",
JBC = "jbc",
JPYX = "jpyx",
KCS = "kcs",
KEY = "key",
KIN = "kin",
KNC = "knc",
KZE = "kze",
LBA = "lba",
LGO = "lgo",
LINK = "link",
LION = "lion",
LNC = "lnc",
LOOM = "loom",
LRC = "lrc",
MAN = "man",
MANA = "mana",
MCO = "mco",
MCX = "mcx",
MDX = "mdx",
MEDX = "medx",
MET = "met",
META = "meta",
MFG = "mfg",
MFT = "mft",
MITH = "mith",
MKR = "mkr",
MTCN = "mtcn",
MTL = "mtl",
MVL = "mvl",
NAS = "nas",
NCASH = "ncash",
NEU = "neu",
NEXO = "nexo",
NMR = "nmr",
NPXS = "npxs",
NULS = "nuls",
NZDX = "nzdx",
OMG = "omg",
ERC = "erc",
ONL = "onl",
OPT = "opt",
OST = "ost",
PAX = "pax",
PAY = "pay",
PAYX = "payx",
PLC = "plc",
PLR = "plr",
PLX = "plx",
PMA = "pma",
POE = "poe",
POLY = "poly",
POWR = "powr",
PPP = "ppp",
PPT = "ppt",
PRL = "prl",
PRO = "pro",
QASH = "qash",
QRL = "qrl",
QSP = "qsp",
QUASH = "quash",
QVT = "qvt",
R = "r",
RBY = "rby",
RDN = "rdn",
REB = "reb",
REBL = "rebl",
REP = "rep",
REQ = "req",
RFR = "rfr",
RHOC = "rhoc",
RLC = "rlc",
RUBX = "rubx",
RUFF = "ruff",
SALT = "salt",
SAN = "san",
SHK = "shk",
SLOT = "slot",
SLVX = "slvx",
SMT = "smt",
SNOV = "snov",
SNT = "snt",
SRN = "srn",
SRNT = "srnt",
STORJ = "storj",
STORM = "storm",
SUB = "sub",
TAUD = "taud",
TEN = "ten",
THETA = "theta",
TKX = "tkx",
TMS = "tms",
TNT = "tnt",
TRST = "trst",
TRX = "trx",
TUSD = "tusd",
UKG = "ukg",
UPBTC = "upbtc",
UPP = "upp",
UPT = "upt",
UPUSD = "upusd",
UQC = "uqc",
USDC = "usdc",
USDT = "usdt",
USDX = "usdx",
USX = "usx",
VEE = "vee",
VEN = "ven",
VERI = "veri",
WAX = "wax",
WBTC = "wbtc",
WHT = "wht",
WPX = "wpx",
WTC = "wtc",
XCD = "xcd",
XIN = "xin",
XRL = "xrl",
YSEY = "ysey",
ZCO = "zco",
ZIL = "zil",
ZIX = "zix",
ZOOM = "zoom",
ZRX = "zrx",
TEST = "test",
XRP = "xrp",
XLM = "xlm"
SCHZ = "schz",
TCAT = "tcat"
}

@@ -79,3 +315,2 @@ export interface BaseCoinConstructorOptions {

kind: CoinKind;
family: CoinFamily;
isToken: boolean;

@@ -85,2 +320,3 @@ features: CoinFeature[];

asset: UnderlyingAsset;
network: BaseNetwork;
}

@@ -96,2 +332,3 @@ export declare abstract class BaseCoin {

readonly features: CoinFeature[];
readonly network: BaseNetwork;
readonly decimalPlaces: number;

@@ -98,0 +335,0 @@ readonly asset: UnderlyingAsset;

@@ -12,3 +12,3 @@ "use strict";

this.kind = options.kind;
this.family = options.family;
this.family = options.network.family;
this.isToken = options.isToken;

@@ -18,2 +18,3 @@ this.features = options.features;

this.asset = options.asset;
this.network = options.network;
}

@@ -20,0 +21,0 @@ /**

@@ -1,22 +0,2 @@

import { BaseCoin } from './base';
export declare class CoinMap {
private readonly _map;
private constructor();
static fromCoins(coins: Readonly<BaseCoin>[]): CoinMap;
/**
* Override `get` to throw if a coin is missing, instead of returning undefined.
* @param {string} key
* @return {BaseCoin}
*/
get(key: string): Readonly<BaseCoin>;
map<T>(mapper: (coin: Readonly<BaseCoin>, coinName: string) => T): T[];
reduce<T>(reducer: (acc: T, coin: Readonly<BaseCoin>, coinName: string) => T, initialValue: T): T;
filter(predicate: (coin: Readonly<BaseCoin>, coinName: string) => boolean): CoinMap;
forEach(callback: (coin: Readonly<BaseCoin>, coinName: string) => void): void;
}
export { UtxoCoin } from './utxo';
export { AccountCoin, Erc20Coin } from './account';
export { CoinFeature } from './base';
export * from './errors';
export { Networks } from './networks';
import { CoinMap } from './map';
export declare const coins: CoinMap;
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var account_1 = require("./account");
var errors_1 = require("./errors");
var map_1 = require("./map");
var networks_1 = require("./networks");
var ofc_1 = require("./ofc");
var utxo_1 = require("./utxo");
var CoinMap = /** @class */ (function () {
function CoinMap() {
this._map = new Map();
}
CoinMap.fromCoins = function (coins) {
return coins.reduce(function (coinMap, coin) {
if (coinMap._map.has(coin.name)) {
throw new errors_1.DuplicateCoinDefinitionError(coin.name);
}
coinMap._map.set(coin.name, coin);
return coinMap;
}, new CoinMap());
};
/**
* Override `get` to throw if a coin is missing, instead of returning undefined.
* @param {string} key
* @return {BaseCoin}
*/
CoinMap.prototype.get = function (key) {
if (this._map.has(key)) {
return this._map.get(key);
}
throw new errors_1.CoinNotDefinedError(key);
};
CoinMap.prototype.map = function (mapper) {
var mapResult = [];
this._map.forEach(function (value, key) {
mapResult.push(mapper(value, key));
});
return mapResult;
};
CoinMap.prototype.reduce = function (reducer, initialValue) {
var acc = initialValue;
this._map.forEach(function (value, key) {
acc = reducer(acc, value, key);
});
return acc;
};
CoinMap.prototype.filter = function (predicate) {
var filterResult = [];
this._map.forEach(function (value, key) {
if (predicate(value, key)) {
filterResult.push(value);
}
});
return CoinMap.fromCoins(filterResult);
};
CoinMap.prototype.forEach = function (callback) {
this._map.forEach(callback);
};
return CoinMap;
}());
exports.CoinMap = CoinMap;
var utxo_2 = require("./utxo");
exports.UtxoCoin = utxo_2.UtxoCoin;
var account_2 = require("./account");
exports.AccountCoin = account_2.AccountCoin;
exports.Erc20Coin = account_2.Erc20Coin;
__export(require("./errors"));
var networks_2 = require("./networks");
exports.Networks = networks_2.Networks;
exports.coins = CoinMap.fromCoins([
var ETH_FEATURES = account_1.AccountCoin.DEFAULT_FEATURES.concat(["supports-tokens" /* SUPPORTS_TOKENS */]);
exports.coins = map_1.CoinMap.fromCoins([
utxo_1.utxo('bch', 'Bitcoin Cash', networks_1.Networks.main.bitcoinCash, "bch" /* BCH */),
utxo_1.utxo('tbch', 'Testnet Bitcoin Cash', networks_1.Networks.test.bitcoinCash, "bch" /* BCH */),
utxo_1.utxo('bsv', 'Bitcoin SV', networks_1.Networks.main.bitcoinSV, "bsv" /* BSV */),
utxo_1.utxo('tbsv', 'Testnet Bitcoin SV', networks_1.Networks.test.bitcoinSV, "bsv" /* BSV */),
utxo_1.utxo('btc', 'Bitcoin', networks_1.Networks.main.bitcoin, "btc" /* BTC */),

@@ -77,13 +19,258 @@ utxo_1.utxo('tbtc', 'Testnet Bitcoin', networks_1.Networks.test.bitcoin, "btc" /* BTC */),

utxo_1.utxo('tltc', 'Testnet Litecoin', networks_1.Networks.test.litecoin, "ltc" /* LTC */),
account_1.account('eth', 'Ethereum', networks_1.Networks.main.ethereum, 18, "eth" /* ETH */),
account_1.account('teth', 'Testnet Ethereum', networks_1.Networks.test.kovan, 18, "eth" /* ETH */),
account_1.account('xrp', 'Ripple', networks_1.Networks.main.ripple, 6, "xrp" /* XRP */),
account_1.account('txrp', 'Testnet Ripple', networks_1.Networks.test.ripple, 6, "xrp" /* XRP */),
utxo_1.utxo('dash', 'Dash', networks_1.Networks.main.dash, "dash" /* DASH */),
utxo_1.utxo('tdash', 'Testnet Dash', networks_1.Networks.test.dash, "dash" /* DASH */),
account_1.account('eth', 'Ethereum', networks_1.Networks.main.ethereum, 18, "eth" /* ETH */, ETH_FEATURES),
account_1.account('teth', 'Testnet Ethereum', networks_1.Networks.test.kovan, 18, "eth" /* ETH */, ETH_FEATURES),
account_1.account('xrp', 'Ripple', networks_1.Networks.main.xrp, 6, "xrp" /* XRP */),
account_1.account('txrp', 'Testnet Ripple', networks_1.Networks.test.xrp, 6, "xrp" /* XRP */),
account_1.account('xlm', 'Stellar', networks_1.Networks.main.stellar, 7, "xlm" /* XLM */),
account_1.account('txlm', 'Testnet Stellar', networks_1.Networks.test.stellar, 7, "xlm" /* XLM */),
account_1.account('susd', 'Silvergate USD', networks_1.Networks.main.susd, 2, "usd" /* USD */),
account_1.account('tsusd', 'Testnet Silvergate USD', networks_1.Networks.test.susd, 2, "usd" /* USD */),
utxo_1.utxo('zec', 'ZCash', networks_1.Networks.main.zCash, "zec" /* ZEC */),
utxo_1.utxo('tzec', 'Testnet ZCash', networks_1.Networks.test.zCash, "zec" /* ZEC */),
ofc_1.ofc('ofcusd', 'Offchain USD', 2, "usd" /* USD */, "fiat" /* FIAT */),
ofc_1.ofc('ofcbtc', 'Offchain Bitcoin', 8, "btc" /* BTC */, "crypto" /* CRYPTO */),
ofc_1.ofc('ofceth', 'Offchain Ether', 18, "eth" /* ETH */, "crypto" /* CRYPTO */),
ofc_1.tofc('ofctusd', 'Testnet Offchain USD', 2, "usd" /* USD */, "fiat" /* FIAT */),
ofc_1.tofc('ofctbtc', 'Testnet Offchain Bitcoin', 8, "btc" /* BTC */, "crypto" /* CRYPTO */),
ofc_1.tofc('ofcteth', 'Testnet Offchain Ether', 18, "eth" /* ETH */, "crypto" /* CRYPTO */),
account_1.erc20('abt', 'Arcblock', 18, '0xb98d4c97425d9908e66e53a6fdf673acca0be986', "abt" /* ABT */),
account_1.erc20('ae', 'Aeternity', 18, '0x5ca9a71b1d01849c0a95490cc00559717fcf0d1d', "ae" /* AE */),
account_1.erc20('aergo', 'Aergo', 18, '0xae31b85bfe62747d0836b82608b4830361a3d37a', "aergo" /* AERGO */),
account_1.erc20('agi', 'SingularityNET', 8, '0x8eb24319393716668d768dcec29356ae9cffe285', "agi" /* AGI */),
account_1.erc20('aion', 'AION', 8, '0x4ceda7906a5ed2179785cd3a40a69ee8bc99c466', "aion" /* AION */),
account_1.erc20('amn', 'Amon', 18, '0x737f98ac8ca59f2c68ad658e3c3d8c8963e40a4c', "amn" /* AMN */),
account_1.erc20('amon', 'AmonD', 18, '0x00059ae69c1622a7542edc15e8d17b060fe307b6', "amon" /* AMON */),
account_1.erc20('ana', 'ANA', 18, '0xfafd51641ab09dff163cd04d2eb6b7865eb83f53', "ana" /* ANA */),
account_1.erc20('ant', 'Aragon', 18, '0x960b236a07cf122663c4303350609a66a7b288c0', "ant" /* ANT */),
account_1.erc20('aoa', 'Aurora', 18, '0x9ab165d795019b6d8b3e971dda91071421305e5a', "aoa" /* AOA */),
account_1.erc20('appc', 'AppCoins', 18, '0x1a7a8bd9106f2b8d977e08582dc7d24c723ab0db', "appc" /* APPC */),
account_1.erc20('ast', 'AirSwap', 4, '0x27054b13b1b798b345b591a4d22e6562d47ea75a', "ast" /* AST */),
account_1.erc20('audx', 'eToro Australian Dollar', 18, '0xdf1e9e1a218cff9888faef311d6fbb472e4175ce', "audx" /* AUDX */),
account_1.erc20('auto', 'Cube', 18, '0x622dffcc4e83c64ba959530a5a5580687a57581b', "auto" /* AUTO */),
account_1.erc20('axpr', 'aXpire', 18, '0xc39e626a04c5971d770e319760d7926502975e47', "axpr" /* AXPR */),
account_1.erc20('bat', 'Basic Attention Token', 18, '0x0d8775f648430679a709e98d2b0cb6250d2887ef', "bat" /* BAT */),
account_1.erc20('bax', 'BABB', 18, '0x9a0242b7a33dacbe40edb927834f96eb39f8fbcb', "bax" /* BAX */),
account_1.erc20('bbx', 'BBX', 18, '0x71529cea068e3785efd4f18aaf59a6cb82b7e5cb', "bbx" /* BBX */),
account_1.erc20('bcap', 'BCAP', 0, '0x1f41e42d0a9e3c0dd3ba15b527342783b43200a9', "bcap" /* BCAP */),
account_1.erc20('bcio', 'Blockchain.io', 18, '0xcdc412f306e0c51e3249b88c65423cd16b322673', "bcio" /* BCIO */),
account_1.erc20('bid', 'Blockbid', 2, '0xdd5151da2ab25566e1d2a3c9a3e77396303f8a93', "bid" /* BID */),
account_1.erc20('bird', 'BirdCoin', 18, '0x026e62dded1a6ad07d93d39f96b9eabd59665e0d', "bird" /* BIRD */),
account_1.erc20('blz', 'Bluzelle', 18, '0x5732046a883704404f284ce41ffadd5b007fd668', "blz" /* BLZ */),
account_1.erc20('bnb', 'BNB', 18, '0xb8c77482e45f1f44de1745f52c74426c631bdd52', "bnb" /* BNB */),
account_1.erc20('bnk', 'Bankera', 8, '0xc80c5e40220172b36adee2c951f26f2a577810c5', "bnk" /* BNK */),
account_1.erc20('bnt', 'Bancor', 18, '0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c', "bnt" /* BNT */),
account_1.erc20('bnty', 'Bounty0x', 18, '0xd2d6158683aee4cc838067727209a0aaf4359de3', "bnty" /* BNTY */),
account_1.erc20('box', 'ContentBox', 18, '0x63f584fa56e60e4d0fe8802b27c7e6e3b33e007f', "box" /* BOX */),
account_1.erc20('brd', 'Bread', 18, '0x558ec3152e2eb2174905cd19aea4e34a23de9ad6', "brd" /* BRD */),
account_1.erc20('bst', 'BitGo Shield Token', 0, '0x18ad17ff2dfcfd647db497b1e2cbd76de4da40fc', "bst" /* BST */),
account_1.erc20('btm', 'Bytom', 8, '0xcb97e65f07da24d46bcdd078ebebd7c6e6e3d750', "btm" /* BTM */),
account_1.erc20('btt', 'Blocktrade', 18, '0xfa456cf55250a839088b27ee32a424d7dacb54ff', "btt" /* BTT */),
account_1.erc20('btu', 'BTU Protocol', 18, '0xb683d83a532e2cb7dfa5275eed3698436371cc9f', "btu" /* BTU */),
account_1.erc20('buy', 'buying.com', 18, '0x0d7f0fa3a79bfedbab291da357958596c74e27d7', "buy" /* BUY */),
account_1.erc20('cadx', 'eToro Canadian Dollar', 18, '0x8ed876e408959643479534a21970ec023d0fb51e', "cadx" /* CADX */),
account_1.erc20('cag', 'Change', 18, '0x7d4b8cce0591c9044a22ee543533b72e976e36c3', "cag" /* CAG */),
account_1.erc20('cbc', 'CashBet Coin', 8, '0x26db5439f651caf491a87d48799da81f191bdb6b', "cbc" /* CBC */),
account_1.erc20('cdag', 'CannDollar', 18, '0xf43401ea8ac4b86155b929e1a5a5e46626c23842', "cdag" /* CDAG */),
account_1.erc20('cdt', 'Blox', 18, '0x177d39ac676ed1c67a2b268ad7f1e58826e5b0af', "cdt" /* CDT */),
account_1.erc20('cel', 'Celsius', 4, '0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d', "cel" /* CEL */),
account_1.erc20('cennz', 'Centrality', 18, '0x1122b6a0e00dce0563082b6e2953f3a943855c1f', "cennz" /* CENNZ */),
account_1.erc20('cgld', 'Coineru Gold', 8, '0x3f50e6cc943351f00971a9d01ac32739895df826', "cgld" /* CGLD */),
account_1.erc20('chfx', 'eToro Swiss Frank', 18, '0xe435502c85a4e7e79cfab4167af566c27a7a0784', "chfx" /* CHFX */),
account_1.erc20('chsb', 'SwissBorg', 8, '0xba9d4199fab4f26efe3551d490e3821486f135ba', "chsb" /* CHSB */),
account_1.erc20('cln', 'Colu Local Network', 18, '0x4162178b78d6985480a308b2190ee5517460406d', "cln" /* CLN */),
account_1.erc20('cmt', 'CyberMiles', 18, '0xf85feea2fdd81d51177f6b8f35f0e6734ce45f5f', "cmt" /* CMT */),
account_1.erc20('cnd', 'Cindicator', 18, '0xd4c435f5b09f855c3317c8524cb1f586e42795fa', "cnd" /* CND */),
account_1.erc20('cnyx', 'eToro Chinese Yuan', 18, '0x319ad3ff82bedddb3bc85fd7943002d25cdb3cb9', "cnyx" /* CNYX */),
account_1.erc20('cpay', 'Cryptopay', 0, '0x0ebb614204e47c09b6c3feb9aaecad8ee060e23e', "cpay" /* CPAY */),
account_1.erc20('cplt', 'Coineru Platinum', 8, '0xa3f7871a4b86bcc3b6e97c8fd0745e71c55e1f82', "cplt" /* CPLT */),
account_1.erc20('cqx', 'Coinquista Coin', 18, '0x618c29dd2d16475b2ae6244f9e8aaead68f0ca44', "cqx" /* CQX */),
account_1.erc20('crpt', 'Crypterium', 18, '0x80a7e048f37a50500351c204cb407766fa3bae7f', "crpt" /* CRPT */),
account_1.erc20('cs', 'Credits', 6, '0x46b9ad944d1059450da1163511069c718f699d31', "cs" /* CS */),
account_1.erc20('cslv', 'Coineru Silver', 8, '0x6dc05497f0b087c7692816e6acaa8bdda73907fc', "cslv" /* CSLV */),
account_1.erc20('cvc', 'Civic', 8, '0x41e5560054824ea6b0732e656e3ad64e20e94e45', "cvc" /* CVC */),
account_1.erc20('dai', 'Dai', 18, '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359', "dai" /* DAI */),
account_1.erc20('data', 'Streamr DATAcoin', 18, '0x0cf0ee63788a0849fe5297f3407f701e122cc023', "data" /* DATA */),
account_1.erc20('dcn', 'Dentacoin', 0, '0x08d32b0da63e2c3bcf8019c9c5d849d7a9d791e6', "dcn" /* DCN */),
account_1.erc20('dent', 'Dent', 8, '0x3597bfd533a99c9aa083587b074434e61eb0a258', "dent" /* DENT */),
account_1.erc20('dew', 'Dew', 18, '0x20e94867794dba030ee287f1406e100d03c84cd3', "dew" /* DEW */),
account_1.erc20('dgd', 'Digix DAO', 9, '0xe0b7927c4af23765cb51314a0e0521a9645f0e2a', "dgd" /* DGD */),
account_1.erc20('dgx', 'Digix', 9, '0x4f3afec4e5a3f2a6a1a411def7d7dfe50ee057bf', "dgx" /* DGX */),
account_1.erc20('drgn', 'Dragonchain', 18, '0x419c4db4b9e25d6db2ad9691ccb832c8d9fda05e', "drgn" /* DRGN */),
account_1.erc20('drop', 'Dropil', 18, '0x4672bad527107471cb5067a887f4656d585a8a31', "drop" /* DROP */),
account_1.erc20('drv', 'Drive', 18, '0x0b9d89a71bdabd231d4d497b7b7b879740d739c4', "drv" /* DRV */),
account_1.erc20('dtr', 'Dynamic Trading Rights', 8, '0xd234bf2410a0009df9c3c63b610c09738f18ccd7', "dtr" /* DTR */),
account_1.erc20('echt', 'eChat', 0, '0x1aadead0d2e0b6d888ae1d73b11db65a8447634a', "echt" /* ECHT */),
account_1.erc20('edr', 'Endor Protocol', 18, '0xc528c28fec0a90c083328bc45f587ee215760a0f', "edr" /* EDR */),
account_1.erc20('egl', 'eGold', 4, '0x8f00458479ea850f584ed82881421f9d9eac6cb1', "egl" /* EGL */),
account_1.erc20('elf', 'Aelf', 18, '0xbf2179859fc6d5bee9bf9158632dc51678a4100e', "elf" /* ELF */),
account_1.erc20('eng', 'Enigma', 8, '0xf0ee6b27b759c9893ce4f094b49ad28fd15a23e4', "eng" /* ENG */),
account_1.erc20('enj', 'Enjin Coin', 18, '0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c', "enj" /* ENJ */),
account_1.erc20('erc', 'ERC Token', 0, '0x8e35d374594fa07d0de5c5e6563766cd24336251', "erc" /* ERC */),
account_1.erc20('omg', 'OmiseGo Token', 18, '0xd26114cd6ee289accf82350c8d8487fedb8a0c07', "omg" /* OMG */),
account_1.erc20('ethos', 'Ethos', 8, '0x5af2be193a6abca9c8817001f45744777db30756', "ethos" /* ETHOS */),
account_1.erc20('eto', 'Ethos Coin', 8, '0x5af2be193a6abca9c8817001f45744777db30756', "eto" /* ETO */),
account_1.erc20('eurs', 'Stasis EURS', 2, '0xdb25f211ab05b1c97d595516f45794528a807ad8', "eurs" /* EURS */),
account_1.erc20('eurx', 'eToro Euro', 18, '0x05ac103f68e05da35e78f6165b9082432fe64b58', "eurx" /* EURX */),
account_1.erc20('eux', 'EUR Stable Token', 18, '0x1b9064207e8046ec1d8e83de79380ed31283914f', "eux" /* EUX */),
account_1.erc20('fet', 'Fetch', 18, '0x1d287cc25dad7ccaf76a26bc660c5f7c8e2a05bd', "fet" /* FET */),
account_1.erc20('fmf', 'Formosa Financial', 18, '0xb4d0fdfc8497aef97d3c2892ae682ee06064a2bc', "fmf" /* FMF */),
account_1.erc20('fsn', 'Fusion', 18, '0xd0352a019e9ab9d757776f532377aaebd36fd541', "fsn" /* FSN */),
account_1.erc20('fun', 'FunFair', 8, '0x419d0d8bdd9af5e606ae2232ed285aff190e711b', "fun" /* FUN */),
account_1.erc20('fxrt', 'FXRT', 3, '0x506742a24c54b77c5af4065b2626ab96c641f90e', "fxrt" /* FXRT */),
account_1.erc20('gbpx', 'eToro Pound Sterling', 18, '0xf85ef57fcdb36d628d063fa663e61e44d35ae661', "gbpx" /* GBPX */),
account_1.erc20('gen', 'DAOstack', 18, '0x543ff227f64aa17ea132bf9886cab5db55dcaddf', "gen" /* GEN */),
account_1.erc20('gldx', 'eToro Gold', 18, '0x7d2bebd6e41b05384f0a8eb8ff228daac6f39c96', "gldx" /* GLDX */),
account_1.erc20('gno', 'Gnosis', 18, '0x6810e776880c02933d47db1b9fc05908e5386b96', "gno" /* GNO */),
account_1.erc20('gnt', 'Golem', 18, '0xa74476443119a942de498590fe1f2454d7d4ac0d', "gnt" /* GNT */),
account_1.erc20('gnx', 'Genaro Network', 9, '0x6ec8a24cabdc339a06a172f8223ea557055adaa5', "gnx" /* GNX */),
account_1.erc20('got', 'GOExchange', 18, '0xf11f2550769dac4226731b7732dd4e17e72b1b01', "got" /* GOT */),
account_1.erc20('gto', 'Gifto', 5, '0xc5bbae50781be1669306b9e001eff57a2957b09d', "gto" /* GTO */),
account_1.erc20('gusd', 'Gemini Dollar', 2, '0x056fd409e1d7a124bd7017459dfea2f387b6d5cd', "gusd" /* GUSD */),
account_1.erc20('gvt', 'Genesis Vision', 18, '0x103c3a209da59d3e7c4a89307e66521e081cfdf0', "gvt" /* GVT */),
account_1.erc20('hedg', 'HedgeTrade', 18, '0xf1290473e210b2108a85237fbcd7b6eb42cc654f', "hedg" /* HEDG */),
account_1.erc20('hlc', 'HalalChain', 9, '0x58c69ed6cd6887c0225d1fccecc055127843c69b', "hlc" /* HLC */),
account_1.erc20('hold', 'Hold', 18, '0xd6e1401a079922469e9b965cb090ea6ff64c6839', "hold" /* HOLD */),
account_1.erc20('hot', 'Holo', 18, '0x6c6ee5e31d828de241282b9606c8e98ea48526e2', "hot" /* HOT */),
account_1.erc20('hpb', 'High Performance Blockchain', 18, '0x38c6a68304cdefb9bec48bbfaaba5c5b47818bb2', "hpb" /* HPB */),
account_1.erc20('hqt', 'HyperQuant', 18, '0x3e1d5a855ad9d948373ae68e4fe1f094612b1322', "hqt" /* HQT */),
account_1.erc20('hst', 'Decision Token', 18, '0x554c20b7c486beee439277b4540a434566dc4c02', "hst" /* HST */),
account_1.erc20('ht', 'Huobi Token', 18, '0x6f259637dcd74c767781e37bc6133cd6a68aa161', "ht" /* HT */),
account_1.erc20('hxro', 'Hxro', 18, '0x4bd70556ae3f8a6ec6c4080a0c327b24325438f3', "hxro" /* HXRO */),
account_1.erc20('hyb', 'Hybrid Block', 18, '0x6059f55751603ead7dc6d280ad83a7b33d837c90', "hyb" /* HYB */),
account_1.erc20('hydro', 'Hydro', 18, '0xebbdf302c940c6bfd49c6b165f457fdb324649bc', "hydro" /* HYDRO */),
account_1.erc20('icn', 'Iconomi', 18, '0x888666ca69e0f178ded6d75b5726cee99a87d698', "icn" /* ICN */),
account_1.erc20('icx', 'Icon', 18, '0xb5a5f22694352c15b00323844ad545abb2b11028', "icx" /* ICX */),
account_1.erc20('incx', 'InternationalCryptoX', 18, '0xa984a92731c088f1ea4d53b71a2565a399f7d8d5', "incx" /* INCX */),
account_1.erc20('ind', 'Indorse', 18, '0xf8e386eda857484f5a12e4b5daa9984e06e73705', "ind" /* IND */),
account_1.erc20('iost', 'IOSToken', 18, '0xfa1a856cfa3409cfa145fa4e20eb270df3eb21ab', "iost" /* IOST */),
account_1.erc20('isr', 'Insureum', 18, '0xd4a293ae8bb9e0be12e99eb19d48239e8c83a136', "isr" /* ISR */),
account_1.erc20('jbc', 'Japan Brand Coin', 18, '0x3635e381c67252405c1c0e550973155832d5e490', "jbc" /* JBC */),
account_1.erc20('jpyx', 'eToro Japanese Yen', 18, '0x743c79f88dcadc6e7cfd7fa2bd8e2bfc68dae053', "jpyx" /* JPYX */),
account_1.erc20('kcs', 'Kucoin Shares', 6, '0x039b5649a59967e3e936d7471f9c3700100ee1ab', "kcs" /* KCS */),
account_1.erc20('key', 'SelfKey', 18, '0x4cc19356f2d37338b9802aa8e8fc58b0373296e7', "key" /* KEY */),
account_1.erc20('kin', 'Kin', 18, '0x818fc6c2ec5986bc6e2cbf00939d90556ab12ce5', "kin" /* KIN */),
account_1.erc20('knc', 'Kyber Network', 18, '0xdd974d5c2e2928dea5f71b9825b8b646686bd200', "knc" /* KNC */),
account_1.erc20('kze', 'Almeela', 18, '0x8de67d55c58540807601dbf1259537bc2dffc84d', "kze" /* KZE */),
account_1.erc20('lba', 'Cred', 18, '0xfe5f141bf94fe84bc28ded0ab966c16b17490657', "lba" /* LBA */),
account_1.erc20('lgo', 'LGO Exchange', 8, '0x123ab195dd38b1b40510d467a6a359b201af056f', "lgo" /* LGO */),
account_1.erc20('link', 'ChainLink', 18, '0x514910771af9ca656af840dff83e8264ecf986ca', "link" /* LINK */),
account_1.erc20('lion', 'CoinLion', 18, '0x2167fb82309cf76513e83b25123f8b0559d6b48f', "lion" /* LION */),
account_1.erc20('lnc', 'Linker Coin', 18, '0x6beb418fc6e1958204ac8baddcf109b8e9694966', "lnc" /* LNC */),
account_1.erc20('loom', 'Loom Network', 18, '0xa4e8c3ec456107ea67d3075bf9e3df3a75823db0', "loom" /* LOOM */),
account_1.erc20('lrc', 'loopring', 18, '0xef68e7c694f40c8202821edf525de3782458639f', "lrc" /* LRC */),
account_1.erc20('man', 'Matrix AI Network', 18, '0xe25bcec5d3801ce3a794079bf94adf1b8ccd802d', "man" /* MAN */),
account_1.erc20('mana', 'Decentraland', 18, '0x0f5d2fb29fb7d3cfee444a200298f468908cc942', "mana" /* MANA */),
account_1.erc20('mco', 'Monaco', 8, '0xb63b606ac810a52cca15e44bb630fd42d8d1d83d', "mco" /* MCO */),
account_1.erc20('mcx', 'MachiX Token', 18, '0xd15ecdcf5ea68e3995b2d0527a0ae0a3258302f8', "mcx" /* MCX */),
account_1.erc20('mdx', 'Mandala', 18, '0x9d03393d297e42c135625d450c814892505f1a84', "mdx" /* MDX */),
account_1.erc20('medx', 'Medibloc', 8, '0xfd1e80508f243e64ce234ea88a5fd2827c71d4b7', "medx" /* MEDX */),
account_1.erc20('met', 'Metronome', 18, '0xa3d58c4e56fedcae3a7c43a725aee9a71f0ece4e', "met" /* MET */),
account_1.erc20('meta', 'Metadium', 18, '0xde2f7766c8bf14ca67193128535e5c7454f8387c', "meta" /* META */),
account_1.erc20('mfg', 'SyncFab', 18, '0x6710c63432a2de02954fc0f851db07146a6c0312', "mfg" /* MFG */),
account_1.erc20('mft', 'Mainframe', 18, '0xdf2c7238198ad8b389666574f2d8bc411a4b7428', "mft" /* MFT */),
account_1.erc20('mith', 'Mithril', 18, '0x3893b9422cd5d70a81edeffe3d5a1c6a978310bb', "mith" /* MITH */),
account_1.erc20('mkr', 'Maker', 18, '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2', "mkr" /* MKR */),
account_1.erc20('mtcn', 'Multiven', 18, '0xf6117cc92d7247f605f11d4c942f0feda3399cb5', "mtcn" /* MTCN */),
account_1.erc20('mtl', 'Metal', 8, '0xf433089366899d83a9f26a773d59ec7ecf30355e', "mtl" /* MTL */),
account_1.erc20('mvl', 'Mass Vehicle Ledger', 18, '0xa849eaae994fb86afa73382e9bd88c2b6b18dc71', "mvl" /* MVL */),
account_1.erc20('nas', 'Nebulas', 18, '0x5d65d971895edc438f465c17db6992698a52318d', "nas" /* NAS */),
account_1.erc20('ncash', 'Nucleus Vision', 18, '0x809826cceab68c387726af962713b64cb5cb3cca', "ncash" /* NCASH */),
account_1.erc20('neu', 'Neumark', 18, '0xa823e6722006afe99e91c30ff5295052fe6b8e32', "neu" /* NEU */),
account_1.erc20('nexo', 'Nexo', 18, '0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206', "nexo" /* NEXO */),
account_1.erc20('nmr', 'Numeraire', 18, '0x1776e1f26f98b1a5df9cd347953a26dd3cb46671', "nmr" /* NMR */),
account_1.erc20('npxs', 'Pundi X', 18, '0xa15c7ebe1f07caf6bff097d8a589fb8ac49ae5b3', "npxs" /* NPXS */),
account_1.erc20('nuls', 'Nuls', 18, '0xb91318f35bdb262e9423bc7c7c2a3a93dd93c92c', "nuls" /* NULS */),
account_1.erc20('nzdx', 'eToro New Zealand Dollar', 18, '0x6871799a4866bb9068b36b7a9bb93475ac77ac5d', "nzdx" /* NZDX */),
account_1.erc20('omg', 'OmiseGO Token', 18, '0xd26114cd6ee289accf82350c8d8487fedb8a0c07', "omg" /* OMG */),
account_1.erc20('onl', 'On.Live', 18, '0x6863be0e7cf7ce860a574760e9020d519a8bdc47', "onl" /* ONL */),
account_1.erc20('opt', 'OPTin Token', 18, '0xde8893346ce8052a02606b62d13b142648e062dd', "opt" /* OPT */),
account_1.erc20('ost', 'Ost', 18, '0x2c4e8f2d746113d0696ce89b35f0d8bf88e0aeca', "ost" /* OST */),
account_1.erc20('pax', 'Paxos', 18, '0x8e870d67f660d95d5be530380d0ec0bd388289e1', "pax" /* PAX */),
account_1.erc20('pay', 'TenX', 18, '0xb97048628db6b661d4c2aa833e95dbe1a905b280', "pay" /* PAY */),
account_1.erc20('payx', 'Paypex', 2, '0x62a56a4a2ef4d355d34d10fbf837e747504d38d4', "payx" /* PAYX */),
account_1.erc20('plc', 'PlusCoin', 18, '0xdf99c7f9e0eadd71057a801055da810985df38bd', "plc" /* PLC */),
account_1.erc20('plr', 'Pillar', 18, '0xe3818504c1b32bf1557b16c238b2e01fd3149c17', "plr" /* PLR */),
account_1.erc20('plx', 'PLN Stable Token', 18, '0x8d682bc7ad206e54055c609ea1d4717caab665d0', "plx" /* PLX */),
account_1.erc20('pma', 'PumaPay', 18, '0x846c66cf71c43f80403b51fe3906b3599d63336f', "pma" /* PMA */),
account_1.erc20('poe', 'Po.et', 8, '0x0e0989b1f9b8a38983c2ba8053269ca62ec9b195', "poe" /* POE */),
account_1.erc20('poly', 'Polymath', 18, '0x9992ec3cf6a55b00978cddf2b27bc6882d88d1ec', "poly" /* POLY */),
account_1.erc20('powr', 'Power Ledger', 6, '0x595832f8fc6bf59c85c527fec3740a1b7a361269', "powr" /* POWR */),
account_1.erc20('ppp', 'PayPie', 18, '0xc42209accc14029c1012fb5680d95fbd6036e2a0', "ppp" /* PPP */),
account_1.erc20('ppt', 'Populous Platform', 8, '0xd4fa1460f537bb9085d22c7bccb5dd450ef28e3a', "ppt" /* PPT */),
account_1.erc20('prl', 'Oyster', 18, '0x1844b21593262668b7248d0f57a220caaba46ab9', "prl" /* PRL */),
account_1.erc20('pro', 'Propy', 18, '0x9041fe5b3fdea0f5e4afdc17e75180738d877a01', "pro" /* PRO */),
account_1.erc20('qash', 'QASH', 6, '0x618e75ac90b12c6049ba3b27f5d5f8651b0037f6', "qash" /* QASH */),
account_1.erc20('qrl', 'Qrl', 8, '0x697beac28b09e122c4332d163985e8a73121b97f', "qrl" /* QRL */),
account_1.erc20('qsp', 'Quantstamp', 18, '0x99ea4db9ee77acd40b119bd1dc4e33e1c070b80d', "qsp" /* QSP */),
account_1.erc20('quash', 'Qash', 6, '0x618e75ac90b12c6049ba3b27f5d5f8651b0037f6', "quash" /* QUASH */),
account_1.erc20('qvt', 'Qvolta', 18, '0x1183f92a5624d68e85ffb9170f16bf0443b4c242', "qvt" /* QVT */),
account_1.erc20('r', 'Revain', 0, '0x48f775efbe4f5ece6e0df2f7b5932df56823b990', "r" /* R */),
account_1.erc20('rby', 'Ruby X', 18, '0xf7705dee19a63e0bc1a240f723c5c0f570c78572', "rby" /* RBY */),
account_1.erc20('rdn', 'Raiden Network', 18, '0x255aa6df07540cb5d3d297f0d0d4d84cb52bc8e6', "rdn" /* RDN */),
account_1.erc20('reb', 'Regblo', 18, '0x61383ac89988b498df5363050ff07fe5c52ecdda', "reb" /* REB */),
account_1.erc20('rebl', 'Rebellious', 18, '0x5f53f7a8075614b699baad0bc2c899f4bad8fbbf', "rebl" /* REBL */),
account_1.erc20('rep', 'Augur', 18, '0x1985365e9f78359a9b6ad760e32412f4a445e862', "rep" /* REP */),
account_1.erc20('req', 'Request Network', 18, '0x8f8221afbb33998d8584a2b05749ba73c37a938a', "req" /* REQ */),
account_1.erc20('rfr', 'Refereum', 4, '0xd0929d411954c47438dc1d871dd6081f5c5e149c', "rfr" /* RFR */),
account_1.erc20('rhoc', 'RHOC', 8, '0x168296bb09e24a88805cb9c33356536b980d3fc5', "rhoc" /* RHOC */),
account_1.erc20('rlc', 'Iexec Rlc', 9, '0x607f4c5bb672230e8672085532f7e901544a7375', "rlc" /* RLC */),
account_1.erc20('rubx', 'eToro Russian Ruble', 18, '0xd6d69a3d5e51dbc2636dc332338765fcca71d5d5', "rubx" /* RUBX */),
account_1.erc20('ruff', 'Ruff', 18, '0xf278c1ca969095ffddded020290cf8b5c424ace2', "ruff" /* RUFF */),
account_1.erc20('salt', 'Salt', 8, '0x4156d3342d5c385a87d264f90653733592000581', "salt" /* SALT */),
account_1.erc20('san', 'Santiment Network', 18, '0x7c5a0ce9267ed19b22f8cae653f198e3e8daf098', "san" /* SAN */),
account_1.erc20('shk', 'iShook', 18, '0xebe4a49df7885d015329c919bf43e6460a858f1e', "shk" /* SHK */),
account_1.erc20('slot', 'AlphaSlot', 18, '0xaee7474c3713ece228aa5ec43c89c708f2ec7ed2', "slot" /* SLOT */),
account_1.erc20('slvx', 'eToro Silver', 18, '0x8e4d222dbd4f8f9e7c175e77d6e71715c3da78e0', "slvx" /* SLVX */),
account_1.erc20('smt', 'SmartMesh', 18, '0x55f93985431fc9304077687a35a1ba103dc1e081', "smt" /* SMT */),
account_1.erc20('snov', 'Snovio', 18, '0xbdc5bac39dbe132b1e030e898ae3830017d7d969', "snov" /* SNOV */),
account_1.erc20('snt', 'Status Network Token', 18, '0x744d70fdbe2ba4cf95131626614a1763df805b9e', "snt" /* SNT */),
account_1.erc20('srn', 'Sirin Labs', 18, '0x68d57c9a1c35f63e2c83ee8e49a64e9d70528d25', "srn" /* SRN */),
account_1.erc20('srnt', 'Serenity', 18, '0xbc7942054f77b82e8a71ace170e4b00ebae67eb6', "srnt" /* SRNT */),
account_1.erc20('storj', 'Storj', 8, '0xb64ef51c888972c908cfacf59b47c1afbc0ab8ac', "storj" /* STORJ */),
account_1.erc20('storm', 'Storm', 18, '0xd0a4b8946cb52f0661273bfbc6fd0e0c75fc6433', "storm" /* STORM */),
account_1.erc20('sub', 'Substratum', 2, '0x12480e24eb5bec1a9d4369cab6a80cad3c0a377a', "sub" /* SUB */),
account_1.erc20('taud', 'TrueAUD', 18, '0x00006100f7090010005f1bd7ae6122c3c2cf0090', "taud" /* TAUD */),
account_1.erc20('ten', 'Tokenomy', 18, '0xdd16ec0f66e54d453e6756713e533355989040e4', "ten" /* TEN */),
account_1.erc20('theta', 'Theta Token', 18, '0x3883f5e181fccaf8410fa61e12b59bad963fb645', "theta" /* THETA */),
account_1.erc20('tkx', 'Tokenize', 8, '0x667102bd3413bfeaa3dffb48fa8288819e480a88', "tkx" /* TKX */),
account_1.erc20('tms', 'Time New Bank', 18, '0xf7920b0768ecb20a123fac32311d07d193381d6f', "tms" /* TMS */),
account_1.erc20('tnt', 'Tierion', 8, '0x08f5a9235b08173b7569f83645d2c7fb55e8ccd8', "tnt" /* TNT */),
account_1.erc20('trst', 'WeTrust', 6, '0xcb94be6f13a1182e4a4b6140cb7bf2025d28e41b', "trst" /* TRST */),
account_1.erc20('trx', 'Tronix', 6, '0xf230b790e05390fc8295f4d3f60332c93bed42e2', "trx" /* TRX */),
account_1.erc20('tusd', 'TrueUSD', 18, '0x0000000000085d4780b73119b644ae5ecd22b376', "tusd" /* TUSD */),
account_1.erc20('ukg', 'UnikoinGold', 18, '0x24692791bc444c5cd0b81e3cbcaba4b04acd1f3b', "ukg" /* UKG */),
account_1.erc20('upbtc', 'Universal Bitcoin', 8, '0xc7461b398005e50bcc43c8e636378c6722e76c01', "upbtc" /* UPBTC */),
account_1.erc20('upp', 'Sentinel Protocol', 18, '0xc86d054809623432210c107af2e3f619dcfbf652', "upp" /* UPP */),
account_1.erc20('upt', 'Universal Protocol Token', 18, '0x6ca88cc8d9288f5cad825053b6a1b179b05c76fc', "upt" /* UPT */),
account_1.erc20('upusd', 'Universal US Dollar', 2, '0x86367c0e517622dacdab379f2de389c3c9524345', "upusd" /* UPUSD */),
account_1.erc20('uqc', 'Uquid Coin', 18, '0xd01db73e047855efb414e6202098c4be4cd2423b', "uqc" /* UQC */),
account_1.erc20('usdc', 'USD Coin', 6, '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', "usdc" /* USDC */),
account_1.erc20('usdt', 'Tether', 6, '0xdac17f958d2ee523a2206206994597c13d831ec7', "usdt" /* USDT */),
account_1.erc20('usdx', 'eToro United States Dollar', 18, '0x4e3856c37b2fe7ff2fe34510cda82a1dffd63cd0', "usdx" /* USDX */),
account_1.erc20('usx', 'USD Stable Token', 18, '0xe72f4c4ff9d294fc34829947e4371da306f90465', "usx" /* USX */),
account_1.erc20('vee', 'Blockv', 18, '0x340d2bde5eb28c1eed91b2f790723e3b160613b7', "vee" /* VEE */),
account_1.erc20('ven', 'VeChain Token', 18, '0xd850942ef8811f2a866692a623011bde52a462c1', "ven" /* VEN */),
account_1.erc20('veri', 'Veritaseum', 18, '0x8f3470a7388c05ee4e7af3d01d8c722b0ff52374', "veri" /* VERI */),
account_1.erc20('wax', 'Wax', 8, '0x39bb259f66e1c59d5abef88375979b4d20d98022', "wax" /* WAX */),
account_1.erc20('wbtc', 'Wrapped Bitcoin', 8, '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', "wbtc" /* WBTC */),
account_1.erc20('wht', 'Whatshalal', 18, '0xae8d4da01658dd0ac118dde60f5b78042d0da7f2', "wht" /* WHT */),
account_1.erc20('wpx', 'WalletPlusX', 18, '0x4bb0a085db8cedf43344bd2fbec83c2c79c4e76b', "wpx" /* WPX */),
account_1.erc20('wtc', 'Walton Token', 18, '0xb7cb1c96db6b22b0d3d9536e0108d062bd488f74', "wtc" /* WTC */),
account_1.erc20('xcd', 'CapdaxToken', 18, '0xca00bc15f67ebea4b20dfaaa847cace113cc5501', "xcd" /* XCD */),
account_1.erc20('xin', 'Mixin', 18, '0xa974c709cfb4566686553a20790685a47aceaa33', "xin" /* XIN */),
account_1.erc20('xrl', 'Rialto', 9, '0xb24754be79281553dc1adc160ddf5cd9b74361a4', "xrl" /* XRL */),
account_1.erc20('ysey', 'YSEY Utility Token', 3, '0x1358efe5d9bfc2005918c0b2f220a4345c9ee7a3', "ysey" /* YSEY */),
account_1.erc20('zco', 'Zebi Coin', 8, '0x2008e3057bd734e10ad13c9eae45ff132abc1722', "zco" /* ZCO */),
account_1.erc20('zil', 'Zilliqa', 12, '0x05f4a42e251f2d52b8ed15e9fedaacfcef1fad27', "zil" /* ZIL */),
account_1.erc20('zix', 'Zeex Token', 18, '0xf3c092ca8cd6d3d4ca004dc1d0f1fe8ccab53599', "zix" /* ZIX */),
account_1.erc20('zoom', 'CoinZoom', 18, '0x69cf3091c91eb72db05e45c76e58225177dea742', "zoom" /* ZOOM */),
account_1.erc20('zrx', '0x Token', 18, '0xe41d2489571d322189246dafa5ebde1f4699f498', "zrx" /* ZRX */),
account_1.terc20('terc', 'ERC Test Token', 0, '0x945ac907cf021a6bcd07852bb3b8c087051706a9', "erc" /* ERC */),
account_1.terc20('test', 'Test Mintable ERC20 Token', 18, '0x1fb879581f31687b905653d4bbcbe3af507bed37', "test" /* TEST */),
account_1.terc20('tbst', 'Test BitGo Shield Token', 0, '0xe5cdf77835ca2095881dd0803a77e844c87483cd', "bst" /* BST */),
account_1.terc20('schz', 'SchnauzerCoin', 18, '0x050e25a2630b2aee94546589fd39785254de112c', "schz" /* SCHZ */),
account_1.terc20('tcat', 'Test CAT-20 Token', 18, '0x63137319f3a14a985eb31547370e0e3bd39b03b8', "tcat" /* TCAT */),
account_1.terc20('tfmf', 'Test Formosa Financial Token', 18, '0xd8463d2f8c5b3be9de95c63b73a0ae4c79423452', "fmf" /* FMF */),
]);
//# sourceMappingURL=coins.js.map

@@ -20,3 +20,3 @@ "use strict";

var _this = _super.call(this, message) || this;
_this.stack = new Error().stack;
_this.stack = new Error(message).stack;
Object.setPrototypeOf(_this, BitGoStaticsError.prototype);

@@ -23,0 +23,0 @@ return _this;

export * from './base';
export * from './coins';
export * from './networks';
export * from './errors';
export { UtxoCoin } from './utxo';
export { AccountCoin, Erc20Coin } from './account';
export { CoinMap } from './map';

@@ -8,2 +8,11 @@ "use strict";

__export(require("./coins"));
__export(require("./networks"));
__export(require("./errors"));
var utxo_1 = require("./utxo");
exports.UtxoCoin = utxo_1.UtxoCoin;
var account_1 = require("./account");
exports.AccountCoin = account_1.AccountCoin;
exports.Erc20Coin = account_1.Erc20Coin;
var map_1 = require("./map");
exports.CoinMap = map_1.CoinMap;
//# sourceMappingURL=index.js.map

@@ -6,5 +6,9 @@ import { CoinFamily } from './base';

}
export interface UtxoNetwork {
export declare abstract class BaseNetwork {
abstract readonly type: NetworkType;
abstract readonly family: CoinFamily;
}
export interface UtxoNetwork extends BaseNetwork {
messagePrefix: string;
bech32: string;
bech32?: string;
bip32: {

@@ -17,24 +21,25 @@ public: number;

wif: number;
family: CoinFamily;
type: NetworkType;
}
export interface AccountNetwork {
family: CoinFamily;
type: NetworkType;
export interface AccountNetwork extends BaseNetwork {
}
export declare class Mainnet {
export interface OfcNetwork extends BaseNetwork {
}
declare abstract class Mainnet extends BaseNetwork {
type: NetworkType;
}
export declare class Testnet {
declare abstract class Testnet extends BaseNetwork {
type: NetworkType;
}
declare class Ethereum extends Mainnet implements AccountNetwork {
family: CoinFamily;
}
declare class Kovan extends Testnet implements AccountNetwork {
family: CoinFamily;
}
declare class Bitcoin extends Mainnet implements UtxoNetwork {
/**
* Mainnet abstract class for Bitcoin forks. These are the constants from the Bitcoin main network,
* which are overridden to various degrees by each Bitcoin fork.
*
* This allows us to not redefine these properties for forks which haven't changed them from Bitcoin.
*
* However, if a coin network has changed one of these properties, and you accidentally forget to override,
* you'll inherit the incorrect values from the Bitcoin network. Be wary, and double check your network constant
* overrides to ensure you're not missing any changes.
*/
declare abstract class BitcoinLikeMainnet extends Mainnet implements UtxoNetwork {
messagePrefix: string;
bech32: string;
bip32: {

@@ -47,6 +52,10 @@ public: number;

wif: number;
family: CoinFamily;
type: NetworkType;
}
declare class BitcoinTestnet extends Testnet implements UtxoNetwork {
bech32: string;
/**
* Testnet abstract class for Bitcoin forks. Works exactly the same as `BitcoinLikeMainnet`,
* except the constants are taken from the Bitcoin test network.
*/
declare abstract class BitcoinLikeTestnet extends Testnet implements UtxoNetwork {
messagePrefix: string;
bip32: {

@@ -59,8 +68,46 @@ public: number;

wif: number;
type: NetworkType;
}
declare class Ethereum extends Mainnet implements AccountNetwork {
family: CoinFamily;
}
declare class Kovan extends Testnet implements AccountNetwork {
family: CoinFamily;
}
declare class Bitcoin extends BitcoinLikeMainnet {
family: CoinFamily;
bech32: string;
}
declare class BitcoinTestnet extends BitcoinLikeTestnet {
family: CoinFamily;
bech32: string;
}
declare class BitcoinCash extends BitcoinLikeMainnet {
family: CoinFamily;
}
declare class BitcoinCashTestnet extends BitcoinLikeTestnet {
family: CoinFamily;
}
declare class BitcoinSV extends BitcoinLikeMainnet {
family: CoinFamily;
}
declare class BitcoinSVTestnet extends BitcoinLikeTestnet {
family: CoinFamily;
}
declare class BitcoinGold extends BitcoinLikeMainnet {
messagePrefix: string;
bech32: string;
pubKeyHash: number;
scriptHash: number;
family: CoinFamily;
}
declare class BitcoinGold extends Mainnet implements UtxoNetwork {
declare class Dash extends BitcoinLikeMainnet {
messagePrefix: string;
bech32: string;
pubKeyHash: number;
scriptHash: number;
wif: number;
family: CoinFamily;
}
declare class DashTestnet extends BitcoinLikeTestnet {
messagePrefix: string;
bip32: {

@@ -75,9 +122,5 @@ public: number;

}
declare class Litecoin extends Mainnet implements UtxoNetwork {
declare class Litecoin extends BitcoinLikeMainnet {
messagePrefix: string;
bech32: string;
bip32: {
public: number;
private: number;
};
pubKeyHash: number;

@@ -88,3 +131,4 @@ scriptHash: number;

}
declare class LitecoinTestnet extends Testnet implements UtxoNetwork {
declare class LitecoinTestnet extends BitcoinLikeTestnet {
messagePrefix: string;
bech32: string;

@@ -98,11 +142,22 @@ bip32: {

wif: number;
family: CoinFamily;
}
declare class ZCash extends BitcoinLikeMainnet {
messagePrefix: string;
pubKeyHash: number;
scriptHash: number;
family: CoinFamily;
}
declare class Ripple extends Mainnet implements AccountNetwork {
declare class ZCashTestnet extends BitcoinLikeTestnet {
messagePrefix: string;
pubKeyHash: number;
scriptHash: number;
family: CoinFamily;
}
declare class RippleTestnet extends Testnet implements AccountNetwork {
declare class Xrp extends Mainnet implements AccountNetwork {
family: CoinFamily;
}
declare class XrpTestnet extends Testnet implements AccountNetwork {
family: CoinFamily;
}
declare class Stellar extends Mainnet implements AccountNetwork {

@@ -114,19 +169,43 @@ family: CoinFamily;

}
declare class Ofc extends Mainnet implements OfcNetwork {
family: CoinFamily;
}
declare class OfcTestnet extends Testnet implements OfcNetwork {
family: CoinFamily;
}
declare class SUSD extends Mainnet implements AccountNetwork {
family: CoinFamily;
}
declare class SUSDTestnet extends Testnet implements AccountNetwork {
family: CoinFamily;
}
export declare const Networks: {
main: {
bitcoin: Readonly<Bitcoin>;
bitcoinCash: Readonly<BitcoinCash>;
bitcoinSV: Readonly<BitcoinSV>;
bitcoinGold: Readonly<BitcoinGold>;
dash: Readonly<Dash>;
litecoin: Readonly<Litecoin>;
ethereum: Readonly<Ethereum>;
ripple: Readonly<Ripple>;
xrp: Readonly<Xrp>;
stellar: Readonly<Stellar>;
zCash: Readonly<ZCash>;
ofc: Readonly<Ofc>;
susd: Readonly<SUSD>;
};
test: {
bitcoin: Readonly<BitcoinTestnet>;
bitcoinCash: Readonly<BitcoinCashTestnet>;
bitcoinSV: Readonly<BitcoinSVTestnet>;
dash: Readonly<DashTestnet>;
litecoin: Readonly<LitecoinTestnet>;
kovan: Readonly<Kovan>;
ripple: Readonly<RippleTestnet>;
xrp: Readonly<XrpTestnet>;
stellar: Readonly<StellarTestnet>;
zCash: Readonly<ZCashTestnet>;
ofc: Readonly<OfcTestnet>;
susd: Readonly<SUSDTestnet>;
};
};
export {};

@@ -16,16 +16,74 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var Mainnet = /** @class */ (function () {
var BaseNetwork = /** @class */ (function () {
function BaseNetwork() {
}
return BaseNetwork;
}());
exports.BaseNetwork = BaseNetwork;
var Mainnet = /** @class */ (function (_super) {
__extends(Mainnet, _super);
function Mainnet() {
this.type = "mainnet" /* MAINNET */;
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = "mainnet" /* MAINNET */;
return _this;
}
return Mainnet;
}());
exports.Mainnet = Mainnet;
var Testnet = /** @class */ (function () {
}(BaseNetwork));
var Testnet = /** @class */ (function (_super) {
__extends(Testnet, _super);
function Testnet() {
this.type = "testnet" /* TESTNET */;
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = "testnet" /* TESTNET */;
return _this;
}
return Testnet;
}());
exports.Testnet = Testnet;
}(BaseNetwork));
/**
* Mainnet abstract class for Bitcoin forks. These are the constants from the Bitcoin main network,
* which are overridden to various degrees by each Bitcoin fork.
*
* This allows us to not redefine these properties for forks which haven't changed them from Bitcoin.
*
* However, if a coin network has changed one of these properties, and you accidentally forget to override,
* you'll inherit the incorrect values from the Bitcoin network. Be wary, and double check your network constant
* overrides to ensure you're not missing any changes.
*/
var BitcoinLikeMainnet = /** @class */ (function (_super) {
__extends(BitcoinLikeMainnet, _super);
function BitcoinLikeMainnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x18Bitcoin Signed Message:\n';
_this.bip32 = {
public: 0x0488b21e,
private: 0x0488ade4,
};
_this.pubKeyHash = 0x00;
_this.scriptHash = 0x05;
_this.wif = 0x80;
_this.type = "mainnet" /* MAINNET */;
return _this;
}
return BitcoinLikeMainnet;
}(Mainnet));
/**
* Testnet abstract class for Bitcoin forks. Works exactly the same as `BitcoinLikeMainnet`,
* except the constants are taken from the Bitcoin test network.
*/
var BitcoinLikeTestnet = /** @class */ (function (_super) {
__extends(BitcoinLikeTestnet, _super);
function BitcoinLikeTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x18Bitcoin Signed Message:\n';
_this.bip32 = {
public: 0x043587cf,
private: 0x04358394,
};
_this.pubKeyHash = 0x6f;
_this.scriptHash = 0xc4;
_this.wif = 0xef;
_this.type = "testnet" /* TESTNET */;
return _this;
}
return BitcoinLikeTestnet;
}(Testnet));
var Ethereum = /** @class */ (function (_super) {

@@ -44,3 +102,3 @@ __extends(Ethereum, _super);

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = Ethereum.prototype.family;
_this.family = "eth" /* ETH */;
return _this;

@@ -54,16 +112,8 @@ }

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x18Bitcoin Signed Message:\n';
_this.family = "btc" /* BTC */;
_this.bech32 = 'bc';
_this.bip32 = {
public: 0x0488b21e,
private: 0x0488ade4,
};
_this.pubKeyHash = 0x00;
_this.scriptHash = 0x05;
_this.wif = 0x80;
_this.family = "btc" /* BTC */;
return _this;
}
return Bitcoin;
}(Mainnet));
}(BitcoinLikeMainnet));
var BitcoinTestnet = /** @class */ (function (_super) {

@@ -73,17 +123,44 @@ __extends(BitcoinTestnet, _super);

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "btc" /* BTC */;
_this.bech32 = 'tb';
_this.bip32 = {
public: 0x043587cf,
private: 0x04358394,
};
_this.pubKeyHash = 0x6f;
_this.scriptHash = 0xc4;
_this.wif = 0xef;
// fields "inherited" from the Bitcoin mainnet
_this.messagePrefix = Bitcoin.prototype.messagePrefix;
_this.family = Bitcoin.prototype.family;
return _this;
}
return BitcoinTestnet;
}(Testnet));
}(BitcoinLikeTestnet));
var BitcoinCash = /** @class */ (function (_super) {
__extends(BitcoinCash, _super);
function BitcoinCash() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "bch" /* BCH */;
return _this;
}
return BitcoinCash;
}(BitcoinLikeMainnet));
var BitcoinCashTestnet = /** @class */ (function (_super) {
__extends(BitcoinCashTestnet, _super);
function BitcoinCashTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "bch" /* BCH */;
return _this;
}
return BitcoinCashTestnet;
}(BitcoinLikeTestnet));
var BitcoinSV = /** @class */ (function (_super) {
__extends(BitcoinSV, _super);
function BitcoinSV() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "bsv" /* BSV */;
return _this;
}
return BitcoinSV;
}(BitcoinLikeMainnet));
var BitcoinSVTestnet = /** @class */ (function (_super) {
__extends(BitcoinSVTestnet, _super);
function BitcoinSVTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "bsv" /* BSV */;
return _this;
}
return BitcoinSVTestnet;
}(BitcoinLikeTestnet));
var BitcoinGold = /** @class */ (function (_super) {

@@ -95,9 +172,4 @@ __extends(BitcoinGold, _super);

_this.bech32 = 'btg';
_this.bip32 = {
public: 0x0488b21e,
private: 0x0488ade4,
};
_this.pubKeyHash = 0x26;
_this.scriptHash = 0x17;
_this.wif = 0x80;
_this.family = "btg" /* BTG */;

@@ -107,3 +179,33 @@ return _this;

return BitcoinGold;
}(Mainnet));
}(BitcoinLikeMainnet));
var Dash = /** @class */ (function (_super) {
__extends(Dash, _super);
function Dash() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x19DarkCoin Signed Message:\n';
_this.pubKeyHash = 0x4c;
_this.scriptHash = 0x10;
_this.wif = 0xcc;
_this.family = "dash" /* DASH */;
return _this;
}
return Dash;
}(BitcoinLikeMainnet));
var DashTestnet = /** @class */ (function (_super) {
__extends(DashTestnet, _super);
function DashTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x19DarkCoin Signed Message:\n';
_this.bip32 = {
public: 0x043587cf,
private: 0x04358394,
};
_this.pubKeyHash = 0x8c;
_this.scriptHash = 0x13;
_this.wif = 0xef;
_this.family = "dash" /* DASH */;
return _this;
}
return DashTestnet;
}(BitcoinLikeTestnet));
var Litecoin = /** @class */ (function (_super) {

@@ -115,7 +217,2 @@ __extends(Litecoin, _super);

_this.bech32 = 'ltc';
// clarify these constants - they are different between BitGoJS and bitgo-utxo-lib
_this.bip32 = {
public: 0x0488b21e,
private: 0x0488ade4,
};
_this.pubKeyHash = 0x30;

@@ -128,3 +225,3 @@ _this.scriptHash = 0x32;

return Litecoin;
}(Mainnet));
}(BitcoinLikeMainnet));
var LitecoinTestnet = /** @class */ (function (_super) {

@@ -134,4 +231,4 @@ __extends(LitecoinTestnet, _super);

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x19Litecoin Signed Message:\n';
_this.bech32 = 'tltc';
// clarify these constants - they are different between BitGoJS and bitgo-utxo-lib
_this.bip32 = {

@@ -144,26 +241,48 @@ public: 0x0488b21e,

_this.wif = 0xb0;
// fields "inherited" from the Litecoin mainnet
_this.messagePrefix = Litecoin.prototype.messagePrefix;
_this.family = Litecoin.prototype.family;
_this.family = "ltc" /* LTC */;
return _this;
}
return LitecoinTestnet;
}(Testnet));
var Ripple = /** @class */ (function (_super) {
__extends(Ripple, _super);
function Ripple() {
}(BitcoinLikeTestnet));
var ZCash = /** @class */ (function (_super) {
__extends(ZCash, _super);
function ZCash() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x18ZCash Signed Message:\n';
_this.pubKeyHash = 0x1cb8;
_this.scriptHash = 0x1cbd;
_this.family = "zec" /* ZEC */;
return _this;
}
return ZCash;
}(BitcoinLikeMainnet));
var ZCashTestnet = /** @class */ (function (_super) {
__extends(ZCashTestnet, _super);
function ZCashTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.messagePrefix = '\x18ZCash Signed Message:\n';
_this.pubKeyHash = 0x1d25;
_this.scriptHash = 0x1cba;
_this.family = "zec" /* ZEC */;
return _this;
}
return ZCashTestnet;
}(BitcoinLikeTestnet));
var Xrp = /** @class */ (function (_super) {
__extends(Xrp, _super);
function Xrp() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "xrp" /* XRP */;
return _this;
}
return Ripple;
return Xrp;
}(Mainnet));
var RippleTestnet = /** @class */ (function (_super) {
__extends(RippleTestnet, _super);
function RippleTestnet() {
var XrpTestnet = /** @class */ (function (_super) {
__extends(XrpTestnet, _super);
function XrpTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = Ripple.prototype.family;
_this.family = "xrp" /* XRP */;
return _this;
}
return RippleTestnet;
return XrpTestnet;
}(Testnet));

@@ -183,3 +302,3 @@ var Stellar = /** @class */ (function (_super) {

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = Stellar.prototype.family;
_this.family = "xlm" /* XLM */;
return _this;

@@ -189,19 +308,67 @@ }

}(Testnet));
var Ofc = /** @class */ (function (_super) {
__extends(Ofc, _super);
function Ofc() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "ofc" /* OFC */;
return _this;
}
return Ofc;
}(Mainnet));
var OfcTestnet = /** @class */ (function (_super) {
__extends(OfcTestnet, _super);
function OfcTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "ofc" /* OFC */;
return _this;
}
return OfcTestnet;
}(Testnet));
var SUSD = /** @class */ (function (_super) {
__extends(SUSD, _super);
function SUSD() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "susd" /* SUSD */;
return _this;
}
return SUSD;
}(Mainnet));
var SUSDTestnet = /** @class */ (function (_super) {
__extends(SUSDTestnet, _super);
function SUSDTestnet() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.family = "susd" /* SUSD */;
return _this;
}
return SUSDTestnet;
}(Testnet));
exports.Networks = {
main: {
bitcoin: Object.freeze(new Bitcoin()),
bitcoinCash: Object.freeze(new BitcoinCash()),
bitcoinSV: Object.freeze(new BitcoinSV()),
bitcoinGold: Object.freeze(new BitcoinGold()),
dash: Object.freeze(new Dash()),
litecoin: Object.freeze(new Litecoin()),
ethereum: Object.freeze(new Ethereum()),
ripple: Object.freeze(new Ripple()),
xrp: Object.freeze(new Xrp()),
stellar: Object.freeze(new Stellar()),
zCash: Object.freeze(new ZCash()),
ofc: Object.freeze(new Ofc()),
susd: Object.freeze(new SUSD()),
},
test: {
bitcoin: Object.freeze(new BitcoinTestnet()),
bitcoinCash: Object.freeze(new BitcoinCashTestnet()),
bitcoinSV: Object.freeze(new BitcoinSVTestnet()),
dash: Object.freeze(new DashTestnet()),
litecoin: Object.freeze(new LitecoinTestnet()),
kovan: Object.freeze(new Kovan()),
ripple: Object.freeze(new RippleTestnet()),
xrp: Object.freeze(new XrpTestnet()),
stellar: Object.freeze(new StellarTestnet()),
zCash: Object.freeze(new ZCashTestnet()),
ofc: Object.freeze(new OfcTestnet()),
susd: Object.freeze(new SUSDTestnet()),
},
};
//# sourceMappingURL=networks.js.map

@@ -31,3 +31,3 @@ "use strict";

function UtxoCoin(options) {
var _this = _super.call(this, __assign({ kind: "crypto" /* CRYPTO */, family: options.network.family, isToken: false, decimalPlaces: 8, asset: options.asset, prefix: '', suffix: options.name }, options)) || this;
var _this = _super.call(this, __assign({}, options, { kind: "crypto" /* CRYPTO */, isToken: false, decimalPlaces: 8 })) || this;
_this.network = options.network;

@@ -64,2 +64,4 @@ return _this;

if (features === void 0) { features = UtxoCoin.DEFAULT_FEATURES; }
if (prefix === void 0) { prefix = ''; }
if (suffix === void 0) { suffix = name; }
return Object.freeze(new UtxoCoin({

@@ -66,0 +68,0 @@ name: name,

{
"name": "@bitgo/statics",
"version": "1.0.0",
"version": "1.1.0",
"description": "dependency-free static configuration for the bitgo platform",

@@ -5,0 +5,0 @@ "main": "./dist/src/index.js",

@@ -1,5 +0,5 @@

<h1 align="center">
<h1 style="text-align: center;">
<pre>@bitgo/statics</pre>
</h1>
<h3 align="center">
<h3 style="text-align: center;">
Static config for the BitGo platform

@@ -6,0 +6,0 @@ </h3>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc