@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.
@@ -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
- ...decoded,
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
- ..."memo" in e ? { memo: e.memo ?? undefined } : {}
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=5A3CD1976247568C64756E2164756E21
2215
+ //# debugId=37BEA2EC8642CAEB64756E2164756E21
2215
2216
  //# sourceMappingURL=reindex.js.map