Transformers
The transformers are responsible to track the data of contributions and extractions through the events fired by the smart contracts.
Structure
type Transformer = {
address?:string;
getAddresses?:(chain:Chain) => Promise<Array<string>>;
contract: Interface;
eventHandlers: Record<Signature,EventHandler>;
startBlock:number;
}Property
Type
Description
Event Handler
type EventHandler = (
event: Event<any>
) => Promise<ProtocolValueReturnType | void | undefined>;Last updated