@typus/typus-sdk 1.4.59 → 1.4.60
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.
|
@@ -15,7 +15,7 @@ export interface TxHistory {
|
|
|
15
15
|
Date: Date;
|
|
16
16
|
txDigest: string;
|
|
17
17
|
}
|
|
18
|
-
export declare function parseTxHistory(datas: Array<any>,
|
|
18
|
+
export declare function parseTxHistory(datas: Array<any>, packageId: string, originPackageId: string, vaults: {
|
|
19
19
|
[key: string]: Vault;
|
|
20
20
|
}): Promise<Array<TxHistory>>;
|
|
21
21
|
export declare function parseVaultInfo(vaults: {
|
|
@@ -145,7 +145,7 @@ function getAutoBidEvents(provider, originPackage, startTimeMs) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function parseTxHistory(datas,
|
|
148
|
+
function parseTxHistory(datas, packageId, originPackageId, vaults) {
|
|
149
149
|
return __awaiter(this, void 0, void 0, function () {
|
|
150
150
|
var results;
|
|
151
151
|
var _this = this;
|
|
@@ -154,7 +154,8 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
154
154
|
case 0: return [4 /*yield*/, datas
|
|
155
155
|
.filter(function (event) {
|
|
156
156
|
var type = event.type;
|
|
157
|
-
return (event.packageId ==
|
|
157
|
+
return (event.packageId == packageId ||
|
|
158
|
+
event.packageId == originPackageId ||
|
|
158
159
|
type.includes("typus_nft::First") ||
|
|
159
160
|
type.includes("typus_nft::ExpUpEvent") ||
|
|
160
161
|
type.includes("tails_staking"));
|