Skip to content

Commit

Permalink
fix: fixed holesky block, added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarens2 committed Nov 28, 2024
1 parent 6f3e924 commit 3fb5425
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ PROTOCOL_UPG_BLOCKS.set('holesky', [
BigInt.fromI32(30592), // V1
BigInt.fromI32(30592), // V1_SHARES
BigInt.fromI32(30592), // V2
BigInt.fromI32(1818028), // V2 CSM Update
BigInt.fromI32(1819268), // V2 CSM Update
])

export const PROTOCOL_UPG_APP_VERS = new TypedMap<Bytes, i32[]>()
Expand Down
13 changes: 8 additions & 5 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,18 +412,21 @@ export function attachNodeOperatorsEntitiesFromTransactionLogsToOracleReport(
// parse all events from tx receipt
const parsedEvents = parseEventLogs(event, getAddress('LIDO'))

log.info(
'attachNodeOperatorsEntitiesFromTransactionLogsToOracleReport - parsedEvents length: {}',
[parsedEvents.length.toString()]
)

// extracting all 'Transfer' and 'TransferShares' pairs from tx receipt
const transferEventPairs = extractPairedEvent(
parsedEvents,
'Transfer',
'TransferShares'
)

if (transferEventPairs.length === 0) {
log.warning('transferEventPairs is empty', [])
} else {
log.info('transferEventPairs length - {}', [
transferEventPairs.length.toString(),
])
}

const burnerAddress = getAddress('BURNER')
for (let i = 0; i < transferEventPairs.length; i++) {
const eventTransfer = getParsedEvent<TransferEvent>(
Expand Down

0 comments on commit 3fb5425

Please sign in to comment.