// 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 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 MinterChanged extends ethereum.Event { get params(): MinterChanged__Params { return new MinterChanged__Params(this); } } export class MinterChanged__Params { _event: MinterChanged; constructor(event: MinterChanged) { this._event = event; } get minter(): Address { return this._event.parameters[0].value.toAddress(); } get newMinter(): Address { return this._event.parameters[1].value.toAddress(); } } 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 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 WithdrawStuckERC1155 extends ethereum.Event { get params(): WithdrawStuckERC1155__Params { return new WithdrawStuckERC1155__Params(this); } } export class WithdrawStuckERC1155__Params { _event: WithdrawStuckERC1155; constructor(event: WithdrawStuckERC1155) { 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(); } get amount(): BigInt { return this._event.parameters[3].value.toBigInt(); } } 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 Ionx extends ethereum.SmartContract { static bind(address: Address): Ionx { return new Ionx("Ionx", address); } DOMAIN_SEPARATOR(): Bytes { let result = super.call( "DOMAIN_SEPARATOR", "DOMAIN_SEPARATOR():(bytes32)", [] ); return result[0].toBytes(); } try_DOMAIN_SEPARATOR(): ethereum.CallResult { let result = super.tryCall( "DOMAIN_SEPARATOR", "DOMAIN_SEPARATOR():(bytes32)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBytes()); } INFLATION_CAP(): i32 { let result = super.call("INFLATION_CAP", "INFLATION_CAP():(uint8)", []); return result[0].toI32(); } try_INFLATION_CAP(): ethereum.CallResult { let result = super.tryCall("INFLATION_CAP", "INFLATION_CAP():(uint8)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toI32()); } INFLATION_EPOCH(): BigInt { let result = super.call( "INFLATION_EPOCH", "INFLATION_EPOCH():(uint32)", [] ); return result[0].toBigInt(); } try_INFLATION_EPOCH(): ethereum.CallResult { let result = super.tryCall( "INFLATION_EPOCH", "INFLATION_EPOCH():(uint32)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } INITIAL_SUPPLY(): BigInt { let result = super.call("INITIAL_SUPPLY", "INITIAL_SUPPLY():(uint256)", []); return result[0].toBigInt(); } try_INITIAL_SUPPLY(): ethereum.CallResult { let result = super.tryCall( "INITIAL_SUPPLY", "INITIAL_SUPPLY():(uint256)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } PERMIT_TYPEHASH(): Bytes { let result = super.call( "PERMIT_TYPEHASH", "PERMIT_TYPEHASH():(bytes32)", [] ); return result[0].toBytes(); } try_PERMIT_TYPEHASH(): ethereum.CallResult { let result = super.tryCall( "PERMIT_TYPEHASH", "PERMIT_TYPEHASH():(bytes32)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBytes()); } allowance(owner: Address, spender: Address): BigInt { let result = super.call( "allowance", "allowance(address,address):(uint256)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(spender)] ); return result[0].toBigInt(); } try_allowance(owner: Address, spender: Address): ethereum.CallResult { let result = super.tryCall( "allowance", "allowance(address,address):(uint256)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(spender)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } approve(spender: Address, amount: BigInt): boolean { let result = super.call("approve", "approve(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(amount) ]); return result[0].toBoolean(); } try_approve(spender: Address, amount: BigInt): ethereum.CallResult { let result = super.tryCall("approve", "approve(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(amount) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } balanceOf(account: Address): BigInt { let result = super.call("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(account) ]); return result[0].toBigInt(); } try_balanceOf(account: Address): ethereum.CallResult { let result = super.tryCall("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(account) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } decimals(): i32 { let result = super.call("decimals", "decimals():(uint8)", []); return result[0].toI32(); } try_decimals(): ethereum.CallResult { let result = super.tryCall("decimals", "decimals():(uint8)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toI32()); } decreaseAllowance(spender: Address, subtractedValue: BigInt): boolean { let result = super.call( "decreaseAllowance", "decreaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(subtractedValue) ] ); return result[0].toBoolean(); } try_decreaseAllowance( spender: Address, subtractedValue: BigInt ): ethereum.CallResult { let result = super.tryCall( "decreaseAllowance", "decreaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(subtractedValue) ] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } increaseAllowance(spender: Address, addedValue: BigInt): boolean { let result = super.call( "increaseAllowance", "increaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(addedValue) ] ); return result[0].toBoolean(); } try_increaseAllowance( spender: Address, addedValue: BigInt ): ethereum.CallResult { let result = super.tryCall( "increaseAllowance", "increaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(addedValue) ] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } minter(): Address { let result = super.call("minter", "minter():(address)", []); return result[0].toAddress(); } try_minter(): ethereum.CallResult
{ let result = super.tryCall("minter", "minter():(address)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } mintingAllowedAfter(): BigInt { let result = super.call( "mintingAllowedAfter", "mintingAllowedAfter():(uint256)", [] ); return result[0].toBigInt(); } try_mintingAllowedAfter(): ethereum.CallResult { let result = super.tryCall( "mintingAllowedAfter", "mintingAllowedAfter():(uint256)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } 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()); } nonces(param0: Address): BigInt { let result = super.call("nonces", "nonces(address):(uint256)", [ ethereum.Value.fromAddress(param0) ]); return result[0].toBigInt(); } try_nonces(param0: Address): ethereum.CallResult { let result = super.tryCall("nonces", "nonces(address):(uint256)", [ ethereum.Value.fromAddress(param0) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } 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()); } 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()); } totalSupply(): BigInt { let result = super.call("totalSupply", "totalSupply():(uint256)", []); return result[0].toBigInt(); } try_totalSupply(): ethereum.CallResult { let result = super.tryCall("totalSupply", "totalSupply():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } transfer(recipient: Address, amount: BigInt): boolean { let result = super.call("transfer", "transfer(address,uint256):(bool)", [ ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ]); return result[0].toBoolean(); } try_transfer( recipient: Address, amount: BigInt ): ethereum.CallResult { let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } transferFrom(sender: Address, recipient: Address, amount: BigInt): boolean { let result = super.call( "transferFrom", "transferFrom(address,address,uint256):(bool)", [ ethereum.Value.fromAddress(sender), ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ] ); return result[0].toBoolean(); } try_transferFrom( sender: Address, recipient: Address, amount: BigInt ): ethereum.CallResult { let result = super.tryCall( "transferFrom", "transferFrom(address,address,uint256):(bool)", [ ethereum.Value.fromAddress(sender), ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } } export class ConstructorCall extends ethereum.Call { get inputs(): ConstructorCall__Inputs { return new ConstructorCall__Inputs(this); } get outputs(): ConstructorCall__Outputs { return new ConstructorCall__Outputs(this); } } export class ConstructorCall__Inputs { _call: ConstructorCall; constructor(call: ConstructorCall) { this._call = call; } } export class ConstructorCall__Outputs { _call: ConstructorCall; constructor(call: ConstructorCall) { this._call = call; } } export class ApproveCall extends ethereum.Call { get inputs(): ApproveCall__Inputs { return new ApproveCall__Inputs(this); } get outputs(): ApproveCall__Outputs { return new ApproveCall__Outputs(this); } } export class ApproveCall__Inputs { _call: ApproveCall; constructor(call: ApproveCall) { this._call = call; } get spender(): Address { return this._call.inputValues[0].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class ApproveCall__Outputs { _call: ApproveCall; constructor(call: ApproveCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } export class DecreaseAllowanceCall extends ethereum.Call { get inputs(): DecreaseAllowanceCall__Inputs { return new DecreaseAllowanceCall__Inputs(this); } get outputs(): DecreaseAllowanceCall__Outputs { return new DecreaseAllowanceCall__Outputs(this); } } export class DecreaseAllowanceCall__Inputs { _call: DecreaseAllowanceCall; constructor(call: DecreaseAllowanceCall) { this._call = call; } get spender(): Address { return this._call.inputValues[0].value.toAddress(); } get subtractedValue(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class DecreaseAllowanceCall__Outputs { _call: DecreaseAllowanceCall; constructor(call: DecreaseAllowanceCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } export class IncreaseAllowanceCall extends ethereum.Call { get inputs(): IncreaseAllowanceCall__Inputs { return new IncreaseAllowanceCall__Inputs(this); } get outputs(): IncreaseAllowanceCall__Outputs { return new IncreaseAllowanceCall__Outputs(this); } } export class IncreaseAllowanceCall__Inputs { _call: IncreaseAllowanceCall; constructor(call: IncreaseAllowanceCall) { this._call = call; } get spender(): Address { return this._call.inputValues[0].value.toAddress(); } get addedValue(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class IncreaseAllowanceCall__Outputs { _call: IncreaseAllowanceCall; constructor(call: IncreaseAllowanceCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } export class MintCall extends ethereum.Call { get inputs(): MintCall__Inputs { return new MintCall__Inputs(this); } get outputs(): MintCall__Outputs { return new MintCall__Outputs(this); } } export class MintCall__Inputs { _call: MintCall; constructor(call: MintCall) { 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 MintCall__Outputs { _call: MintCall; constructor(call: MintCall) { this._call = call; } } export class PermitCall extends ethereum.Call { get inputs(): PermitCall__Inputs { return new PermitCall__Inputs(this); } get outputs(): PermitCall__Outputs { return new PermitCall__Outputs(this); } } export class PermitCall__Inputs { _call: PermitCall; constructor(call: PermitCall) { this._call = call; } get owner(): Address { return this._call.inputValues[0].value.toAddress(); } get spender(): Address { return this._call.inputValues[1].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[2].value.toBigInt(); } get deadline(): BigInt { return this._call.inputValues[3].value.toBigInt(); } get v(): i32 { return this._call.inputValues[4].value.toI32(); } get r(): Bytes { return this._call.inputValues[5].value.toBytes(); } get s(): Bytes { return this._call.inputValues[6].value.toBytes(); } } export class PermitCall__Outputs { _call: PermitCall; constructor(call: PermitCall) { this._call = call; } } 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 SetMinterCall extends ethereum.Call { get inputs(): SetMinterCall__Inputs { return new SetMinterCall__Inputs(this); } get outputs(): SetMinterCall__Outputs { return new SetMinterCall__Outputs(this); } } export class SetMinterCall__Inputs { _call: SetMinterCall; constructor(call: SetMinterCall) { this._call = call; } get newMinter(): Address { return this._call.inputValues[0].value.toAddress(); } } export class SetMinterCall__Outputs { _call: SetMinterCall; constructor(call: SetMinterCall) { 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 recipient(): Address { return this._call.inputValues[0].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class TransferCall__Outputs { _call: TransferCall; constructor(call: TransferCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } export class TransferFromCall extends ethereum.Call { get inputs(): TransferFromCall__Inputs { return new TransferFromCall__Inputs(this); } get outputs(): TransferFromCall__Outputs { return new TransferFromCall__Outputs(this); } } export class TransferFromCall__Inputs { _call: TransferFromCall; constructor(call: TransferFromCall) { this._call = call; } get sender(): Address { return this._call.inputValues[0].value.toAddress(); } get recipient(): Address { return this._call.inputValues[1].value.toAddress(); } get amount(): BigInt { return this._call.inputValues[2].value.toBigInt(); } } export class TransferFromCall__Outputs { _call: TransferFromCall; constructor(call: TransferFromCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } 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; } }