@gearbox-protocol/sdk 9.12.5 → 9.12.7

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.
@@ -109,6 +109,9 @@ class PriceFeedRegister extends import_base.SDKConstruct {
109
109
  txs.push(tx);
110
110
  latestUpdate.updates.push(data);
111
111
  }
112
+ txs.sort(
113
+ (a, b) => a.raw.to.toLowerCase().localeCompare(b.raw.to.toLowerCase())
114
+ );
112
115
  const result = { txs, timestamp: maxTimestamp };
113
116
  const tsDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
114
117
  this.logger?.debug(
@@ -40,7 +40,10 @@ class Hooks {
40
40
  return;
41
41
  }
42
42
  for (const fn of this.#reg[hookName]) {
43
- await fn(...args);
43
+ try {
44
+ await fn(...args);
45
+ } catch {
46
+ }
44
47
  }
45
48
  }
46
49
  }
@@ -98,6 +98,9 @@ class PriceFeedRegister extends SDKConstruct {
98
98
  txs.push(tx);
99
99
  latestUpdate.updates.push(data);
100
100
  }
101
+ txs.sort(
102
+ (a, b) => a.raw.to.toLowerCase().localeCompare(b.raw.to.toLowerCase())
103
+ );
101
104
  const result = { txs, timestamp: maxTimestamp };
102
105
  const tsDelta = BigInt(maxTimestamp) - this.sdk.timestamp;
103
106
  this.logger?.debug(
@@ -17,7 +17,10 @@ class Hooks {
17
17
  return;
18
18
  }
19
19
  for (const fn of this.#reg[hookName]) {
20
- await fn(...args);
20
+ try {
21
+ await fn(...args);
22
+ } catch {
23
+ }
21
24
  }
22
25
  }
23
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "9.12.5",
3
+ "version": "9.12.7",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",