@gearbox-protocol/sdk 8.28.3 → 8.28.4

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.
@@ -63,6 +63,9 @@ class EthCallSpy {
63
63
  get detectedCalls() {
64
64
  return this.#detectedCalls;
65
65
  }
66
+ get detectedBlock() {
67
+ return this.#detectedBlock;
68
+ }
66
69
  #shouldStore(data) {
67
70
  if (data.method === "eth_call" && typeof data.params[1] === "string" && // block number is present
68
71
  data.params[1]?.startsWith("0x") && // and it's a block number
@@ -40,6 +40,9 @@ class EthCallSpy {
40
40
  get detectedCalls() {
41
41
  return this.#detectedCalls;
42
42
  }
43
+ get detectedBlock() {
44
+ return this.#detectedBlock;
45
+ }
43
46
  #shouldStore(data) {
44
47
  if (data.method === "eth_call" && typeof data.params[1] === "string" && // block number is present
45
48
  data.params[1]?.startsWith("0x") && // and it's a block number
@@ -20,4 +20,5 @@ export declare class EthCallSpy {
20
20
  onFetchRequest: Required<HttpTransportConfig>["onFetchRequest"];
21
21
  onFetchResponse: Required<HttpTransportConfig>["onFetchResponse"];
22
22
  get detectedCalls(): DetectedCall[];
23
+ get detectedBlock(): bigint;
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.28.3",
3
+ "version": "8.28.4",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",