@avaprotocol/sdk-js 2.12.0 → 2.12.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @avaprotocol/sdk-js
2
2
 
3
+ ## 2.12.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 1961cd5: fix: protobuf was not built and updated problem
8
+
9
+ ## 2.12.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 1d8a1e8: fix: getAutomationFee is not a function in execution proble
14
+
15
+ ## 2.12.1
16
+
17
+ ### Patch Changes
18
+
19
+ - a6f7b8d: fix: resolve getAutomationFee function not found problem
20
+
3
21
  ## 2.12.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.js CHANGED
@@ -21115,7 +21115,7 @@ var Execution2 = class _Execution {
21115
21115
  };
21116
21116
  }
21117
21117
  static fromResponse(execution) {
21118
- const automationFeePb = execution.getAutomationFee();
21118
+ const automationFeePb = typeof execution.getAutomationFee === "function" ? execution.getAutomationFee() : void 0;
21119
21119
  const automationFee = automationFeePb ? automationFeePb.toObject() : void 0;
21120
21120
  return new _Execution({
21121
21121
  id: execution.getId(),
package/dist/index.mjs CHANGED
@@ -21128,7 +21128,7 @@ var Execution2 = class _Execution {
21128
21128
  };
21129
21129
  }
21130
21130
  static fromResponse(execution) {
21131
- const automationFeePb = execution.getAutomationFee();
21131
+ const automationFeePb = typeof execution.getAutomationFee === "function" ? execution.getAutomationFee() : void 0;
21132
21132
  const automationFee = automationFeePb ? automationFeePb.toObject() : void 0;
21133
21133
  return new _Execution({
21134
21134
  id: execution.getId(),
@@ -1 +1 @@
1
- {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/models/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,cAAc,EAEd,eAAe,EACf,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;A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AC"}
@@ -49,7 +49,9 @@ class Execution {
49
49
  };
50
50
  }
51
51
  static fromResponse(execution) {
52
- const automationFeePb = execution.getAutomationFee();
52
+ const automationFeePb = typeof execution.getAutomationFee === 'function'
53
+ ? execution.getAutomationFee()
54
+ : undefined;
53
55
  const automationFee = automationFeePb
54
56
  ? automationFeePb.toObject()
55
57
  : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avaprotocol/sdk-js",
3
- "version": "2.12.0",
3
+ "version": "2.12.3",
4
4
  "description": "A JavaScript/TypeScript SDK designed to simplify integration with Ava Protocol's AVS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",