@gearbox-protocol/sdk 3.0.0-vfour.294 → 3.0.0-vfour.295

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.
@@ -25,6 +25,7 @@ var import_viem = require("viem");
25
25
  var import_abi = require("../../abi/index.js");
26
26
  var import_AbstractPriceFeed = require("./AbstractPriceFeed.js");
27
27
  class RedstonePriceFeedContract extends import_AbstractPriceFeed.AbstractPriceFeedContract {
28
+ token;
28
29
  dataServiceId;
29
30
  dataId;
30
31
  signers;
@@ -70,6 +71,7 @@ class RedstonePriceFeedContract extends import_AbstractPriceFeed.AbstractPriceFe
70
71
  ],
71
72
  args.baseParams.serializedParams
72
73
  );
74
+ this.token = decoder[0];
73
75
  this.dataId = (0, import_viem.bytesToString)((0, import_viem.toBytes)(decoder[1])).replaceAll("\0", "");
74
76
  this.signers = decoder.slice(2, 11);
75
77
  this.signersThreshold = Number(decoder[12]);
@@ -2,6 +2,7 @@ import { bytesToString, decodeAbiParameters, toBytes } from "viem";
2
2
  import { redstonePriceFeedAbi } from "../../abi/index.js";
3
3
  import { AbstractPriceFeedContract } from "./AbstractPriceFeed.js";
4
4
  class RedstonePriceFeedContract extends AbstractPriceFeedContract {
5
+ token;
5
6
  dataServiceId;
6
7
  dataId;
7
8
  signers;
@@ -47,6 +48,7 @@ class RedstonePriceFeedContract extends AbstractPriceFeedContract {
47
48
  ],
48
49
  args.baseParams.serializedParams
49
50
  );
51
+ this.token = decoder[0];
50
52
  this.dataId = bytesToString(toBytes(decoder[1])).replaceAll("\0", "");
51
53
  this.signers = decoder.slice(2, 11);
52
54
  this.signersThreshold = Number(decoder[12]);
@@ -1,4 +1,4 @@
1
- import type { Hex } from "viem";
1
+ import type { Address, Hex } from "viem";
2
2
  import { redstonePriceFeedAbi } from "../../abi/index.js";
3
3
  import type { GearboxSDK } from "../../GearboxSDK.js";
4
4
  import type { RedstonePriceFeedStateHuman } from "../../types/index.js";
@@ -6,6 +6,7 @@ import type { PartialPriceFeedTreeNode } from "./AbstractPriceFeed.js";
6
6
  import { AbstractPriceFeedContract } from "./AbstractPriceFeed.js";
7
7
  type abi = typeof redstonePriceFeedAbi;
8
8
  export declare class RedstonePriceFeedContract extends AbstractPriceFeedContract<abi> {
9
+ readonly token: Address;
9
10
  readonly dataServiceId: string;
10
11
  readonly dataId: string;
11
12
  readonly signers: Hex[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.294",
3
+ "version": "3.0.0-vfour.295",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",