@shapeshiftoss/unchained-client 8.3.2 → 8.3.3
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.
|
@@ -7,12 +7,14 @@ const types_1 = require("../../types");
|
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
8
|
class TransactionParser {
|
|
9
9
|
constructor(args) {
|
|
10
|
+
var _a;
|
|
10
11
|
this.chainId = args.chainId;
|
|
11
|
-
this.assetId =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
this.assetId =
|
|
13
|
+
(_a = args === null || args === void 0 ? void 0 : args.assetId) !== null && _a !== void 0 ? _a : (0, caip_1.toAssetId)({
|
|
14
|
+
...(0, caip_1.fromChainId)(this.chainId),
|
|
15
|
+
assetNamespace: 'slip44',
|
|
16
|
+
assetReference: caip_1.ASSET_REFERENCE.Cosmos
|
|
17
|
+
});
|
|
16
18
|
}
|
|
17
19
|
async parse(tx, address) {
|
|
18
20
|
var _a, _b;
|