rango-sdk 0.0.9 → 0.1.0

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.
Files changed (70) hide show
  1. package/{LICENSE → lib/LICENSE} +0 -0
  2. package/{README.md → lib/README.md} +18 -3
  3. package/lib/index.d.ts +2 -2
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.js +8 -21
  6. package/lib/package.json +37 -0
  7. package/lib/rango-sdk.cjs.development.js +612 -0
  8. package/lib/rango-sdk.cjs.development.js.map +1 -0
  9. package/lib/rango-sdk.cjs.production.min.js +2 -0
  10. package/lib/rango-sdk.cjs.production.min.js.map +1 -0
  11. package/lib/rango-sdk.esm.js +611 -0
  12. package/lib/rango-sdk.esm.js.map +1 -0
  13. package/lib/services/client.d.ts +18 -18
  14. package/lib/services/client.d.ts.map +1 -1
  15. package/lib/services/httpService.d.ts +1 -1
  16. package/lib/services/httpService.d.ts.map +1 -1
  17. package/lib/services/index.d.ts +1 -1
  18. package/lib/services/index.d.ts.map +1 -1
  19. package/lib/types/api/balance.d.ts +1 -38
  20. package/lib/types/api/balance.d.ts.map +1 -1
  21. package/lib/types/api/common.d.ts +1 -222
  22. package/lib/types/api/common.d.ts.map +1 -1
  23. package/lib/types/api/meta.d.ts +1 -165
  24. package/lib/types/api/meta.d.ts.map +1 -1
  25. package/lib/types/api/routing.d.ts +1 -146
  26. package/lib/types/api/routing.d.ts.map +1 -1
  27. package/lib/types/api/transactions.d.ts +1 -180
  28. package/lib/types/api/transactions.d.ts.map +1 -1
  29. package/lib/types/api/txs/cosmos.d.ts +1 -65
  30. package/lib/types/api/txs/cosmos.d.ts.map +1 -1
  31. package/lib/types/api/txs/evm.d.ts +1 -28
  32. package/lib/types/api/txs/evm.d.ts.map +1 -1
  33. package/lib/types/api/txs/index.d.ts +4 -4
  34. package/lib/types/api/txs/index.d.ts.map +1 -1
  35. package/lib/types/api/txs/solana.d.ts +1 -45
  36. package/lib/types/api/txs/solana.d.ts.map +1 -1
  37. package/lib/types/api/txs/transfer.d.ts +1 -23
  38. package/lib/types/api/txs/transfer.d.ts.map +1 -1
  39. package/lib/types/index.d.ts +6 -6
  40. package/lib/types/index.d.ts.map +1 -1
  41. package/package.json +14 -25
  42. package/lib/index.js.map +0 -1
  43. package/lib/services/client.js +0 -164
  44. package/lib/services/client.js.map +0 -1
  45. package/lib/services/httpService.js +0 -11
  46. package/lib/services/httpService.js.map +0 -1
  47. package/lib/services/index.js +0 -6
  48. package/lib/services/index.js.map +0 -1
  49. package/lib/types/api/balance.js +0 -3
  50. package/lib/types/api/balance.js.map +0 -1
  51. package/lib/types/api/common.js +0 -3
  52. package/lib/types/api/common.js.map +0 -1
  53. package/lib/types/api/meta.js +0 -3
  54. package/lib/types/api/meta.js.map +0 -1
  55. package/lib/types/api/routing.js +0 -3
  56. package/lib/types/api/routing.js.map +0 -1
  57. package/lib/types/api/transactions.js +0 -23
  58. package/lib/types/api/transactions.js.map +0 -1
  59. package/lib/types/api/txs/cosmos.js +0 -3
  60. package/lib/types/api/txs/cosmos.js.map +0 -1
  61. package/lib/types/api/txs/evm.js +0 -3
  62. package/lib/types/api/txs/evm.js.map +0 -1
  63. package/lib/types/api/txs/index.js +0 -21
  64. package/lib/types/api/txs/index.js.map +0 -1
  65. package/lib/types/api/txs/solana.js +0 -3
  66. package/lib/types/api/txs/solana.js.map +0 -1
  67. package/lib/types/api/txs/transfer.js +0 -3
  68. package/lib/types/api/txs/transfer.js.map +0 -1
  69. package/lib/types/index.js +0 -23
  70. package/lib/types/index.js.map +0 -1
File without changes
@@ -1,13 +1,28 @@
1
1
  # Rango Exchange SDK
2
2
 
3
- [![npm version](https://badge.fury.io/js/rango-sdk.svg)](https://badge.fury.io/js/rango-sdk)
3
+ ## Basic SDK (Single Step Tx)
4
+
5
+ [![npm version](https://badge.fury.io/js/rango-sdk-basic.svg)](https://badge.fury.io/js/rango-sdk-basic)
4
6
  [![license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/rango-exchange/rango-sdk/blob/master/LICENSE)
5
7
 
6
- > **WARNING:** The Rango SDK is still beta. Please use it on your own risk.
8
+ ### Installation
9
+
10
+ ```shell
11
+ yarn add rango-sdk-basic
12
+ # or
13
+ npm install rango-sdk-basic --save
14
+ ```
15
+
16
+ ## Main SDK (Multi Step Tx)
17
+
18
+ [![npm version](https://badge.fury.io/js/rango-sdk.svg)](https://badge.fury.io/js/rango-sdk)
19
+ [![license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/rango-exchange/rango-sdk/blob/master/LICENSE)
7
20
 
8
- ## Installation
21
+ ### Installation
9
22
 
10
23
  ```shell
24
+ yarn add rango-sdk
25
+ # or
11
26
  npm install rango-sdk --save
12
27
  ```
13
28
 
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { RangoClient } from './services';
2
- export * from './types';
1
+ export { RangoClient } from './services';
2
+ export * from './types';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,cAAc,SAAS,CAAA"}
package/lib/index.js CHANGED
@@ -1,21 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RangoClient = void 0;
18
- var services_1 = require("./services");
19
- Object.defineProperty(exports, "RangoClient", { enumerable: true, get: function () { return services_1.RangoClient; } });
20
- __exportStar(require("./types"), exports);
21
- //# sourceMappingURL=index.js.map
1
+
2
+ 'use strict'
3
+
4
+ if (process.env.NODE_ENV === 'production') {
5
+ module.exports = require('./rango-sdk.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./rango-sdk.cjs.development.js')
8
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "rango-sdk",
3
+ "version": "0.1.0",
4
+ "description": "Rango Exchange SDK for dApps",
5
+ "module": "./index.js",
6
+ "main": "./cjs/index.js",
7
+ "types": "./index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/rango-exchange/rango-sdk.git"
11
+ },
12
+ "homepage": "https://github.com/rango-exchange/rango-sdk",
13
+ "bugs": {
14
+ "url": "https://github.com/rango-exchange/rango-sdk/issues"
15
+ },
16
+ "keywords": [
17
+ "Rango Exchange",
18
+ "SDK",
19
+ "Cross-Chain",
20
+ "Multi-Chain"
21
+ ],
22
+ "author": "rango.exchange",
23
+ "license": "GPL-3.0",
24
+ "dependencies": {
25
+ "axios": "^1.2.6",
26
+ "bignumber.js": "^9.1.1",
27
+ "rango-types": "^0.1.2",
28
+ "uuid": "^9.0.0"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "branches": [
33
+ "master"
34
+ ]
35
+ },
36
+ "private": false
37
+ }