import { newMockEvent } from "matchstick-as" import { ethereum, Address } from "@graphprotocol/graph-ts" import { AdminChanged, BeaconUpgraded, Upgraded } from "../generated/FLA/FLA" export function createAdminChangedEvent( previousAdmin: Address, newAdmin: Address ): AdminChanged { let adminChangedEvent = changetype(newMockEvent()) adminChangedEvent.parameters = new Array() adminChangedEvent.parameters.push( new ethereum.EventParam( "previousAdmin", ethereum.Value.fromAddress(previousAdmin) ) ) adminChangedEvent.parameters.push( new ethereum.EventParam("newAdmin", ethereum.Value.fromAddress(newAdmin)) ) return adminChangedEvent } export function createBeaconUpgradedEvent(beacon: Address): BeaconUpgraded { let beaconUpgradedEvent = changetype(newMockEvent()) beaconUpgradedEvent.parameters = new Array() beaconUpgradedEvent.parameters.push( new ethereum.EventParam("beacon", ethereum.Value.fromAddress(beacon)) ) return beaconUpgradedEvent } export function createUpgradedEvent(implementation: Address): Upgraded { let upgradedEvent = changetype(newMockEvent()) upgradedEvent.parameters = new Array() upgradedEvent.parameters.push( new ethereum.EventParam( "implementation", ethereum.Value.fromAddress(implementation) ) ) return upgradedEvent }