rango-sdk-basic 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"httpService.d.ts","sourceRoot":"","sources":["../../src/services/httpService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,+BAEtB,CAAA"}
1
+ {"version":3,"file":"httpService.d.ts","sourceRoot":"","sources":["../../src/services/httpService.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,+BAEtB,CAAA"}
@@ -5,7 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.httpService = void 0;
7
7
  var axios_1 = __importDefault(require("axios"));
8
+ var baseURL = typeof process !== 'undefined' && process.env.REACT_APP_RANGO_BASE_URL
9
+ ? process.env.REACT_APP_RANGO_BASE_URL
10
+ : 'https://api.rango.exchange';
8
11
  exports.httpService = axios_1.default.create({
9
- baseURL: 'https://api.rango.exchange',
12
+ baseURL: baseURL,
10
13
  });
11
14
  //# sourceMappingURL=httpService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"httpService.js","sourceRoot":"","sources":["../../src/services/httpService.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AAEZ,QAAA,WAAW,GAAG,eAAK,CAAC,MAAM,CAAC;IACtC,OAAO,EAAE,4BAA4B;CACtC,CAAC,CAAA"}
1
+ {"version":3,"file":"httpService.js","sourceRoot":"","sources":["../../src/services/httpService.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAyB;AAEzB,IAAM,OAAO,GACX,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,wBAAwB;IACpE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB;IACtC,CAAC,CAAC,4BAA4B,CAAA;AAErB,QAAA,WAAW,GAAG,eAAK,CAAC,MAAM,CAAC;IACtC,OAAO,SAAA;CACR,CAAC,CAAA"}
@@ -41,6 +41,7 @@ export declare type SwapperMetaDto = {
41
41
  * @property {string} blockchain - The blockchain which this token belongs to
42
42
  * @property {string | null} address - Smart contract address of token, null for native tokens
43
43
  * @property {string} symbol - The token symbol, e.g: ADA
44
+ * @property {string} name - The token name, e.g: Binance Pegged ETH
44
45
  * @property {number} decimals - Decimals of token in blockchain, example: 18
45
46
  * @property {string} image - Url of its image, example: https://api.rango.exchange/tokens/ETH/ETH.png
46
47
  *
@@ -49,6 +50,7 @@ export declare type Token = {
49
50
  blockchain: string;
50
51
  address: string | null;
51
52
  symbol: string;
53
+ name: string;
52
54
  decimals: number;
53
55
  image: string;
54
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/types/api/meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD;;;;;;;;;;;GAWG;AACH,oBAAY,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,KAAK,EAAE,CAAA;IAClB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,IAAI,EAAE,eAAe,GAAG,IAAI,CAAA;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB,CAAA;AAED;;;;;;;;GAQG;AACH,oBAAY,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,WAAW,EAAE,CAAA;CACrB,CAAA;AAED;;;;;;;;;GASG;AACH,oBAAY,KAAK,GAAG;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,MAAM,EAAE,MAA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,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rango-sdk-basic",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Rango Exchange Basic SDK for dApps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",