mirror of
https://github.com/tornadocash/tornado-subgraph.git
synced 2024-12-23 01:39:39 +01:00
74 lines
1.4 KiB
TypeScript
74 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);
|
|
}
|
|
}
|