starboard-ventures / fevm-event-tracing

0 stars 0 forks source link

FVM event tracking for REPL - get date when miners onboard to Repl #6

Closed YeeeeeHan closed 5 months ago

YeeeeeHan commented 5 months ago

Description

We want to know the date that miners are onboarded into the protocol. To do this, we need to listen to the onDelegateOwner event emitted from each Agent contract.

Steps

Part 1 :Obtain all the Agent contract addresses Part 2: Retrieve onDelegateOwner event from Agent contract address

Part 1 - Obtain all agent contract address

  1. Call getAllAgents() onReplHelper.sol to obtain an list of AgentReturns

Part 2 - Retrieve onDelegateOwner event from Agent contract address

  1. For each AgentReturns.agent, listen to the onDelegateOwner event to obtain the timestamp where the agent contract obtains ownership of the miner "f0" + AgentReturns.actorID

Addresses & ABI

Mainnet - ReplHelper: 0x66042DE8A4b011117006A1Cb242399B59E393819 Calibration - ReplHelper: 0x9e26a1031E522a2259059e31840AC75a5BfDe5C4

ReplHelper.sol - getAllAgents()

AgentImplementation.sol - onDelegateOwner event

cxytz01 commented 5 months ago

this project's architecture could not handle this demand.