@avaprotocol/sdk-js 2.15.0 → 2.17.0
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 +59 -0
- package/README.md +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -55
- package/dist/index.mjs +20 -57
- package/dist/models/execution.d.ts +10 -0
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +12 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# @avaprotocol/sdk-js
|
|
2
2
|
|
|
3
|
+
## 2.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bfb7974: Replace `ExecutionStatus.PartialSuccess` with clear SUCCESS/FAILED/ERROR semantics.
|
|
8
|
+
|
|
9
|
+
**Breaking:** `ExecutionStatus.PartialSuccess` is removed. Use `ExecutionStatus.Failed` for step failures and `ExecutionStatus.Error` for system-level failures. Branch-skip workflows now return `ExecutionStatus.Success`.
|
|
10
|
+
|
|
11
|
+
Legacy proto value 4 (former PARTIAL_SUCCESS) is mapped to `Failed` automatically — no data migration needed.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- d46e755: fix: consolidate conversion functions like convertProtobufExecutionStatus
|
|
16
|
+
- Updated dependencies [bfb7974]
|
|
17
|
+
- Updated dependencies [d46e755]
|
|
18
|
+
- @avaprotocol/types@2.13.0
|
|
19
|
+
|
|
20
|
+
## 2.16.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- 44f1764: Document the new `value` / `valueFormatted` field semantics for ERC-20 Transfer event triggers and document that `MethodCallType.applyToFields: ["Transfer.value"]` is no longer needed (and should not be used) for Transfer events. The `applyToFields` field itself is **not** deprecated — it remains the correct mechanism for non-Transfer cases like Chainlink `AnswerUpdated.current`, ERC-20 `totalSupply`, and other contract read fields where shared enrichment does not pre-compute a formatted value.
|
|
25
|
+
|
|
26
|
+
**Breaking change in trigger output (originates from EigenLayer-AVS PR #509):**
|
|
27
|
+
|
|
28
|
+
- `EventTrigger` output `data.value` is now the **raw uint256 base-units string** for ERC-20 `Transfer` events (e.g. `"1500000"` for 1.5 USDC). Previously this field held the decimal-formatted amount when token metadata was available.
|
|
29
|
+
- `data.valueFormatted` is the new field for the **decimal-applied display string** (e.g. `"1.5"`).
|
|
30
|
+
- SDK consumers that read `data.value` for display **must migrate to `data.valueFormatted`**. Code that does math/encoding on `data.value` (e.g. ERC-20 transfer calldata generation) is unchanged or now more correct.
|
|
31
|
+
|
|
32
|
+
**Guidance change (not a type-level deprecation):**
|
|
33
|
+
|
|
34
|
+
- `MethodCallType.applyToFields: ["Transfer.value"]` is no longer needed for ERC-20 Transfer events — the operator's shared event enrichment now always publishes `valueFormatted` for Transfer events when token decimals are known, making the opt-in mechanism redundant and potentially double-formatting. **`applyToFields` itself is not deprecated** — it remains valid (and required) for non-Transfer use cases.
|
|
35
|
+
|
|
36
|
+
**Updates in this release:**
|
|
37
|
+
|
|
38
|
+
- `packages/types/src/shared.ts` — `MethodCallType.applyToFields` JSDoc clarified with an `@remarks` block explaining the Transfer-specific guidance. No `@deprecated` tag (which would incorrectly strikethrough the 30+ legitimate non-Transfer usages across `contractRead.test.ts`, `loopNode.test.ts`, Chainlink/Uniswap templates, etc.).
|
|
39
|
+
- `packages/sdk-js/README.md` — new "Event trigger output: `value` vs `valueFormatted`" section.
|
|
40
|
+
- `examples/example.ts` — comment on the `scheduleMonitorTransfer` ContractWrite step explaining when to use `data.value` vs `data.valueFormatted`.
|
|
41
|
+
- Test fixtures and assertions in `tests/triggers/eventTrigger.test.ts`, `tests/templates/telegram-alert-on-transfer.test.ts`, and `tests/executions/stepInput.test.ts` updated to use the new field semantics.
|
|
42
|
+
|
|
43
|
+
No production SDK code reads `transferData.value` directly, so there is no API surface break — this is a documentation and consumer-guidance release.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- bb0b404: Address PR review feedback on the Transfer field semantics alignment (companion to the previous changeset, `transfer-value-semantics.md`).
|
|
48
|
+
|
|
49
|
+
**Bug fix in `examples/example.ts`** — the `scheduleMonitorTransfer` ContractWrite calldata template was using `Number(demoTriggerName.data.value).toString(16)` to encode the ERC-20 transfer amount. With `data.value` now being raw uint256 base units (per EigenLayer-AVS PR #509), the `Number(...)` cast silently loses precision for any token amount above JavaScript's safe-integer range (~9e15 — about 9 ETH or 9,000,000,000 USDC), producing incorrect transfer calldata. Switched to `BigInt(...)` which is integer-safe.
|
|
50
|
+
|
|
51
|
+
**Test determinism fix in `tests/executions/stepInput.test.ts`** — the previous attempt added an `if (eventData.valueFormatted) { ... } else { decode rawData }` fallback in the CustomCode snippet. That violated the test determinism rule (CLAUDE.md) because it allowed the test to pass via two different code paths and would have hidden a future regression that drops `valueFormatted` from the simulator output. The CustomCode snippet now reads `eventData.valueFormatted` directly. As a side effect, this also removes a `parseInt(rawValue, 16)` precision-loss path that would have silently truncated large amounts on the fallback branch.
|
|
52
|
+
|
|
53
|
+
**Documentation polish** — `packages/sdk-js/README.md` previously said "Breaking change in v1.x" but `@avaprotocol/sdk-js` is currently v2.x. Replaced with version-agnostic wording: "Breaking change in operator output (EigenLayer-AVS PR #509)".
|
|
54
|
+
|
|
55
|
+
**Comment alignment** — two inline comments in the Transfer event tests still used the word "deprecated", which contradicted the deliberate `@remarks`-not-`@deprecated` decision in the previous changeset. Updated to "is no longer needed for Transfer events" and explicitly noted the field is still valid for non-Transfer cases (Chainlink AnswerUpdated, ERC-20 totalSupply, etc.).
|
|
56
|
+
|
|
57
|
+
No SDK API surface changes. No new tests added beyond the determinism cleanup. The semantic regex assertions added in the previous PR continue to pin the `value` / `valueFormatted` contract.
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [44f1764]
|
|
60
|
+
- @avaprotocol/types@2.12.0
|
|
61
|
+
|
|
3
62
|
## 2.15.0
|
|
4
63
|
|
|
5
64
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -113,6 +113,21 @@ export async function getAuthKey(
|
|
|
113
113
|
}
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
## Event trigger output: `value` vs `valueFormatted`
|
|
117
|
+
|
|
118
|
+
When an `EventTrigger` matches an ERC-20 `Transfer`, the operator's shared event enrichment publishes both a raw and a formatted amount on the trigger's output `data`:
|
|
119
|
+
|
|
120
|
+
| Field | Type | Meaning | Use for |
|
|
121
|
+
|---|---|---|---|
|
|
122
|
+
| `data.value` | `string` | Raw uint256 base units (e.g. `"1500000"` for 1.5 USDC) | Math, encoding ERC-20 calldata, BigInt operations |
|
|
123
|
+
| `data.valueFormatted` | `string` | Decimal-applied display string (e.g. `"1.5"`) | Telegram/email messages, UI rendering |
|
|
124
|
+
| `data.tokenSymbol` | `string` | Token symbol from contract metadata | Display |
|
|
125
|
+
| `data.tokenDecimals` | `number` | Token decimals from contract metadata | Reference |
|
|
126
|
+
|
|
127
|
+
**Breaking change in operator output (EigenLayer-AVS PR #509)**: Prior operator versions populated `data.value` with the decimal-formatted amount when token metadata was available. After PR #509, `data.value` is **always raw uint256 base units**, and `data.valueFormatted` is the new field for human-readable amounts. SDK consumers that read `data.value` for display **must migrate to `data.valueFormatted`**.
|
|
128
|
+
|
|
129
|
+
**Do not use `MethodCallType.applyToFields: ["Transfer.value"]`** for ERC-20 Transfer events — the enrichment is now automatic and `applyToFields` would be redundant (and may double-format). `applyToFields` remains the correct mechanism for every other use case where shared enrichment does not pre-compute a formatted value (Chainlink AnswerUpdated `current`/`answer`, ERC-20 `totalSupply`, generic contract read fields, etc.).
|
|
130
|
+
|
|
116
131
|
## Contributing
|
|
117
132
|
|
|
118
133
|
We welcome contributions! Feel free to submit pull requests or open issues for any bugs or feature requests.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src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,cAAc,EACd,MAAM,EACN,SAAS,EACT,qBAAqB,GACtB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18208,7 +18208,7 @@ var require_avs_pb = __commonJS({
|
|
|
18208
18208
|
EXECUTION_STATUS_PENDING: 1,
|
|
18209
18209
|
EXECUTION_STATUS_SUCCESS: 2,
|
|
18210
18210
|
EXECUTION_STATUS_FAILED: 3,
|
|
18211
|
-
|
|
18211
|
+
EXECUTION_STATUS_ERROR: 5
|
|
18212
18212
|
};
|
|
18213
18213
|
goog.object.extend(exports2, proto.aggregator);
|
|
18214
18214
|
}
|
|
@@ -21282,16 +21282,17 @@ var Step = class _Step {
|
|
|
21282
21282
|
var step_default = Step;
|
|
21283
21283
|
|
|
21284
21284
|
// src/models/execution.ts
|
|
21285
|
-
function
|
|
21285
|
+
function convertProtobufExecutionStatus(protobufStatus) {
|
|
21286
21286
|
switch (protobufStatus) {
|
|
21287
21287
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
21288
21288
|
return import_types21.ExecutionStatus.Pending;
|
|
21289
21289
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
21290
21290
|
return import_types21.ExecutionStatus.Success;
|
|
21291
21291
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
21292
|
+
case 4:
|
|
21292
21293
|
return import_types21.ExecutionStatus.Failed;
|
|
21293
|
-
case avs_pb22.ExecutionStatus.
|
|
21294
|
-
return import_types21.ExecutionStatus.
|
|
21294
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_ERROR:
|
|
21295
|
+
return import_types21.ExecutionStatus.Error;
|
|
21295
21296
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
21296
21297
|
default:
|
|
21297
21298
|
return import_types21.ExecutionStatus.Unspecified;
|
|
@@ -21358,7 +21359,7 @@ var Execution2 = class _Execution {
|
|
|
21358
21359
|
id: execution.getId(),
|
|
21359
21360
|
startAt: execution.getStartAt(),
|
|
21360
21361
|
endAt: execution.getEndAt(),
|
|
21361
|
-
status:
|
|
21362
|
+
status: convertProtobufExecutionStatus(execution.getStatus()),
|
|
21362
21363
|
error: execution.getError(),
|
|
21363
21364
|
index: execution.getIndex(),
|
|
21364
21365
|
executionFee: convertFee(execution.getExecutionFee()),
|
|
@@ -21402,22 +21403,6 @@ var secret_default = Secret;
|
|
|
21402
21403
|
|
|
21403
21404
|
// src/index.ts
|
|
21404
21405
|
var import_types22 = require("@avaprotocol/types");
|
|
21405
|
-
var import_avs_pb = __toESM(require_avs_pb());
|
|
21406
|
-
function convertProtobufExecutionStatus(protobufStatus) {
|
|
21407
|
-
switch (protobufStatus) {
|
|
21408
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
21409
|
-
return import_types22.ExecutionStatus.Pending;
|
|
21410
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
21411
|
-
return import_types22.ExecutionStatus.Success;
|
|
21412
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
21413
|
-
return import_types22.ExecutionStatus.Failed;
|
|
21414
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
21415
|
-
return import_types22.ExecutionStatus.PartialSuccess;
|
|
21416
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
21417
|
-
default:
|
|
21418
|
-
return import_types22.ExecutionStatus.Unspecified;
|
|
21419
|
-
}
|
|
21420
|
-
}
|
|
21421
21406
|
var BaseClient = class {
|
|
21422
21407
|
constructor(opts) {
|
|
21423
21408
|
this.endpoint = opts.endpoint;
|
|
@@ -22458,40 +22443,19 @@ var Client = class extends BaseClient {
|
|
|
22458
22443
|
convertEstimateFeesResponse(result) {
|
|
22459
22444
|
const nativeTokenPb = result.getNativeToken();
|
|
22460
22445
|
const nativeToken = nativeTokenPb ? { symbol: nativeTokenPb.getSymbol(), decimals: nativeTokenPb.getDecimals() } : void 0;
|
|
22461
|
-
const
|
|
22462
|
-
const
|
|
22463
|
-
const
|
|
22464
|
-
|
|
22465
|
-
|
|
22466
|
-
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22470
|
-
}
|
|
22471
|
-
|
|
22472
|
-
|
|
22473
|
-
|
|
22474
|
-
if (valueFeePb) {
|
|
22475
|
-
const vfFeePb = valueFeePb.getFee();
|
|
22476
|
-
valueFee = {
|
|
22477
|
-
fee: vfFeePb ? { amount: vfFeePb.getAmount(), unit: vfFeePb.getUnit() } : { amount: "0", unit: "PERCENTAGE" },
|
|
22478
|
-
tier: avs_pb24.ExecutionTier[valueFeePb.getTier()] ?? valueFeePb.getTier().toString(),
|
|
22479
|
-
valueBase: valueFeePb.getValueBase() || void 0,
|
|
22480
|
-
classificationMethod: valueFeePb.getClassificationMethod(),
|
|
22481
|
-
confidence: valueFeePb.getConfidence(),
|
|
22482
|
-
reason: valueFeePb.getReason()
|
|
22483
|
-
};
|
|
22484
|
-
}
|
|
22485
|
-
const discounts = result.getDiscountsList().map((discountPb) => {
|
|
22486
|
-
const dFeePb = discountPb.getDiscount();
|
|
22487
|
-
return {
|
|
22488
|
-
discountType: discountPb.getDiscountType(),
|
|
22489
|
-
discountName: discountPb.getDiscountName(),
|
|
22490
|
-
discount: dFeePb ? { amount: dFeePb.getAmount(), unit: dFeePb.getUnit() } : { amount: "0", unit: "USD" },
|
|
22491
|
-
expiryDate: discountPb.getExpiryDate() || void 0,
|
|
22492
|
-
terms: discountPb.getTerms() || void 0
|
|
22493
|
-
};
|
|
22494
|
-
});
|
|
22446
|
+
const executionFee = convertFee(result.getExecutionFee());
|
|
22447
|
+
const cogs = result.getCogsList().map(convertNodeCOGS);
|
|
22448
|
+
const valueFee = convertValueFee(result.getValueFee());
|
|
22449
|
+
const discounts = result.getDiscountsList().map((discountPb) => ({
|
|
22450
|
+
discountType: discountPb.getDiscountType(),
|
|
22451
|
+
discountName: discountPb.getDiscountName(),
|
|
22452
|
+
discount: convertFee(discountPb.getDiscount()) || {
|
|
22453
|
+
amount: "0",
|
|
22454
|
+
unit: "USD"
|
|
22455
|
+
},
|
|
22456
|
+
expiryDate: discountPb.getExpiryDate() || void 0,
|
|
22457
|
+
terms: discountPb.getTerms() || void 0
|
|
22458
|
+
}));
|
|
22495
22459
|
return {
|
|
22496
22460
|
success: result.getSuccess(),
|
|
22497
22461
|
error: result.getError() || void 0,
|
package/dist/index.mjs
CHANGED
|
@@ -18208,7 +18208,7 @@ var require_avs_pb = __commonJS({
|
|
|
18208
18208
|
EXECUTION_STATUS_PENDING: 1,
|
|
18209
18209
|
EXECUTION_STATUS_SUCCESS: 2,
|
|
18210
18210
|
EXECUTION_STATUS_FAILED: 3,
|
|
18211
|
-
|
|
18211
|
+
EXECUTION_STATUS_ERROR: 5
|
|
18212
18212
|
};
|
|
18213
18213
|
goog.object.extend(exports, proto.aggregator);
|
|
18214
18214
|
}
|
|
@@ -21298,16 +21298,17 @@ var Step = class _Step {
|
|
|
21298
21298
|
var step_default = Step;
|
|
21299
21299
|
|
|
21300
21300
|
// src/models/execution.ts
|
|
21301
|
-
function
|
|
21301
|
+
function convertProtobufExecutionStatus(protobufStatus) {
|
|
21302
21302
|
switch (protobufStatus) {
|
|
21303
21303
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
21304
21304
|
return ExecutionStatus2.Pending;
|
|
21305
21305
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
21306
21306
|
return ExecutionStatus2.Success;
|
|
21307
21307
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
21308
|
+
case 4:
|
|
21308
21309
|
return ExecutionStatus2.Failed;
|
|
21309
|
-
case avs_pb22.ExecutionStatus.
|
|
21310
|
-
return ExecutionStatus2.
|
|
21310
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_ERROR:
|
|
21311
|
+
return ExecutionStatus2.Error;
|
|
21311
21312
|
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
21312
21313
|
default:
|
|
21313
21314
|
return ExecutionStatus2.Unspecified;
|
|
@@ -21374,7 +21375,7 @@ var Execution2 = class _Execution {
|
|
|
21374
21375
|
id: execution.getId(),
|
|
21375
21376
|
startAt: execution.getStartAt(),
|
|
21376
21377
|
endAt: execution.getEndAt(),
|
|
21377
|
-
status:
|
|
21378
|
+
status: convertProtobufExecutionStatus(execution.getStatus()),
|
|
21378
21379
|
error: execution.getError(),
|
|
21379
21380
|
index: execution.getIndex(),
|
|
21380
21381
|
executionFee: convertFee(execution.getExecutionFee()),
|
|
@@ -21417,31 +21418,14 @@ var Secret = class {
|
|
|
21417
21418
|
var secret_default = Secret;
|
|
21418
21419
|
|
|
21419
21420
|
// src/index.ts
|
|
21420
|
-
var import_avs_pb = __toESM(require_avs_pb());
|
|
21421
21421
|
import {
|
|
21422
21422
|
TriggerType as TriggerType13,
|
|
21423
21423
|
TriggerTypeConverter,
|
|
21424
21424
|
AUTH_KEY_HEADER,
|
|
21425
21425
|
DEFAULT_LIMIT,
|
|
21426
21426
|
ErrorCode,
|
|
21427
|
-
TimeoutPresets
|
|
21428
|
-
ExecutionStatus as ExecutionStatus3
|
|
21427
|
+
TimeoutPresets
|
|
21429
21428
|
} from "@avaprotocol/types";
|
|
21430
|
-
function convertProtobufExecutionStatus(protobufStatus) {
|
|
21431
|
-
switch (protobufStatus) {
|
|
21432
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
21433
|
-
return ExecutionStatus3.Pending;
|
|
21434
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
21435
|
-
return ExecutionStatus3.Success;
|
|
21436
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
21437
|
-
return ExecutionStatus3.Failed;
|
|
21438
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
21439
|
-
return ExecutionStatus3.PartialSuccess;
|
|
21440
|
-
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
21441
|
-
default:
|
|
21442
|
-
return ExecutionStatus3.Unspecified;
|
|
21443
|
-
}
|
|
21444
|
-
}
|
|
21445
21429
|
var BaseClient = class {
|
|
21446
21430
|
constructor(opts) {
|
|
21447
21431
|
this.endpoint = opts.endpoint;
|
|
@@ -22482,40 +22466,19 @@ var Client = class extends BaseClient {
|
|
|
22482
22466
|
convertEstimateFeesResponse(result) {
|
|
22483
22467
|
const nativeTokenPb = result.getNativeToken();
|
|
22484
22468
|
const nativeToken = nativeTokenPb ? { symbol: nativeTokenPb.getSymbol(), decimals: nativeTokenPb.getDecimals() } : void 0;
|
|
22485
|
-
const
|
|
22486
|
-
const
|
|
22487
|
-
const
|
|
22488
|
-
|
|
22489
|
-
|
|
22490
|
-
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22494
|
-
}
|
|
22495
|
-
|
|
22496
|
-
|
|
22497
|
-
|
|
22498
|
-
if (valueFeePb) {
|
|
22499
|
-
const vfFeePb = valueFeePb.getFee();
|
|
22500
|
-
valueFee = {
|
|
22501
|
-
fee: vfFeePb ? { amount: vfFeePb.getAmount(), unit: vfFeePb.getUnit() } : { amount: "0", unit: "PERCENTAGE" },
|
|
22502
|
-
tier: avs_pb24.ExecutionTier[valueFeePb.getTier()] ?? valueFeePb.getTier().toString(),
|
|
22503
|
-
valueBase: valueFeePb.getValueBase() || void 0,
|
|
22504
|
-
classificationMethod: valueFeePb.getClassificationMethod(),
|
|
22505
|
-
confidence: valueFeePb.getConfidence(),
|
|
22506
|
-
reason: valueFeePb.getReason()
|
|
22507
|
-
};
|
|
22508
|
-
}
|
|
22509
|
-
const discounts = result.getDiscountsList().map((discountPb) => {
|
|
22510
|
-
const dFeePb = discountPb.getDiscount();
|
|
22511
|
-
return {
|
|
22512
|
-
discountType: discountPb.getDiscountType(),
|
|
22513
|
-
discountName: discountPb.getDiscountName(),
|
|
22514
|
-
discount: dFeePb ? { amount: dFeePb.getAmount(), unit: dFeePb.getUnit() } : { amount: "0", unit: "USD" },
|
|
22515
|
-
expiryDate: discountPb.getExpiryDate() || void 0,
|
|
22516
|
-
terms: discountPb.getTerms() || void 0
|
|
22517
|
-
};
|
|
22518
|
-
});
|
|
22469
|
+
const executionFee = convertFee(result.getExecutionFee());
|
|
22470
|
+
const cogs = result.getCogsList().map(convertNodeCOGS);
|
|
22471
|
+
const valueFee = convertValueFee(result.getValueFee());
|
|
22472
|
+
const discounts = result.getDiscountsList().map((discountPb) => ({
|
|
22473
|
+
discountType: discountPb.getDiscountType(),
|
|
22474
|
+
discountName: discountPb.getDiscountName(),
|
|
22475
|
+
discount: convertFee(discountPb.getDiscount()) || {
|
|
22476
|
+
amount: "0",
|
|
22477
|
+
unit: "USD"
|
|
22478
|
+
},
|
|
22479
|
+
expiryDate: discountPb.getExpiryDate() || void 0,
|
|
22480
|
+
terms: discountPb.getTerms() || void 0
|
|
22481
|
+
}));
|
|
22519
22482
|
return {
|
|
22520
22483
|
success: result.getSuccess(),
|
|
22521
22484
|
error: result.getError() || void 0,
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
2
2
|
import { ExecutionProps, ExecutionStatus, type Fee, type NodeCOGS, type ValueFee } from "@avaprotocol/types";
|
|
3
3
|
import Step from "./step";
|
|
4
|
+
/**
|
|
5
|
+
* Convert the numeric protobuf ExecutionStatus to the string-based
|
|
6
|
+
* @avaprotocol/types enum. Legacy value 4 (retired PARTIAL_SUCCESS) maps
|
|
7
|
+
* to Failed so older aggregator responses still deserialize cleanly.
|
|
8
|
+
*/
|
|
9
|
+
export declare function convertProtobufExecutionStatus(protobufStatus: avs_pb.ExecutionStatus): ExecutionStatus;
|
|
10
|
+
export declare function convertFee(feePb: avs_pb.Fee | undefined): Fee | undefined;
|
|
11
|
+
export declare function convertNodeCOGS(cogsPb: avs_pb.NodeCOGS): NodeCOGS;
|
|
12
|
+
export declare function convertExecutionTier(tier: number): string;
|
|
13
|
+
export declare function convertValueFee(valuePb: avs_pb.ValueFee | undefined): ValueFee | undefined;
|
|
4
14
|
declare class Execution implements ExecutionProps {
|
|
5
15
|
id: string;
|
|
6
16
|
startAt: number;
|
|
@@ -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,GAAG,EAER,KAAK,QAAQ,EACb,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;
|
|
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,GAAG,EAER,KAAK,QAAQ,EACb,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,cAAc,EAAE,MAAM,CAAC,eAAe,GACrC,eAAe,CAejB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,GAAG,GAAG,SAAS,CAMzE;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAOjE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAU1F;AAED,cAAM,SAAU,YAAW,cAAc;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;gBAER,KAAK,EAAE,cAAc;IAajC,MAAM,IAAI,cAAc;IAexB,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,GAAG,SAAS;CAgB5D;AAED,eAAe,SAAS,CAAC"}
|
package/dist/models/execution.js
CHANGED
|
@@ -2,24 +2,27 @@ import * as avs_pb from "@/grpc_codegen/avs_pb";
|
|
|
2
2
|
import { ExecutionStatus, } from "@avaprotocol/types";
|
|
3
3
|
import Step from "./step";
|
|
4
4
|
/**
|
|
5
|
-
* Convert protobuf ExecutionStatus to
|
|
5
|
+
* Convert the numeric protobuf ExecutionStatus to the string-based
|
|
6
|
+
* @avaprotocol/types enum. Legacy value 4 (retired PARTIAL_SUCCESS) maps
|
|
7
|
+
* to Failed so older aggregator responses still deserialize cleanly.
|
|
6
8
|
*/
|
|
7
|
-
function
|
|
9
|
+
export function convertProtobufExecutionStatus(protobufStatus) {
|
|
8
10
|
switch (protobufStatus) {
|
|
9
11
|
case avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
10
12
|
return ExecutionStatus.Pending;
|
|
11
13
|
case avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
12
14
|
return ExecutionStatus.Success;
|
|
13
15
|
case avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
16
|
+
case 4: // legacy PARTIAL_SUCCESS — treat as Failed
|
|
14
17
|
return ExecutionStatus.Failed;
|
|
15
|
-
case avs_pb.ExecutionStatus.
|
|
16
|
-
return ExecutionStatus.
|
|
18
|
+
case avs_pb.ExecutionStatus.EXECUTION_STATUS_ERROR:
|
|
19
|
+
return ExecutionStatus.Error;
|
|
17
20
|
case avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
18
21
|
default:
|
|
19
22
|
return ExecutionStatus.Unspecified;
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
|
-
function convertFee(feePb) {
|
|
25
|
+
export function convertFee(feePb) {
|
|
23
26
|
if (!feePb)
|
|
24
27
|
return undefined;
|
|
25
28
|
return {
|
|
@@ -27,7 +30,7 @@ function convertFee(feePb) {
|
|
|
27
30
|
unit: feePb.getUnit(),
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
|
-
function convertNodeCOGS(cogsPb) {
|
|
33
|
+
export function convertNodeCOGS(cogsPb) {
|
|
31
34
|
return {
|
|
32
35
|
nodeId: cogsPb.getNodeId(),
|
|
33
36
|
costType: cogsPb.getCostType(),
|
|
@@ -35,10 +38,10 @@ function convertNodeCOGS(cogsPb) {
|
|
|
35
38
|
gasUnits: cogsPb.getGasUnits() || undefined,
|
|
36
39
|
};
|
|
37
40
|
}
|
|
38
|
-
function convertExecutionTier(tier) {
|
|
41
|
+
export function convertExecutionTier(tier) {
|
|
39
42
|
return avs_pb.ExecutionTier[tier] ?? tier.toString();
|
|
40
43
|
}
|
|
41
|
-
function convertValueFee(valuePb) {
|
|
44
|
+
export function convertValueFee(valuePb) {
|
|
42
45
|
if (!valuePb)
|
|
43
46
|
return undefined;
|
|
44
47
|
return {
|
|
@@ -82,7 +85,7 @@ class Execution {
|
|
|
82
85
|
id: execution.getId(),
|
|
83
86
|
startAt: execution.getStartAt(),
|
|
84
87
|
endAt: execution.getEndAt(),
|
|
85
|
-
status:
|
|
88
|
+
status: convertProtobufExecutionStatus(execution.getStatus()),
|
|
86
89
|
error: execution.getError(),
|
|
87
90
|
index: execution.getIndex(),
|
|
88
91
|
executionFee: convertFee(execution.getExecutionFee()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avaprotocol/sdk-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepare": "node ../../scripts/prepare-package.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@avaprotocol/types": "2.
|
|
34
|
+
"@avaprotocol/types": "2.13.0",
|
|
35
35
|
"@grpc/grpc-js": "^1.11.3",
|
|
36
36
|
"@grpc/proto-loader": "^0.7.13",
|
|
37
37
|
"dotenv": "^16.4.5",
|