@riocrypto/common-server 1.0.1116 → 1.0.1118
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.
|
@@ -69,6 +69,16 @@ class BridgeClient {
|
|
|
69
69
|
return data;
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
deleteTransfer(transferId) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const { data } = yield axios_1.default.delete(`${this.baseUrl}/v0/transfers/${transferId}`, {
|
|
75
|
+
headers: {
|
|
76
|
+
"Api-Key": this.apiKey,
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
return data;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
72
82
|
getTransfer(id) {
|
|
73
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
84
|
const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/transfers/${id}`, {
|
|
@@ -133,7 +143,6 @@ class BridgeClient {
|
|
|
133
143
|
"Api-Key": this.apiKey,
|
|
134
144
|
},
|
|
135
145
|
});
|
|
136
|
-
console.log("response", response.data);
|
|
137
146
|
return response.data || [];
|
|
138
147
|
});
|
|
139
148
|
}
|