Skip to content

Commit

Permalink
Add Missing Events in patch
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay111meher committed Dec 30, 2024
1 parent 6ad0299 commit 72644ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions binding_patches/src/proof_marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,25 @@
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "rewardShare",
"type": "uint256"
}
],
"name": "OperatorRewardShareSet",
"type": "event"
}
]

13 changes: 13 additions & 0 deletions matching_engine/src/log_processor/pm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,19 @@ pub async fn process_proof_market_place_logs(
return Ok(());
}

if let Ok(operator_reward_share_set_log) = pmp_update_marketmetadata_patch.decode_event_raw(
"OperatorRewardShareSet",
log.topics.clone(),
log.data.clone(),
) {
log::debug!(
"operator reward share log {:?}",
operator_reward_share_set_log
);

return Ok(());
}

if cfg!(feature = "skip_unknown_events") {
log::warn!("{:?}", log);
log::warn!("Unknown event noted and skipped");
Expand Down

0 comments on commit 72644ee

Please sign in to comment.