40 lines
717 B
TypeScript
40 lines
717 B
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 Echo extends ethereum.Event {
|
||
|
get params(): Echo__Params {
|
||
|
return new Echo__Params(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class Echo__Params {
|
||
|
_event: Echo;
|
||
|
|
||
|
constructor(event: Echo) {
|
||
|
this._event = event;
|
||
|
}
|
||
|
|
||
|
get who(): Address {
|
||
|
return this._event.parameters[0].value.toAddress();
|
||
|
}
|
||
|
|
||
|
get data(): Bytes {
|
||
|
return this._event.parameters[1].value.toBytes();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class Echoer extends ethereum.SmartContract {
|
||
|
static bind(address: Address): Echoer {
|
||
|
return new Echoer("Echoer", address);
|
||
|
}
|
||
|
}
|