// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. import { EthereumCall, EthereumEvent, SmartContract, EthereumValue, JSONValue, TypedMap, Entity, EthereumTuple, Bytes, Address, BigInt, CallResult } from "@graphprotocol/graph-ts"; export class DepositDecreased extends EthereumEvent { get params(): DepositDecreased__Params { return new DepositDecreased__Params(this); } } export class DepositDecreased__Params { _event: DepositDecreased; constructor(event: DepositDecreased) { this._event = event; } get tokenID(): i32 { return this._event.parameters[0].value.toI32(); } get user(): Address { return this._event.parameters[1].value.toAddress(); } get amount(): BigInt { return this._event.parameters[2].value.toBigInt(); } get newDeposit(): BigInt { return this._event.parameters[3].value.toBigInt(); } } export class DepositIncreased extends EthereumEvent { get params(): DepositIncreased__Params { return new DepositIncreased__Params(this); } } export class DepositIncreased__Params { _event: DepositIncreased; constructor(event: DepositIncreased) { this._event = event; } get tokenID(): i32 { return this._event.parameters[0].value.toI32(); } get user(): Address { return this._event.parameters[1].value.toAddress(); } get amount(): BigInt { return this._event.parameters[2].value.toBigInt(); } get newDeposit(): BigInt { return this._event.parameters[3].value.toBigInt(); } } export class HashSubmitted extends EthereumEvent { get params(): HashSubmitted__Params { return new HashSubmitted__Params(this); } } export class HashSubmitted__Params { _event: HashSubmitted; constructor(event: HashSubmitted) { this._event = event; } get hash(): Bytes { return this._event.parameters[0].value.toBytes(); } } export class Initialized extends EthereumEvent { get params(): Initialized__Params { return new Initialized__Params(this); } } export class Initialized__Params { _event: Initialized; constructor(event: Initialized) { this._event = event; } get operator(): Address { return this._event.parameters[0].value.toAddress(); } get metadata(): Bytes { return this._event.parameters[1].value.toBytes(); } } export class MetadataSet extends EthereumEvent { get params(): MetadataSet__Params { return new MetadataSet__Params(this); } } export class MetadataSet__Params { _event: MetadataSet; constructor(event: MetadataSet) { this._event = event; } get metadata(): Bytes { return this._event.parameters[0].value.toBytes(); } } export class OperatorUpdated extends EthereumEvent { get params(): OperatorUpdated__Params { return new OperatorUpdated__Params(this); } } export class OperatorUpdated__Params { _event: OperatorUpdated; constructor(event: OperatorUpdated) { this._event = event; } get operator(): Address { return this._event.parameters[0].value.toAddress(); } } export class StakeBurned extends EthereumEvent { get params(): StakeBurned__Params { return new StakeBurned__Params(this); } } export class StakeBurned__Params { _event: StakeBurned; constructor(event: StakeBurned) { this._event = event; } get tokenID(): i32 { return this._event.parameters[0].value.toI32(); } get staker(): Address { return this._event.parameters[1].value.toAddress(); } get amount(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class Feed extends SmartContract { static bind(address: Address): Feed { return new Feed("Feed", address); } getCreator(): Address { let result = super.call("getCreator", []); return result[0].toAddress(); } try_getCreator(): CallResult
{ let result = super.tryCall("getCreator", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } getFactory(): Address { let result = super.call("getFactory", []); return result[0].toAddress(); } try_getFactory(): CallResult
{ let result = super.tryCall("getFactory", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } getOperator(): Address { let result = super.call("getOperator", []); return result[0].toAddress(); } try_getOperator(): CallResult
{ let result = super.tryCall("getOperator", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } getTokenAddress(tokenID: i32): Address { let result = super.call("getTokenAddress", [ EthereumValue.fromI32(tokenID) ]); return result[0].toAddress(); } try_getTokenAddress(tokenID: i32): CallResult
{ let result = super.tryCall("getTokenAddress", [ EthereumValue.fromI32(tokenID) ]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } depositStake(tokenID: i32, amountToAdd: BigInt): BigInt { let result = super.call("depositStake", [ EthereumValue.fromI32(tokenID), EthereumValue.fromUnsignedBigInt(amountToAdd) ]); return result[0].toBigInt(); } try_depositStake(tokenID: i32, amountToAdd: BigInt): CallResult { let result = super.tryCall("depositStake", [ EthereumValue.fromI32(tokenID), EthereumValue.fromUnsignedBigInt(amountToAdd) ]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } withdrawStake(tokenID: i32, amountToRemove: BigInt): BigInt { let result = super.call("withdrawStake", [ EthereumValue.fromI32(tokenID), EthereumValue.fromUnsignedBigInt(amountToRemove) ]); return result[0].toBigInt(); } try_withdrawStake(tokenID: i32, amountToRemove: BigInt): CallResult { let result = super.tryCall("withdrawStake", [ EthereumValue.fromI32(tokenID), EthereumValue.fromUnsignedBigInt(amountToRemove) ]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } getStake(tokenID: i32): BigInt { let result = super.call("getStake", [EthereumValue.fromI32(tokenID)]); return result[0].toBigInt(); } try_getStake(tokenID: i32): CallResult { let result = super.tryCall("getStake", [EthereumValue.fromI32(tokenID)]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } } export class InitializeCall extends EthereumCall { get inputs(): InitializeCall__Inputs { return new InitializeCall__Inputs(this); } get outputs(): InitializeCall__Outputs { return new InitializeCall__Outputs(this); } } export class InitializeCall__Inputs { _call: InitializeCall; constructor(call: InitializeCall) { this._call = call; } get operator(): Address { return this._call.inputValues[0].value.toAddress(); } get metadata(): Bytes { return this._call.inputValues[1].value.toBytes(); } } export class InitializeCall__Outputs { _call: InitializeCall; constructor(call: InitializeCall) { this._call = call; } } export class SubmitHashCall extends EthereumCall { get inputs(): SubmitHashCall__Inputs { return new SubmitHashCall__Inputs(this); } get outputs(): SubmitHashCall__Outputs { return new SubmitHashCall__Outputs(this); } } export class SubmitHashCall__Inputs { _call: SubmitHashCall; constructor(call: SubmitHashCall) { this._call = call; } get proofHash(): Bytes { return this._call.inputValues[0].value.toBytes(); } } export class SubmitHashCall__Outputs { _call: SubmitHashCall; constructor(call: SubmitHashCall) { this._call = call; } } export class DepositStakeCall extends EthereumCall { get inputs(): DepositStakeCall__Inputs { return new DepositStakeCall__Inputs(this); } get outputs(): DepositStakeCall__Outputs { return new DepositStakeCall__Outputs(this); } } export class DepositStakeCall__Inputs { _call: DepositStakeCall; constructor(call: DepositStakeCall) { this._call = call; } get tokenID(): i32 { return this._call.inputValues[0].value.toI32(); } get amountToAdd(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class DepositStakeCall__Outputs { _call: DepositStakeCall; constructor(call: DepositStakeCall) { this._call = call; } get newStake(): BigInt { return this._call.outputValues[0].value.toBigInt(); } } export class WithdrawStakeCall extends EthereumCall { get inputs(): WithdrawStakeCall__Inputs { return new WithdrawStakeCall__Inputs(this); } get outputs(): WithdrawStakeCall__Outputs { return new WithdrawStakeCall__Outputs(this); } } export class WithdrawStakeCall__Inputs { _call: WithdrawStakeCall; constructor(call: WithdrawStakeCall) { this._call = call; } get tokenID(): i32 { return this._call.inputValues[0].value.toI32(); } get amountToRemove(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class WithdrawStakeCall__Outputs { _call: WithdrawStakeCall; constructor(call: WithdrawStakeCall) { this._call = call; } get newStake(): BigInt { return this._call.outputValues[0].value.toBigInt(); } } export class SetMetadataCall extends EthereumCall { get inputs(): SetMetadataCall__Inputs { return new SetMetadataCall__Inputs(this); } get outputs(): SetMetadataCall__Outputs { return new SetMetadataCall__Outputs(this); } } export class SetMetadataCall__Inputs { _call: SetMetadataCall; constructor(call: SetMetadataCall) { this._call = call; } get metadata(): Bytes { return this._call.inputValues[0].value.toBytes(); } } export class SetMetadataCall__Outputs { _call: SetMetadataCall; constructor(call: SetMetadataCall) { this._call = call; } } export class TransferOperatorCall extends EthereumCall { get inputs(): TransferOperatorCall__Inputs { return new TransferOperatorCall__Inputs(this); } get outputs(): TransferOperatorCall__Outputs { return new TransferOperatorCall__Outputs(this); } } export class TransferOperatorCall__Inputs { _call: TransferOperatorCall; constructor(call: TransferOperatorCall) { this._call = call; } get operator(): Address { return this._call.inputValues[0].value.toAddress(); } } export class TransferOperatorCall__Outputs { _call: TransferOperatorCall; constructor(call: TransferOperatorCall) { this._call = call; } } export class RenounceOperatorCall extends EthereumCall { get inputs(): RenounceOperatorCall__Inputs { return new RenounceOperatorCall__Inputs(this); } get outputs(): RenounceOperatorCall__Outputs { return new RenounceOperatorCall__Outputs(this); } } export class RenounceOperatorCall__Inputs { _call: RenounceOperatorCall; constructor(call: RenounceOperatorCall) { this._call = call; } } export class RenounceOperatorCall__Outputs { _call: RenounceOperatorCall; constructor(call: RenounceOperatorCall) { this._call = call; } }