@secondlayer/subgraphs 3.6.0 → 3.6.1
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/dist/src/index.js +5 -4
- package/dist/src/index.js.map +4 -4
- package/dist/src/runtime/block-processor.js +5 -4
- package/dist/src/runtime/block-processor.js.map +4 -4
- package/dist/src/runtime/catchup.js +5 -4
- package/dist/src/runtime/catchup.js.map +4 -4
- package/dist/src/runtime/processor.js +5 -4
- package/dist/src/runtime/processor.js.map +4 -4
- package/dist/src/runtime/reindex.js +5 -4
- package/dist/src/runtime/reindex.js.map +4 -4
- package/dist/src/runtime/reorg.js +5 -4
- package/dist/src/runtime/reorg.js.map +4 -4
- package/dist/src/runtime/runner.js +4 -2
- package/dist/src/runtime/runner.js.map +3 -3
- package/dist/src/service.js +5 -4
- package/dist/src/service.js.map +4 -4
- package/package.json +1 -1
|
@@ -578,9 +578,11 @@ function buildEventPayload(filter, tx, event) {
|
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
580
|
case "contract_call": {
|
|
581
|
+
const ccRawHex = event.data?.raw_value;
|
|
582
|
+
const normalized = typeof ccRawHex === "string" && ccRawHex.startsWith("0x") ? { ...decoded, value: decodeClarityValue(ccRawHex) } : decoded;
|
|
581
583
|
const input = buildContractCallInput(filter, tx);
|
|
582
584
|
return {
|
|
583
|
-
...
|
|
585
|
+
...normalized,
|
|
584
586
|
type: "contract_call",
|
|
585
587
|
_eventType: event.type,
|
|
586
588
|
contractId: tx.contract_id ?? "",
|
|
@@ -1089,7 +1091,7 @@ function reconstructEvent(e) {
|
|
|
1089
1091
|
sender: e.sender,
|
|
1090
1092
|
recipient: e.recipient,
|
|
1091
1093
|
amount: e.amount,
|
|
1092
|
-
..."
|
|
1094
|
+
...e.event_type === "stx_transfer" ? { memo: e.memo ?? "" } : {}
|
|
1093
1095
|
}
|
|
1094
1096
|
};
|
|
1095
1097
|
case "stx_lock":
|
|
@@ -1108,7 +1110,6 @@ function reconstructEvent(e) {
|
|
|
1108
1110
|
type: "contract_event",
|
|
1109
1111
|
data: {
|
|
1110
1112
|
topic: e.payload.topic,
|
|
1111
|
-
contract_id: e.contract_id,
|
|
1112
1113
|
contract_identifier: e.contract_id,
|
|
1113
1114
|
value: e.payload.value,
|
|
1114
1115
|
raw_value: e.payload.raw_value
|
|
@@ -2211,5 +2212,5 @@ export {
|
|
|
2211
2212
|
backfillSubgraph
|
|
2212
2213
|
};
|
|
2213
2214
|
|
|
2214
|
-
//# debugId=
|
|
2215
|
+
//# debugId=37BEA2EC8642CAEB64756E2164756E21
|
|
2215
2216
|
//# sourceMappingURL=reindex.js.map
|