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

@vutien/sdk-core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vutien/sdk-core - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

8

dist/entities/weth.d.ts

@@ -19,3 +19,6 @@ import { Token } from './token';

ARBITRUM_TESTNET = 421611,
BTTC = 199
BTTC = 199,
VELAS = 106,
AURORA = 1313161554,
OASIS = 42262
}

@@ -40,2 +43,5 @@ export declare const WETH: {

199: Token;
106: Token;
1313161554: Token;
42262: Token;
};

7

dist/sdk-core.cjs.development.js

@@ -614,6 +614,9 @@ 'use strict';

ChainId[ChainId["ARBITRUM_TESTNET"] = 421611] = "ARBITRUM_TESTNET";
ChainId[ChainId["BTTC"] = 199] = "BTTC"; // AURORA = 1313161554
ChainId[ChainId["BTTC"] = 199] = "BTTC";
ChainId[ChainId["VELAS"] = 106] = "VELAS";
ChainId[ChainId["AURORA"] = 1313161554] = "AURORA";
ChainId[ChainId["OASIS"] = 42262] = "OASIS";
})(exports.ChainId || (exports.ChainId = {}));
var WETH = (_WETH = {}, _WETH[exports.ChainId.MAINNET] = /*#__PURE__*/new Token(exports.ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.ROPSTEN] = /*#__PURE__*/new Token(exports.ChainId.ROPSTEN, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.RINKEBY] = /*#__PURE__*/new Token(exports.ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.GÖRLI] = /*#__PURE__*/new Token(exports.ChainId.GÖRLI, '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.KOVAN] = /*#__PURE__*/new Token(exports.ChainId.KOVAN, '0xd0A1E359811322d97991E03f863a0C30C2cF029C', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.MATIC] = /*#__PURE__*/new Token(exports.ChainId.MATIC, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), _WETH[exports.ChainId.MUMBAI] = /*#__PURE__*/new Token(exports.ChainId.MUMBAI, '0x19395624C030A11f58e820C3AeFb1f5960d9742a', 18, 'WMATIC', 'Wrapped Matic'), _WETH[exports.ChainId.BSCTESTNET] = /*#__PURE__*/new Token(exports.ChainId.BSCTESTNET, '0xae13d989dac2f0debff460ac112a837c89baa7cd', 18, 'WBNB', 'Wrapped BNB'), _WETH[exports.ChainId.BSCMAINNET] = /*#__PURE__*/new Token(exports.ChainId.BSCMAINNET, '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), _WETH[exports.ChainId.AVAXTESTNET] = /*#__PURE__*/new Token(exports.ChainId.AVAXTESTNET, '0xd00ae08403B9bbb9124bB305C09058E32C39A48c', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[exports.ChainId.AVAXMAINNET] = /*#__PURE__*/new Token(exports.ChainId.AVAXMAINNET, '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[exports.ChainId.FANTOM] = /*#__PURE__*/new Token(exports.ChainId.FANTOM, '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83', 18, 'WFTM', 'Wrapped Fantom'), _WETH[exports.ChainId.CRONOSTESTNET] = /*#__PURE__*/new Token(exports.ChainId.CRONOSTESTNET, '0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35', 18, 'WCRO', 'Wrapped CRO'), _WETH[exports.ChainId.CRONOS] = /*#__PURE__*/new Token(exports.ChainId.CRONOS, '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23', 18, 'WCRO', 'Wrapped CRO'), _WETH[exports.ChainId.ARBITRUM] = /*#__PURE__*/new Token(exports.ChainId.ARBITRUM, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.ARBITRUM_TESTNET] = /*#__PURE__*/new Token(exports.ChainId.ARBITRUM_TESTNET, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.BTTC] = /*#__PURE__*/new Token(exports.ChainId.BTTC, '0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A', 18, 'WBTT', 'Wrapped BitTorrent'), _WETH);
var WETH = (_WETH = {}, _WETH[exports.ChainId.MAINNET] = /*#__PURE__*/new Token(exports.ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.ROPSTEN] = /*#__PURE__*/new Token(exports.ChainId.ROPSTEN, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.RINKEBY] = /*#__PURE__*/new Token(exports.ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.GÖRLI] = /*#__PURE__*/new Token(exports.ChainId.GÖRLI, '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.KOVAN] = /*#__PURE__*/new Token(exports.ChainId.KOVAN, '0xd0A1E359811322d97991E03f863a0C30C2cF029C', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.MATIC] = /*#__PURE__*/new Token(exports.ChainId.MATIC, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), _WETH[exports.ChainId.MUMBAI] = /*#__PURE__*/new Token(exports.ChainId.MUMBAI, '0x19395624C030A11f58e820C3AeFb1f5960d9742a', 18, 'WMATIC', 'Wrapped Matic'), _WETH[exports.ChainId.BSCTESTNET] = /*#__PURE__*/new Token(exports.ChainId.BSCTESTNET, '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd', 18, 'WBNB', 'Wrapped BNB'), _WETH[exports.ChainId.BSCMAINNET] = /*#__PURE__*/new Token(exports.ChainId.BSCMAINNET, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), _WETH[exports.ChainId.AVAXTESTNET] = /*#__PURE__*/new Token(exports.ChainId.AVAXTESTNET, '0xd00ae08403B9bbb9124bB305C09058E32C39A48c', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[exports.ChainId.AVAXMAINNET] = /*#__PURE__*/new Token(exports.ChainId.AVAXMAINNET, '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[exports.ChainId.FANTOM] = /*#__PURE__*/new Token(exports.ChainId.FANTOM, '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83', 18, 'WFTM', 'Wrapped Fantom'), _WETH[exports.ChainId.CRONOSTESTNET] = /*#__PURE__*/new Token(exports.ChainId.CRONOSTESTNET, '0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35', 18, 'WCRO', 'Wrapped CRO'), _WETH[exports.ChainId.CRONOS] = /*#__PURE__*/new Token(exports.ChainId.CRONOS, '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23', 18, 'WCRO', 'Wrapped CRO'), _WETH[exports.ChainId.ARBITRUM] = /*#__PURE__*/new Token(exports.ChainId.ARBITRUM, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.ARBITRUM_TESTNET] = /*#__PURE__*/new Token(exports.ChainId.ARBITRUM_TESTNET, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), _WETH[exports.ChainId.BTTC] = /*#__PURE__*/new Token(exports.ChainId.BTTC, '0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A', 18, 'WBTT', 'Wrapped BitTorrent'), _WETH[exports.ChainId.VELAS] = /*#__PURE__*/new Token(exports.ChainId.VELAS, '0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126', 18, 'WVLX', 'Wrapped VLX'), _WETH[exports.ChainId.AURORA] = /*#__PURE__*/new Token(exports.ChainId.AURORA, '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB', 18, 'WETH', 'Wrapped ETH'), _WETH[exports.ChainId.OASIS] = /*#__PURE__*/new Token(exports.ChainId.OASIS, '0x21C718C22D52d0F3a789b752D4c2fD5908a8A733', 18, 'WROSE', 'Wrapped ROSE'), _WETH);

@@ -620,0 +623,0 @@ /**

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

"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var r,e,n=t(require("jsbi")),i=t(require("tiny-invariant")),o=t(require("decimal.js-light")),a=t(require("big.js")),u=t(require("toformat")),s=require("@ethersproject/address");(r=exports.TradeType||(exports.TradeType={}))[r.EXACT_INPUT=0]="EXACT_INPUT",r[r.EXACT_OUTPUT=1]="EXACT_OUTPUT",(e=exports.Rounding||(exports.Rounding={}))[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP";var d,c,p=n.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function f(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,r,e){return r&&f(t.prototype,r),e&&f(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,(Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}var m=u(o),T=u(a),A=((d={})[exports.Rounding.ROUND_DOWN]=m.ROUND_DOWN,d[exports.Rounding.ROUND_HALF_UP]=m.ROUND_HALF_UP,d[exports.Rounding.ROUND_UP]=m.ROUND_UP,d),y=((c={})[exports.Rounding.ROUND_DOWN]=0,c[exports.Rounding.ROUND_HALF_UP]=1,c[exports.Rounding.ROUND_UP]=3,c),C=function(){function t(t,r){void 0===r&&(r=n.BigInt(1)),this.numerator=n.BigInt(t),this.denominator=n.BigInt(r)}t.tryParseFraction=function(r){if(r instanceof n||"number"==typeof r||"string"==typeof r)return new t(r);if("numerator"in r&&"denominator"in r)return r;throw new Error("Could not parse fraction")};var r=t.prototype;return r.invert=function(){return new t(this.denominator,this.numerator)},r.add=function(r){var e=t.tryParseFraction(r);return n.equal(this.denominator,e.denominator)?new t(n.add(this.numerator,e.numerator),this.denominator):new t(n.add(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator)),n.multiply(this.denominator,e.denominator))},r.subtract=function(r){var e=t.tryParseFraction(r);return n.equal(this.denominator,e.denominator)?new t(n.subtract(this.numerator,e.numerator),this.denominator):new t(n.subtract(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator)),n.multiply(this.denominator,e.denominator))},r.lessThan=function(r){var e=t.tryParseFraction(r);return n.lessThan(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.equalTo=function(r){var e=t.tryParseFraction(r);return n.equal(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.greaterThan=function(r){var e=t.tryParseFraction(r);return n.greaterThan(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.multiply=function(r){var e=t.tryParseFraction(r);return new t(n.multiply(this.numerator,e.numerator),n.multiply(this.denominator,e.denominator))},r.divide=function(r){var e=t.tryParseFraction(r);return new t(n.multiply(this.numerator,e.denominator),n.multiply(this.denominator,e.numerator))},r.toSignificant=function(t,r,e){void 0===r&&(r={groupSeparator:""}),void 0===e&&(e=exports.Rounding.ROUND_HALF_UP),Number.isInteger(t)||i(!1),t>0||i(!1),m.set({precision:t+1,rounding:A[e]});var n=new m(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(t);return n.toFormat(n.decimalPlaces(),r)},r.toFixed=function(t,r,e){return void 0===r&&(r={groupSeparator:""}),void 0===e&&(e=exports.Rounding.ROUND_HALF_UP),Number.isInteger(t)||i(!1),t>=0||i(!1),T.DP=t,T.RM=y[e],new T(this.numerator.toString()).div(this.denominator.toString()).toFormat(t,r)},h(t,[{key:"quotient",get:function(){return n.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new t(n.remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new t(this.numerator,this.denominator)}}]),t}(),I=u(a),N=function(t){function r(r,e,o){var a;return a=t.call(this,e,o)||this,n.lessThanOrEqual(a.quotient,p)||i(!1),a.currency=r,a.decimalScale=n.exponentiate(n.BigInt(10),n.BigInt(r.decimals)),a}l(r,t),r.fromRawAmount=function(t,e){return new r(t,e)},r.fromFractionalAmount=function(t,e,n){return new r(t,e,n)};var e=r.prototype;return e.add=function(e){this.currency.equals(e.currency)||i(!1);var n=t.prototype.add.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.subtract=function(e){this.currency.equals(e.currency)||i(!1);var n=t.prototype.subtract.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.multiply=function(e){var n=t.prototype.multiply.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.divide=function(e){var n=t.prototype.divide.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.toSignificant=function(r,e,n){return void 0===r&&(r=6),void 0===n&&(n=exports.Rounding.ROUND_DOWN),t.prototype.divide.call(this,this.decimalScale).toSignificant(r,e,n)},e.toFixed=function(r,e,n){return void 0===r&&(r=this.currency.decimals),void 0===n&&(n=exports.Rounding.ROUND_DOWN),r<=this.currency.decimals||i(!1),t.prototype.divide.call(this,this.decimalScale).toFixed(r,e,n)},e.toExact=function(t){return void 0===t&&(t={groupSeparator:""}),I.DP=this.currency.decimals,new I(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(t)},h(r,[{key:"wrapped",get:function(){return this.currency.isToken?this:r.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),r}(C),E=function(t){function r(){return t.apply(this,arguments)||this}return l(r,t),r}(N),x=new C(n.BigInt(100));function v(t){return new g(t.numerator,t.denominator)}var g=function(t){function r(){var r;return(r=t.apply(this,arguments)||this).isPercent=!0,r}l(r,t);var e=r.prototype;return e.add=function(r){return v(t.prototype.add.call(this,r))},e.subtract=function(r){return v(t.prototype.subtract.call(this,r))},e.multiply=function(r){return v(t.prototype.multiply.call(this,r))},e.divide=function(r){return v(t.prototype.divide.call(this,r))},e.toSignificant=function(r,e,n){return void 0===r&&(r=5),t.prototype.multiply.call(this,x).toSignificant(r,e,n)},e.toFixed=function(r,e,n){return void 0===r&&(r=2),t.prototype.multiply.call(this,x).toFixed(r,e,n)},r}(C),R=function(t){function r(){for(var r,e,i,o,a,u=arguments.length,s=new Array(u),d=0;d<u;d++)s[d]=arguments[d];if(4===s.length)e=s[0],i=s[1],o=s[2],a=s[3];else{var c=s[0].quoteAmount.divide(s[0].baseAmount),p=[s[0].baseAmount.currency,s[0].quoteAmount.currency,c.denominator,c.numerator];e=p[0],i=p[1],o=p[2],a=p[3]}return(r=t.call(this,a,o)||this).baseCurrency=e,r.quoteCurrency=i,r.scalar=new C(n.exponentiate(n.BigInt(10),n.BigInt(e.decimals)),n.exponentiate(n.BigInt(10),n.BigInt(i.decimals))),r}l(r,t);var e=r.prototype;return e.invert=function(){return new r(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},e.multiply=function(e){this.quoteCurrency.equals(e.baseCurrency)||i(!1);var n=t.prototype.multiply.call(this,e);return new r(this.baseCurrency,e.quoteCurrency,n.denominator,n.numerator)},e.quote=function(r){r.currency.equals(this.baseCurrency)||i(!1);var e=t.prototype.multiply.call(this,r);return N.fromFractionalAmount(this.quoteCurrency,e.numerator,e.denominator)},e.toSignificant=function(t,r,e){return void 0===t&&(t=6),this.adjustedForDecimals.toSignificant(t,r,e)},e.toFixed=function(t,r,e){return void 0===t&&(t=4),this.adjustedForDecimals.toFixed(t,r,e)},h(r,[{key:"adjustedForDecimals",get:function(){return t.prototype.multiply.call(this,this.scalar)}}]),r}(C),b=function(t,r,e,n){Number.isSafeInteger(t)||i(!1),r>=0&&r<255&&Number.isInteger(r)||i(!1),this.chainId=t,this.decimals=r,this.symbol=e,this.name=n},O=function(t){function r(){var r;return(r=t.apply(this,arguments)||this).isNative=!0,r.isToken=!1,r}return l(r,t),r}(b);function B(t){try{return s.getAddress(t)}catch(r){throw new Error(t+" is not a valid address.")}}var F,S,w=function(t){function r(r,e,n,i,o){var a;return(a=t.call(this,r,n,i,o)||this).isNative=!1,a.isToken=!0,a.address=B(e),a}l(r,t);var e=r.prototype;return e.equals=function(t){return t.isToken&&this.chainId===t.chainId&&this.address===t.address},e.sortsBefore=function(t){return this.chainId!==t.chainId&&i(!1),this.address===t.address&&i(!1),this.address.toLowerCase()<t.address.toLowerCase()},h(r,[{key:"wrapped",get:function(){return this}}]),r}(b);(S=exports.ChainId||(exports.ChainId={}))[S.MAINNET=1]="MAINNET",S[S.ROPSTEN=3]="ROPSTEN",S[S.RINKEBY=4]="RINKEBY",S[S["GÖRLI"]=5]="GÖRLI",S[S.KOVAN=42]="KOVAN",S[S.MATIC=137]="MATIC",S[S.MUMBAI=80001]="MUMBAI",S[S.BSCTESTNET=97]="BSCTESTNET",S[S.BSCMAINNET=56]="BSCMAINNET",S[S.AVAXTESTNET=43113]="AVAXTESTNET",S[S.AVAXMAINNET=43114]="AVAXMAINNET",S[S.FANTOM=250]="FANTOM",S[S.CRONOSTESTNET=338]="CRONOSTESTNET",S[S.CRONOS=25]="CRONOS",S[S.ARBITRUM=42161]="ARBITRUM",S[S.ARBITRUM_TESTNET=421611]="ARBITRUM_TESTNET",S[S.BTTC=199]="BTTC";var U=((F={})[exports.ChainId.MAINNET]=new w(exports.ChainId.MAINNET,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),F[exports.ChainId.ROPSTEN]=new w(exports.ChainId.ROPSTEN,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),F[exports.ChainId.RINKEBY]=new w(exports.ChainId.RINKEBY,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),F[exports.ChainId.GÖRLI]=new w(exports.ChainId.GÖRLI,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),F[exports.ChainId.KOVAN]=new w(exports.ChainId.KOVAN,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),F[exports.ChainId.MATIC]=new w(exports.ChainId.MATIC,"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",18,"WMATIC","Wrapped Matic"),F[exports.ChainId.MUMBAI]=new w(exports.ChainId.MUMBAI,"0x19395624C030A11f58e820C3AeFb1f5960d9742a",18,"WMATIC","Wrapped Matic"),F[exports.ChainId.BSCTESTNET]=new w(exports.ChainId.BSCTESTNET,"0xae13d989dac2f0debff460ac112a837c89baa7cd",18,"WBNB","Wrapped BNB"),F[exports.ChainId.BSCMAINNET]=new w(exports.ChainId.BSCMAINNET,"0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",18,"WBNB","Wrapped BNB"),F[exports.ChainId.AVAXTESTNET]=new w(exports.ChainId.AVAXTESTNET,"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",18,"WAVAX","Wrapped AVAX"),F[exports.ChainId.AVAXMAINNET]=new w(exports.ChainId.AVAXMAINNET,"0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7",18,"WAVAX","Wrapped AVAX"),F[exports.ChainId.FANTOM]=new w(exports.ChainId.FANTOM,"0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83",18,"WFTM","Wrapped Fantom"),F[exports.ChainId.CRONOSTESTNET]=new w(exports.ChainId.CRONOSTESTNET,"0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35",18,"WCRO","Wrapped CRO"),F[exports.ChainId.CRONOS]=new w(exports.ChainId.CRONOS,"0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23",18,"WCRO","Wrapped CRO"),F[exports.ChainId.ARBITRUM]=new w(exports.ChainId.ARBITRUM,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),F[exports.ChainId.ARBITRUM_TESTNET]=new w(exports.ChainId.ARBITRUM_TESTNET,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),F[exports.ChainId.BTTC]=new w(exports.ChainId.BTTC,"0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A",18,"WBTT","Wrapped BitTorrent"),F),M=function(t){function r(r){return t.call(this,r,18,"ETH","Ether")||this}return l(r,t),r.onChain=function(t){var e;return null!=(e=this._etherCache[t])?e:this._etherCache[t]=new r(t)},r.prototype.equals=function(t){return t.isNative&&t.chainId===this.chainId},h(r,[{key:"wrapped",get:function(){var t=U[this.chainId];return t||i(!1),t}}]),r}(O);M._etherCache={};var D=n.BigInt(Number.MAX_SAFE_INTEGER),_=n.BigInt(0),W=n.BigInt(1),P=n.BigInt(2);exports.CurrencyAmount=N,exports.Ether=M,exports.Fraction=C,exports.MaxUint256=p,exports.NativeCurrency=O,exports.Percent=g,exports.Price=R,exports.Token=w,exports.TokenAmount=E,exports.WETH=U,exports.computePriceImpact=function(t,r,e){var n=t.quote(r),i=n.subtract(e).divide(n);return new g(i.numerator,i.denominator)},exports.sortedInsert=function(t,r,e,n){if(e>0||i(!1),t.length<=e||i(!1),0===t.length)return t.push(r),null;var o=t.length===e;if(o&&n(t[t.length-1],r)<=0)return r;for(var a=0,u=t.length;a<u;){var s=a+u>>>1;n(t[s],r)<=0?a=s+1:u=s}return t.splice(a,0,r),o?t.pop():null},exports.sqrt=function(t){if(n.greaterThanOrEqual(t,_)||i(!1),n.lessThan(t,D))return n.BigInt(Math.floor(Math.sqrt(n.toNumber(t))));var r,e;for(r=t,e=n.add(n.divide(t,P),W);n.lessThan(e,r);)r=e,e=n.divide(n.add(n.divide(t,e),e),P);return r},exports.validateAndParseAddress=B;
"use strict";function t(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var r,e,n=t(require("jsbi")),i=t(require("tiny-invariant")),o=t(require("decimal.js-light")),a=t(require("big.js")),u=t(require("toformat")),s=require("@ethersproject/address");(r=exports.TradeType||(exports.TradeType={}))[r.EXACT_INPUT=0]="EXACT_INPUT",r[r.EXACT_OUTPUT=1]="EXACT_OUTPUT",(e=exports.Rounding||(exports.Rounding={}))[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP";var d,c,p=n.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function h(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,r,e){return r&&h(t.prototype,r),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,(Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}var m=u(o),A=u(a),T=((d={})[exports.Rounding.ROUND_DOWN]=m.ROUND_DOWN,d[exports.Rounding.ROUND_HALF_UP]=m.ROUND_HALF_UP,d[exports.Rounding.ROUND_UP]=m.ROUND_UP,d),C=((c={})[exports.Rounding.ROUND_DOWN]=0,c[exports.Rounding.ROUND_HALF_UP]=1,c[exports.Rounding.ROUND_UP]=3,c),I=function(){function t(t,r){void 0===r&&(r=n.BigInt(1)),this.numerator=n.BigInt(t),this.denominator=n.BigInt(r)}t.tryParseFraction=function(r){if(r instanceof n||"number"==typeof r||"string"==typeof r)return new t(r);if("numerator"in r&&"denominator"in r)return r;throw new Error("Could not parse fraction")};var r=t.prototype;return r.invert=function(){return new t(this.denominator,this.numerator)},r.add=function(r){var e=t.tryParseFraction(r);return n.equal(this.denominator,e.denominator)?new t(n.add(this.numerator,e.numerator),this.denominator):new t(n.add(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator)),n.multiply(this.denominator,e.denominator))},r.subtract=function(r){var e=t.tryParseFraction(r);return n.equal(this.denominator,e.denominator)?new t(n.subtract(this.numerator,e.numerator),this.denominator):new t(n.subtract(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator)),n.multiply(this.denominator,e.denominator))},r.lessThan=function(r){var e=t.tryParseFraction(r);return n.lessThan(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.equalTo=function(r){var e=t.tryParseFraction(r);return n.equal(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.greaterThan=function(r){var e=t.tryParseFraction(r);return n.greaterThan(n.multiply(this.numerator,e.denominator),n.multiply(e.numerator,this.denominator))},r.multiply=function(r){var e=t.tryParseFraction(r);return new t(n.multiply(this.numerator,e.numerator),n.multiply(this.denominator,e.denominator))},r.divide=function(r){var e=t.tryParseFraction(r);return new t(n.multiply(this.numerator,e.denominator),n.multiply(this.denominator,e.numerator))},r.toSignificant=function(t,r,e){void 0===r&&(r={groupSeparator:""}),void 0===e&&(e=exports.Rounding.ROUND_HALF_UP),Number.isInteger(t)||i(!1),t>0||i(!1),m.set({precision:t+1,rounding:T[e]});var n=new m(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(t);return n.toFormat(n.decimalPlaces(),r)},r.toFixed=function(t,r,e){return void 0===r&&(r={groupSeparator:""}),void 0===e&&(e=exports.Rounding.ROUND_HALF_UP),Number.isInteger(t)||i(!1),t>=0||i(!1),A.DP=t,A.RM=C[e],new A(this.numerator.toString()).div(this.denominator.toString()).toFormat(t,r)},f(t,[{key:"quotient",get:function(){return n.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new t(n.remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new t(this.numerator,this.denominator)}}]),t}(),y=u(a),E=function(t){function r(r,e,o){var a;return a=t.call(this,e,o)||this,n.lessThanOrEqual(a.quotient,p)||i(!1),a.currency=r,a.decimalScale=n.exponentiate(n.BigInt(10),n.BigInt(r.decimals)),a}l(r,t),r.fromRawAmount=function(t,e){return new r(t,e)},r.fromFractionalAmount=function(t,e,n){return new r(t,e,n)};var e=r.prototype;return e.add=function(e){this.currency.equals(e.currency)||i(!1);var n=t.prototype.add.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.subtract=function(e){this.currency.equals(e.currency)||i(!1);var n=t.prototype.subtract.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.multiply=function(e){var n=t.prototype.multiply.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.divide=function(e){var n=t.prototype.divide.call(this,e);return r.fromFractionalAmount(this.currency,n.numerator,n.denominator)},e.toSignificant=function(r,e,n){return void 0===r&&(r=6),void 0===n&&(n=exports.Rounding.ROUND_DOWN),t.prototype.divide.call(this,this.decimalScale).toSignificant(r,e,n)},e.toFixed=function(r,e,n){return void 0===r&&(r=this.currency.decimals),void 0===n&&(n=exports.Rounding.ROUND_DOWN),r<=this.currency.decimals||i(!1),t.prototype.divide.call(this,this.decimalScale).toFixed(r,e,n)},e.toExact=function(t){return void 0===t&&(t={groupSeparator:""}),y.DP=this.currency.decimals,new y(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(t)},f(r,[{key:"wrapped",get:function(){return this.currency.isToken?this:r.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),r}(I),N=function(t){function r(){return t.apply(this,arguments)||this}return l(r,t),r}(E),x=new I(n.BigInt(100));function R(t){return new v(t.numerator,t.denominator)}var v=function(t){function r(){var r;return(r=t.apply(this,arguments)||this).isPercent=!0,r}l(r,t);var e=r.prototype;return e.add=function(r){return R(t.prototype.add.call(this,r))},e.subtract=function(r){return R(t.prototype.subtract.call(this,r))},e.multiply=function(r){return R(t.prototype.multiply.call(this,r))},e.divide=function(r){return R(t.prototype.divide.call(this,r))},e.toSignificant=function(r,e,n){return void 0===r&&(r=5),t.prototype.multiply.call(this,x).toSignificant(r,e,n)},e.toFixed=function(r,e,n){return void 0===r&&(r=2),t.prototype.multiply.call(this,x).toFixed(r,e,n)},r}(I),B=function(t){function r(){for(var r,e,i,o,a,u=arguments.length,s=new Array(u),d=0;d<u;d++)s[d]=arguments[d];if(4===s.length)e=s[0],i=s[1],o=s[2],a=s[3];else{var c=s[0].quoteAmount.divide(s[0].baseAmount),p=[s[0].baseAmount.currency,s[0].quoteAmount.currency,c.denominator,c.numerator];e=p[0],i=p[1],o=p[2],a=p[3]}return(r=t.call(this,a,o)||this).baseCurrency=e,r.quoteCurrency=i,r.scalar=new I(n.exponentiate(n.BigInt(10),n.BigInt(e.decimals)),n.exponentiate(n.BigInt(10),n.BigInt(i.decimals))),r}l(r,t);var e=r.prototype;return e.invert=function(){return new r(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},e.multiply=function(e){this.quoteCurrency.equals(e.baseCurrency)||i(!1);var n=t.prototype.multiply.call(this,e);return new r(this.baseCurrency,e.quoteCurrency,n.denominator,n.numerator)},e.quote=function(r){r.currency.equals(this.baseCurrency)||i(!1);var e=t.prototype.multiply.call(this,r);return E.fromFractionalAmount(this.quoteCurrency,e.numerator,e.denominator)},e.toSignificant=function(t,r,e){return void 0===t&&(t=6),this.adjustedForDecimals.toSignificant(t,r,e)},e.toFixed=function(t,r,e){return void 0===t&&(t=4),this.adjustedForDecimals.toFixed(t,r,e)},f(r,[{key:"adjustedForDecimals",get:function(){return t.prototype.multiply.call(this,this.scalar)}}]),r}(I),O=function(t,r,e,n){Number.isSafeInteger(t)||i(!1),r>=0&&r<255&&Number.isInteger(r)||i(!1),this.chainId=t,this.decimals=r,this.symbol=e,this.name=n},g=function(t){function r(){var r;return(r=t.apply(this,arguments)||this).isNative=!0,r.isToken=!1,r}return l(r,t),r}(O);function S(t){try{return s.getAddress(t)}catch(r){throw new Error(t+" is not a valid address.")}}var F,b,D=function(t){function r(r,e,n,i,o){var a;return(a=t.call(this,r,n,i,o)||this).isNative=!1,a.isToken=!0,a.address=S(e),a}l(r,t);var e=r.prototype;return e.equals=function(t){return t.isToken&&this.chainId===t.chainId&&this.address===t.address},e.sortsBefore=function(t){return this.chainId!==t.chainId&&i(!1),this.address===t.address&&i(!1),this.address.toLowerCase()<t.address.toLowerCase()},f(r,[{key:"wrapped",get:function(){return this}}]),r}(O);(b=exports.ChainId||(exports.ChainId={}))[b.MAINNET=1]="MAINNET",b[b.ROPSTEN=3]="ROPSTEN",b[b.RINKEBY=4]="RINKEBY",b[b["GÖRLI"]=5]="GÖRLI",b[b.KOVAN=42]="KOVAN",b[b.MATIC=137]="MATIC",b[b.MUMBAI=80001]="MUMBAI",b[b.BSCTESTNET=97]="BSCTESTNET",b[b.BSCMAINNET=56]="BSCMAINNET",b[b.AVAXTESTNET=43113]="AVAXTESTNET",b[b.AVAXMAINNET=43114]="AVAXMAINNET",b[b.FANTOM=250]="FANTOM",b[b.CRONOSTESTNET=338]="CRONOSTESTNET",b[b.CRONOS=25]="CRONOS",b[b.ARBITRUM=42161]="ARBITRUM",b[b.ARBITRUM_TESTNET=421611]="ARBITRUM_TESTNET",b[b.BTTC=199]="BTTC",b[b.VELAS=106]="VELAS",b[b.AURORA=1313161554]="AURORA",b[b.OASIS=42262]="OASIS";var w=((F={})[exports.ChainId.MAINNET]=new D(exports.ChainId.MAINNET,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),F[exports.ChainId.ROPSTEN]=new D(exports.ChainId.ROPSTEN,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),F[exports.ChainId.RINKEBY]=new D(exports.ChainId.RINKEBY,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),F[exports.ChainId.GÖRLI]=new D(exports.ChainId.GÖRLI,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),F[exports.ChainId.KOVAN]=new D(exports.ChainId.KOVAN,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),F[exports.ChainId.MATIC]=new D(exports.ChainId.MATIC,"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",18,"WMATIC","Wrapped Matic"),F[exports.ChainId.MUMBAI]=new D(exports.ChainId.MUMBAI,"0x19395624C030A11f58e820C3AeFb1f5960d9742a",18,"WMATIC","Wrapped Matic"),F[exports.ChainId.BSCTESTNET]=new D(exports.ChainId.BSCTESTNET,"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",18,"WBNB","Wrapped BNB"),F[exports.ChainId.BSCMAINNET]=new D(exports.ChainId.BSCMAINNET,"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",18,"WBNB","Wrapped BNB"),F[exports.ChainId.AVAXTESTNET]=new D(exports.ChainId.AVAXTESTNET,"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",18,"WAVAX","Wrapped AVAX"),F[exports.ChainId.AVAXMAINNET]=new D(exports.ChainId.AVAXMAINNET,"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",18,"WAVAX","Wrapped AVAX"),F[exports.ChainId.FANTOM]=new D(exports.ChainId.FANTOM,"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",18,"WFTM","Wrapped Fantom"),F[exports.ChainId.CRONOSTESTNET]=new D(exports.ChainId.CRONOSTESTNET,"0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35",18,"WCRO","Wrapped CRO"),F[exports.ChainId.CRONOS]=new D(exports.ChainId.CRONOS,"0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23",18,"WCRO","Wrapped CRO"),F[exports.ChainId.ARBITRUM]=new D(exports.ChainId.ARBITRUM,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),F[exports.ChainId.ARBITRUM_TESTNET]=new D(exports.ChainId.ARBITRUM_TESTNET,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),F[exports.ChainId.BTTC]=new D(exports.ChainId.BTTC,"0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A",18,"WBTT","Wrapped BitTorrent"),F[exports.ChainId.VELAS]=new D(exports.ChainId.VELAS,"0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126",18,"WVLX","Wrapped VLX"),F[exports.ChainId.AURORA]=new D(exports.ChainId.AURORA,"0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB",18,"WETH","Wrapped ETH"),F[exports.ChainId.OASIS]=new D(exports.ChainId.OASIS,"0x21C718C22D52d0F3a789b752D4c2fD5908a8A733",18,"WROSE","Wrapped ROSE"),F),U=function(t){function r(r){return t.call(this,r,18,"ETH","Ether")||this}return l(r,t),r.onChain=function(t){var e;return null!=(e=this._etherCache[t])?e:this._etherCache[t]=new r(t)},r.prototype.equals=function(t){return t.isNative&&t.chainId===this.chainId},f(r,[{key:"wrapped",get:function(){var t=w[this.chainId];return t||i(!1),t}}]),r}(g);U._etherCache={};var W=n.BigInt(Number.MAX_SAFE_INTEGER),M=n.BigInt(0),_=n.BigInt(1),P=n.BigInt(2);exports.CurrencyAmount=E,exports.Ether=U,exports.Fraction=I,exports.MaxUint256=p,exports.NativeCurrency=g,exports.Percent=v,exports.Price=B,exports.Token=D,exports.TokenAmount=N,exports.WETH=w,exports.computePriceImpact=function(t,r,e){var n=t.quote(r),i=n.subtract(e).divide(n);return new v(i.numerator,i.denominator)},exports.sortedInsert=function(t,r,e,n){if(e>0||i(!1),t.length<=e||i(!1),0===t.length)return t.push(r),null;var o=t.length===e;if(o&&n(t[t.length-1],r)<=0)return r;for(var a=0,u=t.length;a<u;){var s=a+u>>>1;n(t[s],r)<=0?a=s+1:u=s}return t.splice(a,0,r),o?t.pop():null},exports.sqrt=function(t){if(n.greaterThanOrEqual(t,M)||i(!1),n.lessThan(t,W))return n.BigInt(Math.floor(Math.sqrt(n.toNumber(t))));var r,e;for(r=t,e=n.add(n.divide(t,P),_);n.lessThan(e,r);)r=e,e=n.divide(n.add(n.divide(t,e),e),P);return r},exports.validateAndParseAddress=S;
//# sourceMappingURL=sdk-core.cjs.production.min.js.map

@@ -613,6 +613,9 @@ import JSBI from 'jsbi';

ChainId[ChainId["ARBITRUM_TESTNET"] = 421611] = "ARBITRUM_TESTNET";
ChainId[ChainId["BTTC"] = 199] = "BTTC"; // AURORA = 1313161554
ChainId[ChainId["BTTC"] = 199] = "BTTC";
ChainId[ChainId["VELAS"] = 106] = "VELAS";
ChainId[ChainId["AURORA"] = 1313161554] = "AURORA";
ChainId[ChainId["OASIS"] = 42262] = "OASIS";
})(ChainId || (ChainId = {}));
var WETH = (_WETH = {}, _WETH[ChainId.MAINNET] = /*#__PURE__*/new Token(ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.ROPSTEN] = /*#__PURE__*/new Token(ChainId.ROPSTEN, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.RINKEBY] = /*#__PURE__*/new Token(ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.GÖRLI] = /*#__PURE__*/new Token(ChainId.GÖRLI, '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.KOVAN] = /*#__PURE__*/new Token(ChainId.KOVAN, '0xd0A1E359811322d97991E03f863a0C30C2cF029C', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.MATIC] = /*#__PURE__*/new Token(ChainId.MATIC, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), _WETH[ChainId.MUMBAI] = /*#__PURE__*/new Token(ChainId.MUMBAI, '0x19395624C030A11f58e820C3AeFb1f5960d9742a', 18, 'WMATIC', 'Wrapped Matic'), _WETH[ChainId.BSCTESTNET] = /*#__PURE__*/new Token(ChainId.BSCTESTNET, '0xae13d989dac2f0debff460ac112a837c89baa7cd', 18, 'WBNB', 'Wrapped BNB'), _WETH[ChainId.BSCMAINNET] = /*#__PURE__*/new Token(ChainId.BSCMAINNET, '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), _WETH[ChainId.AVAXTESTNET] = /*#__PURE__*/new Token(ChainId.AVAXTESTNET, '0xd00ae08403B9bbb9124bB305C09058E32C39A48c', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[ChainId.AVAXMAINNET] = /*#__PURE__*/new Token(ChainId.AVAXMAINNET, '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[ChainId.FANTOM] = /*#__PURE__*/new Token(ChainId.FANTOM, '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83', 18, 'WFTM', 'Wrapped Fantom'), _WETH[ChainId.CRONOSTESTNET] = /*#__PURE__*/new Token(ChainId.CRONOSTESTNET, '0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35', 18, 'WCRO', 'Wrapped CRO'), _WETH[ChainId.CRONOS] = /*#__PURE__*/new Token(ChainId.CRONOS, '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23', 18, 'WCRO', 'Wrapped CRO'), _WETH[ChainId.ARBITRUM] = /*#__PURE__*/new Token(ChainId.ARBITRUM, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.ARBITRUM_TESTNET] = /*#__PURE__*/new Token(ChainId.ARBITRUM_TESTNET, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.BTTC] = /*#__PURE__*/new Token(ChainId.BTTC, '0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A', 18, 'WBTT', 'Wrapped BitTorrent'), _WETH);
var WETH = (_WETH = {}, _WETH[ChainId.MAINNET] = /*#__PURE__*/new Token(ChainId.MAINNET, '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.ROPSTEN] = /*#__PURE__*/new Token(ChainId.ROPSTEN, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.RINKEBY] = /*#__PURE__*/new Token(ChainId.RINKEBY, '0xc778417E063141139Fce010982780140Aa0cD5Ab', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.GÖRLI] = /*#__PURE__*/new Token(ChainId.GÖRLI, '0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.KOVAN] = /*#__PURE__*/new Token(ChainId.KOVAN, '0xd0A1E359811322d97991E03f863a0C30C2cF029C', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.MATIC] = /*#__PURE__*/new Token(ChainId.MATIC, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped Matic'), _WETH[ChainId.MUMBAI] = /*#__PURE__*/new Token(ChainId.MUMBAI, '0x19395624C030A11f58e820C3AeFb1f5960d9742a', 18, 'WMATIC', 'Wrapped Matic'), _WETH[ChainId.BSCTESTNET] = /*#__PURE__*/new Token(ChainId.BSCTESTNET, '0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd', 18, 'WBNB', 'Wrapped BNB'), _WETH[ChainId.BSCMAINNET] = /*#__PURE__*/new Token(ChainId.BSCMAINNET, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), _WETH[ChainId.AVAXTESTNET] = /*#__PURE__*/new Token(ChainId.AVAXTESTNET, '0xd00ae08403B9bbb9124bB305C09058E32C39A48c', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[ChainId.AVAXMAINNET] = /*#__PURE__*/new Token(ChainId.AVAXMAINNET, '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', 18, 'WAVAX', 'Wrapped AVAX'), _WETH[ChainId.FANTOM] = /*#__PURE__*/new Token(ChainId.FANTOM, '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83', 18, 'WFTM', 'Wrapped Fantom'), _WETH[ChainId.CRONOSTESTNET] = /*#__PURE__*/new Token(ChainId.CRONOSTESTNET, '0x1A46dCaC1d91F1731574BEfAEDaC4E0392726e35', 18, 'WCRO', 'Wrapped CRO'), _WETH[ChainId.CRONOS] = /*#__PURE__*/new Token(ChainId.CRONOS, '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23', 18, 'WCRO', 'Wrapped CRO'), _WETH[ChainId.ARBITRUM] = /*#__PURE__*/new Token(ChainId.ARBITRUM, '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.ARBITRUM_TESTNET] = /*#__PURE__*/new Token(ChainId.ARBITRUM_TESTNET, '0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681', 18, 'WETH', 'Wrapped Ether'), _WETH[ChainId.BTTC] = /*#__PURE__*/new Token(ChainId.BTTC, '0x8D193c6efa90BCFf940A98785d1Ce9D093d3DC8A', 18, 'WBTT', 'Wrapped BitTorrent'), _WETH[ChainId.VELAS] = /*#__PURE__*/new Token(ChainId.VELAS, '0xc579D1f3CF86749E05CD06f7ADe17856c2CE3126', 18, 'WVLX', 'Wrapped VLX'), _WETH[ChainId.AURORA] = /*#__PURE__*/new Token(ChainId.AURORA, '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB', 18, 'WETH', 'Wrapped ETH'), _WETH[ChainId.OASIS] = /*#__PURE__*/new Token(ChainId.OASIS, '0x21C718C22D52d0F3a789b752D4c2fD5908a8A733', 18, 'WROSE', 'Wrapped ROSE'), _WETH);

@@ -619,0 +622,0 @@ /**

{
"name": "@vutien/sdk-core",
"version": "0.0.10",
"version": "0.0.11",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "description": "🛠 An CORE SDK for building DMM SDK ver 1 + 2",

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