@pioneer-platform/pioneer-sdk 8.1.35 → 8.1.39
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/lib/index.d.ts +6 -0
- package/lib/index.js +14 -0
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
@@ -19,6 +19,12 @@ export declare class SDK {
|
|
19
19
|
private startSocket;
|
20
20
|
private isPaired;
|
21
21
|
private context;
|
22
|
+
private pubkeys;
|
23
|
+
private masters;
|
24
|
+
private balances;
|
25
|
+
private ibcChannels;
|
26
|
+
private paymentStreams;
|
27
|
+
private nfts;
|
22
28
|
private contexts;
|
23
29
|
private info;
|
24
30
|
private wallets;
|
package/lib/index.js
CHANGED
@@ -74,6 +74,9 @@ var SDK = /** @class */ (function () {
|
|
74
74
|
this.events = {};
|
75
75
|
this.totalValueUsd = 0;
|
76
76
|
this.blockchains = [];
|
77
|
+
this.ibcChannels = [];
|
78
|
+
this.paymentStreams = [];
|
79
|
+
this.nfts = [];
|
77
80
|
this.init = function (blockchains) {
|
78
81
|
return __awaiter(this, void 0, void 0, function () {
|
79
82
|
var tag, i, blockchain, _a, userInfo, e_1;
|
@@ -114,9 +117,16 @@ var SDK = /** @class */ (function () {
|
|
114
117
|
case 3:
|
115
118
|
userInfo = _b.sent();
|
116
119
|
userInfo = userInfo.data;
|
120
|
+
log.info(tag, "userInfo: ", userInfo);
|
117
121
|
if (!this.username)
|
118
122
|
this.username = userInfo.username;
|
119
123
|
this.wallets = userInfo.wallets;
|
124
|
+
this.balances = userInfo.balances;
|
125
|
+
this.masters = userInfo.masters;
|
126
|
+
this.pubkeys = userInfo.pubkeys;
|
127
|
+
this.ibcChannels = userInfo.ibcChannels;
|
128
|
+
this.nfts = userInfo.nfts;
|
129
|
+
this.paymentStreams = userInfo.paymentStreams;
|
120
130
|
this.totalValueUsd = parseFloat(userInfo.totalValueUsd);
|
121
131
|
this.context = userInfo.context;
|
122
132
|
this.invocationContext = userInfo.invocationContext;
|
@@ -486,6 +496,10 @@ var SDK = /** @class */ (function () {
|
|
486
496
|
if (!result.masters.RUNE)
|
487
497
|
throw Error("102: RUNE required asset! ");
|
488
498
|
thorAddress = result.masters.RUNE;
|
499
|
+
this.wallets = result.wallets;
|
500
|
+
this.balances = result.balances;
|
501
|
+
this.masters = result.masters;
|
502
|
+
this.pubkeys = result.pubkeys;
|
489
503
|
log.debug(tag, "this.spec: ", this.spec);
|
490
504
|
log.debug(tag, "supportedBlockchains: ", supportedBlockchains);
|
491
505
|
if (!this.spec)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pioneer-platform/pioneer-sdk",
|
3
|
-
"version": "8.1.
|
3
|
+
"version": "8.1.39",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"types": "./lib/index.d.ts",
|
6
6
|
"scripts": {
|
@@ -20,10 +20,10 @@
|
|
20
20
|
"clean": "rm -rf coverage src/**/*.js src/**/*.map lib node_modules"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@pioneer-platform/pioneer-coins": "^8.1.
|
23
|
+
"@pioneer-platform/pioneer-coins": "^8.1.33",
|
24
24
|
"@pioneer-platform/pioneer-events": "^8.1.26",
|
25
|
-
"@pioneer-platform/pioneer-types": "^8.1.
|
26
|
-
"@pioneer-platform/pioneer-xchain-client": "^8.1.
|
25
|
+
"@pioneer-platform/pioneer-types": "^8.1.41",
|
26
|
+
"@pioneer-platform/pioneer-xchain-client": "^8.1.35",
|
27
27
|
"bignumber.js": "^9.0.1",
|
28
28
|
"dotenv": "^8.2.0",
|
29
29
|
"openapi-client-axios": "^3.13.1",
|
@@ -41,5 +41,5 @@
|
|
41
41
|
"ts-jest": "^25.4.0",
|
42
42
|
"typescript": "^3.9.9"
|
43
43
|
},
|
44
|
-
"gitHead": "
|
44
|
+
"gitHead": "d061e95fc78b972b1e7e36901ae63c0b4f601701"
|
45
45
|
}
|