// 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 OwnershipTransferred extends ethereum.Event { get params(): OwnershipTransferred__Params { return new OwnershipTransferred__Params(this); } } export class OwnershipTransferred__Params { _event: OwnershipTransferred; constructor(event: OwnershipTransferred) { this._event = event; } get previousOwner(): Address { return this._event.parameters[0].value.toAddress(); } get newOwner(): Address { return this._event.parameters[1].value.toAddress(); } } export class WBosonTransferred extends ethereum.Event { get params(): WBosonTransferred__Params { return new WBosonTransferred__Params(this); } } export class WBosonTransferred__Params { _event: WBosonTransferred; constructor(event: WBosonTransferred) { this._event = event; } get oldOwner(): Address { return this._event.parameters[0].value.toAddress(); } get newWBoson(): Address { return this._event.parameters[1].value.toAddress(); } get wBosonURI(): string { return this._event.parameters[2].value.toString(); } } export class WBosonUpdated extends ethereum.Event { get params(): WBosonUpdated__Params { return new WBosonUpdated__Params(this); } } export class WBosonUpdated__Params { _event: WBosonUpdated; constructor(event: WBosonUpdated) { this._event = event; } get owner(): Address { return this._event.parameters[0].value.toAddress(); } get wBosonURI(): string { return this._event.parameters[1].value.toString(); } } export class WithdrawStuckERC20 extends ethereum.Event { get params(): WithdrawStuckERC20__Params { return new WithdrawStuckERC20__Params(this); } } export class WithdrawStuckERC20__Params { _event: WithdrawStuckERC20; constructor(event: WithdrawStuckERC20) { this._event = event; } get receiver(): Address { return this._event.parameters[0].value.toAddress(); } get tokenAddress(): Address { return this._event.parameters[1].value.toAddress(); } get amount(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class WithdrawStuckERC721 extends ethereum.Event { get params(): WithdrawStuckERC721__Params { return new WithdrawStuckERC721__Params(this); } } export class WithdrawStuckERC721__Params { _event: WithdrawStuckERC721; constructor(event: WithdrawStuckERC721) { this._event = event; } get receiver(): Address { return this._event.parameters[0].value.toAddress(); } get tokenAddress(): Address { return this._event.parameters[1].value.toAddress(); } get tokenId(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class WithdrawStuckEther extends ethereum.Event { get params(): WithdrawStuckEther__Params { return new WithdrawStuckEther__Params(this); } } export class WithdrawStuckEther__Params { _event: WithdrawStuckEther; constructor(event: WithdrawStuckEther) { this._event = event; } get receiver(): Address { return this._event.parameters[0].value.toAddress(); } get amount(): BigInt { return this._event.parameters[1].value.toBigInt(); } } export class WBoson extends ethereum.SmartContract { static bind(address: Address): WBoson { return new WBoson("WBoson", address); } isTrustedForwarder(forwarder: Address): boolean { let result = super.call( "isTrustedForwarder", "isTrustedForwarder(address):(bool)", [ethereum.Value.fromAddress(forwarder)] ); return result[0].toBoolean(); } try_isTrustedForwarder(forwarder: Address): ethereum.CallResult { let result = super.tryCall( "isTrustedForwarder", "isTrustedForwarder(address):(bool)", [ethereum.Value.fromAddress(forwarder)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } owner(): Address { let result = super.call("owner", "owner():(address)", []); return result[0].toAddress(); } try_owner(): ethereum.CallResult
{ let result = super.tryCall("owner", "owner():(address)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } trustedForwarder(): Address { let result = super.call( "trustedForwarder", "trustedForwarder():(address)", [] ); return result[0].toAddress(); } try_trustedForwarder(): ethereum.CallResult
{ let result = super.tryCall( "trustedForwarder", "trustedForwarder():(address)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } versionRecipient(): string { let result = super.call( "versionRecipient", "versionRecipient():(string)", [] ); return result[0].toString(); } try_versionRecipient(): ethereum.CallResult { let result = super.tryCall( "versionRecipient", "versionRecipient():(string)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } wBosonURI(wBoson: Address): string { let result = super.call("wBosonURI", "wBosonURI(address):(string)", [ ethereum.Value.fromAddress(wBoson) ]); return result[0].toString(); } try_wBosonURI(wBoson: Address): ethereum.CallResult { let result = super.tryCall("wBosonURI", "wBosonURI(address):(string)", [ ethereum.Value.fromAddress(wBoson) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } } export class RenounceOwnershipCall extends ethereum.Call { get inputs(): RenounceOwnershipCall__Inputs { return new RenounceOwnershipCall__Inputs(this); } get outputs(): RenounceOwnershipCall__Outputs { return new RenounceOwnershipCall__Outputs(this); } } export class RenounceOwnershipCall__Inputs { _call: RenounceOwnershipCall; constructor(call: RenounceOwnershipCall) { this._call = call; } } export class RenounceOwnershipCall__Outputs { _call: RenounceOwnershipCall; constructor(call: RenounceOwnershipCall) { this._call = call; } } export class SetTrustedForwarderCall extends ethereum.Call { get inputs(): SetTrustedForwarderCall__Inputs { return new SetTrustedForwarderCall__Inputs(this); } get outputs(): SetTrustedForwarderCall__Outputs { return new SetTrustedForwarderCall__Outputs(this); } } export class SetTrustedForwarderCall__Inputs { _call: SetTrustedForwarderCall; constructor(call: SetTrustedForwarderCall) { this._call = call; } get _trustedForwarder(): Address { return this._call.inputValues[0].value.toAddress(); } } export class SetTrustedForwarderCall__Outputs { _call: SetTrustedForwarderCall; constructor(call: SetTrustedForwarderCall) { this._call = call; } } export class SetWBosonURICall extends ethereum.Call { get inputs(): SetWBosonURICall__Inputs { return new SetWBosonURICall__Inputs(this); } get outputs(): SetWBosonURICall__Outputs { return new SetWBosonURICall__Outputs(this); } } export class SetWBosonURICall__Inputs { _call: SetWBosonURICall; constructor(call: SetWBosonURICall) { this._call = call; } get uri(): string { return this._call.inputValues[0].value.toString(); } } export class SetWBosonURICall__Outputs { _call: SetWBosonURICall; constructor(call: SetWBosonURICall) { this._call = call; } } export class TransferCall extends ethereum.Call { get inputs(): TransferCall__Inputs { return new TransferCall__Inputs(this); } get outputs(): TransferCall__Outputs { return new TransferCall__Outputs(this); } } export class TransferCall__Inputs { _call: TransferCall; constructor(call: TransferCall) { this._call = call; } get receiver(): Address { return this._call.inputValues[0].value.toAddress(); } } export class TransferCall__Outputs { _call: TransferCall; constructor(call: TransferCall) { this._call = call; } } export class TransferOwnershipCall extends ethereum.Call { get inputs(): TransferOwnershipCall__Inputs { return new TransferOwnershipCall__Inputs(this); } get outputs(): TransferOwnershipCall__Outputs { return new TransferOwnershipCall__Outputs(this); } } export class TransferOwnershipCall__Inputs { _call: TransferOwnershipCall; constructor(call: TransferOwnershipCall) { this._call = call; } get newOwner(): Address { return this._call.inputValues[0].value.toAddress(); } } export class TransferOwnershipCall__Outputs { _call: TransferOwnershipCall; constructor(call: TransferOwnershipCall) { this._call = call; } } export class WithdrawERC721Call extends ethereum.Call { get inputs(): WithdrawERC721Call__Inputs { return new WithdrawERC721Call__Inputs(this); } get outputs(): WithdrawERC721Call__Outputs { return new WithdrawERC721Call__Outputs(this); } } export class WithdrawERC721Call__Inputs { _call: WithdrawERC721Call; constructor(call: WithdrawERC721Call) { this._call = call; } get receiver(): Address { return this._call.inputValues[0].value.toAddress(); } get tokenAddress(): Address { return this._call.inputValues[1].value.toAddress(); } get tokenId(): BigInt { return this._call.inputValues[2].value.toBigInt(); } } export class WithdrawERC721Call__Outputs { _call: WithdrawERC721Call; constructor(call: WithdrawERC721Call) { this._call = call; } } export class WithdrawErc20Call extends ethereum.Call { get inputs(): WithdrawErc20Call__Inputs { return new WithdrawErc20Call__Inputs(this); } get outputs(): WithdrawErc20Call__Outputs { return new WithdrawErc20Call__Outputs(this); } } export class WithdrawErc20Call__Inputs { _call: WithdrawErc20Call; constructor(call: WithdrawErc20Call) { this._call = call; } get receiver(): Address { return this._call.inputValues[0].value.toAddress(); } get tokenAddress(): Address { return this._call.inputValues[1].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[2].value.toBigInt(); } } export class WithdrawErc20Call__Outputs { _call: WithdrawErc20Call; constructor(call: WithdrawErc20Call) { this._call = call; } } export class WithdrawEtherCall extends ethereum.Call { get inputs(): WithdrawEtherCall__Inputs { return new WithdrawEtherCall__Inputs(this); } get outputs(): WithdrawEtherCall__Outputs { return new WithdrawEtherCall__Outputs(this); } } export class WithdrawEtherCall__Inputs { _call: WithdrawEtherCall; constructor(call: WithdrawEtherCall) { this._call = call; } get receiver(): Address { return this._call.inputValues[0].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class WithdrawEtherCall__Outputs { _call: WithdrawEtherCall; constructor(call: WithdrawEtherCall) { this._call = call; } }