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.
- package/{LICENSE → lib/LICENSE} +0 -0
- package/{README.md → lib/README.md} +18 -7
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -21
- package/lib/package.json +39 -0
- package/lib/rango-sdk-basic.cjs.development.js +1008 -0
- package/lib/rango-sdk-basic.cjs.development.js.map +1 -0
- package/lib/rango-sdk-basic.cjs.production.min.js +2 -0
- package/lib/rango-sdk-basic.cjs.production.min.js.map +1 -0
- package/lib/rango-sdk-basic.esm.js +1005 -0
- package/lib/rango-sdk-basic.esm.js.map +1 -0
- package/lib/services/client.d.ts +21 -21
- package/lib/services/client.d.ts.map +1 -1
- package/lib/services/executor.d.ts +7 -7
- package/lib/services/executor.d.ts.map +1 -1
- package/lib/services/httpService.d.ts +1 -1
- package/lib/services/httpService.d.ts.map +1 -1
- package/lib/services/index.d.ts +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/types/api/balance.d.ts +1 -38
- package/lib/types/api/balance.d.ts.map +1 -1
- package/lib/types/api/common.d.ts +3 -128
- package/lib/types/api/common.d.ts.map +1 -1
- package/lib/types/api/meta.d.ts +1 -183
- package/lib/types/api/meta.d.ts.map +1 -1
- package/lib/types/api/routing.d.ts +1 -43
- package/lib/types/api/routing.d.ts.map +1 -1
- package/lib/types/api/transactions.d.ts +1 -188
- package/lib/types/api/transactions.d.ts.map +1 -1
- package/lib/types/api/txs/cosmos.d.ts +1 -68
- package/lib/types/api/txs/cosmos.d.ts.map +1 -1
- package/lib/types/api/txs/evm.d.ts +1 -29
- package/lib/types/api/txs/evm.d.ts.map +1 -1
- package/lib/types/api/txs/index.d.ts +3 -3
- package/lib/types/api/txs/index.d.ts.map +1 -1
- package/lib/types/api/txs/transfer.d.ts +1 -28
- package/lib/types/api/txs/transfer.d.ts.map +1 -1
- package/lib/types/index.d.ts +7 -7
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/utils/errors.d.ts +22 -22
- package/lib/types/utils/errors.d.ts.map +1 -1
- package/lib/utils/errors.d.ts +1 -1
- package/lib/utils/errors.d.ts.map +1 -1
- package/lib/utils/promise.d.ts +1 -1
- package/lib/utils/promise.d.ts.map +1 -1
- package/package.json +15 -26
- package/lib/index.js.map +0 -1
- package/lib/services/client.js +0 -257
- package/lib/services/client.js.map +0 -1
- package/lib/services/executor.js +0 -196
- package/lib/services/executor.js.map +0 -1
- package/lib/services/httpService.js +0 -14
- package/lib/services/httpService.js.map +0 -1
- package/lib/services/index.js +0 -6
- package/lib/services/index.js.map +0 -1
- package/lib/types/api/balance.js +0 -3
- package/lib/types/api/balance.js.map +0 -1
- package/lib/types/api/common.js +0 -11
- package/lib/types/api/common.js.map +0 -1
- package/lib/types/api/meta.js +0 -3
- package/lib/types/api/meta.js.map +0 -1
- package/lib/types/api/routing.js +0 -3
- package/lib/types/api/routing.js.map +0 -1
- package/lib/types/api/transactions.js +0 -22
- package/lib/types/api/transactions.js.map +0 -1
- package/lib/types/api/txs/cosmos.js +0 -3
- package/lib/types/api/txs/cosmos.js.map +0 -1
- package/lib/types/api/txs/evm.js +0 -3
- package/lib/types/api/txs/evm.js.map +0 -1
- package/lib/types/api/txs/index.js +0 -20
- package/lib/types/api/txs/index.js.map +0 -1
- package/lib/types/api/txs/transfer.js +0 -3
- package/lib/types/api/txs/transfer.js.map +0 -1
- package/lib/types/index.js +0 -24
- package/lib/types/index.js.map +0 -1
- package/lib/types/utils/errors.js +0 -26
- package/lib/types/utils/errors.js.map +0 -1
- package/lib/utils/errors.js +0 -31
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/promise.js +0 -8
- package/lib/utils/promise.js.map +0 -1
package/{LICENSE → lib/LICENSE}
RENAMED
|
File without changes
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Rango Exchange SDK
|
|
2
|
+
|
|
3
|
+
## Basic SDK (Single Step Tx)
|
|
2
4
|
|
|
3
5
|
[](https://badge.fury.io/js/rango-sdk-basic)
|
|
4
6
|
[](https://github.com/rango-exchange/rango-sdk/blob/master/LICENSE)
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
### Installation
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
```shell
|
|
11
|
+
yarn add rango-sdk-basic
|
|
12
|
+
# or
|
|
13
|
+
npm install rango-sdk-basic --save
|
|
14
|
+
```
|
|
9
15
|
|
|
10
|
-
|
|
16
|
+
## Main SDK (Multi Step Tx)
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
[](https://badge.fury.io/js/rango-sdk)
|
|
19
|
+
[](https://github.com/rango-exchange/rango-sdk/blob/master/LICENSE)
|
|
20
|
+
|
|
21
|
+
### Installation
|
|
13
22
|
|
|
14
23
|
```shell
|
|
15
|
-
|
|
24
|
+
yarn add rango-sdk
|
|
25
|
+
# or
|
|
26
|
+
npm install rango-sdk --save
|
|
16
27
|
```
|
|
17
28
|
|
|
18
|
-
##
|
|
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
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
}
|
package/lib/package.json
ADDED
|
@@ -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
|
+
}
|