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
Call getAllAgents() onReplHelper.sol to obtain an list of AgentReturns
Part 2 - Retrieve onDelegateOwner event from Agent contract address
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
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 addressPart 1 - Obtain all agent contract address
getAllAgents()
onReplHelper.sol
to obtain an list of AgentReturnsPart 2 - Retrieve
onDelegateOwner
event from Agent contract addressAgentReturns.agent
, listen to theonDelegateOwner
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