@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.
@@ -3,6 +3,7 @@ import { Tx as CosmosTx } from '../index';
3
3
  import { ParsedTx } from '../types';
4
4
  export interface TransactionParserArgs {
5
5
  chainId: ChainId;
6
+ assetId?: AssetId;
6
7
  }
7
8
  export declare class TransactionParser {
8
9
  chainId: ChainId;
@@ -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 = (0, caip_1.toAssetId)({
12
- ...(0, caip_1.fromChainId)(this.chainId),
13
- assetNamespace: 'slip44',
14
- assetReference: caip_1.ASSET_REFERENCE.Cosmos
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/unchained-client",
3
- "version": "8.3.2",
3
+ "version": "8.3.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",