rango-sdk-basic 0.0.14 → 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 (82) hide show
  1. package/{LICENSE → lib/LICENSE} +0 -0
  2. package/{README.md → lib/README.md} +18 -7
  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 +39 -0
  7. package/lib/rango-sdk-basic.cjs.development.js +1008 -0
  8. package/lib/rango-sdk-basic.cjs.development.js.map +1 -0
  9. package/lib/rango-sdk-basic.cjs.production.min.js +2 -0
  10. package/lib/rango-sdk-basic.cjs.production.min.js.map +1 -0
  11. package/lib/rango-sdk-basic.esm.js +1005 -0
  12. package/lib/rango-sdk-basic.esm.js.map +1 -0
  13. package/lib/services/client.d.ts +21 -21
  14. package/lib/services/client.d.ts.map +1 -1
  15. package/lib/services/executor.d.ts +7 -7
  16. package/lib/services/executor.d.ts.map +1 -1
  17. package/lib/services/httpService.d.ts +1 -1
  18. package/lib/services/httpService.d.ts.map +1 -1
  19. package/lib/services/index.d.ts +1 -1
  20. package/lib/services/index.d.ts.map +1 -1
  21. package/lib/types/api/balance.d.ts +1 -38
  22. package/lib/types/api/balance.d.ts.map +1 -1
  23. package/lib/types/api/common.d.ts +3 -128
  24. package/lib/types/api/common.d.ts.map +1 -1
  25. package/lib/types/api/meta.d.ts +1 -183
  26. package/lib/types/api/meta.d.ts.map +1 -1
  27. package/lib/types/api/routing.d.ts +1 -43
  28. package/lib/types/api/routing.d.ts.map +1 -1
  29. package/lib/types/api/transactions.d.ts +1 -188
  30. package/lib/types/api/transactions.d.ts.map +1 -1
  31. package/lib/types/api/txs/cosmos.d.ts +1 -68
  32. package/lib/types/api/txs/cosmos.d.ts.map +1 -1
  33. package/lib/types/api/txs/evm.d.ts +1 -29
  34. package/lib/types/api/txs/evm.d.ts.map +1 -1
  35. package/lib/types/api/txs/index.d.ts +3 -3
  36. package/lib/types/api/txs/index.d.ts.map +1 -1
  37. package/lib/types/api/txs/transfer.d.ts +1 -28
  38. package/lib/types/api/txs/transfer.d.ts.map +1 -1
  39. package/lib/types/index.d.ts +7 -7
  40. package/lib/types/index.d.ts.map +1 -1
  41. package/lib/types/utils/errors.d.ts +22 -22
  42. package/lib/types/utils/errors.d.ts.map +1 -1
  43. package/lib/utils/errors.d.ts +1 -1
  44. package/lib/utils/errors.d.ts.map +1 -1
  45. package/lib/utils/promise.d.ts +1 -1
  46. package/lib/utils/promise.d.ts.map +1 -1
  47. package/package.json +15 -26
  48. package/lib/index.js.map +0 -1
  49. package/lib/services/client.js +0 -257
  50. package/lib/services/client.js.map +0 -1
  51. package/lib/services/executor.js +0 -196
  52. package/lib/services/executor.js.map +0 -1
  53. package/lib/services/httpService.js +0 -14
  54. package/lib/services/httpService.js.map +0 -1
  55. package/lib/services/index.js +0 -6
  56. package/lib/services/index.js.map +0 -1
  57. package/lib/types/api/balance.js +0 -3
  58. package/lib/types/api/balance.js.map +0 -1
  59. package/lib/types/api/common.js +0 -11
  60. package/lib/types/api/common.js.map +0 -1
  61. package/lib/types/api/meta.js +0 -3
  62. package/lib/types/api/meta.js.map +0 -1
  63. package/lib/types/api/routing.js +0 -3
  64. package/lib/types/api/routing.js.map +0 -1
  65. package/lib/types/api/transactions.js +0 -22
  66. package/lib/types/api/transactions.js.map +0 -1
  67. package/lib/types/api/txs/cosmos.js +0 -3
  68. package/lib/types/api/txs/cosmos.js.map +0 -1
  69. package/lib/types/api/txs/evm.js +0 -3
  70. package/lib/types/api/txs/evm.js.map +0 -1
  71. package/lib/types/api/txs/index.js +0 -20
  72. package/lib/types/api/txs/index.js.map +0 -1
  73. package/lib/types/api/txs/transfer.js +0 -3
  74. package/lib/types/api/txs/transfer.js.map +0 -1
  75. package/lib/types/index.js +0 -24
  76. package/lib/types/index.js.map +0 -1
  77. package/lib/types/utils/errors.js +0 -26
  78. package/lib/types/utils/errors.js.map +0 -1
  79. package/lib/utils/errors.js +0 -31
  80. package/lib/utils/errors.js.map +0 -1
  81. package/lib/utils/promise.js +0 -8
  82. package/lib/utils/promise.js.map +0 -1
File without changes
@@ -1,21 +1,32 @@
1
- # 1. Rango Exchange Basic SDK (BETA)
1
+ # Rango Exchange SDK
2
+
3
+ ## Basic SDK (Single Step Tx)
2
4
 
3
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
- This is the first phase of Rango SDK which only wraps Rest API calls. In the next phase, we will handle connecting to the wallet providers.
8
+ ### Installation
7
9
 
8
- > **WARNING:** The Rango SDK is still beta. Please use it on your own risk.
10
+ ```shell
11
+ yarn add rango-sdk-basic
12
+ # or
13
+ npm install rango-sdk-basic --save
14
+ ```
9
15
 
10
- > **WARNING:** The Rango SDK has not stabilized yet, and we might make some breaking changes.
16
+ ## Main SDK (Multi Step Tx)
11
17
 
12
- ## 2. Installation
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)
20
+
21
+ ### Installation
13
22
 
14
23
  ```shell
15
- npm install rango-sdk-basic --save
24
+ yarn add rango-sdk
25
+ # or
26
+ npm install rango-sdk --save
16
27
  ```
17
28
 
18
- ## 3. Usage
29
+ ## Usage
19
30
 
20
31
  Please checkout the examples' folder for sample usage of the SDK. We will add more examples there soon.
21
32
 
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-basic.cjs.production.min.js')
6
+ } else {
7
+ module.exports = require('./rango-sdk-basic.cjs.development.js')
8
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "rango-sdk-basic",
3
+ "version": "0.1.0",
4
+ "description": "Rango Exchange Basic 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
+ "eth-rpc-errors": "^4.0.3",
28
+ "ethers": "^5.7.2",
29
+ "rango-types": "^0.1.2",
30
+ "uuid": "^9.0.0"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "branches": [
35
+ "master"
36
+ ]
37
+ },
38
+ "private": false
39
+ }