// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. import { ethereum, JSONValue, TypedMap, Entity, Bytes, Address, BigInt } from "@graphprotocol/graph-ts"; export class Transfer extends ethereum.Event { get params(): Transfer__Params { return new Transfer__Params(this); } } export class Transfer__Params { _event: Transfer; constructor(event: Transfer) { this._event = event; } get from(): Address { return this._event.parameters[0].value.toAddress(); } get to(): Address { return this._event.parameters[1].value.toAddress(); } get value(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class Approval extends ethereum.Event { get params(): Approval__Params { return new Approval__Params(this); } } export class Approval__Params { _event: Approval; constructor(event: Approval) { this._event = event; } get owner(): Address { return this._event.parameters[0].value.toAddress(); } get spender(): Address { return this._event.parameters[1].value.toAddress(); } get value(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class ERC20 extends ethereum.SmartContract { static bind(address: Address): ERC20 { return new ERC20("ERC20", address); } name(): string { let result = super.call("name", "name():(string)", []); return result[0].toString(); } try_name(): ethereum.CallResult { let result = super.tryCall("name", "name():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } decimals(): BigInt { let result = super.call("decimals", "decimals():(uint256)", []); return result[0].toBigInt(); } try_decimals(): ethereum.CallResult { let result = super.tryCall("decimals", "decimals():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } symbol(): string { let result = super.call("symbol", "symbol():(string)", []); return result[0].toString(); } try_symbol(): ethereum.CallResult { let result = super.tryCall("symbol", "symbol():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } }