// 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 OwnershipTransferred extends EthereumEvent { 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 CompoundAllocationStrategy extends SmartContract { static bind(address: Address): CompoundAllocationStrategy { return new CompoundAllocationStrategy( "CompoundAllocationStrategy", address ); } isOwner(): boolean { let result = super.call("isOwner", []); return result[0].toBoolean(); } try_isOwner(): CallResult { let result = super.tryCall("isOwner", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBoolean()); } owner(): Address { let result = super.call("owner", []); return result[0].toAddress(); } try_owner(): CallResult
{ let result = super.tryCall("owner", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } underlying(): Address { let result = super.call("underlying", []); return result[0].toAddress(); } try_underlying(): CallResult
{ let result = super.tryCall("underlying", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toAddress()); } exchangeRateStored(): BigInt { let result = super.call("exchangeRateStored", []); return result[0].toBigInt(); } try_exchangeRateStored(): CallResult { let result = super.tryCall("exchangeRateStored", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } accrueInterest(): boolean { let result = super.call("accrueInterest", []); return result[0].toBoolean(); } try_accrueInterest(): CallResult { let result = super.tryCall("accrueInterest", []); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBoolean()); } investUnderlying(investAmount: BigInt): BigInt { let result = super.call("investUnderlying", [ EthereumValue.fromUnsignedBigInt(investAmount) ]); return result[0].toBigInt(); } try_investUnderlying(investAmount: BigInt): CallResult { let result = super.tryCall("investUnderlying", [ EthereumValue.fromUnsignedBigInt(investAmount) ]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } redeemUnderlying(redeemAmount: BigInt): BigInt { let result = super.call("redeemUnderlying", [ EthereumValue.fromUnsignedBigInt(redeemAmount) ]); return result[0].toBigInt(); } try_redeemUnderlying(redeemAmount: BigInt): CallResult { let result = super.tryCall("redeemUnderlying", [ EthereumValue.fromUnsignedBigInt(redeemAmount) ]); if (result.reverted) { return new CallResult(); } let value = result.value; return CallResult.fromValue(value[0].toBigInt()); } } export class ConstructorCall extends EthereumCall { 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; } get cToken_(): Address { return this._call.inputValues[0].value.toAddress(); } } export class ConstructorCall__Outputs { _call: ConstructorCall; constructor(call: ConstructorCall) { this._call = call; } } export class RenounceOwnershipCall extends EthereumCall { 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 TransferOwnershipCall extends EthereumCall { 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 AccrueInterestCall extends EthereumCall { get inputs(): AccrueInterestCall__Inputs { return new AccrueInterestCall__Inputs(this); } get outputs(): AccrueInterestCall__Outputs { return new AccrueInterestCall__Outputs(this); } } export class AccrueInterestCall__Inputs { _call: AccrueInterestCall; constructor(call: AccrueInterestCall) { this._call = call; } } export class AccrueInterestCall__Outputs { _call: AccrueInterestCall; constructor(call: AccrueInterestCall) { this._call = call; } get value0(): boolean { return this._call.outputValues[0].value.toBoolean(); } } export class InvestUnderlyingCall extends EthereumCall { get inputs(): InvestUnderlyingCall__Inputs { return new InvestUnderlyingCall__Inputs(this); } get outputs(): InvestUnderlyingCall__Outputs { return new InvestUnderlyingCall__Outputs(this); } } export class InvestUnderlyingCall__Inputs { _call: InvestUnderlyingCall; constructor(call: InvestUnderlyingCall) { this._call = call; } get investAmount(): BigInt { return this._call.inputValues[0].value.toBigInt(); } } export class InvestUnderlyingCall__Outputs { _call: InvestUnderlyingCall; constructor(call: InvestUnderlyingCall) { this._call = call; } get value0(): BigInt { return this._call.outputValues[0].value.toBigInt(); } } export class RedeemUnderlyingCall extends EthereumCall { get inputs(): RedeemUnderlyingCall__Inputs { return new RedeemUnderlyingCall__Inputs(this); } get outputs(): RedeemUnderlyingCall__Outputs { return new RedeemUnderlyingCall__Outputs(this); } } export class RedeemUnderlyingCall__Inputs { _call: RedeemUnderlyingCall; constructor(call: RedeemUnderlyingCall) { this._call = call; } get redeemAmount(): BigInt { return this._call.inputValues[0].value.toBigInt(); } } export class RedeemUnderlyingCall__Outputs { _call: RedeemUnderlyingCall; constructor(call: RedeemUnderlyingCall) { this._call = call; } get value0(): BigInt { return this._call.outputValues[0].value.toBigInt(); } }