tornado-subgraph/generated/Instance/Instance.ts
2021-06-10 12:47:29 +03:00

66 lines
1.4 KiB
TypeScript

// 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 Deposit extends ethereum.Event {
get params(): Deposit__Params {
return new Deposit__Params(this);
}
}
export class Deposit__Params {
_event: Deposit;
constructor(event: Deposit) {
this._event = event;
}
get commitment(): Bytes {
return this._event.parameters[0].value.toBytes();
}
get leafIndex(): BigInt {
return this._event.parameters[1].value.toBigInt();
}
get timestamp(): BigInt {
return this._event.parameters[2].value.toBigInt();
}
}
export class Withdrawal extends ethereum.Event {
get params(): Withdrawal__Params {
return new Withdrawal__Params(this);
}
}
export class Withdrawal__Params {
_event: Withdrawal;
constructor(event: Withdrawal) {
this._event = event;
}
get to(): Address {
return this._event.parameters[0].value.toAddress();
}
get nullifierHash(): Bytes {
return this._event.parameters[1].value.toBytes();
}
get relayer(): Address {
return this._event.parameters[2].value.toAddress();
}
get fee(): BigInt {
return this._event.parameters[3].value.toBigInt();
}
}
export class Instance extends ethereum.SmartContract {
static bind(address: Address): Instance {
return new Instance('Instance', address);
}
}