Currently the bot is fetching allocation events using the GetActorsEventRaw JSON-RPC method. When decoded, the returned event has the following structure (eg. allocation event):
For Filecoin Plus tracking, we are interested in events that originate from registered Allocators. The bot should be able to filter out events that are not related to Filecoin Plus, based on the client and provider fields.
❓ How to convert the client and provider fields to an address to check if it's a registered Allocator?
Acceptance Criteria
[ ] The bot should be able to convert the client and provider fields to an address to check if it's a registered Allocator.
[ ] The bot should be able to filter out events that are not related to Filecoin Plus, based on the client and provider fields.
[ ] The bot should group events into files by client address.
Description
Currently the bot is fetching allocation events using the
GetActorsEventRaw
JSON-RPC method. When decoded, the returned event has the following structure (eg. allocation event):For Filecoin Plus tracking, we are interested in events that originate from registered Allocators. The bot should be able to filter out events that are not related to Filecoin Plus, based on the
client
andprovider
fields.Acceptance Criteria
client
andprovider
fields to an address to check if it's a registered Allocator.client
andprovider
fields.client
address.