From 5e1f9256cf5097cb2acaee2d3eff77b34e06f2b0 Mon Sep 17 00:00:00 2001 From: hatem Date: Thu, 29 Feb 2024 09:31:46 +0100 Subject: [PATCH 1/5] subgraph --- .gitignore | 6 +- generated/LTokenSignaler/LToken.ts | 2182 +++++++++++++++++ generated/LTokenSignaler/LTokenSignaler.ts | 332 +++ generated/schema.ts | 685 ++++++ generated/templates.ts | 17 + generated/templates/LToken/LToken.ts | 2182 +++++++++++++++++ package.json | 3 +- .../build/LTokenSignaler/LTokenSignaler.wasm | Bin 0 -> 45584 bytes subgraph/build/contracts/abis/LToken.json | 1301 ++++++++++ .../build/contracts/abis/LTokenSignaler.json | 213 ++ subgraph/build/contracts/abis/PreMining.json | 596 +++++ subgraph/build/schema.graphql | 64 + subgraph/build/subgraph.yaml | 78 + subgraph/generated/LTokenSignaler/LToken.ts | 2182 +++++++++++++++++ .../LTokenSignaler/LTokenSignaler.ts | 332 +++ subgraph/generated/PreMining/PreMining.ts | 1092 +++++++++ subgraph/generated/schema.ts | 685 ++++++ subgraph/generated/templates.ts | 17 + subgraph/generated/templates/LToken/LToken.ts | 2182 +++++++++++++++++ 19 files changed, 14145 insertions(+), 4 deletions(-) create mode 100644 generated/LTokenSignaler/LToken.ts create mode 100644 generated/LTokenSignaler/LTokenSignaler.ts create mode 100644 generated/schema.ts create mode 100644 generated/templates.ts create mode 100644 generated/templates/LToken/LToken.ts create mode 100644 subgraph/build/LTokenSignaler/LTokenSignaler.wasm create mode 100644 subgraph/build/contracts/abis/LToken.json create mode 100644 subgraph/build/contracts/abis/LTokenSignaler.json create mode 100644 subgraph/build/contracts/abis/PreMining.json create mode 100644 subgraph/build/schema.graphql create mode 100644 subgraph/build/subgraph.yaml create mode 100644 subgraph/generated/LTokenSignaler/LToken.ts create mode 100644 subgraph/generated/LTokenSignaler/LTokenSignaler.ts create mode 100644 subgraph/generated/PreMining/PreMining.ts create mode 100644 subgraph/generated/schema.ts create mode 100644 subgraph/generated/templates.ts create mode 100644 subgraph/generated/templates/LToken/LToken.ts diff --git a/.gitignore b/.gitignore index 05b5e70d..7ec2618b 100644 --- a/.gitignore +++ b/.gitignore @@ -44,9 +44,9 @@ contracts/hardhat/cache contracts/hardhat/artifacts # TheGraph -subgraph/build -subgraph/generated -subgraph/local-node/data +#subgraph/build +#subgraph/generated +#subgraph/local-node/data # Foundry (TOCONTINUE) # Compiler files diff --git a/generated/LTokenSignaler/LToken.ts b/generated/LTokenSignaler/LToken.ts new file mode 100644 index 00000000..7d510ef9 --- /dev/null +++ b/generated/LTokenSignaler/LToken.ts @@ -0,0 +1,2182 @@ +// 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 APRChangeEvent extends ethereum.Event { + get params(): APRChangeEvent__Params { + return new APRChangeEvent__Params(this); + } +} + +export class APRChangeEvent__Params { + _event: APRChangeEvent; + + constructor(event: APRChangeEvent) { + this._event = event; + } + + get newAPRUD7x3(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class ActivityEvent extends ethereum.Event { + get params(): ActivityEvent__Params { + return new ActivityEvent__Params(this); + } +} + +export class ActivityEvent__Params { + _event: ActivityEvent; + + constructor(event: ActivityEvent) { + this._event = event; + } + + get id(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } + + get account(): Address { + return this._event.parameters[1].value.toAddress(); + } + + get action(): i32 { + return this._event.parameters[2].value.toI32(); + } + + get amount(): BigInt { + return this._event.parameters[3].value.toBigInt(); + } + + get amountAfterFees(): BigInt { + return this._event.parameters[4].value.toBigInt(); + } + + get newStatus(): i32 { + return this._event.parameters[5].value.toI32(); + } + + get newId(): BigInt { + return this._event.parameters[6].value.toBigInt(); + } +} + +export class AdminChanged extends ethereum.Event { + get params(): AdminChanged__Params { + return new AdminChanged__Params(this); + } +} + +export class AdminChanged__Params { + _event: AdminChanged; + + constructor(event: AdminChanged) { + this._event = event; + } + + get previousAdmin(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get newAdmin(): Address { + return this._event.parameters[1].value.toAddress(); + } +} + +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 BeaconUpgraded extends ethereum.Event { + get params(): BeaconUpgraded__Params { + return new BeaconUpgraded__Params(this); + } +} + +export class BeaconUpgraded__Params { + _event: BeaconUpgraded; + + constructor(event: BeaconUpgraded) { + this._event = event; + } + + get beacon(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Initialized extends ethereum.Event { + get params(): Initialized__Params { + return new Initialized__Params(this); + } +} + +export class Initialized__Params { + _event: Initialized; + + constructor(event: Initialized) { + this._event = event; + } + + get version(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class MintedRewardsEvent extends ethereum.Event { + get params(): MintedRewardsEvent__Params { + return new MintedRewardsEvent__Params(this); + } +} + +export class MintedRewardsEvent__Params { + _event: MintedRewardsEvent; + + constructor(event: MintedRewardsEvent) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get balanceBefore(): BigInt { + return this._event.parameters[1].value.toBigInt(); + } + + get rewards(): BigInt { + return this._event.parameters[2].value.toBigInt(); + } +} + +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 Paused extends ethereum.Event { + get params(): Paused__Params { + return new Paused__Params(this); + } +} + +export class Paused__Params { + _event: Paused; + + constructor(event: Paused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class TVLChangeEvent extends ethereum.Event { + get params(): TVLChangeEvent__Params { + return new TVLChangeEvent__Params(this); + } +} + +export class TVLChangeEvent__Params { + _event: TVLChangeEvent; + + constructor(event: TVLChangeEvent) { + this._event = event; + } + + get newTVL(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } +} + +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 Unpaused extends ethereum.Event { + get params(): Unpaused__Params { + return new Unpaused__Params(this); + } +} + +export class Unpaused__Params { + _event: Unpaused; + + constructor(event: Unpaused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Upgraded extends ethereum.Event { + get params(): Upgraded__Params { + return new Upgraded__Params(this); + } +} + +export class Upgraded__Params { + _event: Upgraded; + + constructor(event: Upgraded) { + this._event = event; + } + + get implementation(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class LToken__frozenRequestsResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken__getWithdrawnAmountAndFeesResult { + value0: BigInt; + value1: BigInt; + + constructor(value0: BigInt, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getWithdrawnAmount(): BigInt { + return this.value0; + } + + getFees(): BigInt { + return this.value1; + } +} + +export class LToken__withdrawalQueueResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken extends ethereum.SmartContract { + static bind(address: Address): LToken { + return new LToken("LToken", address); + } + + 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()); + } + + depositFor(account: Address, amount: BigInt): boolean { + let result = super.call( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_depositFor( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + feesRateUD7x3(): BigInt { + let result = super.call("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + + return result[0].toBigInt(); + } + + try_feesRateUD7x3(): ethereum.CallResult { + let result = super.tryCall("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + frozenRequests(param0: BigInt): LToken__frozenRequestsResult { + let result = super.call( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__frozenRequestsResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_frozenRequests( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__frozenRequestsResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + fund(): Address { + let result = super.call("fund", "fund():(address)", []); + + return result[0].toAddress(); + } + + try_fund(): ethereum.CallResult
{ + let result = super.tryCall("fund", "fund():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + getAPR(): i32 { + let result = super.call("getAPR", "getAPR():(uint16)", []); + + return result[0].toI32(); + } + + try_getAPR(): ethereum.CallResult { + let result = super.tryCall("getAPR", "getAPR():(uint16)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + getExpectedRetained(): BigInt { + let result = super.call( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_getExpectedRetained(): ethereum.CallResult { + let result = super.tryCall( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): LToken__getWithdrawnAmountAndFeesResult { + let result = super.call( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return new LToken__getWithdrawnAmountAndFeesResult( + result[0].toBigInt(), + result[1].toBigInt(), + ); + } + + try_getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__getWithdrawnAmountAndFeesResult( + value[0].toBigInt(), + value[1].toBigInt(), + ), + ); + } + + globalBlacklist(): Address { + let result = super.call( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + + return result[0].toAddress(); + } + + try_globalBlacklist(): ethereum.CallResult
{ + let result = super.tryCall( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalPause(): Address { + let result = super.call("globalPause", "globalPause():(address)", []); + + return result[0].toAddress(); + } + + try_globalPause(): ethereum.CallResult
{ + let result = super.tryCall("globalPause", "globalPause():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + invested(): Address { + let result = super.call("invested", "invested():(address)", []); + + return result[0].toAddress(); + } + + try_invested(): ethereum.CallResult
{ + let result = super.tryCall("invested", "invested():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + ldyStaking(): Address { + let result = super.call("ldyStaking", "ldyStaking():(address)", []); + + return result[0].toAddress(); + } + + try_ldyStaking(): ethereum.CallResult
{ + let result = super.tryCall("ldyStaking", "ldyStaking():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + 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()); + } + + paused(): boolean { + let result = super.call("paused", "paused():(bool)", []); + + return result[0].toBoolean(); + } + + try_paused(): ethereum.CallResult { + let result = super.tryCall("paused", "paused():(bool)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } + + realBalanceOf(account: Address): BigInt { + let result = super.call( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_realBalanceOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + realTotalSupply(): BigInt { + let result = super.call( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_realTotalSupply(): ethereum.CallResult { + let result = super.tryCall( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + retentionRateUD7x3(): BigInt { + let result = super.call( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + + return result[0].toBigInt(); + } + + try_retentionRateUD7x3(): ethereum.CallResult { + let result = super.tryCall( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + rewardsRedirectsFromTo(param0: Address): Address { + let result = super.call( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsFromTo(param0: Address): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + rewardsRedirectsToFrom(param0: Address, param1: BigInt): Address { + let result = super.call( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsToFrom( + param0: Address, + param1: BigInt, + ): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + 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()); + } + + totalQueued(): BigInt { + let result = super.call("totalQueued", "totalQueued():(uint256)", []); + + return result[0].toBigInt(); + } + + try_totalQueued(): ethereum.CallResult { + let result = super.tryCall("totalQueued", "totalQueued():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + 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(to: Address, amount: BigInt): boolean { + let result = super.call("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + + return result[0].toBoolean(); + } + + try_transfer(to: Address, amount: BigInt): ethereum.CallResult { + let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transferFrom(from: Address, to: Address, amount: BigInt): boolean { + let result = super.call( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_transferFrom( + from: Address, + to: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transfersListeners(param0: BigInt): Address { + let result = super.call( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return result[0].toAddress(); + } + + try_transfersListeners(param0: BigInt): ethereum.CallResult
{ + let result = super.tryCall( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unclaimedFees(): BigInt { + let result = super.call("unclaimedFees", "unclaimedFees():(uint256)", []); + + return result[0].toBigInt(); + } + + try_unclaimedFees(): ethereum.CallResult { + let result = super.tryCall( + "unclaimedFees", + "unclaimedFees():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + underlying(): Address { + let result = super.call("underlying", "underlying():(address)", []); + + return result[0].toAddress(); + } + + try_underlying(): ethereum.CallResult
{ + let result = super.tryCall("underlying", "underlying():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unmintedRewardsOf(account: Address): BigInt { + let result = super.call( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_unmintedRewardsOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + usableUnderlyings(): BigInt { + let result = super.call( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_usableUnderlyings(): ethereum.CallResult { + let result = super.tryCall( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawTo(account: Address, amount: BigInt): boolean { + let result = super.call( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_withdrawTo( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + withdrawalQueue(param0: BigInt): LToken__withdrawalQueueResult { + let result = super.call( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__withdrawalQueueResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_withdrawalQueue( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__withdrawalQueueResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + withdrawalQueueCursor(): BigInt { + let result = super.call( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_withdrawalQueueCursor(): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawer(): Address { + let result = super.call("withdrawer", "withdrawer():(address)", []); + + return result[0].toAddress(); + } + + try_withdrawer(): ethereum.CallResult
{ + let result = super.tryCall("withdrawer", "withdrawer():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } +} + +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 CancelWithdrawalRequestCall extends ethereum.Call { + get inputs(): CancelWithdrawalRequestCall__Inputs { + return new CancelWithdrawalRequestCall__Inputs(this); + } + + get outputs(): CancelWithdrawalRequestCall__Outputs { + return new CancelWithdrawalRequestCall__Outputs(this); + } +} + +export class CancelWithdrawalRequestCall__Inputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class CancelWithdrawalRequestCall__Outputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } +} + +export class ClaimFeesCall extends ethereum.Call { + get inputs(): ClaimFeesCall__Inputs { + return new ClaimFeesCall__Inputs(this); + } + + get outputs(): ClaimFeesCall__Outputs { + return new ClaimFeesCall__Outputs(this); + } +} + +export class ClaimFeesCall__Inputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +export class ClaimFeesCall__Outputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +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 DepositCall extends ethereum.Call { + get inputs(): DepositCall__Inputs { + return new DepositCall__Inputs(this); + } + + get outputs(): DepositCall__Outputs { + return new DepositCall__Outputs(this); + } +} + +export class DepositCall__Inputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class DepositCall__Outputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get globalPause_(): Address { + return this._call.inputValues[1].value.toAddress(); + } + + get globalBlacklist_(): Address { + return this._call.inputValues[2].value.toAddress(); + } + + get ldyStaking_(): Address { + return this._call.inputValues[3].value.toAddress(); + } + + get underlyingToken(): Address { + return this._call.inputValues[4].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class InstantWithdrawalCall extends ethereum.Call { + get inputs(): InstantWithdrawalCall__Inputs { + return new InstantWithdrawalCall__Inputs(this); + } + + get outputs(): InstantWithdrawalCall__Outputs { + return new InstantWithdrawalCall__Outputs(this); + } +} + +export class InstantWithdrawalCall__Inputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class InstantWithdrawalCall__Outputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } +} + +export class ListenToTransfersCall extends ethereum.Call { + get inputs(): ListenToTransfersCall__Inputs { + return new ListenToTransfersCall__Inputs(this); + } + + get outputs(): ListenToTransfersCall__Outputs { + return new ListenToTransfersCall__Outputs(this); + } +} + +export class ListenToTransfersCall__Inputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class ListenToTransfersCall__Outputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } +} + +export class ProcessBigQueuedRequestCall extends ethereum.Call { + get inputs(): ProcessBigQueuedRequestCall__Inputs { + return new ProcessBigQueuedRequestCall__Inputs(this); + } + + get outputs(): ProcessBigQueuedRequestCall__Outputs { + return new ProcessBigQueuedRequestCall__Outputs(this); + } +} + +export class ProcessBigQueuedRequestCall__Inputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class ProcessBigQueuedRequestCall__Outputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall extends ethereum.Call { + get inputs(): ProcessQueuedRequestsCall__Inputs { + return new ProcessQueuedRequestsCall__Inputs(this); + } + + get outputs(): ProcessQueuedRequestsCall__Outputs { + return new ProcessQueuedRequestsCall__Outputs(this); + } +} + +export class ProcessQueuedRequestsCall__Inputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall__Outputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class RecoverERC20Call extends ethereum.Call { + get inputs(): RecoverERC20Call__Inputs { + return new RecoverERC20Call__Inputs(this); + } + + get outputs(): RecoverERC20Call__Outputs { + return new RecoverERC20Call__Outputs(this); + } +} + +export class RecoverERC20Call__Inputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } + + get tokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get amount(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } +} + +export class RecoverERC20Call__Outputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } +} + +export class RecoverUnderlyingCall extends ethereum.Call { + get inputs(): RecoverUnderlyingCall__Inputs { + return new RecoverUnderlyingCall__Inputs(this); + } + + get outputs(): RecoverUnderlyingCall__Outputs { + return new RecoverUnderlyingCall__Outputs(this); + } +} + +export class RecoverUnderlyingCall__Inputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RecoverUnderlyingCall__Outputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RepatriateCall extends ethereum.Call { + get inputs(): RepatriateCall__Inputs { + return new RepatriateCall__Inputs(this); + } + + get outputs(): RepatriateCall__Outputs { + return new RepatriateCall__Outputs(this); + } +} + +export class RepatriateCall__Inputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RepatriateCall__Outputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } +} + +export class RequestWithdrawalCall extends ethereum.Call { + get inputs(): RequestWithdrawalCall__Inputs { + return new RequestWithdrawalCall__Inputs(this); + } + + get outputs(): RequestWithdrawalCall__Outputs { + return new RequestWithdrawalCall__Outputs(this); + } +} + +export class RequestWithdrawalCall__Inputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RequestWithdrawalCall__Outputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } +} + +export class SetAPRCall extends ethereum.Call { + get inputs(): SetAPRCall__Inputs { + return new SetAPRCall__Inputs(this); + } + + get outputs(): SetAPRCall__Outputs { + return new SetAPRCall__Outputs(this); + } +} + +export class SetAPRCall__Inputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } + + get aprUD7x3(): i32 { + return this._call.inputValues[0].value.toI32(); + } +} + +export class SetAPRCall__Outputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } +} + +export class SetFeesRateCall extends ethereum.Call { + get inputs(): SetFeesRateCall__Inputs { + return new SetFeesRateCall__Inputs(this); + } + + get outputs(): SetFeesRateCall__Outputs { + return new SetFeesRateCall__Outputs(this); + } +} + +export class SetFeesRateCall__Inputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } + + get feesRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetFeesRateCall__Outputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } +} + +export class SetFundCall extends ethereum.Call { + get inputs(): SetFundCall__Inputs { + return new SetFundCall__Inputs(this); + } + + get outputs(): SetFundCall__Outputs { + return new SetFundCall__Outputs(this); + } +} + +export class SetFundCall__Inputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } + + get fund_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetFundCall__Outputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } +} + +export class SetLDYStakingCall extends ethereum.Call { + get inputs(): SetLDYStakingCall__Inputs { + return new SetLDYStakingCall__Inputs(this); + } + + get outputs(): SetLDYStakingCall__Outputs { + return new SetLDYStakingCall__Outputs(this); + } +} + +export class SetLDYStakingCall__Inputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } + + get ldyStakingAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetLDYStakingCall__Outputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } +} + +export class SetRetentionRateCall extends ethereum.Call { + get inputs(): SetRetentionRateCall__Inputs { + return new SetRetentionRateCall__Inputs(this); + } + + get outputs(): SetRetentionRateCall__Outputs { + return new SetRetentionRateCall__Outputs(this); + } +} + +export class SetRetentionRateCall__Inputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } + + get retentionRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetRetentionRateCall__Outputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } +} + +export class SetWithdrawerCall extends ethereum.Call { + get inputs(): SetWithdrawerCall__Inputs { + return new SetWithdrawerCall__Inputs(this); + } + + get outputs(): SetWithdrawerCall__Outputs { + return new SetWithdrawerCall__Outputs(this); + } +} + +export class SetWithdrawerCall__Inputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } + + get withdrawer_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetWithdrawerCall__Outputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } +} + +export class StartRewardsRedirectionCall extends ethereum.Call { + get inputs(): StartRewardsRedirectionCall__Inputs { + return new StartRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StartRewardsRedirectionCall__Outputs { + return new StartRewardsRedirectionCall__Outputs(this); + } +} + +export class StartRewardsRedirectionCall__Inputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StartRewardsRedirectionCall__Outputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } +} + +export class StopRewardsRedirectionCall extends ethereum.Call { + get inputs(): StopRewardsRedirectionCall__Inputs { + return new StopRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StopRewardsRedirectionCall__Outputs { + return new StopRewardsRedirectionCall__Outputs(this); + } +} + +export class StopRewardsRedirectionCall__Inputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StopRewardsRedirectionCall__Outputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + 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 to(): 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 from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): 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 UnlistenToTransfersCall extends ethereum.Call { + get inputs(): UnlistenToTransfersCall__Inputs { + return new UnlistenToTransfersCall__Inputs(this); + } + + get outputs(): UnlistenToTransfersCall__Outputs { + return new UnlistenToTransfersCall__Outputs(this); + } +} + +export class UnlistenToTransfersCall__Inputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UnlistenToTransfersCall__Outputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} diff --git a/generated/LTokenSignaler/LTokenSignaler.ts b/generated/LTokenSignaler/LTokenSignaler.ts new file mode 100644 index 00000000..c3723910 --- /dev/null +++ b/generated/LTokenSignaler/LTokenSignaler.ts @@ -0,0 +1,332 @@ +// 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 AdminChanged extends ethereum.Event { + get params(): AdminChanged__Params { + return new AdminChanged__Params(this); + } +} + +export class AdminChanged__Params { + _event: AdminChanged; + + constructor(event: AdminChanged) { + this._event = event; + } + + get previousAdmin(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get newAdmin(): Address { + return this._event.parameters[1].value.toAddress(); + } +} + +export class BeaconUpgraded extends ethereum.Event { + get params(): BeaconUpgraded__Params { + return new BeaconUpgraded__Params(this); + } +} + +export class BeaconUpgraded__Params { + _event: BeaconUpgraded; + + constructor(event: BeaconUpgraded) { + this._event = event; + } + + get beacon(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Initialized extends ethereum.Event { + get params(): Initialized__Params { + return new Initialized__Params(this); + } +} + +export class Initialized__Params { + _event: Initialized; + + constructor(event: Initialized) { + this._event = event; + } + + get version(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class LTokenSignalEvent extends ethereum.Event { + get params(): LTokenSignalEvent__Params { + return new LTokenSignalEvent__Params(this); + } +} + +export class LTokenSignalEvent__Params { + _event: LTokenSignalEvent; + + constructor(event: LTokenSignalEvent) { + this._event = event; + } + + get lTokenAddress(): Address { + return this._event.parameters[0].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 Upgraded extends ethereum.Event { + get params(): Upgraded__Params { + return new Upgraded__Params(this); + } +} + +export class Upgraded__Params { + _event: Upgraded; + + constructor(event: Upgraded) { + this._event = event; + } + + get implementation(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class LTokenSignaler extends ethereum.SmartContract { + static bind(address: Address): LTokenSignaler { + return new LTokenSignaler("LTokenSignaler", address); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class SignalLTokenCall extends ethereum.Call { + get inputs(): SignalLTokenCall__Inputs { + return new SignalLTokenCall__Inputs(this); + } + + get outputs(): SignalLTokenCall__Outputs { + return new SignalLTokenCall__Outputs(this); + } +} + +export class SignalLTokenCall__Inputs { + _call: SignalLTokenCall; + + constructor(call: SignalLTokenCall) { + this._call = call; + } + + get lTokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SignalLTokenCall__Outputs { + _call: SignalLTokenCall; + + constructor(call: SignalLTokenCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} diff --git a/generated/schema.ts b/generated/schema.ts new file mode 100644 index 00000000..d32b64ab --- /dev/null +++ b/generated/schema.ts @@ -0,0 +1,685 @@ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. + +import { + TypedMap, + Entity, + Value, + ValueKind, + store, + Bytes, + BigInt, + BigDecimal, +} from "@graphprotocol/graph-ts"; + +export class LToken extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save LToken entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type LToken must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("LToken", id.toString(), this); + } + } + + static loadInBlock(id: string): LToken | null { + return changetype(store.get_in_block("LToken", id)); + } + + static load(id: string): LToken | null { + return changetype(store.get("LToken", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get symbol(): string { + let value = this.get("symbol"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set symbol(value: string) { + this.set("symbol", Value.fromString(value)); + } + + get decimals(): i32 { + let value = this.get("decimals"); + if (!value || value.kind == ValueKind.NULL) { + return 0; + } else { + return value.toI32(); + } + } + + set decimals(value: i32) { + this.set("decimals", Value.fromI32(value)); + } + + get totalMintedRewards(): BigDecimal { + let value = this.get("totalMintedRewards"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set totalMintedRewards(value: BigDecimal) { + this.set("totalMintedRewards", Value.fromBigDecimal(value)); + } + + get tvlUpdates(): TVLChangeLoader { + return new TVLChangeLoader( + "LToken", + this.get("id")!.toString(), + "tvlUpdates", + ); + } + + get aprUpdates(): APRChangeLoader { + return new APRChangeLoader( + "LToken", + this.get("id")!.toString(), + "aprUpdates", + ); + } + + get activities(): ActivityLoader { + return new ActivityLoader( + "LToken", + this.get("id")!.toString(), + "activities", + ); + } + + get rewardsMints(): RewardsMintLoader { + return new RewardsMintLoader( + "LToken", + this.get("id")!.toString(), + "rewardsMints", + ); + } +} + +export class TVLChange extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save TVLChange entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type TVLChange must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("TVLChange", id.toString(), this); + } + } + + static loadInBlock(id: string): TVLChange | null { + return changetype(store.get_in_block("TVLChange", id)); + } + + static load(id: string): TVLChange | null { + return changetype(store.get("TVLChange", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } +} + +export class APRChange extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save APRChange entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type APRChange must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("APRChange", id.toString(), this); + } + } + + static loadInBlock(id: string): APRChange | null { + return changetype(store.get_in_block("APRChange", id)); + } + + static load(id: string): APRChange | null { + return changetype(store.get("APRChange", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get apr(): BigDecimal { + let value = this.get("apr"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set apr(value: BigDecimal) { + this.set("apr", Value.fromBigDecimal(value)); + } +} + +export class Activity extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save Activity entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type Activity must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("Activity", id.toString(), this); + } + } + + static loadInBlock(id: string): Activity | null { + return changetype(store.get_in_block("Activity", id)); + } + + static load(id: string): Activity | null { + return changetype(store.get("Activity", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get requestId(): BigInt { + let value = this.get("requestId"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set requestId(value: BigInt) { + this.set("requestId", Value.fromBigInt(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get account(): Bytes { + let value = this.get("account"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBytes(); + } + } + + set account(value: Bytes) { + this.set("account", Value.fromBytes(value)); + } + + get action(): string { + let value = this.get("action"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set action(value: string) { + this.set("action", Value.fromString(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } + + get amountAfterFees(): BigDecimal { + let value = this.get("amountAfterFees"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amountAfterFees(value: BigDecimal) { + this.set("amountAfterFees", Value.fromBigDecimal(value)); + } + + get status(): string { + let value = this.get("status"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set status(value: string) { + this.set("status", Value.fromString(value)); + } +} + +export class RewardsMint extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save RewardsMint entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type RewardsMint must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("RewardsMint", id.toString(), this); + } + } + + static loadInBlock(id: string): RewardsMint | null { + return changetype( + store.get_in_block("RewardsMint", id), + ); + } + + static load(id: string): RewardsMint | null { + return changetype(store.get("RewardsMint", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get account(): Bytes { + let value = this.get("account"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBytes(); + } + } + + set account(value: Bytes) { + this.set("account", Value.fromBytes(value)); + } + + get balanceBefore(): BigDecimal { + let value = this.get("balanceBefore"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set balanceBefore(value: BigDecimal) { + this.set("balanceBefore", Value.fromBigDecimal(value)); + } + + get revenue(): BigDecimal { + let value = this.get("revenue"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set revenue(value: BigDecimal) { + this.set("revenue", Value.fromBigDecimal(value)); + } + + get growth(): BigDecimal { + let value = this.get("growth"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set growth(value: BigDecimal) { + this.set("growth", Value.fromBigDecimal(value)); + } +} + +export class PreMiningLock extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save PreMiningLock entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type PreMiningLock must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("PreMiningLock", id.toString(), this); + } + } + + static loadInBlock(id: string): PreMiningLock | null { + return changetype( + store.get_in_block("PreMiningLock", id), + ); + } + + static load(id: string): PreMiningLock | null { + return changetype(store.get("PreMiningLock", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } + + get duration(): i32 { + let value = this.get("duration"); + if (!value || value.kind == ValueKind.NULL) { + return 0; + } else { + return value.toI32(); + } + } + + set duration(value: i32) { + this.set("duration", Value.fromI32(value)); + } +} + +export class TVLChangeLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): TVLChange[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class APRChangeLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): APRChange[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class ActivityLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): Activity[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class RewardsMintLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): RewardsMint[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} diff --git a/generated/templates.ts b/generated/templates.ts new file mode 100644 index 00000000..642b3681 --- /dev/null +++ b/generated/templates.ts @@ -0,0 +1,17 @@ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. + +import { + Address, + DataSourceTemplate, + DataSourceContext, +} from "@graphprotocol/graph-ts"; + +export class LToken extends DataSourceTemplate { + static create(address: Address): void { + DataSourceTemplate.create("LToken", [address.toHex()]); + } + + static createWithContext(address: Address, context: DataSourceContext): void { + DataSourceTemplate.createWithContext("LToken", [address.toHex()], context); + } +} diff --git a/generated/templates/LToken/LToken.ts b/generated/templates/LToken/LToken.ts new file mode 100644 index 00000000..7d510ef9 --- /dev/null +++ b/generated/templates/LToken/LToken.ts @@ -0,0 +1,2182 @@ +// 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 APRChangeEvent extends ethereum.Event { + get params(): APRChangeEvent__Params { + return new APRChangeEvent__Params(this); + } +} + +export class APRChangeEvent__Params { + _event: APRChangeEvent; + + constructor(event: APRChangeEvent) { + this._event = event; + } + + get newAPRUD7x3(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class ActivityEvent extends ethereum.Event { + get params(): ActivityEvent__Params { + return new ActivityEvent__Params(this); + } +} + +export class ActivityEvent__Params { + _event: ActivityEvent; + + constructor(event: ActivityEvent) { + this._event = event; + } + + get id(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } + + get account(): Address { + return this._event.parameters[1].value.toAddress(); + } + + get action(): i32 { + return this._event.parameters[2].value.toI32(); + } + + get amount(): BigInt { + return this._event.parameters[3].value.toBigInt(); + } + + get amountAfterFees(): BigInt { + return this._event.parameters[4].value.toBigInt(); + } + + get newStatus(): i32 { + return this._event.parameters[5].value.toI32(); + } + + get newId(): BigInt { + return this._event.parameters[6].value.toBigInt(); + } +} + +export class AdminChanged extends ethereum.Event { + get params(): AdminChanged__Params { + return new AdminChanged__Params(this); + } +} + +export class AdminChanged__Params { + _event: AdminChanged; + + constructor(event: AdminChanged) { + this._event = event; + } + + get previousAdmin(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get newAdmin(): Address { + return this._event.parameters[1].value.toAddress(); + } +} + +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 BeaconUpgraded extends ethereum.Event { + get params(): BeaconUpgraded__Params { + return new BeaconUpgraded__Params(this); + } +} + +export class BeaconUpgraded__Params { + _event: BeaconUpgraded; + + constructor(event: BeaconUpgraded) { + this._event = event; + } + + get beacon(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Initialized extends ethereum.Event { + get params(): Initialized__Params { + return new Initialized__Params(this); + } +} + +export class Initialized__Params { + _event: Initialized; + + constructor(event: Initialized) { + this._event = event; + } + + get version(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class MintedRewardsEvent extends ethereum.Event { + get params(): MintedRewardsEvent__Params { + return new MintedRewardsEvent__Params(this); + } +} + +export class MintedRewardsEvent__Params { + _event: MintedRewardsEvent; + + constructor(event: MintedRewardsEvent) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get balanceBefore(): BigInt { + return this._event.parameters[1].value.toBigInt(); + } + + get rewards(): BigInt { + return this._event.parameters[2].value.toBigInt(); + } +} + +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 Paused extends ethereum.Event { + get params(): Paused__Params { + return new Paused__Params(this); + } +} + +export class Paused__Params { + _event: Paused; + + constructor(event: Paused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class TVLChangeEvent extends ethereum.Event { + get params(): TVLChangeEvent__Params { + return new TVLChangeEvent__Params(this); + } +} + +export class TVLChangeEvent__Params { + _event: TVLChangeEvent; + + constructor(event: TVLChangeEvent) { + this._event = event; + } + + get newTVL(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } +} + +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 Unpaused extends ethereum.Event { + get params(): Unpaused__Params { + return new Unpaused__Params(this); + } +} + +export class Unpaused__Params { + _event: Unpaused; + + constructor(event: Unpaused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Upgraded extends ethereum.Event { + get params(): Upgraded__Params { + return new Upgraded__Params(this); + } +} + +export class Upgraded__Params { + _event: Upgraded; + + constructor(event: Upgraded) { + this._event = event; + } + + get implementation(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class LToken__frozenRequestsResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken__getWithdrawnAmountAndFeesResult { + value0: BigInt; + value1: BigInt; + + constructor(value0: BigInt, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getWithdrawnAmount(): BigInt { + return this.value0; + } + + getFees(): BigInt { + return this.value1; + } +} + +export class LToken__withdrawalQueueResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken extends ethereum.SmartContract { + static bind(address: Address): LToken { + return new LToken("LToken", address); + } + + 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()); + } + + depositFor(account: Address, amount: BigInt): boolean { + let result = super.call( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_depositFor( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + feesRateUD7x3(): BigInt { + let result = super.call("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + + return result[0].toBigInt(); + } + + try_feesRateUD7x3(): ethereum.CallResult { + let result = super.tryCall("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + frozenRequests(param0: BigInt): LToken__frozenRequestsResult { + let result = super.call( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__frozenRequestsResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_frozenRequests( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__frozenRequestsResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + fund(): Address { + let result = super.call("fund", "fund():(address)", []); + + return result[0].toAddress(); + } + + try_fund(): ethereum.CallResult
{ + let result = super.tryCall("fund", "fund():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + getAPR(): i32 { + let result = super.call("getAPR", "getAPR():(uint16)", []); + + return result[0].toI32(); + } + + try_getAPR(): ethereum.CallResult { + let result = super.tryCall("getAPR", "getAPR():(uint16)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + getExpectedRetained(): BigInt { + let result = super.call( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_getExpectedRetained(): ethereum.CallResult { + let result = super.tryCall( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): LToken__getWithdrawnAmountAndFeesResult { + let result = super.call( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return new LToken__getWithdrawnAmountAndFeesResult( + result[0].toBigInt(), + result[1].toBigInt(), + ); + } + + try_getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__getWithdrawnAmountAndFeesResult( + value[0].toBigInt(), + value[1].toBigInt(), + ), + ); + } + + globalBlacklist(): Address { + let result = super.call( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + + return result[0].toAddress(); + } + + try_globalBlacklist(): ethereum.CallResult
{ + let result = super.tryCall( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalPause(): Address { + let result = super.call("globalPause", "globalPause():(address)", []); + + return result[0].toAddress(); + } + + try_globalPause(): ethereum.CallResult
{ + let result = super.tryCall("globalPause", "globalPause():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + invested(): Address { + let result = super.call("invested", "invested():(address)", []); + + return result[0].toAddress(); + } + + try_invested(): ethereum.CallResult
{ + let result = super.tryCall("invested", "invested():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + ldyStaking(): Address { + let result = super.call("ldyStaking", "ldyStaking():(address)", []); + + return result[0].toAddress(); + } + + try_ldyStaking(): ethereum.CallResult
{ + let result = super.tryCall("ldyStaking", "ldyStaking():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + 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()); + } + + paused(): boolean { + let result = super.call("paused", "paused():(bool)", []); + + return result[0].toBoolean(); + } + + try_paused(): ethereum.CallResult { + let result = super.tryCall("paused", "paused():(bool)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } + + realBalanceOf(account: Address): BigInt { + let result = super.call( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_realBalanceOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + realTotalSupply(): BigInt { + let result = super.call( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_realTotalSupply(): ethereum.CallResult { + let result = super.tryCall( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + retentionRateUD7x3(): BigInt { + let result = super.call( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + + return result[0].toBigInt(); + } + + try_retentionRateUD7x3(): ethereum.CallResult { + let result = super.tryCall( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + rewardsRedirectsFromTo(param0: Address): Address { + let result = super.call( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsFromTo(param0: Address): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + rewardsRedirectsToFrom(param0: Address, param1: BigInt): Address { + let result = super.call( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsToFrom( + param0: Address, + param1: BigInt, + ): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + 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()); + } + + totalQueued(): BigInt { + let result = super.call("totalQueued", "totalQueued():(uint256)", []); + + return result[0].toBigInt(); + } + + try_totalQueued(): ethereum.CallResult { + let result = super.tryCall("totalQueued", "totalQueued():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + 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(to: Address, amount: BigInt): boolean { + let result = super.call("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + + return result[0].toBoolean(); + } + + try_transfer(to: Address, amount: BigInt): ethereum.CallResult { + let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transferFrom(from: Address, to: Address, amount: BigInt): boolean { + let result = super.call( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_transferFrom( + from: Address, + to: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transfersListeners(param0: BigInt): Address { + let result = super.call( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return result[0].toAddress(); + } + + try_transfersListeners(param0: BigInt): ethereum.CallResult
{ + let result = super.tryCall( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unclaimedFees(): BigInt { + let result = super.call("unclaimedFees", "unclaimedFees():(uint256)", []); + + return result[0].toBigInt(); + } + + try_unclaimedFees(): ethereum.CallResult { + let result = super.tryCall( + "unclaimedFees", + "unclaimedFees():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + underlying(): Address { + let result = super.call("underlying", "underlying():(address)", []); + + return result[0].toAddress(); + } + + try_underlying(): ethereum.CallResult
{ + let result = super.tryCall("underlying", "underlying():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unmintedRewardsOf(account: Address): BigInt { + let result = super.call( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_unmintedRewardsOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + usableUnderlyings(): BigInt { + let result = super.call( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_usableUnderlyings(): ethereum.CallResult { + let result = super.tryCall( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawTo(account: Address, amount: BigInt): boolean { + let result = super.call( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_withdrawTo( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + withdrawalQueue(param0: BigInt): LToken__withdrawalQueueResult { + let result = super.call( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__withdrawalQueueResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_withdrawalQueue( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__withdrawalQueueResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + withdrawalQueueCursor(): BigInt { + let result = super.call( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_withdrawalQueueCursor(): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawer(): Address { + let result = super.call("withdrawer", "withdrawer():(address)", []); + + return result[0].toAddress(); + } + + try_withdrawer(): ethereum.CallResult
{ + let result = super.tryCall("withdrawer", "withdrawer():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } +} + +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 CancelWithdrawalRequestCall extends ethereum.Call { + get inputs(): CancelWithdrawalRequestCall__Inputs { + return new CancelWithdrawalRequestCall__Inputs(this); + } + + get outputs(): CancelWithdrawalRequestCall__Outputs { + return new CancelWithdrawalRequestCall__Outputs(this); + } +} + +export class CancelWithdrawalRequestCall__Inputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class CancelWithdrawalRequestCall__Outputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } +} + +export class ClaimFeesCall extends ethereum.Call { + get inputs(): ClaimFeesCall__Inputs { + return new ClaimFeesCall__Inputs(this); + } + + get outputs(): ClaimFeesCall__Outputs { + return new ClaimFeesCall__Outputs(this); + } +} + +export class ClaimFeesCall__Inputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +export class ClaimFeesCall__Outputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +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 DepositCall extends ethereum.Call { + get inputs(): DepositCall__Inputs { + return new DepositCall__Inputs(this); + } + + get outputs(): DepositCall__Outputs { + return new DepositCall__Outputs(this); + } +} + +export class DepositCall__Inputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class DepositCall__Outputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get globalPause_(): Address { + return this._call.inputValues[1].value.toAddress(); + } + + get globalBlacklist_(): Address { + return this._call.inputValues[2].value.toAddress(); + } + + get ldyStaking_(): Address { + return this._call.inputValues[3].value.toAddress(); + } + + get underlyingToken(): Address { + return this._call.inputValues[4].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class InstantWithdrawalCall extends ethereum.Call { + get inputs(): InstantWithdrawalCall__Inputs { + return new InstantWithdrawalCall__Inputs(this); + } + + get outputs(): InstantWithdrawalCall__Outputs { + return new InstantWithdrawalCall__Outputs(this); + } +} + +export class InstantWithdrawalCall__Inputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class InstantWithdrawalCall__Outputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } +} + +export class ListenToTransfersCall extends ethereum.Call { + get inputs(): ListenToTransfersCall__Inputs { + return new ListenToTransfersCall__Inputs(this); + } + + get outputs(): ListenToTransfersCall__Outputs { + return new ListenToTransfersCall__Outputs(this); + } +} + +export class ListenToTransfersCall__Inputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class ListenToTransfersCall__Outputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } +} + +export class ProcessBigQueuedRequestCall extends ethereum.Call { + get inputs(): ProcessBigQueuedRequestCall__Inputs { + return new ProcessBigQueuedRequestCall__Inputs(this); + } + + get outputs(): ProcessBigQueuedRequestCall__Outputs { + return new ProcessBigQueuedRequestCall__Outputs(this); + } +} + +export class ProcessBigQueuedRequestCall__Inputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class ProcessBigQueuedRequestCall__Outputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall extends ethereum.Call { + get inputs(): ProcessQueuedRequestsCall__Inputs { + return new ProcessQueuedRequestsCall__Inputs(this); + } + + get outputs(): ProcessQueuedRequestsCall__Outputs { + return new ProcessQueuedRequestsCall__Outputs(this); + } +} + +export class ProcessQueuedRequestsCall__Inputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall__Outputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class RecoverERC20Call extends ethereum.Call { + get inputs(): RecoverERC20Call__Inputs { + return new RecoverERC20Call__Inputs(this); + } + + get outputs(): RecoverERC20Call__Outputs { + return new RecoverERC20Call__Outputs(this); + } +} + +export class RecoverERC20Call__Inputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } + + get tokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get amount(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } +} + +export class RecoverERC20Call__Outputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } +} + +export class RecoverUnderlyingCall extends ethereum.Call { + get inputs(): RecoverUnderlyingCall__Inputs { + return new RecoverUnderlyingCall__Inputs(this); + } + + get outputs(): RecoverUnderlyingCall__Outputs { + return new RecoverUnderlyingCall__Outputs(this); + } +} + +export class RecoverUnderlyingCall__Inputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RecoverUnderlyingCall__Outputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RepatriateCall extends ethereum.Call { + get inputs(): RepatriateCall__Inputs { + return new RepatriateCall__Inputs(this); + } + + get outputs(): RepatriateCall__Outputs { + return new RepatriateCall__Outputs(this); + } +} + +export class RepatriateCall__Inputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RepatriateCall__Outputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } +} + +export class RequestWithdrawalCall extends ethereum.Call { + get inputs(): RequestWithdrawalCall__Inputs { + return new RequestWithdrawalCall__Inputs(this); + } + + get outputs(): RequestWithdrawalCall__Outputs { + return new RequestWithdrawalCall__Outputs(this); + } +} + +export class RequestWithdrawalCall__Inputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RequestWithdrawalCall__Outputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } +} + +export class SetAPRCall extends ethereum.Call { + get inputs(): SetAPRCall__Inputs { + return new SetAPRCall__Inputs(this); + } + + get outputs(): SetAPRCall__Outputs { + return new SetAPRCall__Outputs(this); + } +} + +export class SetAPRCall__Inputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } + + get aprUD7x3(): i32 { + return this._call.inputValues[0].value.toI32(); + } +} + +export class SetAPRCall__Outputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } +} + +export class SetFeesRateCall extends ethereum.Call { + get inputs(): SetFeesRateCall__Inputs { + return new SetFeesRateCall__Inputs(this); + } + + get outputs(): SetFeesRateCall__Outputs { + return new SetFeesRateCall__Outputs(this); + } +} + +export class SetFeesRateCall__Inputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } + + get feesRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetFeesRateCall__Outputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } +} + +export class SetFundCall extends ethereum.Call { + get inputs(): SetFundCall__Inputs { + return new SetFundCall__Inputs(this); + } + + get outputs(): SetFundCall__Outputs { + return new SetFundCall__Outputs(this); + } +} + +export class SetFundCall__Inputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } + + get fund_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetFundCall__Outputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } +} + +export class SetLDYStakingCall extends ethereum.Call { + get inputs(): SetLDYStakingCall__Inputs { + return new SetLDYStakingCall__Inputs(this); + } + + get outputs(): SetLDYStakingCall__Outputs { + return new SetLDYStakingCall__Outputs(this); + } +} + +export class SetLDYStakingCall__Inputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } + + get ldyStakingAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetLDYStakingCall__Outputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } +} + +export class SetRetentionRateCall extends ethereum.Call { + get inputs(): SetRetentionRateCall__Inputs { + return new SetRetentionRateCall__Inputs(this); + } + + get outputs(): SetRetentionRateCall__Outputs { + return new SetRetentionRateCall__Outputs(this); + } +} + +export class SetRetentionRateCall__Inputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } + + get retentionRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetRetentionRateCall__Outputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } +} + +export class SetWithdrawerCall extends ethereum.Call { + get inputs(): SetWithdrawerCall__Inputs { + return new SetWithdrawerCall__Inputs(this); + } + + get outputs(): SetWithdrawerCall__Outputs { + return new SetWithdrawerCall__Outputs(this); + } +} + +export class SetWithdrawerCall__Inputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } + + get withdrawer_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetWithdrawerCall__Outputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } +} + +export class StartRewardsRedirectionCall extends ethereum.Call { + get inputs(): StartRewardsRedirectionCall__Inputs { + return new StartRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StartRewardsRedirectionCall__Outputs { + return new StartRewardsRedirectionCall__Outputs(this); + } +} + +export class StartRewardsRedirectionCall__Inputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StartRewardsRedirectionCall__Outputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } +} + +export class StopRewardsRedirectionCall extends ethereum.Call { + get inputs(): StopRewardsRedirectionCall__Inputs { + return new StopRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StopRewardsRedirectionCall__Outputs { + return new StopRewardsRedirectionCall__Outputs(this); + } +} + +export class StopRewardsRedirectionCall__Inputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StopRewardsRedirectionCall__Outputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + 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 to(): 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 from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): 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 UnlistenToTransfersCall extends ethereum.Call { + get inputs(): UnlistenToTransfersCall__Inputs { + return new UnlistenToTransfersCall__Inputs(this); + } + + get outputs(): UnlistenToTransfersCall__Outputs { + return new UnlistenToTransfersCall__Outputs(this); + } +} + +export class UnlistenToTransfersCall__Inputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UnlistenToTransfersCall__Outputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} diff --git a/package.json b/package.json index 155941ce..4d2824e6 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "graph:linea-deploy": "graph deploy --node https://graph-deploy.linea.build/ --ipfs https://graph-ipfs.linea.build LedgityLabs/LedgityYield ./subgraph/linea-subgraph.yaml", "graph:linea-remove": "graph remove --node https://graph-deploy.linea.build/ LedgityLabs/LedgityYield", "graph:arbitrum-gen": "cd subgraph && graph codegen ./arbitrum-subgraph.yaml && graph build ./arbitrum-subgraph.yaml", - "graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml" + "graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml", + "graph:OKX_X1_testnet-deploy": "graph deploy --node https://www.okx.com/api/v1/x1-testnet/subgraph/ LedgityLabs/LedgityYield ./subgraph/OKX_X1_testnet-subgraph.yaml" }, "dependencies": { "@auth/prisma-adapter": "^1.0.11", diff --git a/subgraph/build/LTokenSignaler/LTokenSignaler.wasm b/subgraph/build/LTokenSignaler/LTokenSignaler.wasm new file mode 100644 index 0000000000000000000000000000000000000000..55ac88872e2459142d78a583048bc87cc5658a47 GIT binary patch literal 45584 zcmeHwdz@5PmF_upsvq>}g5v#XAk_^CkOZ23(A_`+oCYe8fM6hr#z&{Z@C)A#H9Zwu`w)c0$*8TdxQV-h*zQh%65d0v(9c2W*aRI=emDljvTuGn4Mwmdhkloqqk~Kz%Ol)&|&} zGnCzA=f+fSyVo?2)SXHtM8@t(?**eSKheN=J;_vGR@2?8DS@hvTuyKW!2*JX1d9l+B)E#;YJ$ZC zO9*NSmJ-wv)DtuiG!iT$Xd-APXdzfmu!3ME!8HWe609OvO>kVa_+^1#5%`S2X9a#$ z;Bx}MCh&y7uM7N!z~=>?6!=Yn-xBzOz*7RhE$}-6zbo*20{>3n_XVC6JN;7NuLS;D z;Ayedj|Bc$;7V42{8xeJ z1^%1B-w6Dzz?TL7yTJbt_@4q_5%@cSzZdvl0xt;sgTOxud{y9pxZhm@?-qEEz{8d`{rk1fCH1b%EaycvNP=lLG%-;1>iQ6L^ZQz*$@Nhxvc4PuZ17b#&X? zlAWnUx81R6d%DX`X;(Y9x8J;JEgE#%>-XBJoL2ALwzl3FyxlNa5wY5Hh&{P})p+>~ zb$4?zm9sl;v~N#jIeaoHz`dqMb+6RDcN4gD=#{zS@}5huJb2Tk zI4*e8C0Q}qVJF_5PUPICX5L-5ZKXSWtGCn`5m!Rtur;0THpWj2Y9heugqgvL_0EEJ zbE3P?Hllf*wsBol6%(fhJ6)emr_}vPt~4^RV}!|hRK$E+6PZMhF=b(p3dJy&2=ps!6%uSo&wB6Q|$mFor=Q4@*+*&Nm#&lO%0WN0Da+Q$FJjc>^$dLaxyQKF&3%yzZpv=al(nV#R-mwoO~9+a*x zb7cvL9&-)v_pTn=TSPZ%<~zf=Oa{~*AUJQ{=*|2w=3h3Xm6A9>=kmEDw(v<@arKA| zcylBbE^uAvMmyWrog1Z@D0ZQ1U)9tbQYsgXcZL;*y{W~xazfsXx+deQ{5uWx#?|?E zni`G8d1N-W7)$b+Yy_Fw{5v4CH2)6B)aBiYqfLGO9kgl4n@xd9-#FXh{0(*@BjT(> z#(JaOZYPoZ8p~WYc-3n&{k^&LhD3Ik(Ns0GF9WeVtDD`~&aRv7OjozPHIdt8w75p~ zNWwFd$dl8VZMj63Z7h!sCA+N~!`U5PJ7a|#emokoj^z3>wy|;;S8I3mrMfoQi4F*K zjq94yv%THUW^b_jx7wMWWR{t}nkCn|>Qb$Ip;o!`f)(qM8Cy;G)xq0a`*w6E+d z6TIznXjKOUjQ6F424jKGhSBOy4h|IW>+ZIM*FcN4LE@^GW3F=}f^ZnL<@%uF*UDxD z-O_!joHCmc501Ic?(I(ZyK&HIaowCzICttd1nnXb5lg32w=t+wv9wcheUM|TqXSYn zH8%vkZ=Kz3=WM@nQ&1dLnJ>;}H=_GS6u<7x8E*(yZR-=&f~8zv*4Pph!FSt@IlIT$ z8g#Ao`|S2Udd8N%Tzk65Hr^Pl9p#T_TGQn~tgQ-x#KP3cbK%`R;T2OH{_H5s?&1r#=Vi`!^zI@^=Z zTB&~Ht?q>PZV3V7ZLWRQ{Z{UsRn6O7@l?&)bTXwX+FVt-6+J!4943&ey)B=hEKRB= z;f4;?Pu1kGecsWRvsIHFu1~p5uxCxRJC*JEm7CKY_QurCwCdU6hDz0w^V!b$)pma0 z?fcZqq5AI37sxZSs_k?Gf}-rz-qee*=&-hHh<5vOyEwLybkhRWSNXzjH#P)rZtO6+ z@+FYA8$06NiO%&ndN8`(SrOMN1heH=S|s(MU#ms7)Qy8NK;~uTA&# zCfakY$(+)`o}v9xSv!@*gv<=>=TtbHWosPQRa~s=>qYQ|)^1Mcuz66%HFEjNTi2IK zaON6)`N~sC&fa`m4Y|eP+P#%;Z zj?8!DPrkTq8}G_Dh7()v%-5Z|yCv1#uiRvR{zTf8?A(=8H3Rw;d1{rawcSZ<#;jZ} z(ca~9Yuu&hi|5W6<8D2FLbw&1k$EMJd-Qw>-P&!~ly%$2y+b-f@Z2^#=ZJNmp08_v z#l2s5*D$42%)#C?9H!OoOs14*59sc~k>3PM2veTz`-}s+8%pzAtWR|)67SaYO~+6` z0b~|EI6|e};c)(*A%ja0>DZj@q_(B|K|S9newZ;H8Y1@gWRIQAC3<>|_v-l`u|3&q zyidfR+yP?f^WC%lE;4&T^GPqacc<={? zD9Njbk&Van{4gG@R3R~IJU-e0s)2EMhy&fM4sxC0Kd9%2y3I%f6P>o`Qrw}bQ&M^ROsJS0r6v= zirkvO4s+1+qv4gR`^R;6Upc%5(*j|6Yc6AaLU$JnGkTU*M$T^kSF zn@nl7Wo>PJDVElZYinyycXuNl$I)(ETPBxFw(Uq{ZQ}{OvmjyDrt$~3%_E^!qH6^%Pa(&eroKtT= zlM<((nWh;t=4&xMrZt7MSjfCV50Q&=`CNP-C&^?3HPPMCNR7eaLl*jkV}ixV7&@*Y2ZxXT@87l6%=%+BD`4B zR%mEo>0Q;KN*xm8czzE?MCXtd-NJq`9c)koQVLTpDU~;c%2lb7(&-QjM5zS~g3d0* zkX62C6gs+9uKEB$gCQ%N-;#C}nm|$?a_Vb!ZKVz_tdOb)l6u{#S8|yXNHYd0Le8&< z2VuwKfkwzMMYQS?O5tciO8N>-N6Qd=$Wa-~BWTTljH0QDo~Cs4DbK}9tQmVVp3+Lt z88;1e)6w5J)iSJZI;xD+lmuFiuGPxWNX&yGH6bPz&4`IboRAfAnVsY@8$yRDnT-aR zEtOeAH|0%-*$UMX^NBYdX2*kBbaz^g!L05x3p!(aq3Cn6$D)A_Gst3jfWS!?5eOgCx?W&13O2iy=*OEO7&qiphb+TuSn4$d6IiWX0_Dzq z7#oXV4MIN1I59j1LU-(`ks;Ybn6=y<5+->QYrR$JRAb%q8qRP?Qyd{0RcMMrGth0e z*KLMZn&OqBPKn}&_gFI^x;O;*s@CB+x-4@styR265P~#6VI-m%Y=XAvA45;Eo%s$i z4HJy8H65m57Nb7RbUulsR@ADZja;!IC=(QsS5T!DqiJD|SaeDZZmnzy#C9>UC7VNd zra}jdZe8L0$u7#nfrSGjVQ00EO&aK8!m~EVLne{OP zh6-=NY=a^~@XeSG@J2WpOt8Be*_WGUFfl~S2q#d8ttBbyszyL$Yh)G326duv7yJ}? z;dK%5B1MHuDivpG)yN%;_2!qtdd2<_Gc6=@lFu2}gAhN&jOYX+JvuFLr;_~`0}Mq6 zYZhwZhR_t2IBOP^Sf$$O3M-Q)Lb;{{i6iC`eKCe|Im6ptX15_Ewy(abF+)Bz zi3#ImYbmorq^)SD)s$9`rPfSN}enVAF`Os|l=Wez; z4hbGSV!|FvkLk!SEsZJpV$0xw^Uxbwhq}jc+=|`tYBN@j%&?}?OVOe9idZEBr-`d_ zXma0ZRjY)S)4T$yJR*gg%2!fYlii1;@|Cz->8J9QYc$E}C6%v0DnCwAdFFc+R0BT7 z#@$ebq@Da$L?^|xY8}Cn4B^ghuLrUNN)toMi~JpBNTThANHL=e4zI;Z;g~VdrEd!g zo50MFftk*Sna;<`R6VR+X`0Q5X)yU5&MdlpIrb6bF+Ru(9YLHw$0n)iguD1?UXR>9 zFh3{=UEG}_{A?gwCCR~Qm`d;z48gT51PKv!8RZQW!{+_E1OV8Gs}uOFF0rOy4v+UD zA6Y>a5#kAvAHW!-HIOZlCiGM0g%l15;T(}C8dm$4!70|6snMC34KuCd(+DP7pD%Iu zEanv;14s6DL+58&pV6(w;s9_(Fvdm6+zE}T099#~2f|gQH7@T{C>XpH*RBi*bPQCm zrr1pdBeKp0vgl~$!r|O}aR@iD5VlR`M?zu>sLwLu;r*5l)AK_(Zc_V)M9k-r2v88~ zRTwm;aer2W9aXudU0adK^T|s%mT_t2G1`R>m|&6(}NF6*CwD zkIjN6smt@T00yh9$8@LwgFpx-7!q76G4A;2Y?>10p2I2!BkPdQhQg#Q+6UNB1yF5Z zU^L=(7zRasC|ZRcSZxsqNgTus@QXc-W}z;lO1f79rx|k%%mqSJ3Aef-FEoaRg+{p( zmhGB5gr%8tp)YiXz~^Juv1;qP_{Nx$Qg*q=bv1x)9r~8Wv`GrR2;5RgRfBJ}8P~z* z?wDb{q@^$qt)ugIFN5dubFcroHFp2KNV!Bj9aW^r1OiKq>d%{Qd$1*wk|foft#I3W zt<^}XWeJtn-Wsh6aeeTi(v9#Da;k8}7TBN! zHz=}YP^hzITXrL88P>p)KMSi?$M3y%i&ZM^1|I$OX=4i(KsNZw4{FgC*4vF4pywno zz|L@{>KN1v9v71@oOPTvb(c}yV^p_1Msd?)6lIrD1~Q*fX58GZw+;+^=rh0i!q4^XOd(na1|R+O zLvx(+sUJS`a_Cm8VmB*Jd|~kNTcHN__~kuc{PDC~t%y_{|Hg0c{bcA?>Wy_zoV)J} z-~OUYZs6WOe&)wNop>vvys932;l!B}KYwult=1&zJ#gqtfAjq(&qvT7%ek*hISc?j zaDS_~BNjmFITk`U4upyUsE+u~cYPM3!HT`uq2~J~Kf8VgKXv>P3Jj2wt|?H+@5;}^ zyNXNW^y#xSG&s()bTv4Gk6IxHmP2)%XFtlHXQgNnU1UBKqDw%Yu9{L=R@L%S3hxyP z2sDG!kit#i-bBZd8t#{1dcoU3zorZy%e++zYGV#n!iZ8L{FTD{+%>F5??wa1@Cb!k zbqQ#e#7gCWE}tg-1C5a=`P7j^={c@&v9jIOSc-Lw?Y84uDV5ynurkPlPny%g?E?8d z)}$|Vh)JaM#--mn)=0gr$_r1fV$0ZIU>O^{n6KE6bCQMD4Esjs^$i2c2UK)^LpH^2dnQ1UlT=>UJn+hf_=0;akBDW^^9gN9RXN z5s!}5Tc_$r7)}Ja7#=j%Db&w?W$e5m{tW{pnfQW&ld!NM9W zjN@6>$%*WSDz)svGjq6uDTEluOaSsi_l9+<0i}syiNk?q?^pxZOe9L6WSwt_UV#mzoA7JM$2&XQ%%BevzTG*O|Uy>RB}73K=fI#MYk0&Idr zF9(~SZ?et>n}ggTBtK{xonZDzwqgxTj$Wn`yyJ7MV{@%(j>5#gXh}0i7r|Nd=#|yF z^=wSCNb6)w5`XJ>%z8S8W-do0F~i9yj!i-*w2zjX=3f{g{Z3;)@|&s1Z=g^vPnh$R z3hhE5u`o0PD#xxQ9F0bCP8khx;TfUBu-4U>36`=K2!&@M4(rGmS(YSFMu;M1v8EyA zn2Ifz@g!u4S~I{4`jHo`GR+3J7z2}$c1(B1^(s}HpapR=}aY0J2_U&U}7-((1WjO=z$s5F=z}!pP%6l9i4mB6AVsA!C*N@uo*DL zbnDFQXo=4P442;siCAt|6n306S*XgaAaa;A8MwhuM$gRl1F2vxfIPQ z_~^Oj_gpU)sMA+Vra-sgRUr&v+{qk)ez`qW5>4FAT5De@V96t=FQi@-w%CSzY3_B9n& zeu9}xb%sr9$r@-uBO|)_BFzTb48uehh86~!%7!aI5yLNlAl^_SPslpO?qRSPm?BG} zbv~thD{2mJoY`_-a=wMex=(jwp^}+X8w)39gNCWCS@*7#gAwcCN;NG9R$3QU(4bDR zA&m!cq#?V7V`zlA9m3p({BV{ZU6OJa{r4*O$`O=%X610@&W$d84eA}ZhN}7AMb!J~ zDy7~dtCV^Vt+EcT8lv9syXrlTMtSO$xi}~m9c3=I1m_}~N6W0i)v~GOR!oW^w_rre z++sL7(_9w9AH&=U?^`VPL554`*Pg5nIYClW&X15y=NAXlWx`v7$2GdyC`|nh=V0&` zCqm?gE;*;ZjOaht`ebPAMdzhwAP!fGb0{#VS!bTntkchM76-la(`q!+I=x<5-c!WL*tPaTIW}p$p1zl z;Tzvv$T#9KFd>?4#MAuNvAvWj|JHL7iV&{Bf3-XAS za+&mqonNgui#7)bRN>ki@HjdM`=`cY|9-=nBBAK~yb)z#_C`GAvVUAA+-S;p5nywbQ}L@nyR4-aX0@zLBl6dWz+Zo1{T8?sh^n4q(PA7#)nrE+5imo}eH(9LwD z8Wd|xGGQk&j77%ruaW5Z+et5vcMa)$?P188(|Rg`aDYb>L+=mDeSXs*+Ki~oCmBPV z9Ir%Id<#Iri@S)mp66YY@q1{+Dpnxi3@BFwMsh5HoWW29bg8Hg%XtO)P{$IAn4yT_;KL(^TVPRr9)TDuoWl=(1Bpxu zyWkX`anylL7dXO>+S1kcOk!bdLCGH;`(gi91?qr!hN8q9avx7gLe0U09>+JGI&E7-Y<%KbQ$4K4LrbXI#Q{3G# zhE*(Z^7ar`C$@vHFCCU%y34z}uk};*uq9L6BZ4V@F(OW!K;~Z)kPK&7j7)ei2;aq) z8GNnzk?iUO8D=g=JTVntc$Q_SBekq%cJ+4X~b9z=Ao|h z$c9x9---A%W=8P>98{8SW)za1l72`flu8@FDTI zcmz+@t%`W00?3R<5F@P0cmyY-RwN#Y0F94F#sf`=M8&SnF%yK9+?F+BObxYu{ARu znGG~69^sSEx$($cpv&Ts%Yb6>NDQbt9;pVZiAQRH=EWoPfab>|^MNjpM=l4tA|AN{ zXhA%(0BB)6vJhxdJhBMr%6Q~TpsV7MtAMVKN3I519FHspS`v>e0jiBhYJrxQ+NM(g4&Lk2C@;i$|6LHN_)1U$&a#k!GNlc%%hrc|5WlXhl4-0%&DC zf}fLno|1zrpMRp52N&jGIo z{u*!`_yq8Ez+VU60Q?Q$jlj1g5f9r1G0Ud>VP`HbQdr`QXh5JyrhlTr5xR-?oP`HnU11Q|j!n;v;fQ1K9IKaYt zP&5-S_y!7tEF48Z`8W$tqVNe8{v3r*vhW2IKE=W@6h5t2eg?Z4Y$^Ed zG^-KUGF(l#nsJT8)q-m|t`)de;<^UcwYXN}I?hgCA$XSHIRXRM2^PLV@B+apf^QRi zhv2&eUnBSd!HWccPw-`eX9&JZ@DBvf6a0kWq*pq_($5M0k>H;QenD`S;FkoyBKS4I zY+UD9_-BHDA^2B~n?P#M^WHuD zcrU?y1osm>KyZNIL4x-X93*&%;NRKpy)6BnrT4M)pDg{60DmK8S`QQakRMMIh`xW! z()(HQ2!V+30hSIE93l8H!BK)Q68t5>mk9oh;BN{3C&B+F7$l&Uo?+opg3l5>MsSSa zGX!5D_$a|w2|h^hA%YVGA0zk(!T%w6mf$IZPZNBd;FAQOAb67C3j}{o@Nt6A6C5Y_ z8-gzrkf~3(g}-3oaf1Iv@I1j^5&Sj5{~-7r!E*#p5S%1(p#4 zPO9&V<>uw=I~UiTs84D;v|6;u0cHXF@OcSv7Nd?&}vR939L5*=>yg8km zP?}r7Lr&WT4rrR&A+b)F^C~#!TN!TH}bZmcgqN&5DpPFd4ljd7-`7*D8UMO=f#^^uFf0_CxdCYrGEqhK;1pAT8j)*?`8l1vKY@#LfwO=fWs5&E=yB#;jeAOa zJJ5#q?#CVa0fQ?2g7#O|xeb_ek`~Qrx8Z&or5H-2x(BV3QeqADOdq5DV`3G09qrW) z9D_g67HamA2kYcik@>}`et4%XQy7mrh1d+7f~)!M7*&~`ftRkP z%m61jjlNLY*;#&gbq$-;8nk*Cs!9Ui;VQF>GI!wexq9s(BaKPfBW}n5!q7sOr3P|ZD=pyN_rYSkHC6!&4(m1-4Ev0 zd&4Htm}`n!`CJDY%BH_oaV9H4eCCGt4km4kYf2n9E~%Kk08`~MajXL|e|22|UQ}!t z%8_+6Cas@}nX?$1nd0?M0KiX_X#sv>CcG8Ru7SKUvq8tLt8v{7rbk-s>xuU>jFc*ii;n=tM?;rYdRz9;(np`p3J)S@p(AvJH# z9h|QgjQReYTZ*|e-+Z63RO4?Qu6kSzxEgUS!_|bV8CMIg<c>d>wZ z?ds634(;mDj#Sv9UVf>uMqJBqHQ{Q;)q-oej6^DI(ICH#fXi?-;cCX!f@`^O!;wgZ zEgI!_8DJBxW?U_}mJ7$^h9i**TP%~`CctJ~Ex4AW7bPRtUU{iLLnCf@?V-HALwt8M!7$9F3INioeV8tF%ZBQF=;7uE`NcBPF)7o?c*v zW`~h=EifOzzZ=F6@~BI-(o*=@QrLbeqR~=#&Qf^6Qp8`{_fo7^hyHcwUx)s6=wFBa zb?ASoR;@?>di1YH|9bSVNB?^Cr(a!)wHwgC0sR}$zXAOl(7yrw>64e@1&!$6i2jY} z--!N==--I`^yf?Qj%Db-4E>j(|1$JnhW^XY|5ClC3H_VUzX|=D(7y@&o6!GKy{Q@f zo6)}+{hQIh8U35l|5ClI1^rvlzXknU(7y%!ThRYfy>B`CFGv67=)WBOm!to3^ru(R zGiY5}h+3wmC@neWsO*`LU#8Yfrkdnj^C}f0+TPS;(2h*+7q`SJJcS z9kej5L`_p$l$cy|WcIdB*Gg`Cw$|Ljn6LpCXEb9c;~ZlW;|H}z&e^LI`AAaRjm=y) z)&u54z1Xy5Br)$pDsem3rGD)lh&W4ST{*GzwXB7Vn^+4kpzkK++;t}YT1vyci>>)1 zoegnKtrI#g)|tylXURqBxMxSyc#51Hsh2hGiF*GmhZ_(ccUVuWx)b&OK?gP64PBu2 zG-{c*)L&ZO!nN7Ya5-{=8o9w=UEhK+)!h@g%R>*IcVV-3THQU{;BS#-J9t6eKhWsY zcpE4;idLRzyj1P(fJK>+4&m?|=s?0(8ZS*k{CyTYr_(v%gM>$yN&lyonRT?zmAGz# z*1N>3ZU>CP=a>s8P+Exl+`%w!xfYjo4!vh%^ku$m*t8vNQaMSJIf+RnPaKc)l!rf6 z7!uXk`aIR-pKuKwav{{Ih@1@&SyQEGkjMp8cf&iI&0BQb-HI!JcfgH2&p|UHgL@Ff z?Yi3PQy#YQH~W-|M{zd1r-OcXu31Uf>>qA)gQj@ddha_iP%(qaI?ZYJT_c_~4YU|Iv%4^u|oLnw@mKT?s zkI0_oAO^blo@JyV{q(k|JC}1SM4hj!@b@BTcrb;Z;9lg&N@@1QN?+^4nY2!#6}0~1 zO8-=w2O$|)6*bWJD=ROqZwr2P1)&;@tW79?~#W56Y2ZHwW7!at9*U;@_E7# zeIH#V&7NB2>w7qp)@jx1>?;2}BY#p`2Un}8u-cCmixCWPm%(7Qe|ThJo#Q;(i;J6Q z>$GZfcC}BNxd2ZwoH=yxxTc5$drvvohIDxJW*ub<1j?s?FXud?q^Olq=TLnmNL9^jMi#U<_+?N9`-g$OLwz@@s3@=zvBY|s?cj7LfZxo~Z^V@!ul!j) zRQ}g6$B*L089bPH3ix4}5rnFI1;e;0EU*}!3v{4vjMh&cFqFhzwLqGow(v4 z=$_xYM{rqm*a3I&PkBd5Zg|F{5<>rcnTKk0B>#Mthau|R*FA+DgnZr7igGal?Pyt@( z!eD&>uXOQdFCU5U1eFI|))CZ@gH`M5n;mvcp1@$#fFbU=!@HMtik_8c07tVC5g&`Jv&Ah zfL;6q?Rc6Ev6`L(zT{`9`9mTv;l?BsoT$ z;R5Z?3~B!|KCibRA%(ij!8#=6XT8F?kFtE$9gGk18FC25>WMF&Jd1Z-wUSpVsudT1 zT=8P^>5@KMkK%P%BL1h`!Z8%|O&9{$*BJD1niWvx%fM4P_D#5mZ+0-W`ZV6VmDlMd z+z|Tr{y;OYcR9TqJ@^xXl!7T5ep+dN{M_x}5VXRd5Uoh;Y(8n8(;zr!G?96KFZ}C8 zXY?a(;iy}9+AW+!VVqCLdWoN7GMuJC+^7FuiG2=OB)Q-g4*mm#bz6dhb(A+;QoM2R z4^`izzITyXHgAF0pZ16F;V!guf1!>L4%t^ai9 zT5a;3-N_xbJNlCN*XXHiZGtZ#)Hle@HJx}Z(5~K0I+w_VjOWN^|o=dE;yDFib_axQ^-Y)3BC$V((>m=d6O0jIyr4SfH@p*4sEWdQ+ z<4ug?YR4QqXsV37rLp3gF*`Wc8bM+5B1iL*Y&}A6?_H0TD_`gMd>v$DigeE8;C+2N zYTMf6Uwx0CG~_P+=l6tL-ECY;SkmaWA!3D>_^?4_-f`vD3!8RPaCEJ8JQso!)MgvbE}! zfcYpW(af2`ci!-<$N!3-b=}w^jbhcjSHI0;JgSNbA%@lt<$V52@RS41UO)Cw!)?R= zaxeA{3NvTyfuN+h7n!T0$mDwJ#)kUK{+lh0=@x6b6m13k19MFIYV~E(Q>K^-NVR>r zbfTfYt;23_>+Z|d1m>XAASn&zja<>xIR7FsM42w18UNL3mtVxkhWGABX5rfXe9Oe0 ziBvk(-;?gk-m&xwWqOg!apv84zm5`H9A!cCYuB2*OJU*bP&XvRD=rsZQd|$}CLrCF zueb9JSm3Uj?FWNw`!2gD;e>#BS-ffE>e)SbOCm$qNbe6_Ja@Fd@VynujwNfyR^&zI zkWx+UMJA#$yt`n9jX33J; z6kasc)|2k&>&6;6+U}sUJG~=;-GV~?>r_^+dVLh!cd)D(nz70ISFCB`&wd`~yo;r^ z^iFx@N=aDP^rdA#-1T|g+3L7W(>r%!Y17xfKCYODc(3gZZ77I{1X|}^zwv@7A$qD8 z`i8G7l#cTf;F5v~Id20lEtrt=0^zd42>D4=d0|!yyeWBH;glRLRTNIiQIol`AP)$> z$hoozq#Ujyg&EIZO2!v9QPh;fd!{FBDo9O2$9JjdmcpsIZ)le6d14XR^WSPb>4w7D z^Ik_hxiD81&8b9lN)d$gch^(jUbv9%E;I0sX;1EHZGRH_zLloGp`Zcsc9Ltcdd?_p z&iR_1xwRn1T*nT)%Wc;6MWHA!l&dN%O1a!oW3%5<5L;uvO?^&b^Cs{L_PLvj!KUZf zmlekt61QT7`J6u)stb$ro^UnA5l$w`v}3smv{b~i%r{8!R0pvq{IZZ3}0+q$7byTc>Cvans2$1UG)oyhfN z>}!f-p0&IBQeEnG+t(Jhjth_N?RdU-gWbQ?&h#X+S=aKb3Y$QRwC6{w3rmbhZCx^h zw;zMOHHFjK+P9-S*$$zt!fAQ-ZM~&nM~wHSL_}^6e0!`dETy9I;(guS>Mh+q*>#1> zu1G?U>kHc?h*&fBsg?o^qnCC%n zDD2S04~mim^yan{PH$VE1aR0U*O%Q|xYzj0^+tSC;f;l_S?l-N?RfN?PHpMS;SrO4 zW8ox+F4fx#_iZ`cQH$#K!j?X?Ht-~ew|MQxnahWvrXyFTMN^dem2pbcy^VY)HS)0!Gq_bA4|80e3 z<{ll9@9l+!b45(PkRjyS3UhcxZY{ndBGhgxEMU0QdU}#MAhoyG7WFRBa4U4^ClN^pGPC<~yQt6Ig*^vQT*`XURoHeR zKxtz~cQKqsxZ2ne?@n~C$JbGM3d^Me{K?m6v#G)!E+~2oV(G#j8M%ZQzj})kSe;O~ zrx;dP%Wn;}=US6FnH8DhaG1*4scc_1TO1A@YRay;Hx;y9Q|4IL*NX!L%-EaLIeYzH z6=C~|F>%-R;cLRkmiHE8;>wzGdof~P{_3=^7*-aNJQ3|L8Z}zu9mTMMYtnZXmd`3@ zafxk8W^;EG#~8}tltaI(7#U^Uw(l%PoKjn;{l%EKiqw`=cfUmX0lgSW+oojauAI=j zOMhz-0)fz5+nuy=$dt<^+Phq1->nzJ58YJj9=#YTkxOlJAN~yMUcDHu=#t!qZ!CA) z_Z5XrxOHxuom2L|UoS><@D6+*&4)@UY#uk`L29DY=1lo;QI?s&^y4EZdtdHIfiuU-+-~EKM`RWFNP!7} zLu+d$o!+@+r+O6lQN6HTvqN)xqVr<~&P1P*>`Mm=oHQ=EOd^%Vb{C%W@d6j9;S`0@ zPw0hxEp#|p9?y%xx8^dR)C)Vs!SjqvSISly^rs4(h%T{!n}1p_Y=$GiLCuOy { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken__getWithdrawnAmountAndFeesResult { + value0: BigInt; + value1: BigInt; + + constructor(value0: BigInt, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getWithdrawnAmount(): BigInt { + return this.value0; + } + + getFees(): BigInt { + return this.value1; + } +} + +export class LToken__withdrawalQueueResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken extends ethereum.SmartContract { + static bind(address: Address): LToken { + return new LToken("LToken", address); + } + + 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()); + } + + depositFor(account: Address, amount: BigInt): boolean { + let result = super.call( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_depositFor( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + feesRateUD7x3(): BigInt { + let result = super.call("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + + return result[0].toBigInt(); + } + + try_feesRateUD7x3(): ethereum.CallResult { + let result = super.tryCall("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + frozenRequests(param0: BigInt): LToken__frozenRequestsResult { + let result = super.call( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__frozenRequestsResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_frozenRequests( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__frozenRequestsResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + fund(): Address { + let result = super.call("fund", "fund():(address)", []); + + return result[0].toAddress(); + } + + try_fund(): ethereum.CallResult
{ + let result = super.tryCall("fund", "fund():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + getAPR(): i32 { + let result = super.call("getAPR", "getAPR():(uint16)", []); + + return result[0].toI32(); + } + + try_getAPR(): ethereum.CallResult { + let result = super.tryCall("getAPR", "getAPR():(uint16)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + getExpectedRetained(): BigInt { + let result = super.call( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_getExpectedRetained(): ethereum.CallResult { + let result = super.tryCall( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): LToken__getWithdrawnAmountAndFeesResult { + let result = super.call( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return new LToken__getWithdrawnAmountAndFeesResult( + result[0].toBigInt(), + result[1].toBigInt(), + ); + } + + try_getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__getWithdrawnAmountAndFeesResult( + value[0].toBigInt(), + value[1].toBigInt(), + ), + ); + } + + globalBlacklist(): Address { + let result = super.call( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + + return result[0].toAddress(); + } + + try_globalBlacklist(): ethereum.CallResult
{ + let result = super.tryCall( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalPause(): Address { + let result = super.call("globalPause", "globalPause():(address)", []); + + return result[0].toAddress(); + } + + try_globalPause(): ethereum.CallResult
{ + let result = super.tryCall("globalPause", "globalPause():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + invested(): Address { + let result = super.call("invested", "invested():(address)", []); + + return result[0].toAddress(); + } + + try_invested(): ethereum.CallResult
{ + let result = super.tryCall("invested", "invested():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + ldyStaking(): Address { + let result = super.call("ldyStaking", "ldyStaking():(address)", []); + + return result[0].toAddress(); + } + + try_ldyStaking(): ethereum.CallResult
{ + let result = super.tryCall("ldyStaking", "ldyStaking():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + 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()); + } + + paused(): boolean { + let result = super.call("paused", "paused():(bool)", []); + + return result[0].toBoolean(); + } + + try_paused(): ethereum.CallResult { + let result = super.tryCall("paused", "paused():(bool)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } + + realBalanceOf(account: Address): BigInt { + let result = super.call( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_realBalanceOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + realTotalSupply(): BigInt { + let result = super.call( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_realTotalSupply(): ethereum.CallResult { + let result = super.tryCall( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + retentionRateUD7x3(): BigInt { + let result = super.call( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + + return result[0].toBigInt(); + } + + try_retentionRateUD7x3(): ethereum.CallResult { + let result = super.tryCall( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + rewardsRedirectsFromTo(param0: Address): Address { + let result = super.call( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsFromTo(param0: Address): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + rewardsRedirectsToFrom(param0: Address, param1: BigInt): Address { + let result = super.call( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsToFrom( + param0: Address, + param1: BigInt, + ): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + 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()); + } + + totalQueued(): BigInt { + let result = super.call("totalQueued", "totalQueued():(uint256)", []); + + return result[0].toBigInt(); + } + + try_totalQueued(): ethereum.CallResult { + let result = super.tryCall("totalQueued", "totalQueued():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + 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(to: Address, amount: BigInt): boolean { + let result = super.call("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + + return result[0].toBoolean(); + } + + try_transfer(to: Address, amount: BigInt): ethereum.CallResult { + let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transferFrom(from: Address, to: Address, amount: BigInt): boolean { + let result = super.call( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_transferFrom( + from: Address, + to: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transfersListeners(param0: BigInt): Address { + let result = super.call( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return result[0].toAddress(); + } + + try_transfersListeners(param0: BigInt): ethereum.CallResult
{ + let result = super.tryCall( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unclaimedFees(): BigInt { + let result = super.call("unclaimedFees", "unclaimedFees():(uint256)", []); + + return result[0].toBigInt(); + } + + try_unclaimedFees(): ethereum.CallResult { + let result = super.tryCall( + "unclaimedFees", + "unclaimedFees():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + underlying(): Address { + let result = super.call("underlying", "underlying():(address)", []); + + return result[0].toAddress(); + } + + try_underlying(): ethereum.CallResult
{ + let result = super.tryCall("underlying", "underlying():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unmintedRewardsOf(account: Address): BigInt { + let result = super.call( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_unmintedRewardsOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + usableUnderlyings(): BigInt { + let result = super.call( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_usableUnderlyings(): ethereum.CallResult { + let result = super.tryCall( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawTo(account: Address, amount: BigInt): boolean { + let result = super.call( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_withdrawTo( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + withdrawalQueue(param0: BigInt): LToken__withdrawalQueueResult { + let result = super.call( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__withdrawalQueueResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_withdrawalQueue( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__withdrawalQueueResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + withdrawalQueueCursor(): BigInt { + let result = super.call( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_withdrawalQueueCursor(): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawer(): Address { + let result = super.call("withdrawer", "withdrawer():(address)", []); + + return result[0].toAddress(); + } + + try_withdrawer(): ethereum.CallResult
{ + let result = super.tryCall("withdrawer", "withdrawer():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } +} + +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 CancelWithdrawalRequestCall extends ethereum.Call { + get inputs(): CancelWithdrawalRequestCall__Inputs { + return new CancelWithdrawalRequestCall__Inputs(this); + } + + get outputs(): CancelWithdrawalRequestCall__Outputs { + return new CancelWithdrawalRequestCall__Outputs(this); + } +} + +export class CancelWithdrawalRequestCall__Inputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class CancelWithdrawalRequestCall__Outputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } +} + +export class ClaimFeesCall extends ethereum.Call { + get inputs(): ClaimFeesCall__Inputs { + return new ClaimFeesCall__Inputs(this); + } + + get outputs(): ClaimFeesCall__Outputs { + return new ClaimFeesCall__Outputs(this); + } +} + +export class ClaimFeesCall__Inputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +export class ClaimFeesCall__Outputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +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 DepositCall extends ethereum.Call { + get inputs(): DepositCall__Inputs { + return new DepositCall__Inputs(this); + } + + get outputs(): DepositCall__Outputs { + return new DepositCall__Outputs(this); + } +} + +export class DepositCall__Inputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class DepositCall__Outputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get globalPause_(): Address { + return this._call.inputValues[1].value.toAddress(); + } + + get globalBlacklist_(): Address { + return this._call.inputValues[2].value.toAddress(); + } + + get ldyStaking_(): Address { + return this._call.inputValues[3].value.toAddress(); + } + + get underlyingToken(): Address { + return this._call.inputValues[4].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class InstantWithdrawalCall extends ethereum.Call { + get inputs(): InstantWithdrawalCall__Inputs { + return new InstantWithdrawalCall__Inputs(this); + } + + get outputs(): InstantWithdrawalCall__Outputs { + return new InstantWithdrawalCall__Outputs(this); + } +} + +export class InstantWithdrawalCall__Inputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class InstantWithdrawalCall__Outputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } +} + +export class ListenToTransfersCall extends ethereum.Call { + get inputs(): ListenToTransfersCall__Inputs { + return new ListenToTransfersCall__Inputs(this); + } + + get outputs(): ListenToTransfersCall__Outputs { + return new ListenToTransfersCall__Outputs(this); + } +} + +export class ListenToTransfersCall__Inputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class ListenToTransfersCall__Outputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } +} + +export class ProcessBigQueuedRequestCall extends ethereum.Call { + get inputs(): ProcessBigQueuedRequestCall__Inputs { + return new ProcessBigQueuedRequestCall__Inputs(this); + } + + get outputs(): ProcessBigQueuedRequestCall__Outputs { + return new ProcessBigQueuedRequestCall__Outputs(this); + } +} + +export class ProcessBigQueuedRequestCall__Inputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class ProcessBigQueuedRequestCall__Outputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall extends ethereum.Call { + get inputs(): ProcessQueuedRequestsCall__Inputs { + return new ProcessQueuedRequestsCall__Inputs(this); + } + + get outputs(): ProcessQueuedRequestsCall__Outputs { + return new ProcessQueuedRequestsCall__Outputs(this); + } +} + +export class ProcessQueuedRequestsCall__Inputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall__Outputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class RecoverERC20Call extends ethereum.Call { + get inputs(): RecoverERC20Call__Inputs { + return new RecoverERC20Call__Inputs(this); + } + + get outputs(): RecoverERC20Call__Outputs { + return new RecoverERC20Call__Outputs(this); + } +} + +export class RecoverERC20Call__Inputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } + + get tokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get amount(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } +} + +export class RecoverERC20Call__Outputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } +} + +export class RecoverUnderlyingCall extends ethereum.Call { + get inputs(): RecoverUnderlyingCall__Inputs { + return new RecoverUnderlyingCall__Inputs(this); + } + + get outputs(): RecoverUnderlyingCall__Outputs { + return new RecoverUnderlyingCall__Outputs(this); + } +} + +export class RecoverUnderlyingCall__Inputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RecoverUnderlyingCall__Outputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RepatriateCall extends ethereum.Call { + get inputs(): RepatriateCall__Inputs { + return new RepatriateCall__Inputs(this); + } + + get outputs(): RepatriateCall__Outputs { + return new RepatriateCall__Outputs(this); + } +} + +export class RepatriateCall__Inputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RepatriateCall__Outputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } +} + +export class RequestWithdrawalCall extends ethereum.Call { + get inputs(): RequestWithdrawalCall__Inputs { + return new RequestWithdrawalCall__Inputs(this); + } + + get outputs(): RequestWithdrawalCall__Outputs { + return new RequestWithdrawalCall__Outputs(this); + } +} + +export class RequestWithdrawalCall__Inputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RequestWithdrawalCall__Outputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } +} + +export class SetAPRCall extends ethereum.Call { + get inputs(): SetAPRCall__Inputs { + return new SetAPRCall__Inputs(this); + } + + get outputs(): SetAPRCall__Outputs { + return new SetAPRCall__Outputs(this); + } +} + +export class SetAPRCall__Inputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } + + get aprUD7x3(): i32 { + return this._call.inputValues[0].value.toI32(); + } +} + +export class SetAPRCall__Outputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } +} + +export class SetFeesRateCall extends ethereum.Call { + get inputs(): SetFeesRateCall__Inputs { + return new SetFeesRateCall__Inputs(this); + } + + get outputs(): SetFeesRateCall__Outputs { + return new SetFeesRateCall__Outputs(this); + } +} + +export class SetFeesRateCall__Inputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } + + get feesRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetFeesRateCall__Outputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } +} + +export class SetFundCall extends ethereum.Call { + get inputs(): SetFundCall__Inputs { + return new SetFundCall__Inputs(this); + } + + get outputs(): SetFundCall__Outputs { + return new SetFundCall__Outputs(this); + } +} + +export class SetFundCall__Inputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } + + get fund_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetFundCall__Outputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } +} + +export class SetLDYStakingCall extends ethereum.Call { + get inputs(): SetLDYStakingCall__Inputs { + return new SetLDYStakingCall__Inputs(this); + } + + get outputs(): SetLDYStakingCall__Outputs { + return new SetLDYStakingCall__Outputs(this); + } +} + +export class SetLDYStakingCall__Inputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } + + get ldyStakingAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetLDYStakingCall__Outputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } +} + +export class SetRetentionRateCall extends ethereum.Call { + get inputs(): SetRetentionRateCall__Inputs { + return new SetRetentionRateCall__Inputs(this); + } + + get outputs(): SetRetentionRateCall__Outputs { + return new SetRetentionRateCall__Outputs(this); + } +} + +export class SetRetentionRateCall__Inputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } + + get retentionRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetRetentionRateCall__Outputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } +} + +export class SetWithdrawerCall extends ethereum.Call { + get inputs(): SetWithdrawerCall__Inputs { + return new SetWithdrawerCall__Inputs(this); + } + + get outputs(): SetWithdrawerCall__Outputs { + return new SetWithdrawerCall__Outputs(this); + } +} + +export class SetWithdrawerCall__Inputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } + + get withdrawer_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetWithdrawerCall__Outputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } +} + +export class StartRewardsRedirectionCall extends ethereum.Call { + get inputs(): StartRewardsRedirectionCall__Inputs { + return new StartRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StartRewardsRedirectionCall__Outputs { + return new StartRewardsRedirectionCall__Outputs(this); + } +} + +export class StartRewardsRedirectionCall__Inputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StartRewardsRedirectionCall__Outputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } +} + +export class StopRewardsRedirectionCall extends ethereum.Call { + get inputs(): StopRewardsRedirectionCall__Inputs { + return new StopRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StopRewardsRedirectionCall__Outputs { + return new StopRewardsRedirectionCall__Outputs(this); + } +} + +export class StopRewardsRedirectionCall__Inputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StopRewardsRedirectionCall__Outputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + 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 to(): 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 from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): 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 UnlistenToTransfersCall extends ethereum.Call { + get inputs(): UnlistenToTransfersCall__Inputs { + return new UnlistenToTransfersCall__Inputs(this); + } + + get outputs(): UnlistenToTransfersCall__Outputs { + return new UnlistenToTransfersCall__Outputs(this); + } +} + +export class UnlistenToTransfersCall__Inputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UnlistenToTransfersCall__Outputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} diff --git a/subgraph/generated/LTokenSignaler/LTokenSignaler.ts b/subgraph/generated/LTokenSignaler/LTokenSignaler.ts new file mode 100644 index 00000000..c3723910 --- /dev/null +++ b/subgraph/generated/LTokenSignaler/LTokenSignaler.ts @@ -0,0 +1,332 @@ +// 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 AdminChanged extends ethereum.Event { + get params(): AdminChanged__Params { + return new AdminChanged__Params(this); + } +} + +export class AdminChanged__Params { + _event: AdminChanged; + + constructor(event: AdminChanged) { + this._event = event; + } + + get previousAdmin(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get newAdmin(): Address { + return this._event.parameters[1].value.toAddress(); + } +} + +export class BeaconUpgraded extends ethereum.Event { + get params(): BeaconUpgraded__Params { + return new BeaconUpgraded__Params(this); + } +} + +export class BeaconUpgraded__Params { + _event: BeaconUpgraded; + + constructor(event: BeaconUpgraded) { + this._event = event; + } + + get beacon(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Initialized extends ethereum.Event { + get params(): Initialized__Params { + return new Initialized__Params(this); + } +} + +export class Initialized__Params { + _event: Initialized; + + constructor(event: Initialized) { + this._event = event; + } + + get version(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class LTokenSignalEvent extends ethereum.Event { + get params(): LTokenSignalEvent__Params { + return new LTokenSignalEvent__Params(this); + } +} + +export class LTokenSignalEvent__Params { + _event: LTokenSignalEvent; + + constructor(event: LTokenSignalEvent) { + this._event = event; + } + + get lTokenAddress(): Address { + return this._event.parameters[0].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 Upgraded extends ethereum.Event { + get params(): Upgraded__Params { + return new Upgraded__Params(this); + } +} + +export class Upgraded__Params { + _event: Upgraded; + + constructor(event: Upgraded) { + this._event = event; + } + + get implementation(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class LTokenSignaler extends ethereum.SmartContract { + static bind(address: Address): LTokenSignaler { + return new LTokenSignaler("LTokenSignaler", address); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class SignalLTokenCall extends ethereum.Call { + get inputs(): SignalLTokenCall__Inputs { + return new SignalLTokenCall__Inputs(this); + } + + get outputs(): SignalLTokenCall__Outputs { + return new SignalLTokenCall__Outputs(this); + } +} + +export class SignalLTokenCall__Inputs { + _call: SignalLTokenCall; + + constructor(call: SignalLTokenCall) { + this._call = call; + } + + get lTokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SignalLTokenCall__Outputs { + _call: SignalLTokenCall; + + constructor(call: SignalLTokenCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} diff --git a/subgraph/generated/PreMining/PreMining.ts b/subgraph/generated/PreMining/PreMining.ts new file mode 100644 index 00000000..955c9046 --- /dev/null +++ b/subgraph/generated/PreMining/PreMining.ts @@ -0,0 +1,1092 @@ +// 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 Lock extends ethereum.Event { + get params(): Lock__Params { + return new Lock__Params(this); + } +} + +export class Lock__Params { + _event: Lock; + + constructor(event: Lock) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get amount(): BigInt { + return this._event.parameters[1].value.toBigInt(); + } + + get duration(): i32 { + return this._event.parameters[2].value.toI32(); + } +} + +export class OwnershipTransferStarted extends ethereum.Event { + get params(): OwnershipTransferStarted__Params { + return new OwnershipTransferStarted__Params(this); + } +} + +export class OwnershipTransferStarted__Params { + _event: OwnershipTransferStarted; + + constructor(event: OwnershipTransferStarted) { + 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 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 Paused extends ethereum.Event { + get params(): Paused__Params { + return new Paused__Params(this); + } +} + +export class Paused__Params { + _event: Paused; + + constructor(event: Paused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Unpaused extends ethereum.Event { + get params(): Unpaused__Params { + return new Unpaused__Params(this); + } +} + +export class Unpaused__Params { + _event: Unpaused; + + constructor(event: Unpaused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class PreMining__accountsLocksResult { + value0: BigInt; + value1: i32; + value2: boolean; + value3: BigInt; + value4: BigInt; + + constructor( + value0: BigInt, + value1: i32, + value2: boolean, + value3: BigInt, + value4: BigInt, + ) { + this.value0 = value0; + this.value1 = value1; + this.value2 = value2; + this.value3 = value3; + this.value4 = value4; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); + map.set( + "value1", + ethereum.Value.fromUnsignedBigInt(BigInt.fromI32(this.value1)), + ); + map.set("value2", ethereum.Value.fromBoolean(this.value2)); + map.set("value3", ethereum.Value.fromUnsignedBigInt(this.value3)); + map.set("value4", ethereum.Value.fromUnsignedBigInt(this.value4)); + return map; + } + + getAmount(): BigInt { + return this.value0; + } + + getDuration(): i32 { + return this.value1; + } + + getHasUnlocked(): boolean { + return this.value2; + } + + getClaimedRewards(): BigInt { + return this.value3; + } + + getLockEndTimestamp(): BigInt { + return this.value4; + } +} + +export class PreMining extends ethereum.SmartContract { + static bind(address: Address): PreMining { + return new PreMining("PreMining", address); + } + + accountsLocks(param0: Address): PreMining__accountsLocksResult { + let result = super.call( + "accountsLocks", + "accountsLocks(address):(uint240,uint8,bool,uint216,uint40)", + [ethereum.Value.fromAddress(param0)], + ); + + return new PreMining__accountsLocksResult( + result[0].toBigInt(), + result[1].toI32(), + result[2].toBoolean(), + result[3].toBigInt(), + result[4].toBigInt(), + ); + } + + try_accountsLocks( + param0: Address, + ): ethereum.CallResult { + let result = super.tryCall( + "accountsLocks", + "accountsLocks(address):(uint240,uint8,bool,uint216,uint40)", + [ethereum.Value.fromAddress(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new PreMining__accountsLocksResult( + value[0].toBigInt(), + value[1].toI32(), + value[2].toBoolean(), + value[3].toBigInt(), + value[4].toBigInt(), + ), + ); + } + + availableToClaim(account: Address): BigInt { + let result = super.call( + "availableToClaim", + "availableToClaim(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_availableToClaim(account: Address): ethereum.CallResult { + let result = super.tryCall( + "availableToClaim", + "availableToClaim(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + claimPhaseStartTimestamp(): BigInt { + let result = super.call( + "claimPhaseStartTimestamp", + "claimPhaseStartTimestamp():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_claimPhaseStartTimestamp(): ethereum.CallResult { + let result = super.tryCall( + "claimPhaseStartTimestamp", + "claimPhaseStartTimestamp():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + eligibleRewardsOf(account: Address): BigInt { + let result = super.call( + "eligibleRewardsOf", + "eligibleRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_eligibleRewardsOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "eligibleRewardsOf", + "eligibleRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + hasClaimPhaseStarted(): boolean { + let result = super.call( + "hasClaimPhaseStarted", + "hasClaimPhaseStarted():(bool)", + [], + ); + + return result[0].toBoolean(); + } + + try_hasClaimPhaseStarted(): ethereum.CallResult { + let result = super.tryCall( + "hasClaimPhaseStarted", + "hasClaimPhaseStarted():(bool)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + hasDepositPhaseEnded(): boolean { + let result = super.call( + "hasDepositPhaseEnded", + "hasDepositPhaseEnded():(bool)", + [], + ); + + return result[0].toBoolean(); + } + + try_hasDepositPhaseEnded(): ethereum.CallResult { + let result = super.tryCall( + "hasDepositPhaseEnded", + "hasDepositPhaseEnded():(bool)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + hasRecoveryPhaseStarted(): boolean { + let result = super.call( + "hasRecoveryPhaseStarted", + "hasRecoveryPhaseStarted():(bool)", + [], + ); + + return result[0].toBoolean(); + } + + try_hasRecoveryPhaseStarted(): ethereum.CallResult { + let result = super.tryCall( + "hasRecoveryPhaseStarted", + "hasRecoveryPhaseStarted():(bool)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + lToken(): Address { + let result = super.call("lToken", "lToken():(address)", []); + + return result[0].toAddress(); + } + + try_lToken(): ethereum.CallResult
{ + let result = super.tryCall("lToken", "lToken():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + ldyToken(): Address { + let result = super.call("ldyToken", "ldyToken():(address)", []); + + return result[0].toAddress(); + } + + try_ldyToken(): ethereum.CallResult
{ + let result = super.tryCall("ldyToken", "ldyToken():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + lockedHardCap(): BigInt { + let result = super.call("lockedHardCap", "lockedHardCap():(uint256)", []); + + return result[0].toBigInt(); + } + + try_lockedHardCap(): ethereum.CallResult { + let result = super.tryCall( + "lockedHardCap", + "lockedHardCap():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + maxDistributedLDY(): BigInt { + let result = super.call( + "maxDistributedLDY", + "maxDistributedLDY():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_maxDistributedLDY(): ethereum.CallResult { + let result = super.tryCall( + "maxDistributedLDY", + "maxDistributedLDY():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + maxLockDuration(): i32 { + let result = super.call("maxLockDuration", "maxLockDuration():(uint8)", []); + + return result[0].toI32(); + } + + try_maxLockDuration(): ethereum.CallResult { + let result = super.tryCall( + "maxLockDuration", + "maxLockDuration():(uint8)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + maxWeight(): BigInt { + let result = super.call("maxWeight", "maxWeight():(uint256)", []); + + return result[0].toBigInt(); + } + + try_maxWeight(): ethereum.CallResult { + let result = super.tryCall("maxWeight", "maxWeight():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + minLockDuration(): i32 { + let result = super.call("minLockDuration", "minLockDuration():(uint8)", []); + + return result[0].toI32(); + } + + try_minLockDuration(): ethereum.CallResult { + let result = super.tryCall( + "minLockDuration", + "minLockDuration():(uint8)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + 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()); + } + + paused(): boolean { + let result = super.call("paused", "paused():(bool)", []); + + return result[0].toBoolean(); + } + + try_paused(): ethereum.CallResult { + let result = super.tryCall("paused", "paused():(bool)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + pendingOwner(): Address { + let result = super.call("pendingOwner", "pendingOwner():(address)", []); + + return result[0].toAddress(); + } + + try_pendingOwner(): ethereum.CallResult
{ + let result = super.tryCall("pendingOwner", "pendingOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + totalLocked(): BigInt { + let result = super.call("totalLocked", "totalLocked():(uint256)", []); + + return result[0].toBigInt(); + } + + try_totalLocked(): ethereum.CallResult { + let result = super.tryCall("totalLocked", "totalLocked():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + underlyingToken(): Address { + let result = super.call( + "underlyingToken", + "underlyingToken():(address)", + [], + ); + + return result[0].toAddress(); + } + + try_underlyingToken(): ethereum.CallResult
{ + let result = super.tryCall( + "underlyingToken", + "underlyingToken():(address)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unlockRequests(param0: BigInt): Address { + let result = super.call( + "unlockRequests", + "unlockRequests(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return result[0].toAddress(); + } + + try_unlockRequests(param0: BigInt): ethereum.CallResult
{ + let result = super.tryCall( + "unlockRequests", + "unlockRequests(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unlockRequestsCursor(): BigInt { + let result = super.call( + "unlockRequestsCursor", + "unlockRequestsCursor():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_unlockRequestsCursor(): ethereum.CallResult { + let result = super.tryCall( + "unlockRequestsCursor", + "unlockRequestsCursor():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + vestingDuration(): i32 { + let result = super.call("vestingDuration", "vestingDuration():(uint8)", []); + + return result[0].toI32(); + } + + try_vestingDuration(): ethereum.CallResult { + let result = super.tryCall( + "vestingDuration", + "vestingDuration():(uint8)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } +} + +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; + } + + get lTokenAddress_(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get maxDistributedLDY_(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } + + get lockedHardCap_(): BigInt { + return this._call.inputValues[2].value.toBigInt(); + } + + get minLockDuration_(): i32 { + return this._call.inputValues[3].value.toI32(); + } + + get maxLockDuration_(): i32 { + return this._call.inputValues[4].value.toI32(); + } + + get vestingDuration_(): i32 { + return this._call.inputValues[5].value.toI32(); + } +} + +export class ConstructorCall__Outputs { + _call: ConstructorCall; + + constructor(call: ConstructorCall) { + this._call = call; + } +} + +export class AcceptOwnershipCall extends ethereum.Call { + get inputs(): AcceptOwnershipCall__Inputs { + return new AcceptOwnershipCall__Inputs(this); + } + + get outputs(): AcceptOwnershipCall__Outputs { + return new AcceptOwnershipCall__Outputs(this); + } +} + +export class AcceptOwnershipCall__Inputs { + _call: AcceptOwnershipCall; + + constructor(call: AcceptOwnershipCall) { + this._call = call; + } +} + +export class AcceptOwnershipCall__Outputs { + _call: AcceptOwnershipCall; + + constructor(call: AcceptOwnershipCall) { + this._call = call; + } +} + +export class ClaimRewardsCall extends ethereum.Call { + get inputs(): ClaimRewardsCall__Inputs { + return new ClaimRewardsCall__Inputs(this); + } + + get outputs(): ClaimRewardsCall__Outputs { + return new ClaimRewardsCall__Outputs(this); + } +} + +export class ClaimRewardsCall__Inputs { + _call: ClaimRewardsCall; + + constructor(call: ClaimRewardsCall) { + this._call = call; + } +} + +export class ClaimRewardsCall__Outputs { + _call: ClaimRewardsCall; + + constructor(call: ClaimRewardsCall) { + this._call = call; + } +} + +export class EndDepositPhaseCall extends ethereum.Call { + get inputs(): EndDepositPhaseCall__Inputs { + return new EndDepositPhaseCall__Inputs(this); + } + + get outputs(): EndDepositPhaseCall__Outputs { + return new EndDepositPhaseCall__Outputs(this); + } +} + +export class EndDepositPhaseCall__Inputs { + _call: EndDepositPhaseCall; + + constructor(call: EndDepositPhaseCall) { + this._call = call; + } +} + +export class EndDepositPhaseCall__Outputs { + _call: EndDepositPhaseCall; + + constructor(call: EndDepositPhaseCall) { + this._call = call; + } +} + +export class InstantUnlockCall extends ethereum.Call { + get inputs(): InstantUnlockCall__Inputs { + return new InstantUnlockCall__Inputs(this); + } + + get outputs(): InstantUnlockCall__Outputs { + return new InstantUnlockCall__Outputs(this); + } +} + +export class InstantUnlockCall__Inputs { + _call: InstantUnlockCall; + + constructor(call: InstantUnlockCall) { + this._call = call; + } +} + +export class InstantUnlockCall__Outputs { + _call: InstantUnlockCall; + + constructor(call: InstantUnlockCall) { + this._call = call; + } +} + +export class LockCall extends ethereum.Call { + get inputs(): LockCall__Inputs { + return new LockCall__Inputs(this); + } + + get outputs(): LockCall__Outputs { + return new LockCall__Outputs(this); + } +} + +export class LockCall__Inputs { + _call: LockCall; + + constructor(call: LockCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } + + get duration(): i32 { + return this._call.inputValues[1].value.toI32(); + } +} + +export class LockCall__Outputs { + _call: LockCall; + + constructor(call: LockCall) { + this._call = call; + } +} + +export class PauseCall extends ethereum.Call { + get inputs(): PauseCall__Inputs { + return new PauseCall__Inputs(this); + } + + get outputs(): PauseCall__Outputs { + return new PauseCall__Outputs(this); + } +} + +export class PauseCall__Inputs { + _call: PauseCall; + + constructor(call: PauseCall) { + this._call = call; + } +} + +export class PauseCall__Outputs { + _call: PauseCall; + + constructor(call: PauseCall) { + this._call = call; + } +} + +export class ProcessUnlockRequestsCall extends ethereum.Call { + get inputs(): ProcessUnlockRequestsCall__Inputs { + return new ProcessUnlockRequestsCall__Inputs(this); + } + + get outputs(): ProcessUnlockRequestsCall__Outputs { + return new ProcessUnlockRequestsCall__Outputs(this); + } +} + +export class ProcessUnlockRequestsCall__Inputs { + _call: ProcessUnlockRequestsCall; + + constructor(call: ProcessUnlockRequestsCall) { + this._call = call; + } +} + +export class ProcessUnlockRequestsCall__Outputs { + _call: ProcessUnlockRequestsCall; + + constructor(call: ProcessUnlockRequestsCall) { + this._call = call; + } +} + +export class RecoverERC20Call extends ethereum.Call { + get inputs(): RecoverERC20Call__Inputs { + return new RecoverERC20Call__Inputs(this); + } + + get outputs(): RecoverERC20Call__Outputs { + return new RecoverERC20Call__Outputs(this); + } +} + +export class RecoverERC20Call__Inputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } + + get tokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get amount(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } +} + +export class RecoverERC20Call__Outputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + 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 RequestUnlockCall extends ethereum.Call { + get inputs(): RequestUnlockCall__Inputs { + return new RequestUnlockCall__Inputs(this); + } + + get outputs(): RequestUnlockCall__Outputs { + return new RequestUnlockCall__Outputs(this); + } +} + +export class RequestUnlockCall__Inputs { + _call: RequestUnlockCall; + + constructor(call: RequestUnlockCall) { + this._call = call; + } +} + +export class RequestUnlockCall__Outputs { + _call: RequestUnlockCall; + + constructor(call: RequestUnlockCall) { + this._call = call; + } +} + +export class SetLDYTokenCall extends ethereum.Call { + get inputs(): SetLDYTokenCall__Inputs { + return new SetLDYTokenCall__Inputs(this); + } + + get outputs(): SetLDYTokenCall__Outputs { + return new SetLDYTokenCall__Outputs(this); + } +} + +export class SetLDYTokenCall__Inputs { + _call: SetLDYTokenCall; + + constructor(call: SetLDYTokenCall) { + this._call = call; + } + + get ldyTokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetLDYTokenCall__Outputs { + _call: SetLDYTokenCall; + + constructor(call: SetLDYTokenCall) { + this._call = call; + } +} + +export class StartClaimPhaseCall extends ethereum.Call { + get inputs(): StartClaimPhaseCall__Inputs { + return new StartClaimPhaseCall__Inputs(this); + } + + get outputs(): StartClaimPhaseCall__Outputs { + return new StartClaimPhaseCall__Outputs(this); + } +} + +export class StartClaimPhaseCall__Inputs { + _call: StartClaimPhaseCall; + + constructor(call: StartClaimPhaseCall) { + this._call = call; + } +} + +export class StartClaimPhaseCall__Outputs { + _call: StartClaimPhaseCall; + + constructor(call: StartClaimPhaseCall) { + this._call = call; + } +} + +export class StartRecoveryPhaseCall extends ethereum.Call { + get inputs(): StartRecoveryPhaseCall__Inputs { + return new StartRecoveryPhaseCall__Inputs(this); + } + + get outputs(): StartRecoveryPhaseCall__Outputs { + return new StartRecoveryPhaseCall__Outputs(this); + } +} + +export class StartRecoveryPhaseCall__Inputs { + _call: StartRecoveryPhaseCall; + + constructor(call: StartRecoveryPhaseCall) { + this._call = call; + } +} + +export class StartRecoveryPhaseCall__Outputs { + _call: StartRecoveryPhaseCall; + + constructor(call: StartRecoveryPhaseCall) { + 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 UnpauseCall extends ethereum.Call { + get inputs(): UnpauseCall__Inputs { + return new UnpauseCall__Inputs(this); + } + + get outputs(): UnpauseCall__Outputs { + return new UnpauseCall__Outputs(this); + } +} + +export class UnpauseCall__Inputs { + _call: UnpauseCall; + + constructor(call: UnpauseCall) { + this._call = call; + } +} + +export class UnpauseCall__Outputs { + _call: UnpauseCall; + + constructor(call: UnpauseCall) { + this._call = call; + } +} diff --git a/subgraph/generated/schema.ts b/subgraph/generated/schema.ts new file mode 100644 index 00000000..d32b64ab --- /dev/null +++ b/subgraph/generated/schema.ts @@ -0,0 +1,685 @@ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. + +import { + TypedMap, + Entity, + Value, + ValueKind, + store, + Bytes, + BigInt, + BigDecimal, +} from "@graphprotocol/graph-ts"; + +export class LToken extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save LToken entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type LToken must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("LToken", id.toString(), this); + } + } + + static loadInBlock(id: string): LToken | null { + return changetype(store.get_in_block("LToken", id)); + } + + static load(id: string): LToken | null { + return changetype(store.get("LToken", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get symbol(): string { + let value = this.get("symbol"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set symbol(value: string) { + this.set("symbol", Value.fromString(value)); + } + + get decimals(): i32 { + let value = this.get("decimals"); + if (!value || value.kind == ValueKind.NULL) { + return 0; + } else { + return value.toI32(); + } + } + + set decimals(value: i32) { + this.set("decimals", Value.fromI32(value)); + } + + get totalMintedRewards(): BigDecimal { + let value = this.get("totalMintedRewards"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set totalMintedRewards(value: BigDecimal) { + this.set("totalMintedRewards", Value.fromBigDecimal(value)); + } + + get tvlUpdates(): TVLChangeLoader { + return new TVLChangeLoader( + "LToken", + this.get("id")!.toString(), + "tvlUpdates", + ); + } + + get aprUpdates(): APRChangeLoader { + return new APRChangeLoader( + "LToken", + this.get("id")!.toString(), + "aprUpdates", + ); + } + + get activities(): ActivityLoader { + return new ActivityLoader( + "LToken", + this.get("id")!.toString(), + "activities", + ); + } + + get rewardsMints(): RewardsMintLoader { + return new RewardsMintLoader( + "LToken", + this.get("id")!.toString(), + "rewardsMints", + ); + } +} + +export class TVLChange extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save TVLChange entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type TVLChange must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("TVLChange", id.toString(), this); + } + } + + static loadInBlock(id: string): TVLChange | null { + return changetype(store.get_in_block("TVLChange", id)); + } + + static load(id: string): TVLChange | null { + return changetype(store.get("TVLChange", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } +} + +export class APRChange extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save APRChange entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type APRChange must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("APRChange", id.toString(), this); + } + } + + static loadInBlock(id: string): APRChange | null { + return changetype(store.get_in_block("APRChange", id)); + } + + static load(id: string): APRChange | null { + return changetype(store.get("APRChange", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get apr(): BigDecimal { + let value = this.get("apr"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set apr(value: BigDecimal) { + this.set("apr", Value.fromBigDecimal(value)); + } +} + +export class Activity extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save Activity entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type Activity must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("Activity", id.toString(), this); + } + } + + static loadInBlock(id: string): Activity | null { + return changetype(store.get_in_block("Activity", id)); + } + + static load(id: string): Activity | null { + return changetype(store.get("Activity", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get requestId(): BigInt { + let value = this.get("requestId"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set requestId(value: BigInt) { + this.set("requestId", Value.fromBigInt(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get account(): Bytes { + let value = this.get("account"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBytes(); + } + } + + set account(value: Bytes) { + this.set("account", Value.fromBytes(value)); + } + + get action(): string { + let value = this.get("action"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set action(value: string) { + this.set("action", Value.fromString(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } + + get amountAfterFees(): BigDecimal { + let value = this.get("amountAfterFees"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amountAfterFees(value: BigDecimal) { + this.set("amountAfterFees", Value.fromBigDecimal(value)); + } + + get status(): string { + let value = this.get("status"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set status(value: string) { + this.set("status", Value.fromString(value)); + } +} + +export class RewardsMint extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save RewardsMint entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type RewardsMint must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("RewardsMint", id.toString(), this); + } + } + + static loadInBlock(id: string): RewardsMint | null { + return changetype( + store.get_in_block("RewardsMint", id), + ); + } + + static load(id: string): RewardsMint | null { + return changetype(store.get("RewardsMint", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get ltoken(): string { + let value = this.get("ltoken"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set ltoken(value: string) { + this.set("ltoken", Value.fromString(value)); + } + + get timestamp(): BigInt { + let value = this.get("timestamp"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigInt(); + } + } + + set timestamp(value: BigInt) { + this.set("timestamp", Value.fromBigInt(value)); + } + + get account(): Bytes { + let value = this.get("account"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBytes(); + } + } + + set account(value: Bytes) { + this.set("account", Value.fromBytes(value)); + } + + get balanceBefore(): BigDecimal { + let value = this.get("balanceBefore"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set balanceBefore(value: BigDecimal) { + this.set("balanceBefore", Value.fromBigDecimal(value)); + } + + get revenue(): BigDecimal { + let value = this.get("revenue"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set revenue(value: BigDecimal) { + this.set("revenue", Value.fromBigDecimal(value)); + } + + get growth(): BigDecimal { + let value = this.get("growth"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set growth(value: BigDecimal) { + this.set("growth", Value.fromBigDecimal(value)); + } +} + +export class PreMiningLock extends Entity { + constructor(id: string) { + super(); + this.set("id", Value.fromString(id)); + } + + save(): void { + let id = this.get("id"); + assert(id != null, "Cannot save PreMiningLock entity without an ID"); + if (id) { + assert( + id.kind == ValueKind.STRING, + `Entities of type PreMiningLock must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`, + ); + store.set("PreMiningLock", id.toString(), this); + } + } + + static loadInBlock(id: string): PreMiningLock | null { + return changetype( + store.get_in_block("PreMiningLock", id), + ); + } + + static load(id: string): PreMiningLock | null { + return changetype(store.get("PreMiningLock", id)); + } + + get id(): string { + let value = this.get("id"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toString(); + } + } + + set id(value: string) { + this.set("id", Value.fromString(value)); + } + + get amount(): BigDecimal { + let value = this.get("amount"); + if (!value || value.kind == ValueKind.NULL) { + throw new Error("Cannot return null for a required field."); + } else { + return value.toBigDecimal(); + } + } + + set amount(value: BigDecimal) { + this.set("amount", Value.fromBigDecimal(value)); + } + + get duration(): i32 { + let value = this.get("duration"); + if (!value || value.kind == ValueKind.NULL) { + return 0; + } else { + return value.toI32(); + } + } + + set duration(value: i32) { + this.set("duration", Value.fromI32(value)); + } +} + +export class TVLChangeLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): TVLChange[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class APRChangeLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): APRChange[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class ActivityLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): Activity[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} + +export class RewardsMintLoader extends Entity { + _entity: string; + _field: string; + _id: string; + + constructor(entity: string, id: string, field: string) { + super(); + this._entity = entity; + this._id = id; + this._field = field; + } + + load(): RewardsMint[] { + let value = store.loadRelated(this._entity, this._id, this._field); + return changetype(value); + } +} diff --git a/subgraph/generated/templates.ts b/subgraph/generated/templates.ts new file mode 100644 index 00000000..642b3681 --- /dev/null +++ b/subgraph/generated/templates.ts @@ -0,0 +1,17 @@ +// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. + +import { + Address, + DataSourceTemplate, + DataSourceContext, +} from "@graphprotocol/graph-ts"; + +export class LToken extends DataSourceTemplate { + static create(address: Address): void { + DataSourceTemplate.create("LToken", [address.toHex()]); + } + + static createWithContext(address: Address, context: DataSourceContext): void { + DataSourceTemplate.createWithContext("LToken", [address.toHex()], context); + } +} diff --git a/subgraph/generated/templates/LToken/LToken.ts b/subgraph/generated/templates/LToken/LToken.ts new file mode 100644 index 00000000..7d510ef9 --- /dev/null +++ b/subgraph/generated/templates/LToken/LToken.ts @@ -0,0 +1,2182 @@ +// 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 APRChangeEvent extends ethereum.Event { + get params(): APRChangeEvent__Params { + return new APRChangeEvent__Params(this); + } +} + +export class APRChangeEvent__Params { + _event: APRChangeEvent; + + constructor(event: APRChangeEvent) { + this._event = event; + } + + get newAPRUD7x3(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class ActivityEvent extends ethereum.Event { + get params(): ActivityEvent__Params { + return new ActivityEvent__Params(this); + } +} + +export class ActivityEvent__Params { + _event: ActivityEvent; + + constructor(event: ActivityEvent) { + this._event = event; + } + + get id(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } + + get account(): Address { + return this._event.parameters[1].value.toAddress(); + } + + get action(): i32 { + return this._event.parameters[2].value.toI32(); + } + + get amount(): BigInt { + return this._event.parameters[3].value.toBigInt(); + } + + get amountAfterFees(): BigInt { + return this._event.parameters[4].value.toBigInt(); + } + + get newStatus(): i32 { + return this._event.parameters[5].value.toI32(); + } + + get newId(): BigInt { + return this._event.parameters[6].value.toBigInt(); + } +} + +export class AdminChanged extends ethereum.Event { + get params(): AdminChanged__Params { + return new AdminChanged__Params(this); + } +} + +export class AdminChanged__Params { + _event: AdminChanged; + + constructor(event: AdminChanged) { + this._event = event; + } + + get previousAdmin(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get newAdmin(): Address { + return this._event.parameters[1].value.toAddress(); + } +} + +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 BeaconUpgraded extends ethereum.Event { + get params(): BeaconUpgraded__Params { + return new BeaconUpgraded__Params(this); + } +} + +export class BeaconUpgraded__Params { + _event: BeaconUpgraded; + + constructor(event: BeaconUpgraded) { + this._event = event; + } + + get beacon(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Initialized extends ethereum.Event { + get params(): Initialized__Params { + return new Initialized__Params(this); + } +} + +export class Initialized__Params { + _event: Initialized; + + constructor(event: Initialized) { + this._event = event; + } + + get version(): i32 { + return this._event.parameters[0].value.toI32(); + } +} + +export class MintedRewardsEvent extends ethereum.Event { + get params(): MintedRewardsEvent__Params { + return new MintedRewardsEvent__Params(this); + } +} + +export class MintedRewardsEvent__Params { + _event: MintedRewardsEvent; + + constructor(event: MintedRewardsEvent) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } + + get balanceBefore(): BigInt { + return this._event.parameters[1].value.toBigInt(); + } + + get rewards(): BigInt { + return this._event.parameters[2].value.toBigInt(); + } +} + +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 Paused extends ethereum.Event { + get params(): Paused__Params { + return new Paused__Params(this); + } +} + +export class Paused__Params { + _event: Paused; + + constructor(event: Paused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class TVLChangeEvent extends ethereum.Event { + get params(): TVLChangeEvent__Params { + return new TVLChangeEvent__Params(this); + } +} + +export class TVLChangeEvent__Params { + _event: TVLChangeEvent; + + constructor(event: TVLChangeEvent) { + this._event = event; + } + + get newTVL(): BigInt { + return this._event.parameters[0].value.toBigInt(); + } +} + +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 Unpaused extends ethereum.Event { + get params(): Unpaused__Params { + return new Unpaused__Params(this); + } +} + +export class Unpaused__Params { + _event: Unpaused; + + constructor(event: Unpaused) { + this._event = event; + } + + get account(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class Upgraded extends ethereum.Event { + get params(): Upgraded__Params { + return new Upgraded__Params(this); + } +} + +export class Upgraded__Params { + _event: Upgraded; + + constructor(event: Upgraded) { + this._event = event; + } + + get implementation(): Address { + return this._event.parameters[0].value.toAddress(); + } +} + +export class LToken__frozenRequestsResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken__getWithdrawnAmountAndFeesResult { + value0: BigInt; + value1: BigInt; + + constructor(value0: BigInt, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getWithdrawnAmount(): BigInt { + return this.value0; + } + + getFees(): BigInt { + return this.value1; + } +} + +export class LToken__withdrawalQueueResult { + value0: Address; + value1: BigInt; + + constructor(value0: Address, value1: BigInt) { + this.value0 = value0; + this.value1 = value1; + } + + toMap(): TypedMap { + let map = new TypedMap(); + map.set("value0", ethereum.Value.fromAddress(this.value0)); + map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); + return map; + } + + getAccount(): Address { + return this.value0; + } + + getAmount(): BigInt { + return this.value1; + } +} + +export class LToken extends ethereum.SmartContract { + static bind(address: Address): LToken { + return new LToken("LToken", address); + } + + 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()); + } + + depositFor(account: Address, amount: BigInt): boolean { + let result = super.call( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_depositFor( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "depositFor", + "depositFor(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + feesRateUD7x3(): BigInt { + let result = super.call("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + + return result[0].toBigInt(); + } + + try_feesRateUD7x3(): ethereum.CallResult { + let result = super.tryCall("feesRateUD7x3", "feesRateUD7x3():(uint32)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + frozenRequests(param0: BigInt): LToken__frozenRequestsResult { + let result = super.call( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__frozenRequestsResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_frozenRequests( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "frozenRequests", + "frozenRequests(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__frozenRequestsResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + fund(): Address { + let result = super.call("fund", "fund():(address)", []); + + return result[0].toAddress(); + } + + try_fund(): ethereum.CallResult
{ + let result = super.tryCall("fund", "fund():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + getAPR(): i32 { + let result = super.call("getAPR", "getAPR():(uint16)", []); + + return result[0].toI32(); + } + + try_getAPR(): ethereum.CallResult { + let result = super.tryCall("getAPR", "getAPR():(uint16)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toI32()); + } + + getExpectedRetained(): BigInt { + let result = super.call( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_getExpectedRetained(): ethereum.CallResult { + let result = super.tryCall( + "getExpectedRetained", + "getExpectedRetained():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): LToken__getWithdrawnAmountAndFeesResult { + let result = super.call( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return new LToken__getWithdrawnAmountAndFeesResult( + result[0].toBigInt(), + result[1].toBigInt(), + ); + } + + try_getWithdrawnAmountAndFees( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "getWithdrawnAmountAndFees", + "getWithdrawnAmountAndFees(address,uint256):(uint256,uint256)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__getWithdrawnAmountAndFeesResult( + value[0].toBigInt(), + value[1].toBigInt(), + ), + ); + } + + globalBlacklist(): Address { + let result = super.call( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + + return result[0].toAddress(); + } + + try_globalBlacklist(): ethereum.CallResult
{ + let result = super.tryCall( + "globalBlacklist", + "globalBlacklist():(address)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalOwner(): Address { + let result = super.call("globalOwner", "globalOwner():(address)", []); + + return result[0].toAddress(); + } + + try_globalOwner(): ethereum.CallResult
{ + let result = super.tryCall("globalOwner", "globalOwner():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + globalPause(): Address { + let result = super.call("globalPause", "globalPause():(address)", []); + + return result[0].toAddress(); + } + + try_globalPause(): ethereum.CallResult
{ + let result = super.tryCall("globalPause", "globalPause():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + invested(): Address { + let result = super.call("invested", "invested():(address)", []); + + return result[0].toAddress(); + } + + try_invested(): ethereum.CallResult
{ + let result = super.tryCall("invested", "invested():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + ldyStaking(): Address { + let result = super.call("ldyStaking", "ldyStaking():(address)", []); + + return result[0].toAddress(); + } + + try_ldyStaking(): ethereum.CallResult
{ + let result = super.tryCall("ldyStaking", "ldyStaking():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + 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()); + } + + 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()); + } + + paused(): boolean { + let result = super.call("paused", "paused():(bool)", []); + + return result[0].toBoolean(); + } + + try_paused(): ethereum.CallResult { + let result = super.tryCall("paused", "paused():(bool)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + proxiableUUID(): Bytes { + let result = super.call("proxiableUUID", "proxiableUUID():(bytes32)", []); + + return result[0].toBytes(); + } + + try_proxiableUUID(): ethereum.CallResult { + let result = super.tryCall( + "proxiableUUID", + "proxiableUUID():(bytes32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBytes()); + } + + realBalanceOf(account: Address): BigInt { + let result = super.call( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_realBalanceOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "realBalanceOf", + "realBalanceOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + realTotalSupply(): BigInt { + let result = super.call( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_realTotalSupply(): ethereum.CallResult { + let result = super.tryCall( + "realTotalSupply", + "realTotalSupply():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + retentionRateUD7x3(): BigInt { + let result = super.call( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + + return result[0].toBigInt(); + } + + try_retentionRateUD7x3(): ethereum.CallResult { + let result = super.tryCall( + "retentionRateUD7x3", + "retentionRateUD7x3():(uint32)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + rewardsRedirectsFromTo(param0: Address): Address { + let result = super.call( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsFromTo(param0: Address): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsFromTo", + "rewardsRedirectsFromTo(address):(address)", + [ethereum.Value.fromAddress(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + rewardsRedirectsToFrom(param0: Address, param1: BigInt): Address { + let result = super.call( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + + return result[0].toAddress(); + } + + try_rewardsRedirectsToFrom( + param0: Address, + param1: BigInt, + ): ethereum.CallResult
{ + let result = super.tryCall( + "rewardsRedirectsToFrom", + "rewardsRedirectsToFrom(address,uint256):(address)", + [ + ethereum.Value.fromAddress(param0), + ethereum.Value.fromUnsignedBigInt(param1), + ], + ); + 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()); + } + + totalQueued(): BigInt { + let result = super.call("totalQueued", "totalQueued():(uint256)", []); + + return result[0].toBigInt(); + } + + try_totalQueued(): ethereum.CallResult { + let result = super.tryCall("totalQueued", "totalQueued():(uint256)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + 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(to: Address, amount: BigInt): boolean { + let result = super.call("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + + return result[0].toBoolean(); + } + + try_transfer(to: Address, amount: BigInt): ethereum.CallResult { + let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ]); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transferFrom(from: Address, to: Address, amount: BigInt): boolean { + let result = super.call( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_transferFrom( + from: Address, + to: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "transferFrom", + "transferFrom(address,address,uint256):(bool)", + [ + ethereum.Value.fromAddress(from), + ethereum.Value.fromAddress(to), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + transfersListeners(param0: BigInt): Address { + let result = super.call( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return result[0].toAddress(); + } + + try_transfersListeners(param0: BigInt): ethereum.CallResult
{ + let result = super.tryCall( + "transfersListeners", + "transfersListeners(uint256):(address)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unclaimedFees(): BigInt { + let result = super.call("unclaimedFees", "unclaimedFees():(uint256)", []); + + return result[0].toBigInt(); + } + + try_unclaimedFees(): ethereum.CallResult { + let result = super.tryCall( + "unclaimedFees", + "unclaimedFees():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + underlying(): Address { + let result = super.call("underlying", "underlying():(address)", []); + + return result[0].toAddress(); + } + + try_underlying(): ethereum.CallResult
{ + let result = super.tryCall("underlying", "underlying():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } + + unmintedRewardsOf(account: Address): BigInt { + let result = super.call( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + + return result[0].toBigInt(); + } + + try_unmintedRewardsOf(account: Address): ethereum.CallResult { + let result = super.tryCall( + "unmintedRewardsOf", + "unmintedRewardsOf(address):(uint256)", + [ethereum.Value.fromAddress(account)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + usableUnderlyings(): BigInt { + let result = super.call( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_usableUnderlyings(): ethereum.CallResult { + let result = super.tryCall( + "usableUnderlyings", + "usableUnderlyings():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawTo(account: Address, amount: BigInt): boolean { + let result = super.call( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + + return result[0].toBoolean(); + } + + try_withdrawTo( + account: Address, + amount: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawTo", + "withdrawTo(address,uint256):(bool)", + [ + ethereum.Value.fromAddress(account), + ethereum.Value.fromUnsignedBigInt(amount), + ], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBoolean()); + } + + withdrawalQueue(param0: BigInt): LToken__withdrawalQueueResult { + let result = super.call( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + + return new LToken__withdrawalQueueResult( + result[0].toAddress(), + result[1].toBigInt(), + ); + } + + try_withdrawalQueue( + param0: BigInt, + ): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueue", + "withdrawalQueue(uint256):(address,uint96)", + [ethereum.Value.fromUnsignedBigInt(param0)], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue( + new LToken__withdrawalQueueResult( + value[0].toAddress(), + value[1].toBigInt(), + ), + ); + } + + withdrawalQueueCursor(): BigInt { + let result = super.call( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + + return result[0].toBigInt(); + } + + try_withdrawalQueueCursor(): ethereum.CallResult { + let result = super.tryCall( + "withdrawalQueueCursor", + "withdrawalQueueCursor():(uint256)", + [], + ); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toBigInt()); + } + + withdrawer(): Address { + let result = super.call("withdrawer", "withdrawer():(address)", []); + + return result[0].toAddress(); + } + + try_withdrawer(): ethereum.CallResult
{ + let result = super.tryCall("withdrawer", "withdrawer():(address)", []); + if (result.reverted) { + return new ethereum.CallResult(); + } + let value = result.value; + return ethereum.CallResult.fromValue(value[0].toAddress()); + } +} + +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 CancelWithdrawalRequestCall extends ethereum.Call { + get inputs(): CancelWithdrawalRequestCall__Inputs { + return new CancelWithdrawalRequestCall__Inputs(this); + } + + get outputs(): CancelWithdrawalRequestCall__Outputs { + return new CancelWithdrawalRequestCall__Outputs(this); + } +} + +export class CancelWithdrawalRequestCall__Inputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class CancelWithdrawalRequestCall__Outputs { + _call: CancelWithdrawalRequestCall; + + constructor(call: CancelWithdrawalRequestCall) { + this._call = call; + } +} + +export class ClaimFeesCall extends ethereum.Call { + get inputs(): ClaimFeesCall__Inputs { + return new ClaimFeesCall__Inputs(this); + } + + get outputs(): ClaimFeesCall__Outputs { + return new ClaimFeesCall__Outputs(this); + } +} + +export class ClaimFeesCall__Inputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +export class ClaimFeesCall__Outputs { + _call: ClaimFeesCall; + + constructor(call: ClaimFeesCall) { + this._call = call; + } +} + +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 DepositCall extends ethereum.Call { + get inputs(): DepositCall__Inputs { + return new DepositCall__Inputs(this); + } + + get outputs(): DepositCall__Outputs { + return new DepositCall__Outputs(this); + } +} + +export class DepositCall__Inputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class DepositCall__Outputs { + _call: DepositCall; + + constructor(call: DepositCall) { + this._call = call; + } +} + +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 InitializeCall extends ethereum.Call { + 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 globalOwner_(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get globalPause_(): Address { + return this._call.inputValues[1].value.toAddress(); + } + + get globalBlacklist_(): Address { + return this._call.inputValues[2].value.toAddress(); + } + + get ldyStaking_(): Address { + return this._call.inputValues[3].value.toAddress(); + } + + get underlyingToken(): Address { + return this._call.inputValues[4].value.toAddress(); + } +} + +export class InitializeCall__Outputs { + _call: InitializeCall; + + constructor(call: InitializeCall) { + this._call = call; + } +} + +export class InstantWithdrawalCall extends ethereum.Call { + get inputs(): InstantWithdrawalCall__Inputs { + return new InstantWithdrawalCall__Inputs(this); + } + + get outputs(): InstantWithdrawalCall__Outputs { + return new InstantWithdrawalCall__Outputs(this); + } +} + +export class InstantWithdrawalCall__Inputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class InstantWithdrawalCall__Outputs { + _call: InstantWithdrawalCall; + + constructor(call: InstantWithdrawalCall) { + this._call = call; + } +} + +export class ListenToTransfersCall extends ethereum.Call { + get inputs(): ListenToTransfersCall__Inputs { + return new ListenToTransfersCall__Inputs(this); + } + + get outputs(): ListenToTransfersCall__Outputs { + return new ListenToTransfersCall__Outputs(this); + } +} + +export class ListenToTransfersCall__Inputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class ListenToTransfersCall__Outputs { + _call: ListenToTransfersCall; + + constructor(call: ListenToTransfersCall) { + this._call = call; + } +} + +export class ProcessBigQueuedRequestCall extends ethereum.Call { + get inputs(): ProcessBigQueuedRequestCall__Inputs { + return new ProcessBigQueuedRequestCall__Inputs(this); + } + + get outputs(): ProcessBigQueuedRequestCall__Outputs { + return new ProcessBigQueuedRequestCall__Outputs(this); + } +} + +export class ProcessBigQueuedRequestCall__Inputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } + + get requestId(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class ProcessBigQueuedRequestCall__Outputs { + _call: ProcessBigQueuedRequestCall; + + constructor(call: ProcessBigQueuedRequestCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall extends ethereum.Call { + get inputs(): ProcessQueuedRequestsCall__Inputs { + return new ProcessQueuedRequestsCall__Inputs(this); + } + + get outputs(): ProcessQueuedRequestsCall__Outputs { + return new ProcessQueuedRequestsCall__Outputs(this); + } +} + +export class ProcessQueuedRequestsCall__Inputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class ProcessQueuedRequestsCall__Outputs { + _call: ProcessQueuedRequestsCall; + + constructor(call: ProcessQueuedRequestsCall) { + this._call = call; + } +} + +export class RecoverERC20Call extends ethereum.Call { + get inputs(): RecoverERC20Call__Inputs { + return new RecoverERC20Call__Inputs(this); + } + + get outputs(): RecoverERC20Call__Outputs { + return new RecoverERC20Call__Outputs(this); + } +} + +export class RecoverERC20Call__Inputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } + + get tokenAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get amount(): BigInt { + return this._call.inputValues[1].value.toBigInt(); + } +} + +export class RecoverERC20Call__Outputs { + _call: RecoverERC20Call; + + constructor(call: RecoverERC20Call) { + this._call = call; + } +} + +export class RecoverUnderlyingCall extends ethereum.Call { + get inputs(): RecoverUnderlyingCall__Inputs { + return new RecoverUnderlyingCall__Inputs(this); + } + + get outputs(): RecoverUnderlyingCall__Outputs { + return new RecoverUnderlyingCall__Outputs(this); + } +} + +export class RecoverUnderlyingCall__Inputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RecoverUnderlyingCall__Outputs { + _call: RecoverUnderlyingCall; + + constructor(call: RecoverUnderlyingCall) { + this._call = call; + } +} + +export class RepatriateCall extends ethereum.Call { + get inputs(): RepatriateCall__Inputs { + return new RepatriateCall__Inputs(this); + } + + get outputs(): RepatriateCall__Outputs { + return new RepatriateCall__Outputs(this); + } +} + +export class RepatriateCall__Inputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RepatriateCall__Outputs { + _call: RepatriateCall; + + constructor(call: RepatriateCall) { + this._call = call; + } +} + +export class RequestWithdrawalCall extends ethereum.Call { + get inputs(): RequestWithdrawalCall__Inputs { + return new RequestWithdrawalCall__Inputs(this); + } + + get outputs(): RequestWithdrawalCall__Outputs { + return new RequestWithdrawalCall__Outputs(this); + } +} + +export class RequestWithdrawalCall__Inputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } + + get amount(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class RequestWithdrawalCall__Outputs { + _call: RequestWithdrawalCall; + + constructor(call: RequestWithdrawalCall) { + this._call = call; + } +} + +export class SetAPRCall extends ethereum.Call { + get inputs(): SetAPRCall__Inputs { + return new SetAPRCall__Inputs(this); + } + + get outputs(): SetAPRCall__Outputs { + return new SetAPRCall__Outputs(this); + } +} + +export class SetAPRCall__Inputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } + + get aprUD7x3(): i32 { + return this._call.inputValues[0].value.toI32(); + } +} + +export class SetAPRCall__Outputs { + _call: SetAPRCall; + + constructor(call: SetAPRCall) { + this._call = call; + } +} + +export class SetFeesRateCall extends ethereum.Call { + get inputs(): SetFeesRateCall__Inputs { + return new SetFeesRateCall__Inputs(this); + } + + get outputs(): SetFeesRateCall__Outputs { + return new SetFeesRateCall__Outputs(this); + } +} + +export class SetFeesRateCall__Inputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } + + get feesRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetFeesRateCall__Outputs { + _call: SetFeesRateCall; + + constructor(call: SetFeesRateCall) { + this._call = call; + } +} + +export class SetFundCall extends ethereum.Call { + get inputs(): SetFundCall__Inputs { + return new SetFundCall__Inputs(this); + } + + get outputs(): SetFundCall__Outputs { + return new SetFundCall__Outputs(this); + } +} + +export class SetFundCall__Inputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } + + get fund_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetFundCall__Outputs { + _call: SetFundCall; + + constructor(call: SetFundCall) { + this._call = call; + } +} + +export class SetLDYStakingCall extends ethereum.Call { + get inputs(): SetLDYStakingCall__Inputs { + return new SetLDYStakingCall__Inputs(this); + } + + get outputs(): SetLDYStakingCall__Outputs { + return new SetLDYStakingCall__Outputs(this); + } +} + +export class SetLDYStakingCall__Inputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } + + get ldyStakingAddress(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetLDYStakingCall__Outputs { + _call: SetLDYStakingCall; + + constructor(call: SetLDYStakingCall) { + this._call = call; + } +} + +export class SetRetentionRateCall extends ethereum.Call { + get inputs(): SetRetentionRateCall__Inputs { + return new SetRetentionRateCall__Inputs(this); + } + + get outputs(): SetRetentionRateCall__Outputs { + return new SetRetentionRateCall__Outputs(this); + } +} + +export class SetRetentionRateCall__Inputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } + + get retentionRateUD7x3_(): BigInt { + return this._call.inputValues[0].value.toBigInt(); + } +} + +export class SetRetentionRateCall__Outputs { + _call: SetRetentionRateCall; + + constructor(call: SetRetentionRateCall) { + this._call = call; + } +} + +export class SetWithdrawerCall extends ethereum.Call { + get inputs(): SetWithdrawerCall__Inputs { + return new SetWithdrawerCall__Inputs(this); + } + + get outputs(): SetWithdrawerCall__Outputs { + return new SetWithdrawerCall__Outputs(this); + } +} + +export class SetWithdrawerCall__Inputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } + + get withdrawer_(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class SetWithdrawerCall__Outputs { + _call: SetWithdrawerCall; + + constructor(call: SetWithdrawerCall) { + this._call = call; + } +} + +export class StartRewardsRedirectionCall extends ethereum.Call { + get inputs(): StartRewardsRedirectionCall__Inputs { + return new StartRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StartRewardsRedirectionCall__Outputs { + return new StartRewardsRedirectionCall__Outputs(this); + } +} + +export class StartRewardsRedirectionCall__Inputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StartRewardsRedirectionCall__Outputs { + _call: StartRewardsRedirectionCall; + + constructor(call: StartRewardsRedirectionCall) { + this._call = call; + } +} + +export class StopRewardsRedirectionCall extends ethereum.Call { + get inputs(): StopRewardsRedirectionCall__Inputs { + return new StopRewardsRedirectionCall__Inputs(this); + } + + get outputs(): StopRewardsRedirectionCall__Outputs { + return new StopRewardsRedirectionCall__Outputs(this); + } +} + +export class StopRewardsRedirectionCall__Inputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + this._call = call; + } + + get from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): Address { + return this._call.inputValues[1].value.toAddress(); + } +} + +export class StopRewardsRedirectionCall__Outputs { + _call: StopRewardsRedirectionCall; + + constructor(call: StopRewardsRedirectionCall) { + 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 to(): 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 from(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get to(): 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 UnlistenToTransfersCall extends ethereum.Call { + get inputs(): UnlistenToTransfersCall__Inputs { + return new UnlistenToTransfersCall__Inputs(this); + } + + get outputs(): UnlistenToTransfersCall__Outputs { + return new UnlistenToTransfersCall__Outputs(this); + } +} + +export class UnlistenToTransfersCall__Inputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } + + get listenerContract(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UnlistenToTransfersCall__Outputs { + _call: UnlistenToTransfersCall; + + constructor(call: UnlistenToTransfersCall) { + this._call = call; + } +} + +export class UpgradeToCall extends ethereum.Call { + get inputs(): UpgradeToCall__Inputs { + return new UpgradeToCall__Inputs(this); + } + + get outputs(): UpgradeToCall__Outputs { + return new UpgradeToCall__Outputs(this); + } +} + +export class UpgradeToCall__Inputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } +} + +export class UpgradeToCall__Outputs { + _call: UpgradeToCall; + + constructor(call: UpgradeToCall) { + this._call = call; + } +} + +export class UpgradeToAndCallCall extends ethereum.Call { + get inputs(): UpgradeToAndCallCall__Inputs { + return new UpgradeToAndCallCall__Inputs(this); + } + + get outputs(): UpgradeToAndCallCall__Outputs { + return new UpgradeToAndCallCall__Outputs(this); + } +} + +export class UpgradeToAndCallCall__Inputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } + + get newImplementation(): Address { + return this._call.inputValues[0].value.toAddress(); + } + + get data(): Bytes { + return this._call.inputValues[1].value.toBytes(); + } +} + +export class UpgradeToAndCallCall__Outputs { + _call: UpgradeToAndCallCall; + + constructor(call: UpgradeToAndCallCall) { + this._call = call; + } +} From fcce1d2b26fb97cbd0d857fed1f61499e08a7599 Mon Sep 17 00:00:00 2001 From: hatem Date: Thu, 29 Feb 2024 14:08:36 +0100 Subject: [PATCH 2/5] adding command OKX to remove subgraph --- .gitignore | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7ec2618b..05b5e70d 100644 --- a/.gitignore +++ b/.gitignore @@ -44,9 +44,9 @@ contracts/hardhat/cache contracts/hardhat/artifacts # TheGraph -#subgraph/build -#subgraph/generated -#subgraph/local-node/data +subgraph/build +subgraph/generated +subgraph/local-node/data # Foundry (TOCONTINUE) # Compiler files diff --git a/package.json b/package.json index 4d2824e6..669524c0 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "graph:linea-remove": "graph remove --node https://graph-deploy.linea.build/ LedgityLabs/LedgityYield", "graph:arbitrum-gen": "cd subgraph && graph codegen ./arbitrum-subgraph.yaml && graph build ./arbitrum-subgraph.yaml", "graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml", - "graph:OKX_X1_testnet-deploy": "graph deploy --node https://www.okx.com/api/v1/x1-testnet/subgraph/ LedgityLabs/LedgityYield ./subgraph/OKX_X1_testnet-subgraph.yaml" + "graph:OKX_X1_Testnet-remove": "graph remove --node https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield/ " }, "dependencies": { "@auth/prisma-adapter": "^1.0.11", From a78224ffdb895ef2285ce87b820bc0479e542534 Mon Sep 17 00:00:00 2001 From: hatem Date: Fri, 1 Mar 2024 11:02:14 +0100 Subject: [PATCH 3/5] Adding okx x1 subgraph with configuration --- .graphclient/index.ts | 384 +- .graphclient/schema.graphql | 370 +- .../OKX_X1_Testnet/introspectionSchema.ts | 10026 ++++++++++++++++ .../sources/OKX_X1_Testnet/schema.graphql | 843 ++ .graphclient/sources/OKX_X1_Testnet/types.ts | 876 ++ .graphclientrc.yml | 11 + 6 files changed, 12446 insertions(+), 64 deletions(-) create mode 100644 .graphclient/sources/OKX_X1_Testnet/introspectionSchema.ts create mode 100644 .graphclient/sources/OKX_X1_Testnet/schema.graphql create mode 100644 .graphclient/sources/OKX_X1_Testnet/types.ts diff --git a/.graphclient/index.ts b/.graphclient/index.ts index eefba6ba..f72cd038 100644 --- a/.graphclient/index.ts +++ b/.graphclient/index.ts @@ -17,10 +17,12 @@ import { getMesh, ExecuteMeshFn, SubscribeMeshFn, MeshContext as BaseMeshContext import { MeshStore, FsStoreStorageAdapter } from '@graphql-mesh/store'; import { path as pathModule } from '@graphql-mesh/cross-helpers'; import { ImportFn } from '@graphql-mesh/types'; -import type { ArbitrumTypes } from './sources/arbitrum/types'; import type { LineaTypes } from './sources/linea/types'; -import * as importedModule$0 from "./sources/arbitrum/introspectionSchema"; -import * as importedModule$1 from "./sources/linea/introspectionSchema"; +import type { ArbitrumTypes } from './sources/arbitrum/types'; +import type { OkxX1TestnetTypes } from './sources/OKX_X1_Testnet/types'; +import * as importedModule$0 from "./sources/OKX_X1_Testnet/introspectionSchema"; +import * as importedModule$1 from "./sources/arbitrum/introspectionSchema"; +import * as importedModule$2 from "./sources/linea/introspectionSchema"; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; @@ -44,6 +46,20 @@ export type Scalars = { }; export type Query = { + x59144_ltoken?: Maybe; + x59144_ltokens: Array; + x59144_tvlchange?: Maybe; + x59144_tvlchanges: Array; + x59144_aprchange?: Maybe; + x59144_aprchanges: Array; + x59144_activity?: Maybe; + x59144_activities: Array; + x59144_rewardsMint?: Maybe; + x59144_rewardsMints: Array; + x59144_preMiningLock?: Maybe; + x59144_preMiningLocks: Array; + /** Access to subgraph metadata */ + x59144__meta?: Maybe<_Meta_>; c42161_ltoken?: Maybe; c42161_ltokens: Array; c42161_tvlchange?: Maybe; @@ -75,6 +91,119 @@ export type Query = { }; +export type Queryx59144_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144__metaArgs = { + block?: InputMaybe; +}; + + export type Queryc42161_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; @@ -301,6 +430,20 @@ export type Queryc59144__metaArgs = { }; export type Subscription = { + x59144_ltoken?: Maybe; + x59144_ltokens: Array; + x59144_tvlchange?: Maybe; + x59144_tvlchanges: Array; + x59144_aprchange?: Maybe; + x59144_aprchanges: Array; + x59144_activity?: Maybe; + x59144_activities: Array; + x59144_rewardsMint?: Maybe; + x59144_rewardsMints: Array; + x59144_preMiningLock?: Maybe; + x59144_preMiningLocks: Array; + /** Access to subgraph metadata */ + x59144__meta?: Maybe<_Meta_>; c42161_ltoken?: Maybe; c42161_ltokens: Array; c42161_tvlchange?: Maybe; @@ -332,6 +475,119 @@ export type Subscription = { }; +export type Subscriptionx59144_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144__metaArgs = { + block?: InputMaybe; +}; + + export type Subscriptionc42161_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; @@ -619,12 +875,12 @@ export type APRChange_filter = { export type APRChange_orderBy = | 'id' | 'ltoken' + | 'timestamp' + | 'apr' | 'ltoken__id' | 'ltoken__symbol' | 'ltoken__decimals' - | 'ltoken__totalMintedRewards' - | 'timestamp' - | 'apr'; + | 'ltoken__totalMintedRewards'; export type Activity = { id: Scalars['ID']; @@ -696,10 +952,6 @@ export type Activity_filter = { timestamp_not_in?: InputMaybe>; account?: InputMaybe; account_not?: InputMaybe; - account_gt?: InputMaybe; - account_lt?: InputMaybe; - account_gte?: InputMaybe; - account_lte?: InputMaybe; account_in?: InputMaybe>; account_not_in?: InputMaybe>; account_contains?: InputMaybe; @@ -730,6 +982,10 @@ export type Activity_filter = { status_not_in?: InputMaybe>; /** Filter for the block changed event. */ _change_block?: InputMaybe; + account_gt?: InputMaybe; + account_lt?: InputMaybe; + account_gte?: InputMaybe; + account_lte?: InputMaybe; and?: InputMaybe>>; or?: InputMaybe>>; }; @@ -738,16 +994,16 @@ export type Activity_orderBy = | 'id' | 'requestId' | 'ltoken' - | 'ltoken__id' - | 'ltoken__symbol' - | 'ltoken__decimals' - | 'ltoken__totalMintedRewards' | 'timestamp' | 'account' | 'action' | 'amount' | 'amountAfterFees' - | 'status'; + | 'status' + | 'ltoken__id' + | 'ltoken__symbol' + | 'ltoken__decimals' + | 'ltoken__totalMintedRewards'; export type BlockChangedFilter = { number_gte: Scalars['Int']; @@ -968,10 +1224,6 @@ export type RewardsMint_filter = { timestamp_not_in?: InputMaybe>; account?: InputMaybe; account_not?: InputMaybe; - account_gt?: InputMaybe; - account_lt?: InputMaybe; - account_gte?: InputMaybe; - account_lte?: InputMaybe; account_in?: InputMaybe>; account_not_in?: InputMaybe>; account_contains?: InputMaybe; @@ -1002,6 +1254,10 @@ export type RewardsMint_filter = { growth_not_in?: InputMaybe>; /** Filter for the block changed event. */ _change_block?: InputMaybe; + account_gt?: InputMaybe; + account_lt?: InputMaybe; + account_gte?: InputMaybe; + account_lte?: InputMaybe; and?: InputMaybe>>; or?: InputMaybe>>; }; @@ -1009,15 +1265,15 @@ export type RewardsMint_filter = { export type RewardsMint_orderBy = | 'id' | 'ltoken' - | 'ltoken__id' - | 'ltoken__symbol' - | 'ltoken__decimals' - | 'ltoken__totalMintedRewards' | 'timestamp' | 'account' | 'balanceBefore' | 'revenue' - | 'growth'; + | 'growth' + | 'ltoken__id' + | 'ltoken__symbol' + | 'ltoken__decimals' + | 'ltoken__totalMintedRewards'; export type TVLChange = { id: Scalars['ID']; @@ -1081,12 +1337,12 @@ export type TVLChange_filter = { export type TVLChange_orderBy = | 'id' | 'ltoken' + | 'timestamp' + | 'amount' | 'ltoken__id' | 'ltoken__symbol' | 'ltoken__decimals' - | 'ltoken__totalMintedRewards' - | 'timestamp' - | 'amount'; + | 'ltoken__totalMintedRewards'; export type _Block_ = { /** The hash of the block */ @@ -1224,7 +1480,6 @@ export type ResolversTypes = ResolversObject<{ Float: ResolverTypeWrapper; ID: ResolverTypeWrapper; Int: ResolverTypeWrapper; - Int8: ResolverTypeWrapper; LToken: ResolverTypeWrapper; LToken_filter: LToken_filter; LToken_orderBy: LToken_orderBy; @@ -1242,6 +1497,7 @@ export type ResolversTypes = ResolversObject<{ _Block_: ResolverTypeWrapper<_Block_>; _Meta_: ResolverTypeWrapper<_Meta_>; _SubgraphErrorPolicy_: _SubgraphErrorPolicy_; + Int8: ResolverTypeWrapper; }>; /** Mapping between all available schema types and the resolvers parents */ @@ -1261,7 +1517,6 @@ export type ResolversParentTypes = ResolversObject<{ Float: Scalars['Float']; ID: Scalars['ID']; Int: Scalars['Int']; - Int8: Scalars['Int8']; LToken: LToken; LToken_filter: LToken_filter; PreMiningLock: PreMiningLock; @@ -1273,6 +1528,7 @@ export type ResolversParentTypes = ResolversObject<{ TVLChange_filter: TVLChange_filter; _Block_: _Block_; _Meta_: _Meta_; + Int8: Scalars['Int8']; }>; export type entityDirectiveArgs = { }; @@ -1292,6 +1548,19 @@ export type derivedFromDirectiveArgs = { export type derivedFromDirectiveResolver = DirectiveResolverFn; export type QueryResolvers = ResolversObject<{ + x59144_ltoken?: Resolver, ParentType, ContextType, RequireFields>; + x59144_ltokens?: Resolver, ParentType, ContextType, RequireFields>; + x59144_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; + x59144_tvlchanges?: Resolver, ParentType, ContextType, RequireFields>; + x59144_aprchange?: Resolver, ParentType, ContextType, RequireFields>; + x59144_aprchanges?: Resolver, ParentType, ContextType, RequireFields>; + x59144_activity?: Resolver, ParentType, ContextType, RequireFields>; + x59144_activities?: Resolver, ParentType, ContextType, RequireFields>; + x59144_rewardsMint?: Resolver, ParentType, ContextType, RequireFields>; + x59144_rewardsMints?: Resolver, ParentType, ContextType, RequireFields>; + x59144_preMiningLock?: Resolver, ParentType, ContextType, RequireFields>; + x59144_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; + x59144__meta?: Resolver, ParentType, ContextType, Partial>; c42161_ltoken?: Resolver, ParentType, ContextType, RequireFields>; c42161_ltokens?: Resolver, ParentType, ContextType, RequireFields>; c42161_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; @@ -1321,6 +1590,19 @@ export type QueryResolvers; export type SubscriptionResolvers = ResolversObject<{ + x59144_ltoken?: SubscriptionResolver, "x59144_ltoken", ParentType, ContextType, RequireFields>; + x59144_ltokens?: SubscriptionResolver, "x59144_ltokens", ParentType, ContextType, RequireFields>; + x59144_tvlchange?: SubscriptionResolver, "x59144_tvlchange", ParentType, ContextType, RequireFields>; + x59144_tvlchanges?: SubscriptionResolver, "x59144_tvlchanges", ParentType, ContextType, RequireFields>; + x59144_aprchange?: SubscriptionResolver, "x59144_aprchange", ParentType, ContextType, RequireFields>; + x59144_aprchanges?: SubscriptionResolver, "x59144_aprchanges", ParentType, ContextType, RequireFields>; + x59144_activity?: SubscriptionResolver, "x59144_activity", ParentType, ContextType, RequireFields>; + x59144_activities?: SubscriptionResolver, "x59144_activities", ParentType, ContextType, RequireFields>; + x59144_rewardsMint?: SubscriptionResolver, "x59144_rewardsMint", ParentType, ContextType, RequireFields>; + x59144_rewardsMints?: SubscriptionResolver, "x59144_rewardsMints", ParentType, ContextType, RequireFields>; + x59144_preMiningLock?: SubscriptionResolver, "x59144_preMiningLock", ParentType, ContextType, RequireFields>; + x59144_preMiningLocks?: SubscriptionResolver, "x59144_preMiningLocks", ParentType, ContextType, RequireFields>; + x59144__meta?: SubscriptionResolver, "x59144__meta", ParentType, ContextType, Partial>; c42161_ltoken?: SubscriptionResolver, "c42161_ltoken", ParentType, ContextType, RequireFields>; c42161_ltokens?: SubscriptionResolver, "c42161_ltokens", ParentType, ContextType, RequireFields>; c42161_tvlchange?: SubscriptionResolver, "c42161_tvlchange", ParentType, ContextType, RequireFields>; @@ -1382,10 +1664,6 @@ export interface BytesScalarConfig extends GraphQLScalarTypeConfig { - name: 'Int8'; -} - export type LTokenResolvers = ResolversObject<{ id?: Resolver; symbol?: Resolver; @@ -1438,6 +1716,10 @@ export type _Meta_Resolvers; }>; +export interface Int8ScalarConfig extends GraphQLScalarTypeConfig { + name: 'Int8'; +} + export type Resolvers = ResolversObject<{ Query?: QueryResolvers; Subscription?: SubscriptionResolvers; @@ -1446,13 +1728,13 @@ export type Resolvers = ResolversObject<{ BigDecimal?: GraphQLScalarType; BigInt?: GraphQLScalarType; Bytes?: GraphQLScalarType; - Int8?: GraphQLScalarType; LToken?: LTokenResolvers; PreMiningLock?: PreMiningLockResolvers; RewardsMint?: RewardsMintResolvers; TVLChange?: TVLChangeResolvers; _Block_?: _Block_Resolvers; _Meta_?: _Meta_Resolvers; + Int8?: GraphQLScalarType; }>; export type DirectiveResolvers = ResolversObject<{ @@ -1461,7 +1743,7 @@ export type DirectiveResolvers = ResolversObject<{ derivedFrom?: derivedFromDirectiveResolver; }>; -export type MeshContext = ArbitrumTypes.Context & LineaTypes.Context & BaseMeshContext; +export type MeshContext = OkxX1TestnetTypes.Context & ArbitrumTypes.Context & LineaTypes.Context & BaseMeshContext; import { fileURLToPath } from '@graphql-mesh/utils'; @@ -1470,12 +1752,15 @@ const baseDir = pathModule.join(pathModule.dirname(fileURLToPath(import.meta.url const importFn: ImportFn = (moduleId: string) => { const relativeModuleId = (pathModule.isAbsolute(moduleId) ? pathModule.relative(baseDir, moduleId) : moduleId).split('\\').join('/').replace(baseDir + '/', ''); switch(relativeModuleId) { - case ".graphclient/sources/arbitrum/introspectionSchema": + case ".graphclient/sources/OKX_X1_Testnet/introspectionSchema": return Promise.resolve(importedModule$0) as T; - case ".graphclient/sources/linea/introspectionSchema": + case ".graphclient/sources/arbitrum/introspectionSchema": return Promise.resolve(importedModule$1) as T; + case ".graphclient/sources/linea/introspectionSchema": + return Promise.resolve(importedModule$2) as T; + default: return Promise.reject(new Error(`Cannot find module '${relativeModuleId}'.`)); } @@ -1508,6 +1793,7 @@ const transforms: MeshTransform[] = []; const additionalEnvelopPlugins: MeshPlugin[] = []; const arbitrumTransforms = []; const lineaTransforms = []; +const okxX1TestnetTransforms = []; const additionalTypeDefs = [] as any[]; const arbitrumHandler = new GraphqlHandler({ name: "arbitrum", @@ -1529,6 +1815,16 @@ const lineaHandler = new GraphqlHandler({ logger: logger.child("linea"), importFn, }); +const okxX1TestnetHandler = new GraphqlHandler({ + name: "OKX_X1_Testnet", + config: {"endpoint":"https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield"}, + baseDir, + cache, + pubsub, + store: sourcesStore.child("OKX_X1_Testnet"), + logger: logger.child("OKX_X1_Testnet"), + importFn, + }); arbitrumTransforms[0] = new PrefixTransform({ apiName: "arbitrum", config: {"mode":"wrap","value":"c42161_","includeRootOperations":true,"includeTypes":false}, @@ -1547,6 +1843,15 @@ lineaTransforms[0] = new PrefixTransform({ importFn, logger, }); +okxX1TestnetTransforms[0] = new PrefixTransform({ + apiName: "OKX_X1_Testnet", + config: {"mode":"wrap","value":"x59144_","includeRootOperations":true,"includeTypes":false}, + baseDir, + cache, + pubsub, + importFn, + logger, + }); sources[0] = { name: 'arbitrum', handler: arbitrumHandler, @@ -1557,6 +1862,11 @@ sources[1] = { handler: lineaHandler, transforms: lineaTransforms } +sources[2] = { + name: 'OKX_X1_Testnet', + handler: okxX1TestnetHandler, + transforms: okxX1TestnetTransforms + } const additionalResolvers = [] as any[] const merger = new(StitchingMerger as any)({ cache, diff --git a/.graphclient/schema.graphql b/.graphclient/schema.graphql index d4aac05d..44fa0437 100644 --- a/.graphclient/schema.graphql +++ b/.graphclient/schema.graphql @@ -13,6 +13,164 @@ directive @subgraphId(id: String!) on OBJECT directive @derivedFrom(field: String!) on FIELD_DEFINITION type Query { + x59144_ltoken( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + x59144_ltokens( + skip: Int = 0 + first: Int = 100 + orderBy: LToken_orderBy + orderDirection: OrderDirection + where: LToken_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [LToken!]! + x59144_tvlchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + x59144_tvlchanges( + skip: Int = 0 + first: Int = 100 + orderBy: TVLChange_orderBy + orderDirection: OrderDirection + where: TVLChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [TVLChange!]! + x59144_aprchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + x59144_aprchanges( + skip: Int = 0 + first: Int = 100 + orderBy: APRChange_orderBy + orderDirection: OrderDirection + where: APRChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [APRChange!]! + x59144_activity( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + x59144_activities( + skip: Int = 0 + first: Int = 100 + orderBy: Activity_orderBy + orderDirection: OrderDirection + where: Activity_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [Activity!]! + x59144_rewardsMint( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + x59144_rewardsMints( + skip: Int = 0 + first: Int = 100 + orderBy: RewardsMint_orderBy + orderDirection: OrderDirection + where: RewardsMint_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [RewardsMint!]! + x59144_preMiningLock( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + x59144_preMiningLocks( + skip: Int = 0 + first: Int = 100 + orderBy: PreMiningLock_orderBy + orderDirection: OrderDirection + where: PreMiningLock_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [PreMiningLock!]! + """Access to subgraph metadata""" + x59144__meta(block: Block_height): _Meta_ c42161_ltoken( id: ID! """ @@ -332,6 +490,164 @@ type Query { } type Subscription { + x59144_ltoken( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + x59144_ltokens( + skip: Int = 0 + first: Int = 100 + orderBy: LToken_orderBy + orderDirection: OrderDirection + where: LToken_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [LToken!]! + x59144_tvlchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + x59144_tvlchanges( + skip: Int = 0 + first: Int = 100 + orderBy: TVLChange_orderBy + orderDirection: OrderDirection + where: TVLChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [TVLChange!]! + x59144_aprchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + x59144_aprchanges( + skip: Int = 0 + first: Int = 100 + orderBy: APRChange_orderBy + orderDirection: OrderDirection + where: APRChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [APRChange!]! + x59144_activity( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + x59144_activities( + skip: Int = 0 + first: Int = 100 + orderBy: Activity_orderBy + orderDirection: OrderDirection + where: Activity_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [Activity!]! + x59144_rewardsMint( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + x59144_rewardsMints( + skip: Int = 0 + first: Int = 100 + orderBy: RewardsMint_orderBy + orderDirection: OrderDirection + where: RewardsMint_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [RewardsMint!]! + x59144_preMiningLock( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + x59144_preMiningLocks( + skip: Int = 0 + first: Int = 100 + orderBy: PreMiningLock_orderBy + orderDirection: OrderDirection + where: PreMiningLock_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [PreMiningLock!]! + """Access to subgraph metadata""" + x59144__meta(block: Block_height): _Meta_ c42161_ltoken( id: ID! """ @@ -712,12 +1028,12 @@ input APRChange_filter { enum APRChange_orderBy { id ltoken + timestamp + apr ltoken__id ltoken__symbol ltoken__decimals ltoken__totalMintedRewards - timestamp - apr } type Activity { @@ -792,10 +1108,6 @@ input Activity_filter { timestamp_not_in: [BigInt!] account: Bytes account_not: Bytes - account_gt: Bytes - account_lt: Bytes - account_gte: Bytes - account_lte: Bytes account_in: [Bytes!] account_not_in: [Bytes!] account_contains: Bytes @@ -826,6 +1138,10 @@ input Activity_filter { status_not_in: [ActivityStatus!] """Filter for the block changed event.""" _change_block: BlockChangedFilter + account_gt: Bytes + account_lt: Bytes + account_gte: Bytes + account_lte: Bytes and: [Activity_filter] or: [Activity_filter] } @@ -834,16 +1150,16 @@ enum Activity_orderBy { id requestId ltoken - ltoken__id - ltoken__symbol - ltoken__decimals - ltoken__totalMintedRewards timestamp account action amount amountAfterFees status + ltoken__id + ltoken__symbol + ltoken__decimals + ltoken__totalMintedRewards } scalar BigDecimal @@ -862,12 +1178,6 @@ input Block_height { scalar Bytes -""" -8 bytes signed integer - -""" -scalar Int8 - type LToken { id: ID! symbol: String! @@ -1044,10 +1354,6 @@ input RewardsMint_filter { timestamp_not_in: [BigInt!] account: Bytes account_not: Bytes - account_gt: Bytes - account_lt: Bytes - account_gte: Bytes - account_lte: Bytes account_in: [Bytes!] account_not_in: [Bytes!] account_contains: Bytes @@ -1078,6 +1384,10 @@ input RewardsMint_filter { growth_not_in: [BigDecimal!] """Filter for the block changed event.""" _change_block: BlockChangedFilter + account_gt: Bytes + account_lt: Bytes + account_gte: Bytes + account_lte: Bytes and: [RewardsMint_filter] or: [RewardsMint_filter] } @@ -1085,15 +1395,15 @@ input RewardsMint_filter { enum RewardsMint_orderBy { id ltoken - ltoken__id - ltoken__symbol - ltoken__decimals - ltoken__totalMintedRewards timestamp account balanceBefore revenue growth + ltoken__id + ltoken__symbol + ltoken__decimals + ltoken__totalMintedRewards } type TVLChange { @@ -1158,12 +1468,12 @@ input TVLChange_filter { enum TVLChange_orderBy { id ltoken + timestamp + amount ltoken__id ltoken__symbol ltoken__decimals ltoken__totalMintedRewards - timestamp - amount } type _Block_ { @@ -1198,4 +1508,10 @@ enum _SubgraphErrorPolicy_ { If the subgraph has indexing errors, data will be omitted. The default. """ deny -} \ No newline at end of file +} + +""" +8 bytes signed integer + +""" +scalar Int8 \ No newline at end of file diff --git a/.graphclient/sources/OKX_X1_Testnet/introspectionSchema.ts b/.graphclient/sources/OKX_X1_Testnet/introspectionSchema.ts new file mode 100644 index 00000000..59bdcedd --- /dev/null +++ b/.graphclient/sources/OKX_X1_Testnet/introspectionSchema.ts @@ -0,0 +1,10026 @@ +// @ts-nocheck +import { buildASTSchema } from 'graphql'; + +const schemaAST = { + "kind": "Document", + "definitions": [ + { + "kind": "SchemaDefinition", + "operationTypes": [ + { + "kind": "OperationTypeDefinition", + "operation": "query", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Query" + } + } + }, + { + "kind": "OperationTypeDefinition", + "operation": "subscription", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Subscription" + } + } + } + ], + "directives": [] + }, + { + "kind": "DirectiveDefinition", + "description": { + "kind": "StringValue", + "value": "Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive." + }, + "name": { + "kind": "Name", + "value": "entity" + }, + "arguments": [], + "repeatable": false, + "locations": [ + { + "kind": "Name", + "value": "OBJECT" + } + ] + }, + { + "kind": "DirectiveDefinition", + "description": { + "kind": "StringValue", + "value": "Defined a Subgraph ID for an object type" + }, + "name": { + "kind": "Name", + "value": "subgraphId" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + }, + "directives": [] + } + ], + "repeatable": false, + "locations": [ + { + "kind": "Name", + "value": "OBJECT" + } + ] + }, + { + "kind": "DirectiveDefinition", + "description": { + "kind": "StringValue", + "value": "creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API." + }, + "name": { + "kind": "Name", + "value": "derivedFrom" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "field" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + }, + "directives": [] + } + ], + "repeatable": false, + "locations": [ + { + "kind": "Name", + "value": "FIELD_DEFINITION" + } + ] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "APRChange" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "apr" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "APRChange_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "apr_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "APRChange_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "apr" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "Activity" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "requestId" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "action" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityAction" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "status" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityStatus" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "ActivityAction" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Deposit" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Withdraw" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "ActivityStatus" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Queued" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Cancelled" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Success" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "Fulfilled" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "Activity_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "requestId_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "action" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityAction" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "action_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityAction" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "action_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityAction" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "action_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityAction" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "status" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityStatus" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "status_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityStatus" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "status_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityStatus" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "status_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ActivityStatus" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "Activity_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "requestId" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "action" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "amountAfterFees" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "status" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ScalarTypeDefinition", + "name": { + "kind": "Name", + "value": "BigDecimal" + }, + "directives": [] + }, + { + "kind": "ScalarTypeDefinition", + "name": { + "kind": "Name", + "value": "BigInt" + }, + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "number_gte" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "Block_height" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "hash" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "number" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "number_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ScalarTypeDefinition", + "name": { + "kind": "Name", + "value": "Bytes" + }, + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "LToken" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "symbol" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "decimals" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "tvlUpdates" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_filter" + } + }, + "directives": [] + } + ], + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange" + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "aprUpdates" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_filter" + } + }, + "directives": [] + } + ], + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange" + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "activities" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_filter" + } + }, + "directives": [] + } + ], + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity" + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "rewardsMints" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_filter" + } + }, + "directives": [] + } + ], + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint" + } + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "LToken_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "symbol_not_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "decimals_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "tvlUpdates_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "aprUpdates_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "activities_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "rewardsMints_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "LToken_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "symbol" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "decimals" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "totalMintedRewards" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "tvlUpdates" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "aprUpdates" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "activities" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "rewardsMints" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "description": { + "kind": "StringValue", + "value": "Defines the order direction, either ascending or descending", + "block": true + }, + "name": { + "kind": "Name", + "value": "OrderDirection" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "asc" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "desc" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "PreMiningLock" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "duration" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "PreMiningLock_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "duration_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "PreMiningLock_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "duration" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "Query" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltokens" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "tvlchange" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "tvlchanges" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "aprchange" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "aprchanges" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "activity" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "activities" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "rewardsMint" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "rewardsMints" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "preMiningLock" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "preMiningLocks" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "Access to subgraph metadata", + "block": true + }, + "name": { + "kind": "Name", + "value": "_meta" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_Meta_" + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "RewardsMint" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "revenue" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "growth" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "RewardsMint_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "account_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "revenue_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "growth_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "RewardsMint_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "account" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "balanceBefore" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "revenue" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "growth" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "Subscription" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltokens" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "tvlchange" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "tvlchanges" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "TVLChange" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "aprchange" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "aprchanges" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "APRChange" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "activity" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "activities" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Activity" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "rewardsMint" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "rewardsMints" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "RewardsMint" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "preMiningLock" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "preMiningLocks" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "skip" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "0" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "first" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "defaultValue": { + "kind": "IntValue", + "value": "100" + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderBy" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock_orderBy" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "orderDirection" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "OrderDirection" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "where" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.", + "block": true + }, + "name": { + "kind": "Name", + "value": "subgraphError" + }, + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + } + } + }, + "defaultValue": { + "kind": "EnumValue", + "value": "deny" + }, + "directives": [] + } + ], + "type": { + "kind": "NonNullType", + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "PreMiningLock" + } + } + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "Access to subgraph metadata", + "block": true + }, + "name": { + "kind": "Name", + "value": "_meta" + }, + "arguments": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Block_height" + } + }, + "directives": [] + } + ], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_Meta_" + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "TVLChange" + }, + "fields": [ + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "InputObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "TVLChange_filter" + }, + "fields": [ + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "id_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "ID" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_contains_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_starts_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_not_ends_with_nocase" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken_" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "LToken_filter" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigInt" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lt" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_gte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_lte" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "name": { + "kind": "Name", + "value": "amount_not_in" + }, + "type": { + "kind": "ListType", + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BigDecimal" + } + } + } + }, + "directives": [] + }, + { + "kind": "InputValueDefinition", + "description": { + "kind": "StringValue", + "value": "Filter for the block changed event.", + "block": true + }, + "name": { + "kind": "Name", + "value": "_change_block" + }, + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "BlockChangedFilter" + } + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "TVLChange_orderBy" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "id" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "ltoken" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "timestamp" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "name": { + "kind": "Name", + "value": "amount" + }, + "directives": [] + } + ], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "name": { + "kind": "Name", + "value": "_Block_" + }, + "fields": [ + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "The hash of the block", + "block": true + }, + "name": { + "kind": "Name", + "value": "hash" + }, + "arguments": [], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Bytes" + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "The block number", + "block": true + }, + "name": { + "kind": "Name", + "value": "number" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "Integer representation of the timestamp stored in blocks for the chain", + "block": true + }, + "name": { + "kind": "Name", + "value": "timestamp" + }, + "arguments": [], + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Int" + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "ObjectTypeDefinition", + "description": { + "kind": "StringValue", + "value": "The type for the top-level _meta field", + "block": true + }, + "name": { + "kind": "Name", + "value": "_Meta_" + }, + "fields": [ + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "Information about a specific subgraph block. The hash of the block\nwill be null if the _meta field has a block constraint that asks for\na block number. It will be filled if the _meta field has no block constraint\nand therefore asks for the latest block\n", + "block": true + }, + "name": { + "kind": "Name", + "value": "block" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "_Block_" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "The deployment ID", + "block": true + }, + "name": { + "kind": "Name", + "value": "deployment" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "String" + } + } + }, + "directives": [] + }, + { + "kind": "FieldDefinition", + "description": { + "kind": "StringValue", + "value": "If `true`, the subgraph encountered indexing errors at some past block", + "block": true + }, + "name": { + "kind": "Name", + "value": "hasIndexingErrors" + }, + "arguments": [], + "type": { + "kind": "NonNullType", + "type": { + "kind": "NamedType", + "name": { + "kind": "Name", + "value": "Boolean" + } + } + }, + "directives": [] + } + ], + "interfaces": [], + "directives": [] + }, + { + "kind": "EnumTypeDefinition", + "name": { + "kind": "Name", + "value": "_SubgraphErrorPolicy_" + }, + "values": [ + { + "kind": "EnumValueDefinition", + "description": { + "kind": "StringValue", + "value": "Data will be returned even if the subgraph has indexing errors", + "block": true + }, + "name": { + "kind": "Name", + "value": "allow" + }, + "directives": [] + }, + { + "kind": "EnumValueDefinition", + "description": { + "kind": "StringValue", + "value": "If the subgraph has indexing errors, data will be omitted. The default.", + "block": true + }, + "name": { + "kind": "Name", + "value": "deny" + }, + "directives": [] + } + ], + "directives": [] + } + ] +}; + +export default buildASTSchema(schemaAST, { + assumeValid: true, + assumeValidSDL: true +}); \ No newline at end of file diff --git a/.graphclient/sources/OKX_X1_Testnet/schema.graphql b/.graphclient/sources/OKX_X1_Testnet/schema.graphql new file mode 100644 index 00000000..ccb93edd --- /dev/null +++ b/.graphclient/sources/OKX_X1_Testnet/schema.graphql @@ -0,0 +1,843 @@ +schema { + query: Query + subscription: Subscription +} + +"Marks the GraphQL type as indexable entity. Each type that should be an entity is required to be annotated with this directive." +directive @entity on OBJECT + +"Defined a Subgraph ID for an object type" +directive @subgraphId(id: String!) on OBJECT + +"creates a virtual field on the entity that may be queried but cannot be set manually through the mappings API." +directive @derivedFrom(field: String!) on FIELD_DEFINITION + +type APRChange { + id: ID! + ltoken: LToken! + timestamp: BigInt! + apr: BigDecimal! +} + +input APRChange_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + ltoken: String + ltoken_not: String + ltoken_gt: String + ltoken_lt: String + ltoken_gte: String + ltoken_lte: String + ltoken_in: [String!] + ltoken_not_in: [String!] + ltoken_contains: String + ltoken_contains_nocase: String + ltoken_not_contains: String + ltoken_not_contains_nocase: String + ltoken_starts_with: String + ltoken_starts_with_nocase: String + ltoken_not_starts_with: String + ltoken_not_starts_with_nocase: String + ltoken_ends_with: String + ltoken_ends_with_nocase: String + ltoken_not_ends_with: String + ltoken_not_ends_with_nocase: String + ltoken_: LToken_filter + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + apr: BigDecimal + apr_not: BigDecimal + apr_gt: BigDecimal + apr_lt: BigDecimal + apr_gte: BigDecimal + apr_lte: BigDecimal + apr_in: [BigDecimal!] + apr_not_in: [BigDecimal!] + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum APRChange_orderBy { + id + ltoken + timestamp + apr +} + +type Activity { + id: ID! + requestId: BigInt! + ltoken: LToken! + timestamp: BigInt! + account: Bytes! + action: ActivityAction! + amount: BigDecimal! + amountAfterFees: BigDecimal! + status: ActivityStatus! +} + +enum ActivityAction { + Deposit + Withdraw +} + +enum ActivityStatus { + Queued + Cancelled + Success + Fulfilled +} + +input Activity_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + requestId: BigInt + requestId_not: BigInt + requestId_gt: BigInt + requestId_lt: BigInt + requestId_gte: BigInt + requestId_lte: BigInt + requestId_in: [BigInt!] + requestId_not_in: [BigInt!] + ltoken: String + ltoken_not: String + ltoken_gt: String + ltoken_lt: String + ltoken_gte: String + ltoken_lte: String + ltoken_in: [String!] + ltoken_not_in: [String!] + ltoken_contains: String + ltoken_contains_nocase: String + ltoken_not_contains: String + ltoken_not_contains_nocase: String + ltoken_starts_with: String + ltoken_starts_with_nocase: String + ltoken_not_starts_with: String + ltoken_not_starts_with_nocase: String + ltoken_ends_with: String + ltoken_ends_with_nocase: String + ltoken_not_ends_with: String + ltoken_not_ends_with_nocase: String + ltoken_: LToken_filter + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + account: Bytes + account_not: Bytes + account_in: [Bytes!] + account_not_in: [Bytes!] + account_contains: Bytes + account_not_contains: Bytes + action: ActivityAction + action_not: ActivityAction + action_in: [ActivityAction!] + action_not_in: [ActivityAction!] + amount: BigDecimal + amount_not: BigDecimal + amount_gt: BigDecimal + amount_lt: BigDecimal + amount_gte: BigDecimal + amount_lte: BigDecimal + amount_in: [BigDecimal!] + amount_not_in: [BigDecimal!] + amountAfterFees: BigDecimal + amountAfterFees_not: BigDecimal + amountAfterFees_gt: BigDecimal + amountAfterFees_lt: BigDecimal + amountAfterFees_gte: BigDecimal + amountAfterFees_lte: BigDecimal + amountAfterFees_in: [BigDecimal!] + amountAfterFees_not_in: [BigDecimal!] + status: ActivityStatus + status_not: ActivityStatus + status_in: [ActivityStatus!] + status_not_in: [ActivityStatus!] + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum Activity_orderBy { + id + requestId + ltoken + timestamp + account + action + amount + amountAfterFees + status +} + +scalar BigDecimal + +scalar BigInt + +input BlockChangedFilter { + number_gte: Int! +} + +input Block_height { + hash: Bytes + number: Int + number_gte: Int +} + +scalar Bytes + +type LToken { + id: ID! + symbol: String! + decimals: Int! + totalMintedRewards: BigDecimal! + tvlUpdates(skip: Int = 0, first: Int = 100, orderBy: TVLChange_orderBy, orderDirection: OrderDirection, where: TVLChange_filter): [TVLChange!] + aprUpdates(skip: Int = 0, first: Int = 100, orderBy: APRChange_orderBy, orderDirection: OrderDirection, where: APRChange_filter): [APRChange!] + activities(skip: Int = 0, first: Int = 100, orderBy: Activity_orderBy, orderDirection: OrderDirection, where: Activity_filter): [Activity!] + rewardsMints(skip: Int = 0, first: Int = 100, orderBy: RewardsMint_orderBy, orderDirection: OrderDirection, where: RewardsMint_filter): [RewardsMint!] +} + +input LToken_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + symbol: String + symbol_not: String + symbol_gt: String + symbol_lt: String + symbol_gte: String + symbol_lte: String + symbol_in: [String!] + symbol_not_in: [String!] + symbol_contains: String + symbol_contains_nocase: String + symbol_not_contains: String + symbol_not_contains_nocase: String + symbol_starts_with: String + symbol_starts_with_nocase: String + symbol_not_starts_with: String + symbol_not_starts_with_nocase: String + symbol_ends_with: String + symbol_ends_with_nocase: String + symbol_not_ends_with: String + symbol_not_ends_with_nocase: String + decimals: Int + decimals_not: Int + decimals_gt: Int + decimals_lt: Int + decimals_gte: Int + decimals_lte: Int + decimals_in: [Int!] + decimals_not_in: [Int!] + totalMintedRewards: BigDecimal + totalMintedRewards_not: BigDecimal + totalMintedRewards_gt: BigDecimal + totalMintedRewards_lt: BigDecimal + totalMintedRewards_gte: BigDecimal + totalMintedRewards_lte: BigDecimal + totalMintedRewards_in: [BigDecimal!] + totalMintedRewards_not_in: [BigDecimal!] + tvlUpdates_: TVLChange_filter + aprUpdates_: APRChange_filter + activities_: Activity_filter + rewardsMints_: RewardsMint_filter + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum LToken_orderBy { + id + symbol + decimals + totalMintedRewards + tvlUpdates + aprUpdates + activities + rewardsMints +} + +"""Defines the order direction, either ascending or descending""" +enum OrderDirection { + asc + desc +} + +type PreMiningLock { + id: ID! + amount: BigDecimal! + duration: Int! +} + +input PreMiningLock_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + amount: BigDecimal + amount_not: BigDecimal + amount_gt: BigDecimal + amount_lt: BigDecimal + amount_gte: BigDecimal + amount_lte: BigDecimal + amount_in: [BigDecimal!] + amount_not_in: [BigDecimal!] + duration: Int + duration_not: Int + duration_gt: Int + duration_lt: Int + duration_gte: Int + duration_lte: Int + duration_in: [Int!] + duration_not_in: [Int!] + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum PreMiningLock_orderBy { + id + amount + duration +} + +type Query { + x59144_ltoken( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + x59144_ltokens( + skip: Int = 0 + first: Int = 100 + orderBy: LToken_orderBy + orderDirection: OrderDirection + where: LToken_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [LToken!]! + x59144_tvlchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + x59144_tvlchanges( + skip: Int = 0 + first: Int = 100 + orderBy: TVLChange_orderBy + orderDirection: OrderDirection + where: TVLChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [TVLChange!]! + x59144_aprchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + x59144_aprchanges( + skip: Int = 0 + first: Int = 100 + orderBy: APRChange_orderBy + orderDirection: OrderDirection + where: APRChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [APRChange!]! + x59144_activity( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + x59144_activities( + skip: Int = 0 + first: Int = 100 + orderBy: Activity_orderBy + orderDirection: OrderDirection + where: Activity_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [Activity!]! + x59144_rewardsMint( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + x59144_rewardsMints( + skip: Int = 0 + first: Int = 100 + orderBy: RewardsMint_orderBy + orderDirection: OrderDirection + where: RewardsMint_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [RewardsMint!]! + x59144_preMiningLock( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + x59144_preMiningLocks( + skip: Int = 0 + first: Int = 100 + orderBy: PreMiningLock_orderBy + orderDirection: OrderDirection + where: PreMiningLock_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [PreMiningLock!]! + """Access to subgraph metadata""" + x59144__meta(block: Block_height): _Meta_ +} + +type RewardsMint { + id: ID! + ltoken: LToken! + timestamp: BigInt! + account: Bytes! + balanceBefore: BigDecimal! + revenue: BigDecimal! + growth: BigDecimal! +} + +input RewardsMint_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + ltoken: String + ltoken_not: String + ltoken_gt: String + ltoken_lt: String + ltoken_gte: String + ltoken_lte: String + ltoken_in: [String!] + ltoken_not_in: [String!] + ltoken_contains: String + ltoken_contains_nocase: String + ltoken_not_contains: String + ltoken_not_contains_nocase: String + ltoken_starts_with: String + ltoken_starts_with_nocase: String + ltoken_not_starts_with: String + ltoken_not_starts_with_nocase: String + ltoken_ends_with: String + ltoken_ends_with_nocase: String + ltoken_not_ends_with: String + ltoken_not_ends_with_nocase: String + ltoken_: LToken_filter + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + account: Bytes + account_not: Bytes + account_in: [Bytes!] + account_not_in: [Bytes!] + account_contains: Bytes + account_not_contains: Bytes + balanceBefore: BigDecimal + balanceBefore_not: BigDecimal + balanceBefore_gt: BigDecimal + balanceBefore_lt: BigDecimal + balanceBefore_gte: BigDecimal + balanceBefore_lte: BigDecimal + balanceBefore_in: [BigDecimal!] + balanceBefore_not_in: [BigDecimal!] + revenue: BigDecimal + revenue_not: BigDecimal + revenue_gt: BigDecimal + revenue_lt: BigDecimal + revenue_gte: BigDecimal + revenue_lte: BigDecimal + revenue_in: [BigDecimal!] + revenue_not_in: [BigDecimal!] + growth: BigDecimal + growth_not: BigDecimal + growth_gt: BigDecimal + growth_lt: BigDecimal + growth_gte: BigDecimal + growth_lte: BigDecimal + growth_in: [BigDecimal!] + growth_not_in: [BigDecimal!] + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum RewardsMint_orderBy { + id + ltoken + timestamp + account + balanceBefore + revenue + growth +} + +type Subscription { + x59144_ltoken( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + x59144_ltokens( + skip: Int = 0 + first: Int = 100 + orderBy: LToken_orderBy + orderDirection: OrderDirection + where: LToken_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [LToken!]! + x59144_tvlchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + x59144_tvlchanges( + skip: Int = 0 + first: Int = 100 + orderBy: TVLChange_orderBy + orderDirection: OrderDirection + where: TVLChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [TVLChange!]! + x59144_aprchange( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + x59144_aprchanges( + skip: Int = 0 + first: Int = 100 + orderBy: APRChange_orderBy + orderDirection: OrderDirection + where: APRChange_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [APRChange!]! + x59144_activity( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + x59144_activities( + skip: Int = 0 + first: Int = 100 + orderBy: Activity_orderBy + orderDirection: OrderDirection + where: Activity_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [Activity!]! + x59144_rewardsMint( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + x59144_rewardsMints( + skip: Int = 0 + first: Int = 100 + orderBy: RewardsMint_orderBy + orderDirection: OrderDirection + where: RewardsMint_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [RewardsMint!]! + x59144_preMiningLock( + id: ID! + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + x59144_preMiningLocks( + skip: Int = 0 + first: Int = 100 + orderBy: PreMiningLock_orderBy + orderDirection: OrderDirection + where: PreMiningLock_filter + """ + The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): [PreMiningLock!]! + """Access to subgraph metadata""" + x59144__meta(block: Block_height): _Meta_ +} + +type TVLChange { + id: ID! + ltoken: LToken! + timestamp: BigInt! + amount: BigDecimal! +} + +input TVLChange_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + ltoken: String + ltoken_not: String + ltoken_gt: String + ltoken_lt: String + ltoken_gte: String + ltoken_lte: String + ltoken_in: [String!] + ltoken_not_in: [String!] + ltoken_contains: String + ltoken_contains_nocase: String + ltoken_not_contains: String + ltoken_not_contains_nocase: String + ltoken_starts_with: String + ltoken_starts_with_nocase: String + ltoken_not_starts_with: String + ltoken_not_starts_with_nocase: String + ltoken_ends_with: String + ltoken_ends_with_nocase: String + ltoken_not_ends_with: String + ltoken_not_ends_with_nocase: String + ltoken_: LToken_filter + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + amount: BigDecimal + amount_not: BigDecimal + amount_gt: BigDecimal + amount_lt: BigDecimal + amount_gte: BigDecimal + amount_lte: BigDecimal + amount_in: [BigDecimal!] + amount_not_in: [BigDecimal!] + """Filter for the block changed event.""" + _change_block: BlockChangedFilter +} + +enum TVLChange_orderBy { + id + ltoken + timestamp + amount +} + +type _Block_ { + """The hash of the block""" + hash: Bytes + """The block number""" + number: Int! + """Integer representation of the timestamp stored in blocks for the chain""" + timestamp: Int +} + +"""The type for the top-level _meta field""" +type _Meta_ { + """ + Information about a specific subgraph block. The hash of the block + will be null if the _meta field has a block constraint that asks for + a block number. It will be filled if the _meta field has no block constraint + and therefore asks for the latest block + + """ + block: _Block_! + """The deployment ID""" + deployment: String! + """If `true`, the subgraph encountered indexing errors at some past block""" + hasIndexingErrors: Boolean! +} + +enum _SubgraphErrorPolicy_ { + """Data will be returned even if the subgraph has indexing errors""" + allow + """ + If the subgraph has indexing errors, data will be omitted. The default. + """ + deny +} \ No newline at end of file diff --git a/.graphclient/sources/OKX_X1_Testnet/types.ts b/.graphclient/sources/OKX_X1_Testnet/types.ts new file mode 100644 index 00000000..b7fb9221 --- /dev/null +++ b/.graphclient/sources/OKX_X1_Testnet/types.ts @@ -0,0 +1,876 @@ +// @ts-nocheck + +import { InContextSdkMethod } from '@graphql-mesh/types'; +import { MeshContext } from '@graphql-mesh/runtime'; + +export namespace OkxX1TestnetTypes { + export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + BigDecimal: any; + BigInt: any; + Bytes: any; +}; + +export type APRChange = { + id: Scalars['ID']; + ltoken: LToken; + timestamp: Scalars['BigInt']; + apr: Scalars['BigDecimal']; +}; + +export type APRChange_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + ltoken?: InputMaybe; + ltoken_not?: InputMaybe; + ltoken_gt?: InputMaybe; + ltoken_lt?: InputMaybe; + ltoken_gte?: InputMaybe; + ltoken_lte?: InputMaybe; + ltoken_in?: InputMaybe>; + ltoken_not_in?: InputMaybe>; + ltoken_contains?: InputMaybe; + ltoken_contains_nocase?: InputMaybe; + ltoken_not_contains?: InputMaybe; + ltoken_not_contains_nocase?: InputMaybe; + ltoken_starts_with?: InputMaybe; + ltoken_starts_with_nocase?: InputMaybe; + ltoken_not_starts_with?: InputMaybe; + ltoken_not_starts_with_nocase?: InputMaybe; + ltoken_ends_with?: InputMaybe; + ltoken_ends_with_nocase?: InputMaybe; + ltoken_not_ends_with?: InputMaybe; + ltoken_not_ends_with_nocase?: InputMaybe; + ltoken_?: InputMaybe; + timestamp?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_not_in?: InputMaybe>; + apr?: InputMaybe; + apr_not?: InputMaybe; + apr_gt?: InputMaybe; + apr_lt?: InputMaybe; + apr_gte?: InputMaybe; + apr_lte?: InputMaybe; + apr_in?: InputMaybe>; + apr_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type APRChange_orderBy = + | 'id' + | 'ltoken' + | 'timestamp' + | 'apr'; + +export type Activity = { + id: Scalars['ID']; + requestId: Scalars['BigInt']; + ltoken: LToken; + timestamp: Scalars['BigInt']; + account: Scalars['Bytes']; + action: ActivityAction; + amount: Scalars['BigDecimal']; + amountAfterFees: Scalars['BigDecimal']; + status: ActivityStatus; +}; + +export type ActivityAction = + | 'Deposit' + | 'Withdraw'; + +export type ActivityStatus = + | 'Queued' + | 'Cancelled' + | 'Success' + | 'Fulfilled'; + +export type Activity_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + requestId?: InputMaybe; + requestId_not?: InputMaybe; + requestId_gt?: InputMaybe; + requestId_lt?: InputMaybe; + requestId_gte?: InputMaybe; + requestId_lte?: InputMaybe; + requestId_in?: InputMaybe>; + requestId_not_in?: InputMaybe>; + ltoken?: InputMaybe; + ltoken_not?: InputMaybe; + ltoken_gt?: InputMaybe; + ltoken_lt?: InputMaybe; + ltoken_gte?: InputMaybe; + ltoken_lte?: InputMaybe; + ltoken_in?: InputMaybe>; + ltoken_not_in?: InputMaybe>; + ltoken_contains?: InputMaybe; + ltoken_contains_nocase?: InputMaybe; + ltoken_not_contains?: InputMaybe; + ltoken_not_contains_nocase?: InputMaybe; + ltoken_starts_with?: InputMaybe; + ltoken_starts_with_nocase?: InputMaybe; + ltoken_not_starts_with?: InputMaybe; + ltoken_not_starts_with_nocase?: InputMaybe; + ltoken_ends_with?: InputMaybe; + ltoken_ends_with_nocase?: InputMaybe; + ltoken_not_ends_with?: InputMaybe; + ltoken_not_ends_with_nocase?: InputMaybe; + ltoken_?: InputMaybe; + timestamp?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_not_in?: InputMaybe>; + account?: InputMaybe; + account_not?: InputMaybe; + account_in?: InputMaybe>; + account_not_in?: InputMaybe>; + account_contains?: InputMaybe; + account_not_contains?: InputMaybe; + action?: InputMaybe; + action_not?: InputMaybe; + action_in?: InputMaybe>; + action_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_not?: InputMaybe; + amount_gt?: InputMaybe; + amount_lt?: InputMaybe; + amount_gte?: InputMaybe; + amount_lte?: InputMaybe; + amount_in?: InputMaybe>; + amount_not_in?: InputMaybe>; + amountAfterFees?: InputMaybe; + amountAfterFees_not?: InputMaybe; + amountAfterFees_gt?: InputMaybe; + amountAfterFees_lt?: InputMaybe; + amountAfterFees_gte?: InputMaybe; + amountAfterFees_lte?: InputMaybe; + amountAfterFees_in?: InputMaybe>; + amountAfterFees_not_in?: InputMaybe>; + status?: InputMaybe; + status_not?: InputMaybe; + status_in?: InputMaybe>; + status_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type Activity_orderBy = + | 'id' + | 'requestId' + | 'ltoken' + | 'timestamp' + | 'account' + | 'action' + | 'amount' + | 'amountAfterFees' + | 'status'; + +export type BlockChangedFilter = { + number_gte: Scalars['Int']; +}; + +export type Block_height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; + +export type LToken = { + id: Scalars['ID']; + symbol: Scalars['String']; + decimals: Scalars['Int']; + totalMintedRewards: Scalars['BigDecimal']; + tvlUpdates?: Maybe>; + aprUpdates?: Maybe>; + activities?: Maybe>; + rewardsMints?: Maybe>; +}; + + +export type LTokentvlUpdatesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; +}; + + +export type LTokenaprUpdatesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; +}; + + +export type LTokenactivitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; +}; + + +export type LTokenrewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; +}; + +export type LToken_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + symbol?: InputMaybe; + symbol_not?: InputMaybe; + symbol_gt?: InputMaybe; + symbol_lt?: InputMaybe; + symbol_gte?: InputMaybe; + symbol_lte?: InputMaybe; + symbol_in?: InputMaybe>; + symbol_not_in?: InputMaybe>; + symbol_contains?: InputMaybe; + symbol_contains_nocase?: InputMaybe; + symbol_not_contains?: InputMaybe; + symbol_not_contains_nocase?: InputMaybe; + symbol_starts_with?: InputMaybe; + symbol_starts_with_nocase?: InputMaybe; + symbol_not_starts_with?: InputMaybe; + symbol_not_starts_with_nocase?: InputMaybe; + symbol_ends_with?: InputMaybe; + symbol_ends_with_nocase?: InputMaybe; + symbol_not_ends_with?: InputMaybe; + symbol_not_ends_with_nocase?: InputMaybe; + decimals?: InputMaybe; + decimals_not?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_lt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_not_in?: InputMaybe>; + totalMintedRewards?: InputMaybe; + totalMintedRewards_not?: InputMaybe; + totalMintedRewards_gt?: InputMaybe; + totalMintedRewards_lt?: InputMaybe; + totalMintedRewards_gte?: InputMaybe; + totalMintedRewards_lte?: InputMaybe; + totalMintedRewards_in?: InputMaybe>; + totalMintedRewards_not_in?: InputMaybe>; + tvlUpdates_?: InputMaybe; + aprUpdates_?: InputMaybe; + activities_?: InputMaybe; + rewardsMints_?: InputMaybe; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type LToken_orderBy = + | 'id' + | 'symbol' + | 'decimals' + | 'totalMintedRewards' + | 'tvlUpdates' + | 'aprUpdates' + | 'activities' + | 'rewardsMints'; + +/** Defines the order direction, either ascending or descending */ +export type OrderDirection = + | 'asc' + | 'desc'; + +export type PreMiningLock = { + id: Scalars['ID']; + amount: Scalars['BigDecimal']; + duration: Scalars['Int']; +}; + +export type PreMiningLock_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_not?: InputMaybe; + amount_gt?: InputMaybe; + amount_lt?: InputMaybe; + amount_gte?: InputMaybe; + amount_lte?: InputMaybe; + amount_in?: InputMaybe>; + amount_not_in?: InputMaybe>; + duration?: InputMaybe; + duration_not?: InputMaybe; + duration_gt?: InputMaybe; + duration_lt?: InputMaybe; + duration_gte?: InputMaybe; + duration_lte?: InputMaybe; + duration_in?: InputMaybe>; + duration_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type PreMiningLock_orderBy = + | 'id' + | 'amount' + | 'duration'; + +export type Query = { + x59144_ltoken?: Maybe; + x59144_ltokens: Array; + x59144_tvlchange?: Maybe; + x59144_tvlchanges: Array; + x59144_aprchange?: Maybe; + x59144_aprchanges: Array; + x59144_activity?: Maybe; + x59144_activities: Array; + x59144_rewardsMint?: Maybe; + x59144_rewardsMints: Array; + x59144_preMiningLock?: Maybe; + x59144_preMiningLocks: Array; + /** Access to subgraph metadata */ + x59144__meta?: Maybe<_Meta_>; +}; + + +export type Queryx59144_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryx59144__metaArgs = { + block?: InputMaybe; +}; + +export type RewardsMint = { + id: Scalars['ID']; + ltoken: LToken; + timestamp: Scalars['BigInt']; + account: Scalars['Bytes']; + balanceBefore: Scalars['BigDecimal']; + revenue: Scalars['BigDecimal']; + growth: Scalars['BigDecimal']; +}; + +export type RewardsMint_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + ltoken?: InputMaybe; + ltoken_not?: InputMaybe; + ltoken_gt?: InputMaybe; + ltoken_lt?: InputMaybe; + ltoken_gte?: InputMaybe; + ltoken_lte?: InputMaybe; + ltoken_in?: InputMaybe>; + ltoken_not_in?: InputMaybe>; + ltoken_contains?: InputMaybe; + ltoken_contains_nocase?: InputMaybe; + ltoken_not_contains?: InputMaybe; + ltoken_not_contains_nocase?: InputMaybe; + ltoken_starts_with?: InputMaybe; + ltoken_starts_with_nocase?: InputMaybe; + ltoken_not_starts_with?: InputMaybe; + ltoken_not_starts_with_nocase?: InputMaybe; + ltoken_ends_with?: InputMaybe; + ltoken_ends_with_nocase?: InputMaybe; + ltoken_not_ends_with?: InputMaybe; + ltoken_not_ends_with_nocase?: InputMaybe; + ltoken_?: InputMaybe; + timestamp?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_not_in?: InputMaybe>; + account?: InputMaybe; + account_not?: InputMaybe; + account_in?: InputMaybe>; + account_not_in?: InputMaybe>; + account_contains?: InputMaybe; + account_not_contains?: InputMaybe; + balanceBefore?: InputMaybe; + balanceBefore_not?: InputMaybe; + balanceBefore_gt?: InputMaybe; + balanceBefore_lt?: InputMaybe; + balanceBefore_gte?: InputMaybe; + balanceBefore_lte?: InputMaybe; + balanceBefore_in?: InputMaybe>; + balanceBefore_not_in?: InputMaybe>; + revenue?: InputMaybe; + revenue_not?: InputMaybe; + revenue_gt?: InputMaybe; + revenue_lt?: InputMaybe; + revenue_gte?: InputMaybe; + revenue_lte?: InputMaybe; + revenue_in?: InputMaybe>; + revenue_not_in?: InputMaybe>; + growth?: InputMaybe; + growth_not?: InputMaybe; + growth_gt?: InputMaybe; + growth_lt?: InputMaybe; + growth_gte?: InputMaybe; + growth_lte?: InputMaybe; + growth_in?: InputMaybe>; + growth_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type RewardsMint_orderBy = + | 'id' + | 'ltoken' + | 'timestamp' + | 'account' + | 'balanceBefore' + | 'revenue' + | 'growth'; + +export type Subscription = { + x59144_ltoken?: Maybe; + x59144_ltokens: Array; + x59144_tvlchange?: Maybe; + x59144_tvlchanges: Array; + x59144_aprchange?: Maybe; + x59144_aprchanges: Array; + x59144_activity?: Maybe; + x59144_activities: Array; + x59144_rewardsMint?: Maybe; + x59144_rewardsMints: Array; + x59144_preMiningLock?: Maybe; + x59144_preMiningLocks: Array; + /** Access to subgraph metadata */ + x59144__meta?: Maybe<_Meta_>; +}; + + +export type Subscriptionx59144_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionx59144__metaArgs = { + block?: InputMaybe; +}; + +export type TVLChange = { + id: Scalars['ID']; + ltoken: LToken; + timestamp: Scalars['BigInt']; + amount: Scalars['BigDecimal']; +}; + +export type TVLChange_filter = { + id?: InputMaybe; + id_not?: InputMaybe; + id_gt?: InputMaybe; + id_lt?: InputMaybe; + id_gte?: InputMaybe; + id_lte?: InputMaybe; + id_in?: InputMaybe>; + id_not_in?: InputMaybe>; + ltoken?: InputMaybe; + ltoken_not?: InputMaybe; + ltoken_gt?: InputMaybe; + ltoken_lt?: InputMaybe; + ltoken_gte?: InputMaybe; + ltoken_lte?: InputMaybe; + ltoken_in?: InputMaybe>; + ltoken_not_in?: InputMaybe>; + ltoken_contains?: InputMaybe; + ltoken_contains_nocase?: InputMaybe; + ltoken_not_contains?: InputMaybe; + ltoken_not_contains_nocase?: InputMaybe; + ltoken_starts_with?: InputMaybe; + ltoken_starts_with_nocase?: InputMaybe; + ltoken_not_starts_with?: InputMaybe; + ltoken_not_starts_with_nocase?: InputMaybe; + ltoken_ends_with?: InputMaybe; + ltoken_ends_with_nocase?: InputMaybe; + ltoken_not_ends_with?: InputMaybe; + ltoken_not_ends_with_nocase?: InputMaybe; + ltoken_?: InputMaybe; + timestamp?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_lt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_not_in?: InputMaybe>; + amount?: InputMaybe; + amount_not?: InputMaybe; + amount_gt?: InputMaybe; + amount_lt?: InputMaybe; + amount_gte?: InputMaybe; + amount_lte?: InputMaybe; + amount_in?: InputMaybe>; + amount_not_in?: InputMaybe>; + /** Filter for the block changed event. */ + _change_block?: InputMaybe; +}; + +export type TVLChange_orderBy = + | 'id' + | 'ltoken' + | 'timestamp' + | 'amount'; + +export type _Block_ = { + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']; + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe; +}; + +/** The type for the top-level _meta field */ +export type _Meta_ = { + /** + * Information about a specific subgraph block. The hash of the block + * will be null if the _meta field has a block constraint that asks for + * a block number. It will be filled if the _meta field has no block constraint + * and therefore asks for the latest block + * + */ + block: _Block_; + /** The deployment ID */ + deployment: Scalars['String']; + /** If `true`, the subgraph encountered indexing errors at some past block */ + hasIndexingErrors: Scalars['Boolean']; +}; + +export type _SubgraphErrorPolicy_ = + /** Data will be returned even if the subgraph has indexing errors */ + | 'allow' + /** If the subgraph has indexing errors, data will be omitted. The default. */ + | 'deny'; + + export type QuerySdk = { + /** null **/ + x59144_ltoken: InContextSdkMethod, + /** null **/ + x59144_ltokens: InContextSdkMethod, + /** null **/ + x59144_tvlchange: InContextSdkMethod, + /** null **/ + x59144_tvlchanges: InContextSdkMethod, + /** null **/ + x59144_aprchange: InContextSdkMethod, + /** null **/ + x59144_aprchanges: InContextSdkMethod, + /** null **/ + x59144_activity: InContextSdkMethod, + /** null **/ + x59144_activities: InContextSdkMethod, + /** null **/ + x59144_rewardsMint: InContextSdkMethod, + /** null **/ + x59144_rewardsMints: InContextSdkMethod, + /** null **/ + x59144_preMiningLock: InContextSdkMethod, + /** null **/ + x59144_preMiningLocks: InContextSdkMethod, + /** Access to subgraph metadata **/ + x59144__meta: InContextSdkMethod + }; + + export type MutationSdk = { + + }; + + export type SubscriptionSdk = { + /** null **/ + x59144_ltoken: InContextSdkMethod, + /** null **/ + x59144_ltokens: InContextSdkMethod, + /** null **/ + x59144_tvlchange: InContextSdkMethod, + /** null **/ + x59144_tvlchanges: InContextSdkMethod, + /** null **/ + x59144_aprchange: InContextSdkMethod, + /** null **/ + x59144_aprchanges: InContextSdkMethod, + /** null **/ + x59144_activity: InContextSdkMethod, + /** null **/ + x59144_activities: InContextSdkMethod, + /** null **/ + x59144_rewardsMint: InContextSdkMethod, + /** null **/ + x59144_rewardsMints: InContextSdkMethod, + /** null **/ + x59144_preMiningLock: InContextSdkMethod, + /** null **/ + x59144_preMiningLocks: InContextSdkMethod, + /** Access to subgraph metadata **/ + x59144__meta: InContextSdkMethod + }; + + export type Context = { + ["OKX_X1_Testnet"]: { Query: QuerySdk, Mutation: MutationSdk, Subscription: SubscriptionSdk }, + + }; +} diff --git a/.graphclientrc.yml b/.graphclientrc.yml index cf555f68..44457549 100644 --- a/.graphclientrc.yml +++ b/.graphclientrc.yml @@ -22,6 +22,17 @@ sources: includeRootOperations: true includeTypes: false + - name: OKX_X1_Testnet + handler: + graphql: + endpoint: https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield + transforms: + - prefix: + mode: wrap + value: "x59144_" + includeRootOperations: true + includeTypes: false + # - name: localhost # handler: # graphql: From 1efd96c8313cdab17082ad0aed61aa02ead26610 Mon Sep 17 00:00:00 2001 From: hatem Date: Fri, 1 Mar 2024 14:58:36 +0100 Subject: [PATCH 4/5] change api name for graph client to the chain id of okx x1 --- .graphclient/index.ts | 380 +++++++++--------- .graphclient/schema.graphql | 156 +++---- .../sources/OKX_X1_Testnet/schema.graphql | 52 +-- .graphclient/sources/OKX_X1_Testnet/types.ts | 156 +++---- .graphclientrc.yml | 2 +- 5 files changed, 373 insertions(+), 373 deletions(-) diff --git a/.graphclient/index.ts b/.graphclient/index.ts index f72cd038..f7b50142 100644 --- a/.graphclient/index.ts +++ b/.graphclient/index.ts @@ -21,8 +21,8 @@ import type { LineaTypes } from './sources/linea/types'; import type { ArbitrumTypes } from './sources/arbitrum/types'; import type { OkxX1TestnetTypes } from './sources/OKX_X1_Testnet/types'; import * as importedModule$0 from "./sources/OKX_X1_Testnet/introspectionSchema"; -import * as importedModule$1 from "./sources/arbitrum/introspectionSchema"; -import * as importedModule$2 from "./sources/linea/introspectionSchema"; +import * as importedModule$1 from "./sources/linea/introspectionSchema"; +import * as importedModule$2 from "./sources/arbitrum/introspectionSchema"; export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; @@ -46,34 +46,20 @@ export type Scalars = { }; export type Query = { - x59144_ltoken?: Maybe; - x59144_ltokens: Array; - x59144_tvlchange?: Maybe; - x59144_tvlchanges: Array; - x59144_aprchange?: Maybe; - x59144_aprchanges: Array; - x59144_activity?: Maybe; - x59144_activities: Array; - x59144_rewardsMint?: Maybe; - x59144_rewardsMints: Array; - x59144_preMiningLock?: Maybe; - x59144_preMiningLocks: Array; + c195_ltoken?: Maybe; + c195_ltokens: Array; + c195_tvlchange?: Maybe; + c195_tvlchanges: Array; + c195_aprchange?: Maybe; + c195_aprchanges: Array; + c195_activity?: Maybe; + c195_activities: Array; + c195_rewardsMint?: Maybe; + c195_rewardsMints: Array; + c195_preMiningLock?: Maybe; + c195_preMiningLocks: Array; /** Access to subgraph metadata */ - x59144__meta?: Maybe<_Meta_>; - c42161_ltoken?: Maybe; - c42161_ltokens: Array; - c42161_tvlchange?: Maybe; - c42161_tvlchanges: Array; - c42161_aprchange?: Maybe; - c42161_aprchanges: Array; - c42161_activity?: Maybe; - c42161_activities: Array; - c42161_rewardsMint?: Maybe; - c42161_rewardsMints: Array; - c42161_preMiningLock?: Maybe; - c42161_preMiningLocks: Array; - /** Access to subgraph metadata */ - c42161__meta?: Maybe<_Meta_>; + c195__meta?: Maybe<_Meta_>; c59144_ltoken?: Maybe; c59144_ltokens: Array; c59144_tvlchange?: Maybe; @@ -88,17 +74,31 @@ export type Query = { c59144_preMiningLocks: Array; /** Access to subgraph metadata */ c59144__meta?: Maybe<_Meta_>; + c42161_ltoken?: Maybe; + c42161_ltokens: Array; + c42161_tvlchange?: Maybe; + c42161_tvlchanges: Array; + c42161_aprchange?: Maybe; + c42161_aprchanges: Array; + c42161_activity?: Maybe; + c42161_activities: Array; + c42161_rewardsMint?: Maybe; + c42161_rewardsMints: Array; + c42161_preMiningLock?: Maybe; + c42161_preMiningLocks: Array; + /** Access to subgraph metadata */ + c42161__meta?: Maybe<_Meta_>; }; -export type Queryx59144_ltokenArgs = { +export type Queryc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_ltokensArgs = { +export type Queryc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -109,14 +109,14 @@ export type Queryx59144_ltokensArgs = { }; -export type Queryx59144_tvlchangeArgs = { +export type Queryc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_tvlchangesArgs = { +export type Queryc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -127,14 +127,14 @@ export type Queryx59144_tvlchangesArgs = { }; -export type Queryx59144_aprchangeArgs = { +export type Queryc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_aprchangesArgs = { +export type Queryc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -145,14 +145,14 @@ export type Queryx59144_aprchangesArgs = { }; -export type Queryx59144_activityArgs = { +export type Queryc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_activitiesArgs = { +export type Queryc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -163,14 +163,14 @@ export type Queryx59144_activitiesArgs = { }; -export type Queryx59144_rewardsMintArgs = { +export type Queryc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_rewardsMintsArgs = { +export type Queryc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -181,14 +181,14 @@ export type Queryx59144_rewardsMintsArgs = { }; -export type Queryx59144_preMiningLockArgs = { +export type Queryc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_preMiningLocksArgs = { +export type Queryc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -199,19 +199,19 @@ export type Queryx59144_preMiningLocksArgs = { }; -export type Queryx59144__metaArgs = { +export type Queryc195__metaArgs = { block?: InputMaybe; }; -export type Queryc42161_ltokenArgs = { +export type Queryc59144_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_ltokensArgs = { +export type Queryc59144_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -222,14 +222,14 @@ export type Queryc42161_ltokensArgs = { }; -export type Queryc42161_tvlchangeArgs = { +export type Queryc59144_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_tvlchangesArgs = { +export type Queryc59144_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -240,14 +240,14 @@ export type Queryc42161_tvlchangesArgs = { }; -export type Queryc42161_aprchangeArgs = { +export type Queryc59144_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_aprchangesArgs = { +export type Queryc59144_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -258,14 +258,14 @@ export type Queryc42161_aprchangesArgs = { }; -export type Queryc42161_activityArgs = { +export type Queryc59144_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_activitiesArgs = { +export type Queryc59144_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -276,14 +276,14 @@ export type Queryc42161_activitiesArgs = { }; -export type Queryc42161_rewardsMintArgs = { +export type Queryc59144_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_rewardsMintsArgs = { +export type Queryc59144_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -294,14 +294,14 @@ export type Queryc42161_rewardsMintsArgs = { }; -export type Queryc42161_preMiningLockArgs = { +export type Queryc59144_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_preMiningLocksArgs = { +export type Queryc59144_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -312,19 +312,19 @@ export type Queryc42161_preMiningLocksArgs = { }; -export type Queryc42161__metaArgs = { +export type Queryc59144__metaArgs = { block?: InputMaybe; }; -export type Queryc59144_ltokenArgs = { +export type Queryc42161_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_ltokensArgs = { +export type Queryc42161_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -335,14 +335,14 @@ export type Queryc59144_ltokensArgs = { }; -export type Queryc59144_tvlchangeArgs = { +export type Queryc42161_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_tvlchangesArgs = { +export type Queryc42161_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -353,14 +353,14 @@ export type Queryc59144_tvlchangesArgs = { }; -export type Queryc59144_aprchangeArgs = { +export type Queryc42161_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_aprchangesArgs = { +export type Queryc42161_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -371,14 +371,14 @@ export type Queryc59144_aprchangesArgs = { }; -export type Queryc59144_activityArgs = { +export type Queryc42161_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_activitiesArgs = { +export type Queryc42161_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -389,14 +389,14 @@ export type Queryc59144_activitiesArgs = { }; -export type Queryc59144_rewardsMintArgs = { +export type Queryc42161_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_rewardsMintsArgs = { +export type Queryc42161_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -407,14 +407,14 @@ export type Queryc59144_rewardsMintsArgs = { }; -export type Queryc59144_preMiningLockArgs = { +export type Queryc42161_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc59144_preMiningLocksArgs = { +export type Queryc42161_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -425,39 +425,25 @@ export type Queryc59144_preMiningLocksArgs = { }; -export type Queryc59144__metaArgs = { +export type Queryc42161__metaArgs = { block?: InputMaybe; }; export type Subscription = { - x59144_ltoken?: Maybe; - x59144_ltokens: Array; - x59144_tvlchange?: Maybe; - x59144_tvlchanges: Array; - x59144_aprchange?: Maybe; - x59144_aprchanges: Array; - x59144_activity?: Maybe; - x59144_activities: Array; - x59144_rewardsMint?: Maybe; - x59144_rewardsMints: Array; - x59144_preMiningLock?: Maybe; - x59144_preMiningLocks: Array; - /** Access to subgraph metadata */ - x59144__meta?: Maybe<_Meta_>; - c42161_ltoken?: Maybe; - c42161_ltokens: Array; - c42161_tvlchange?: Maybe; - c42161_tvlchanges: Array; - c42161_aprchange?: Maybe; - c42161_aprchanges: Array; - c42161_activity?: Maybe; - c42161_activities: Array; - c42161_rewardsMint?: Maybe; - c42161_rewardsMints: Array; - c42161_preMiningLock?: Maybe; - c42161_preMiningLocks: Array; + c195_ltoken?: Maybe; + c195_ltokens: Array; + c195_tvlchange?: Maybe; + c195_tvlchanges: Array; + c195_aprchange?: Maybe; + c195_aprchanges: Array; + c195_activity?: Maybe; + c195_activities: Array; + c195_rewardsMint?: Maybe; + c195_rewardsMints: Array; + c195_preMiningLock?: Maybe; + c195_preMiningLocks: Array; /** Access to subgraph metadata */ - c42161__meta?: Maybe<_Meta_>; + c195__meta?: Maybe<_Meta_>; c59144_ltoken?: Maybe; c59144_ltokens: Array; c59144_tvlchange?: Maybe; @@ -472,17 +458,31 @@ export type Subscription = { c59144_preMiningLocks: Array; /** Access to subgraph metadata */ c59144__meta?: Maybe<_Meta_>; + c42161_ltoken?: Maybe; + c42161_ltokens: Array; + c42161_tvlchange?: Maybe; + c42161_tvlchanges: Array; + c42161_aprchange?: Maybe; + c42161_aprchanges: Array; + c42161_activity?: Maybe; + c42161_activities: Array; + c42161_rewardsMint?: Maybe; + c42161_rewardsMints: Array; + c42161_preMiningLock?: Maybe; + c42161_preMiningLocks: Array; + /** Access to subgraph metadata */ + c42161__meta?: Maybe<_Meta_>; }; -export type Subscriptionx59144_ltokenArgs = { +export type Subscriptionc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_ltokensArgs = { +export type Subscriptionc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -493,14 +493,14 @@ export type Subscriptionx59144_ltokensArgs = { }; -export type Subscriptionx59144_tvlchangeArgs = { +export type Subscriptionc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_tvlchangesArgs = { +export type Subscriptionc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -511,14 +511,14 @@ export type Subscriptionx59144_tvlchangesArgs = { }; -export type Subscriptionx59144_aprchangeArgs = { +export type Subscriptionc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_aprchangesArgs = { +export type Subscriptionc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -529,14 +529,14 @@ export type Subscriptionx59144_aprchangesArgs = { }; -export type Subscriptionx59144_activityArgs = { +export type Subscriptionc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_activitiesArgs = { +export type Subscriptionc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -547,14 +547,14 @@ export type Subscriptionx59144_activitiesArgs = { }; -export type Subscriptionx59144_rewardsMintArgs = { +export type Subscriptionc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_rewardsMintsArgs = { +export type Subscriptionc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -565,14 +565,14 @@ export type Subscriptionx59144_rewardsMintsArgs = { }; -export type Subscriptionx59144_preMiningLockArgs = { +export type Subscriptionc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_preMiningLocksArgs = { +export type Subscriptionc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -583,19 +583,19 @@ export type Subscriptionx59144_preMiningLocksArgs = { }; -export type Subscriptionx59144__metaArgs = { +export type Subscriptionc195__metaArgs = { block?: InputMaybe; }; -export type Subscriptionc42161_ltokenArgs = { +export type Subscriptionc59144_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_ltokensArgs = { +export type Subscriptionc59144_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -606,14 +606,14 @@ export type Subscriptionc42161_ltokensArgs = { }; -export type Subscriptionc42161_tvlchangeArgs = { +export type Subscriptionc59144_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_tvlchangesArgs = { +export type Subscriptionc59144_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -624,14 +624,14 @@ export type Subscriptionc42161_tvlchangesArgs = { }; -export type Subscriptionc42161_aprchangeArgs = { +export type Subscriptionc59144_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_aprchangesArgs = { +export type Subscriptionc59144_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -642,14 +642,14 @@ export type Subscriptionc42161_aprchangesArgs = { }; -export type Subscriptionc42161_activityArgs = { +export type Subscriptionc59144_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_activitiesArgs = { +export type Subscriptionc59144_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -660,14 +660,14 @@ export type Subscriptionc42161_activitiesArgs = { }; -export type Subscriptionc42161_rewardsMintArgs = { +export type Subscriptionc59144_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_rewardsMintsArgs = { +export type Subscriptionc59144_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -678,14 +678,14 @@ export type Subscriptionc42161_rewardsMintsArgs = { }; -export type Subscriptionc42161_preMiningLockArgs = { +export type Subscriptionc59144_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_preMiningLocksArgs = { +export type Subscriptionc59144_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -696,19 +696,19 @@ export type Subscriptionc42161_preMiningLocksArgs = { }; -export type Subscriptionc42161__metaArgs = { +export type Subscriptionc59144__metaArgs = { block?: InputMaybe; }; -export type Subscriptionc59144_ltokenArgs = { +export type Subscriptionc42161_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_ltokensArgs = { +export type Subscriptionc42161_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -719,14 +719,14 @@ export type Subscriptionc59144_ltokensArgs = { }; -export type Subscriptionc59144_tvlchangeArgs = { +export type Subscriptionc42161_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_tvlchangesArgs = { +export type Subscriptionc42161_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -737,14 +737,14 @@ export type Subscriptionc59144_tvlchangesArgs = { }; -export type Subscriptionc59144_aprchangeArgs = { +export type Subscriptionc42161_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_aprchangesArgs = { +export type Subscriptionc42161_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -755,14 +755,14 @@ export type Subscriptionc59144_aprchangesArgs = { }; -export type Subscriptionc59144_activityArgs = { +export type Subscriptionc42161_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_activitiesArgs = { +export type Subscriptionc42161_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -773,14 +773,14 @@ export type Subscriptionc59144_activitiesArgs = { }; -export type Subscriptionc59144_rewardsMintArgs = { +export type Subscriptionc42161_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_rewardsMintsArgs = { +export type Subscriptionc42161_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -791,14 +791,14 @@ export type Subscriptionc59144_rewardsMintsArgs = { }; -export type Subscriptionc59144_preMiningLockArgs = { +export type Subscriptionc42161_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc59144_preMiningLocksArgs = { +export type Subscriptionc42161_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -809,7 +809,7 @@ export type Subscriptionc59144_preMiningLocksArgs = { }; -export type Subscriptionc59144__metaArgs = { +export type Subscriptionc42161__metaArgs = { block?: InputMaybe; }; @@ -1548,32 +1548,19 @@ export type derivedFromDirectiveArgs = { export type derivedFromDirectiveResolver = DirectiveResolverFn; export type QueryResolvers = ResolversObject<{ - x59144_ltoken?: Resolver, ParentType, ContextType, RequireFields>; - x59144_ltokens?: Resolver, ParentType, ContextType, RequireFields>; - x59144_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; - x59144_tvlchanges?: Resolver, ParentType, ContextType, RequireFields>; - x59144_aprchange?: Resolver, ParentType, ContextType, RequireFields>; - x59144_aprchanges?: Resolver, ParentType, ContextType, RequireFields>; - x59144_activity?: Resolver, ParentType, ContextType, RequireFields>; - x59144_activities?: Resolver, ParentType, ContextType, RequireFields>; - x59144_rewardsMint?: Resolver, ParentType, ContextType, RequireFields>; - x59144_rewardsMints?: Resolver, ParentType, ContextType, RequireFields>; - x59144_preMiningLock?: Resolver, ParentType, ContextType, RequireFields>; - x59144_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; - x59144__meta?: Resolver, ParentType, ContextType, Partial>; - c42161_ltoken?: Resolver, ParentType, ContextType, RequireFields>; - c42161_ltokens?: Resolver, ParentType, ContextType, RequireFields>; - c42161_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; - c42161_tvlchanges?: Resolver, ParentType, ContextType, RequireFields>; - c42161_aprchange?: Resolver, ParentType, ContextType, RequireFields>; - c42161_aprchanges?: Resolver, ParentType, ContextType, RequireFields>; - c42161_activity?: Resolver, ParentType, ContextType, RequireFields>; - c42161_activities?: Resolver, ParentType, ContextType, RequireFields>; - c42161_rewardsMint?: Resolver, ParentType, ContextType, RequireFields>; - c42161_rewardsMints?: Resolver, ParentType, ContextType, RequireFields>; - c42161_preMiningLock?: Resolver, ParentType, ContextType, RequireFields>; - c42161_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; - c42161__meta?: Resolver, ParentType, ContextType, Partial>; + c195_ltoken?: Resolver, ParentType, ContextType, RequireFields>; + c195_ltokens?: Resolver, ParentType, ContextType, RequireFields>; + c195_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; + c195_tvlchanges?: Resolver, ParentType, ContextType, RequireFields>; + c195_aprchange?: Resolver, ParentType, ContextType, RequireFields>; + c195_aprchanges?: Resolver, ParentType, ContextType, RequireFields>; + c195_activity?: Resolver, ParentType, ContextType, RequireFields>; + c195_activities?: Resolver, ParentType, ContextType, RequireFields>; + c195_rewardsMint?: Resolver, ParentType, ContextType, RequireFields>; + c195_rewardsMints?: Resolver, ParentType, ContextType, RequireFields>; + c195_preMiningLock?: Resolver, ParentType, ContextType, RequireFields>; + c195_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; + c195__meta?: Resolver, ParentType, ContextType, Partial>; c59144_ltoken?: Resolver, ParentType, ContextType, RequireFields>; c59144_ltokens?: Resolver, ParentType, ContextType, RequireFields>; c59144_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; @@ -1587,35 +1574,35 @@ export type QueryResolvers, ParentType, ContextType, RequireFields>; c59144_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; c59144__meta?: Resolver, ParentType, ContextType, Partial>; + c42161_ltoken?: Resolver, ParentType, ContextType, RequireFields>; + c42161_ltokens?: Resolver, ParentType, ContextType, RequireFields>; + c42161_tvlchange?: Resolver, ParentType, ContextType, RequireFields>; + c42161_tvlchanges?: Resolver, ParentType, ContextType, RequireFields>; + c42161_aprchange?: Resolver, ParentType, ContextType, RequireFields>; + c42161_aprchanges?: Resolver, ParentType, ContextType, RequireFields>; + c42161_activity?: Resolver, ParentType, ContextType, RequireFields>; + c42161_activities?: Resolver, ParentType, ContextType, RequireFields>; + c42161_rewardsMint?: Resolver, ParentType, ContextType, RequireFields>; + c42161_rewardsMints?: Resolver, ParentType, ContextType, RequireFields>; + c42161_preMiningLock?: Resolver, ParentType, ContextType, RequireFields>; + c42161_preMiningLocks?: Resolver, ParentType, ContextType, RequireFields>; + c42161__meta?: Resolver, ParentType, ContextType, Partial>; }>; export type SubscriptionResolvers = ResolversObject<{ - x59144_ltoken?: SubscriptionResolver, "x59144_ltoken", ParentType, ContextType, RequireFields>; - x59144_ltokens?: SubscriptionResolver, "x59144_ltokens", ParentType, ContextType, RequireFields>; - x59144_tvlchange?: SubscriptionResolver, "x59144_tvlchange", ParentType, ContextType, RequireFields>; - x59144_tvlchanges?: SubscriptionResolver, "x59144_tvlchanges", ParentType, ContextType, RequireFields>; - x59144_aprchange?: SubscriptionResolver, "x59144_aprchange", ParentType, ContextType, RequireFields>; - x59144_aprchanges?: SubscriptionResolver, "x59144_aprchanges", ParentType, ContextType, RequireFields>; - x59144_activity?: SubscriptionResolver, "x59144_activity", ParentType, ContextType, RequireFields>; - x59144_activities?: SubscriptionResolver, "x59144_activities", ParentType, ContextType, RequireFields>; - x59144_rewardsMint?: SubscriptionResolver, "x59144_rewardsMint", ParentType, ContextType, RequireFields>; - x59144_rewardsMints?: SubscriptionResolver, "x59144_rewardsMints", ParentType, ContextType, RequireFields>; - x59144_preMiningLock?: SubscriptionResolver, "x59144_preMiningLock", ParentType, ContextType, RequireFields>; - x59144_preMiningLocks?: SubscriptionResolver, "x59144_preMiningLocks", ParentType, ContextType, RequireFields>; - x59144__meta?: SubscriptionResolver, "x59144__meta", ParentType, ContextType, Partial>; - c42161_ltoken?: SubscriptionResolver, "c42161_ltoken", ParentType, ContextType, RequireFields>; - c42161_ltokens?: SubscriptionResolver, "c42161_ltokens", ParentType, ContextType, RequireFields>; - c42161_tvlchange?: SubscriptionResolver, "c42161_tvlchange", ParentType, ContextType, RequireFields>; - c42161_tvlchanges?: SubscriptionResolver, "c42161_tvlchanges", ParentType, ContextType, RequireFields>; - c42161_aprchange?: SubscriptionResolver, "c42161_aprchange", ParentType, ContextType, RequireFields>; - c42161_aprchanges?: SubscriptionResolver, "c42161_aprchanges", ParentType, ContextType, RequireFields>; - c42161_activity?: SubscriptionResolver, "c42161_activity", ParentType, ContextType, RequireFields>; - c42161_activities?: SubscriptionResolver, "c42161_activities", ParentType, ContextType, RequireFields>; - c42161_rewardsMint?: SubscriptionResolver, "c42161_rewardsMint", ParentType, ContextType, RequireFields>; - c42161_rewardsMints?: SubscriptionResolver, "c42161_rewardsMints", ParentType, ContextType, RequireFields>; - c42161_preMiningLock?: SubscriptionResolver, "c42161_preMiningLock", ParentType, ContextType, RequireFields>; - c42161_preMiningLocks?: SubscriptionResolver, "c42161_preMiningLocks", ParentType, ContextType, RequireFields>; - c42161__meta?: SubscriptionResolver, "c42161__meta", ParentType, ContextType, Partial>; + c195_ltoken?: SubscriptionResolver, "c195_ltoken", ParentType, ContextType, RequireFields>; + c195_ltokens?: SubscriptionResolver, "c195_ltokens", ParentType, ContextType, RequireFields>; + c195_tvlchange?: SubscriptionResolver, "c195_tvlchange", ParentType, ContextType, RequireFields>; + c195_tvlchanges?: SubscriptionResolver, "c195_tvlchanges", ParentType, ContextType, RequireFields>; + c195_aprchange?: SubscriptionResolver, "c195_aprchange", ParentType, ContextType, RequireFields>; + c195_aprchanges?: SubscriptionResolver, "c195_aprchanges", ParentType, ContextType, RequireFields>; + c195_activity?: SubscriptionResolver, "c195_activity", ParentType, ContextType, RequireFields>; + c195_activities?: SubscriptionResolver, "c195_activities", ParentType, ContextType, RequireFields>; + c195_rewardsMint?: SubscriptionResolver, "c195_rewardsMint", ParentType, ContextType, RequireFields>; + c195_rewardsMints?: SubscriptionResolver, "c195_rewardsMints", ParentType, ContextType, RequireFields>; + c195_preMiningLock?: SubscriptionResolver, "c195_preMiningLock", ParentType, ContextType, RequireFields>; + c195_preMiningLocks?: SubscriptionResolver, "c195_preMiningLocks", ParentType, ContextType, RequireFields>; + c195__meta?: SubscriptionResolver, "c195__meta", ParentType, ContextType, Partial>; c59144_ltoken?: SubscriptionResolver, "c59144_ltoken", ParentType, ContextType, RequireFields>; c59144_ltokens?: SubscriptionResolver, "c59144_ltokens", ParentType, ContextType, RequireFields>; c59144_tvlchange?: SubscriptionResolver, "c59144_tvlchange", ParentType, ContextType, RequireFields>; @@ -1629,6 +1616,19 @@ export type SubscriptionResolvers, "c59144_preMiningLock", ParentType, ContextType, RequireFields>; c59144_preMiningLocks?: SubscriptionResolver, "c59144_preMiningLocks", ParentType, ContextType, RequireFields>; c59144__meta?: SubscriptionResolver, "c59144__meta", ParentType, ContextType, Partial>; + c42161_ltoken?: SubscriptionResolver, "c42161_ltoken", ParentType, ContextType, RequireFields>; + c42161_ltokens?: SubscriptionResolver, "c42161_ltokens", ParentType, ContextType, RequireFields>; + c42161_tvlchange?: SubscriptionResolver, "c42161_tvlchange", ParentType, ContextType, RequireFields>; + c42161_tvlchanges?: SubscriptionResolver, "c42161_tvlchanges", ParentType, ContextType, RequireFields>; + c42161_aprchange?: SubscriptionResolver, "c42161_aprchange", ParentType, ContextType, RequireFields>; + c42161_aprchanges?: SubscriptionResolver, "c42161_aprchanges", ParentType, ContextType, RequireFields>; + c42161_activity?: SubscriptionResolver, "c42161_activity", ParentType, ContextType, RequireFields>; + c42161_activities?: SubscriptionResolver, "c42161_activities", ParentType, ContextType, RequireFields>; + c42161_rewardsMint?: SubscriptionResolver, "c42161_rewardsMint", ParentType, ContextType, RequireFields>; + c42161_rewardsMints?: SubscriptionResolver, "c42161_rewardsMints", ParentType, ContextType, RequireFields>; + c42161_preMiningLock?: SubscriptionResolver, "c42161_preMiningLock", ParentType, ContextType, RequireFields>; + c42161_preMiningLocks?: SubscriptionResolver, "c42161_preMiningLocks", ParentType, ContextType, RequireFields>; + c42161__meta?: SubscriptionResolver, "c42161__meta", ParentType, ContextType, Partial>; }>; export type APRChangeResolvers = ResolversObject<{ @@ -1743,7 +1743,7 @@ export type DirectiveResolvers = ResolversObject<{ derivedFrom?: derivedFromDirectiveResolver; }>; -export type MeshContext = OkxX1TestnetTypes.Context & ArbitrumTypes.Context & LineaTypes.Context & BaseMeshContext; +export type MeshContext = OkxX1TestnetTypes.Context & LineaTypes.Context & ArbitrumTypes.Context & BaseMeshContext; import { fileURLToPath } from '@graphql-mesh/utils'; @@ -1755,10 +1755,10 @@ const importFn: ImportFn = (moduleId: string) => { case ".graphclient/sources/OKX_X1_Testnet/introspectionSchema": return Promise.resolve(importedModule$0) as T; - case ".graphclient/sources/arbitrum/introspectionSchema": + case ".graphclient/sources/linea/introspectionSchema": return Promise.resolve(importedModule$1) as T; - case ".graphclient/sources/linea/introspectionSchema": + case ".graphclient/sources/arbitrum/introspectionSchema": return Promise.resolve(importedModule$2) as T; default: @@ -1845,7 +1845,7 @@ lineaTransforms[0] = new PrefixTransform({ }); okxX1TestnetTransforms[0] = new PrefixTransform({ apiName: "OKX_X1_Testnet", - config: {"mode":"wrap","value":"x59144_","includeRootOperations":true,"includeTypes":false}, + config: {"mode":"wrap","value":"c195_","includeRootOperations":true,"includeTypes":false}, baseDir, cache, pubsub, diff --git a/.graphclient/schema.graphql b/.graphclient/schema.graphql index 44fa0437..a5222a2d 100644 --- a/.graphclient/schema.graphql +++ b/.graphclient/schema.graphql @@ -13,7 +13,7 @@ directive @subgraphId(id: String!) on OBJECT directive @derivedFrom(field: String!) on FIELD_DEFINITION type Query { - x59144_ltoken( + c195_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -24,7 +24,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - x59144_ltokens( + c195_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -39,7 +39,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - x59144_tvlchange( + c195_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -50,7 +50,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - x59144_tvlchanges( + c195_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -65,7 +65,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - x59144_aprchange( + c195_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -76,7 +76,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - x59144_aprchanges( + c195_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -91,7 +91,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - x59144_activity( + c195_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -102,7 +102,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - x59144_activities( + c195_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -117,7 +117,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - x59144_rewardsMint( + c195_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -128,7 +128,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - x59144_rewardsMints( + c195_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -143,7 +143,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - x59144_preMiningLock( + c195_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -154,7 +154,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - x59144_preMiningLocks( + c195_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -170,8 +170,8 @@ type Query { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - x59144__meta(block: Block_height): _Meta_ - c42161_ltoken( + c195__meta(block: Block_height): _Meta_ + c59144_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -182,7 +182,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - c42161_ltokens( + c59144_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -197,7 +197,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - c42161_tvlchange( + c59144_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -208,7 +208,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - c42161_tvlchanges( + c59144_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -223,7 +223,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - c42161_aprchange( + c59144_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -234,7 +234,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - c42161_aprchanges( + c59144_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -249,7 +249,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - c42161_activity( + c59144_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -260,7 +260,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - c42161_activities( + c59144_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -275,7 +275,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - c42161_rewardsMint( + c59144_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -286,7 +286,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - c42161_rewardsMints( + c59144_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -301,7 +301,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - c42161_preMiningLock( + c59144_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -312,7 +312,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - c42161_preMiningLocks( + c59144_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -328,8 +328,8 @@ type Query { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - c42161__meta(block: Block_height): _Meta_ - c59144_ltoken( + c59144__meta(block: Block_height): _Meta_ + c42161_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -340,7 +340,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - c59144_ltokens( + c42161_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -355,7 +355,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - c59144_tvlchange( + c42161_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -366,7 +366,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - c59144_tvlchanges( + c42161_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -381,7 +381,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - c59144_aprchange( + c42161_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -392,7 +392,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - c59144_aprchanges( + c42161_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -407,7 +407,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - c59144_activity( + c42161_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -418,7 +418,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - c59144_activities( + c42161_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -433,7 +433,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - c59144_rewardsMint( + c42161_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -444,7 +444,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - c59144_rewardsMints( + c42161_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -459,7 +459,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - c59144_preMiningLock( + c42161_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -470,7 +470,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - c59144_preMiningLocks( + c42161_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -486,11 +486,11 @@ type Query { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - c59144__meta(block: Block_height): _Meta_ + c42161__meta(block: Block_height): _Meta_ } type Subscription { - x59144_ltoken( + c195_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -501,7 +501,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - x59144_ltokens( + c195_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -516,7 +516,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - x59144_tvlchange( + c195_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -527,7 +527,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - x59144_tvlchanges( + c195_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -542,7 +542,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - x59144_aprchange( + c195_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -553,7 +553,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - x59144_aprchanges( + c195_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -568,7 +568,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - x59144_activity( + c195_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -579,7 +579,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - x59144_activities( + c195_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -594,7 +594,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - x59144_rewardsMint( + c195_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -605,7 +605,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - x59144_rewardsMints( + c195_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -620,7 +620,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - x59144_preMiningLock( + c195_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -631,7 +631,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - x59144_preMiningLocks( + c195_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -647,8 +647,8 @@ type Subscription { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - x59144__meta(block: Block_height): _Meta_ - c42161_ltoken( + c195__meta(block: Block_height): _Meta_ + c59144_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -659,7 +659,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - c42161_ltokens( + c59144_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -674,7 +674,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - c42161_tvlchange( + c59144_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -685,7 +685,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - c42161_tvlchanges( + c59144_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -700,7 +700,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - c42161_aprchange( + c59144_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -711,7 +711,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - c42161_aprchanges( + c59144_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -726,7 +726,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - c42161_activity( + c59144_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -737,7 +737,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - c42161_activities( + c59144_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -752,7 +752,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - c42161_rewardsMint( + c59144_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -763,7 +763,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - c42161_rewardsMints( + c59144_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -778,7 +778,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - c42161_preMiningLock( + c59144_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -789,7 +789,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - c42161_preMiningLocks( + c59144_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -805,8 +805,8 @@ type Subscription { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - c42161__meta(block: Block_height): _Meta_ - c59144_ltoken( + c59144__meta(block: Block_height): _Meta_ + c42161_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -817,7 +817,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - c59144_ltokens( + c42161_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -832,7 +832,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - c59144_tvlchange( + c42161_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -843,7 +843,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - c59144_tvlchanges( + c42161_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -858,7 +858,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - c59144_aprchange( + c42161_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -869,7 +869,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - c59144_aprchanges( + c42161_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -884,7 +884,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - c59144_activity( + c42161_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -895,7 +895,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - c59144_activities( + c42161_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -910,7 +910,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - c59144_rewardsMint( + c42161_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -921,7 +921,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - c59144_rewardsMints( + c42161_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -936,7 +936,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - c59144_preMiningLock( + c42161_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -947,7 +947,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - c59144_preMiningLocks( + c42161_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -963,7 +963,7 @@ type Subscription { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - c59144__meta(block: Block_height): _Meta_ + c42161__meta(block: Block_height): _Meta_ } type APRChange { diff --git a/.graphclient/sources/OKX_X1_Testnet/schema.graphql b/.graphclient/sources/OKX_X1_Testnet/schema.graphql index ccb93edd..1735f283 100644 --- a/.graphclient/sources/OKX_X1_Testnet/schema.graphql +++ b/.graphclient/sources/OKX_X1_Testnet/schema.graphql @@ -331,7 +331,7 @@ enum PreMiningLock_orderBy { } type Query { - x59144_ltoken( + c195_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -342,7 +342,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - x59144_ltokens( + c195_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -357,7 +357,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - x59144_tvlchange( + c195_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -368,7 +368,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - x59144_tvlchanges( + c195_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -383,7 +383,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - x59144_aprchange( + c195_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -394,7 +394,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - x59144_aprchanges( + c195_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -409,7 +409,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - x59144_activity( + c195_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -420,7 +420,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - x59144_activities( + c195_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -435,7 +435,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - x59144_rewardsMint( + c195_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -446,7 +446,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - x59144_rewardsMints( + c195_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -461,7 +461,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - x59144_preMiningLock( + c195_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -472,7 +472,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - x59144_preMiningLocks( + c195_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -488,7 +488,7 @@ type Query { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - x59144__meta(block: Block_height): _Meta_ + c195__meta(block: Block_height): _Meta_ } type RewardsMint { @@ -584,7 +584,7 @@ enum RewardsMint_orderBy { } type Subscription { - x59144_ltoken( + c195_ltoken( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -595,7 +595,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): LToken - x59144_ltokens( + c195_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -610,7 +610,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - x59144_tvlchange( + c195_tvlchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -621,7 +621,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): TVLChange - x59144_tvlchanges( + c195_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -636,7 +636,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - x59144_aprchange( + c195_aprchange( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -647,7 +647,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): APRChange - x59144_aprchanges( + c195_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -662,7 +662,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - x59144_activity( + c195_activity( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -673,7 +673,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): Activity - x59144_activities( + c195_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -688,7 +688,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - x59144_rewardsMint( + c195_rewardsMint( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -699,7 +699,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): RewardsMint - x59144_rewardsMints( + c195_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -714,7 +714,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - x59144_preMiningLock( + c195_preMiningLock( id: ID! """ The block at which the query should be executed. Can either be a `{ hash: Bytes }` value containing a block hash, a `{ number: Int }` containing the block number, or a `{ number_gte: Int }` containing the minimum block number. In the case of `number_gte`, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted. @@ -725,7 +725,7 @@ type Subscription { """ subgraphError: _SubgraphErrorPolicy_! = deny ): PreMiningLock - x59144_preMiningLocks( + c195_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -741,7 +741,7 @@ type Subscription { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - x59144__meta(block: Block_height): _Meta_ + c195__meta(block: Block_height): _Meta_ } type TVLChange { diff --git a/.graphclient/sources/OKX_X1_Testnet/types.ts b/.graphclient/sources/OKX_X1_Testnet/types.ts index b7fb9221..f98cb1ba 100644 --- a/.graphclient/sources/OKX_X1_Testnet/types.ts +++ b/.graphclient/sources/OKX_X1_Testnet/types.ts @@ -363,31 +363,31 @@ export type PreMiningLock_orderBy = | 'duration'; export type Query = { - x59144_ltoken?: Maybe; - x59144_ltokens: Array; - x59144_tvlchange?: Maybe; - x59144_tvlchanges: Array; - x59144_aprchange?: Maybe; - x59144_aprchanges: Array; - x59144_activity?: Maybe; - x59144_activities: Array; - x59144_rewardsMint?: Maybe; - x59144_rewardsMints: Array; - x59144_preMiningLock?: Maybe; - x59144_preMiningLocks: Array; + c195_ltoken?: Maybe; + c195_ltokens: Array; + c195_tvlchange?: Maybe; + c195_tvlchanges: Array; + c195_aprchange?: Maybe; + c195_aprchanges: Array; + c195_activity?: Maybe; + c195_activities: Array; + c195_rewardsMint?: Maybe; + c195_rewardsMints: Array; + c195_preMiningLock?: Maybe; + c195_preMiningLocks: Array; /** Access to subgraph metadata */ - x59144__meta?: Maybe<_Meta_>; + c195__meta?: Maybe<_Meta_>; }; -export type Queryx59144_ltokenArgs = { +export type Queryc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_ltokensArgs = { +export type Queryc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -398,14 +398,14 @@ export type Queryx59144_ltokensArgs = { }; -export type Queryx59144_tvlchangeArgs = { +export type Queryc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_tvlchangesArgs = { +export type Queryc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -416,14 +416,14 @@ export type Queryx59144_tvlchangesArgs = { }; -export type Queryx59144_aprchangeArgs = { +export type Queryc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_aprchangesArgs = { +export type Queryc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -434,14 +434,14 @@ export type Queryx59144_aprchangesArgs = { }; -export type Queryx59144_activityArgs = { +export type Queryc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_activitiesArgs = { +export type Queryc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -452,14 +452,14 @@ export type Queryx59144_activitiesArgs = { }; -export type Queryx59144_rewardsMintArgs = { +export type Queryc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_rewardsMintsArgs = { +export type Queryc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -470,14 +470,14 @@ export type Queryx59144_rewardsMintsArgs = { }; -export type Queryx59144_preMiningLockArgs = { +export type Queryc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryx59144_preMiningLocksArgs = { +export type Queryc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -488,7 +488,7 @@ export type Queryx59144_preMiningLocksArgs = { }; -export type Queryx59144__metaArgs = { +export type Queryc195__metaArgs = { block?: InputMaybe; }; @@ -584,31 +584,31 @@ export type RewardsMint_orderBy = | 'growth'; export type Subscription = { - x59144_ltoken?: Maybe; - x59144_ltokens: Array; - x59144_tvlchange?: Maybe; - x59144_tvlchanges: Array; - x59144_aprchange?: Maybe; - x59144_aprchanges: Array; - x59144_activity?: Maybe; - x59144_activities: Array; - x59144_rewardsMint?: Maybe; - x59144_rewardsMints: Array; - x59144_preMiningLock?: Maybe; - x59144_preMiningLocks: Array; + c195_ltoken?: Maybe; + c195_ltokens: Array; + c195_tvlchange?: Maybe; + c195_tvlchanges: Array; + c195_aprchange?: Maybe; + c195_aprchanges: Array; + c195_activity?: Maybe; + c195_activities: Array; + c195_rewardsMint?: Maybe; + c195_rewardsMints: Array; + c195_preMiningLock?: Maybe; + c195_preMiningLocks: Array; /** Access to subgraph metadata */ - x59144__meta?: Maybe<_Meta_>; + c195__meta?: Maybe<_Meta_>; }; -export type Subscriptionx59144_ltokenArgs = { +export type Subscriptionc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_ltokensArgs = { +export type Subscriptionc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -619,14 +619,14 @@ export type Subscriptionx59144_ltokensArgs = { }; -export type Subscriptionx59144_tvlchangeArgs = { +export type Subscriptionc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_tvlchangesArgs = { +export type Subscriptionc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -637,14 +637,14 @@ export type Subscriptionx59144_tvlchangesArgs = { }; -export type Subscriptionx59144_aprchangeArgs = { +export type Subscriptionc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_aprchangesArgs = { +export type Subscriptionc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -655,14 +655,14 @@ export type Subscriptionx59144_aprchangesArgs = { }; -export type Subscriptionx59144_activityArgs = { +export type Subscriptionc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_activitiesArgs = { +export type Subscriptionc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -673,14 +673,14 @@ export type Subscriptionx59144_activitiesArgs = { }; -export type Subscriptionx59144_rewardsMintArgs = { +export type Subscriptionc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_rewardsMintsArgs = { +export type Subscriptionc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -691,14 +691,14 @@ export type Subscriptionx59144_rewardsMintsArgs = { }; -export type Subscriptionx59144_preMiningLockArgs = { +export type Subscriptionc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionx59144_preMiningLocksArgs = { +export type Subscriptionc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -709,7 +709,7 @@ export type Subscriptionx59144_preMiningLocksArgs = { }; -export type Subscriptionx59144__metaArgs = { +export type Subscriptionc195__metaArgs = { block?: InputMaybe; }; @@ -809,31 +809,31 @@ export type _SubgraphErrorPolicy_ = export type QuerySdk = { /** null **/ - x59144_ltoken: InContextSdkMethod, + c195_ltoken: InContextSdkMethod, /** null **/ - x59144_ltokens: InContextSdkMethod, + c195_ltokens: InContextSdkMethod, /** null **/ - x59144_tvlchange: InContextSdkMethod, + c195_tvlchange: InContextSdkMethod, /** null **/ - x59144_tvlchanges: InContextSdkMethod, + c195_tvlchanges: InContextSdkMethod, /** null **/ - x59144_aprchange: InContextSdkMethod, + c195_aprchange: InContextSdkMethod, /** null **/ - x59144_aprchanges: InContextSdkMethod, + c195_aprchanges: InContextSdkMethod, /** null **/ - x59144_activity: InContextSdkMethod, + c195_activity: InContextSdkMethod, /** null **/ - x59144_activities: InContextSdkMethod, + c195_activities: InContextSdkMethod, /** null **/ - x59144_rewardsMint: InContextSdkMethod, + c195_rewardsMint: InContextSdkMethod, /** null **/ - x59144_rewardsMints: InContextSdkMethod, + c195_rewardsMints: InContextSdkMethod, /** null **/ - x59144_preMiningLock: InContextSdkMethod, + c195_preMiningLock: InContextSdkMethod, /** null **/ - x59144_preMiningLocks: InContextSdkMethod, + c195_preMiningLocks: InContextSdkMethod, /** Access to subgraph metadata **/ - x59144__meta: InContextSdkMethod + c195__meta: InContextSdkMethod }; export type MutationSdk = { @@ -842,31 +842,31 @@ export type _SubgraphErrorPolicy_ = export type SubscriptionSdk = { /** null **/ - x59144_ltoken: InContextSdkMethod, + c195_ltoken: InContextSdkMethod, /** null **/ - x59144_ltokens: InContextSdkMethod, + c195_ltokens: InContextSdkMethod, /** null **/ - x59144_tvlchange: InContextSdkMethod, + c195_tvlchange: InContextSdkMethod, /** null **/ - x59144_tvlchanges: InContextSdkMethod, + c195_tvlchanges: InContextSdkMethod, /** null **/ - x59144_aprchange: InContextSdkMethod, + c195_aprchange: InContextSdkMethod, /** null **/ - x59144_aprchanges: InContextSdkMethod, + c195_aprchanges: InContextSdkMethod, /** null **/ - x59144_activity: InContextSdkMethod, + c195_activity: InContextSdkMethod, /** null **/ - x59144_activities: InContextSdkMethod, + c195_activities: InContextSdkMethod, /** null **/ - x59144_rewardsMint: InContextSdkMethod, + c195_rewardsMint: InContextSdkMethod, /** null **/ - x59144_rewardsMints: InContextSdkMethod, + c195_rewardsMints: InContextSdkMethod, /** null **/ - x59144_preMiningLock: InContextSdkMethod, + c195_preMiningLock: InContextSdkMethod, /** null **/ - x59144_preMiningLocks: InContextSdkMethod, + c195_preMiningLocks: InContextSdkMethod, /** Access to subgraph metadata **/ - x59144__meta: InContextSdkMethod + c195__meta: InContextSdkMethod }; export type Context = { diff --git a/.graphclientrc.yml b/.graphclientrc.yml index 44457549..90ad3ac7 100644 --- a/.graphclientrc.yml +++ b/.graphclientrc.yml @@ -29,7 +29,7 @@ sources: transforms: - prefix: mode: wrap - value: "x59144_" + value: "c195_" includeRootOperations: true includeTypes: false From c8433b8c1bc667a7fd2cc3ae4ba868023816c763 Mon Sep 17 00:00:00 2001 From: hatem Date: Fri, 1 Mar 2024 15:33:34 +0100 Subject: [PATCH 5/5] adding chanis to all files --- package.json | 2 +- src/app/api/airdrop/referral/get/route.ts | 2 +- src/components/app/invest/AppInvestHoldersCount.tsx | 2 +- src/components/app/invest/AppInvestTVL.tsx | 2 +- src/components/app/invest/AppInvestTokens.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 669524c0..f5255159 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "graph:linea-remove": "graph remove --node https://graph-deploy.linea.build/ LedgityLabs/LedgityYield", "graph:arbitrum-gen": "cd subgraph && graph codegen ./arbitrum-subgraph.yaml && graph build ./arbitrum-subgraph.yaml", "graph:arbitrum-deploy": "graph deploy --studio ledgity-yield-arbitrum ./subgraph/arbitrum-subgraph.yaml", - "graph:OKX_X1_Testnet-remove": "graph remove --node https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield/ " + "graph:OKX_X1_Testnet-remove": "graph remove --node https://www.okx.com/api/v1/x1-testnet/index/subgraphs/name/LedgityLabs/LedgityYield/" }, "dependencies": { "@auth/prisma-adapter": "^1.0.11", diff --git a/src/app/api/airdrop/referral/get/route.ts b/src/app/api/airdrop/referral/get/route.ts index a4deda6f..0f004915 100644 --- a/src/app/api/airdrop/referral/get/route.ts +++ b/src/app/api/airdrop/referral/get/route.ts @@ -5,7 +5,7 @@ import { prisma } from "@/lib/db"; // import { PreMiningLock, execute } from "../../../../../../.graphclient"; import { formatUnits, parseUnits } from "viem"; -const availableChains = [42161, 59144]; +const availableChains = [42161, 59144 ,195]; export async function GET() { const session = await getServerSession(nextAuthOptions); diff --git a/src/components/app/invest/AppInvestHoldersCount.tsx b/src/components/app/invest/AppInvestHoldersCount.tsx index b5380675..8442c559 100644 --- a/src/components/app/invest/AppInvestHoldersCount.tsx +++ b/src/components/app/invest/AppInvestHoldersCount.tsx @@ -4,7 +4,7 @@ import { FC, useEffect, useState } from "react"; import { getTokenUSDRate } from "@/lib/getTokenUSDRate"; import { parseUnits } from "viem"; -const availableChains = ["42161", "59144"]; +const availableChains = ["42161", "59144","195"]; interface Props extends React.HTMLAttributes {} diff --git a/src/components/app/invest/AppInvestTVL.tsx b/src/components/app/invest/AppInvestTVL.tsx index eb47b5ba..b50c66e1 100644 --- a/src/components/app/invest/AppInvestTVL.tsx +++ b/src/components/app/invest/AppInvestTVL.tsx @@ -9,7 +9,7 @@ import { watchBlockNumber, readContracts } from "@wagmi/core"; import { config } from "@/lib/dapp/config"; import { useCurrentChain } from "@/hooks/useCurrentChain"; -const availableChains = [42161, 59144]; +const availableChains = [42161, 59144,195]; interface Props extends React.HTMLAttributes {} diff --git a/src/components/app/invest/AppInvestTokens.tsx b/src/components/app/invest/AppInvestTokens.tsx index 5b2635a7..c9b908ce 100644 --- a/src/components/app/invest/AppInvestTokens.tsx +++ b/src/components/app/invest/AppInvestTokens.tsx @@ -24,7 +24,7 @@ import { JSONStringify } from "@/lib/jsonStringify"; import { useSwitchAppTab } from "@/hooks/useSwitchAppTab"; import { useCurrentChain } from "@/hooks/useCurrentChain"; -const availableChains = [42161, 59144]; +const availableChains = [42161, 59144,195]; interface Pool { tokenSymbol: string;