aftermath-ts-sdk 1.3.22-cleanup.0.1 → 1.3.22-cleanup.0.2
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":"wallet.d.ts","sourceRoot":"","sources":["../../../src/general/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,UAAU,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,MAAM;aAShB,OAAO,EAAE,UAAU;IAEnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAV3B;;;;;;OAMG;gBAEc,OAAO,EAAE,UAAU,EACnC,MAAM,CAAC,EAAE,YAAY,EACJ,QAAQ,CAAC,EAAE,YAAY,YAAA;IASzC;;;;;;;;;;;;;;;;;OAiBG;IACU,UAAU,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../src/general/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EACnB,OAAO,EACP,YAAY,EACZ,UAAU,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,MAAM;aAShB,OAAO,EAAE,UAAU;IAEnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IAV3B;;;;;;OAMG;gBAEc,OAAO,EAAE,UAAU,EACnC,MAAM,CAAC,EAAE,YAAY,EACJ,QAAQ,CAAC,EAAE,YAAY,YAAA;IASzC;;;;;;;;;;;;;;;;;OAiBG;IACU,UAAU,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAOrE;;;;;;;;;;;;;;OAcG;IACU,WAAW,CAAC,MAAM,EAAE;QAChC,KAAK,EAAE,QAAQ,EAAE,CAAC;KAClB,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAItB;;;;;;;;;;;;OAYG;IACU,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC;IAStD;;;;;;;;;;;;OAYG;IACU,mBAAmB,CAAC,MAAM,EAAE,mBAAmB;CAK5D"}
|
|
@@ -52,7 +52,7 @@ class Wallet extends caller_1.Caller {
|
|
|
52
52
|
*/
|
|
53
53
|
getBalance(inputs) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const balances = yield this.fetchApi(
|
|
55
|
+
const balances = yield this.fetchApi(`balances/coins`, {
|
|
56
56
|
coins: [inputs.coin],
|
|
57
57
|
});
|
|
58
58
|
return balances[0];
|
|
@@ -93,7 +93,8 @@ class Wallet extends caller_1.Caller {
|
|
|
93
93
|
*/
|
|
94
94
|
getAllBalances() {
|
|
95
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
|
|
96
|
+
console.log("wtf");
|
|
97
|
+
return this.fetchApi(`balances`);
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
100
|
// =========================================================================
|
|
@@ -114,7 +115,7 @@ class Wallet extends caller_1.Caller {
|
|
|
114
115
|
*/
|
|
115
116
|
getPastTransactions(inputs) {
|
|
116
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
return this.fetchApi(
|
|
118
|
+
return this.fetchApi(`transactions`, Object.assign({}, inputs));
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
}
|