diff --git a/.graphclient/index.ts b/.graphclient/index.ts index eefba6ba..f7b50142 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 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/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] }; @@ -44,20 +46,20 @@ export type Scalars = { }; export type Query = { - 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; @@ -72,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 Queryc42161_ltokenArgs = { +export type Queryc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_ltokensArgs = { +export type Queryc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -93,14 +109,14 @@ export type Queryc42161_ltokensArgs = { }; -export type Queryc42161_tvlchangeArgs = { +export type Queryc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_tvlchangesArgs = { +export type Queryc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -111,14 +127,14 @@ export type Queryc42161_tvlchangesArgs = { }; -export type Queryc42161_aprchangeArgs = { +export type Queryc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_aprchangesArgs = { +export type Queryc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -129,14 +145,14 @@ export type Queryc42161_aprchangesArgs = { }; -export type Queryc42161_activityArgs = { +export type Queryc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_activitiesArgs = { +export type Queryc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -147,14 +163,14 @@ export type Queryc42161_activitiesArgs = { }; -export type Queryc42161_rewardsMintArgs = { +export type Queryc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_rewardsMintsArgs = { +export type Queryc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -165,14 +181,14 @@ export type Queryc42161_rewardsMintsArgs = { }; -export type Queryc42161_preMiningLockArgs = { +export type Queryc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Queryc42161_preMiningLocksArgs = { +export type Queryc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -183,7 +199,7 @@ export type Queryc42161_preMiningLocksArgs = { }; -export type Queryc42161__metaArgs = { +export type Queryc195__metaArgs = { block?: InputMaybe; }; @@ -300,21 +316,134 @@ export type Queryc59144__metaArgs = { block?: InputMaybe; }; + +export type Queryc42161_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc42161__metaArgs = { + block?: InputMaybe; +}; + export type Subscription = { - 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; @@ -329,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 Subscriptionc42161_ltokenArgs = { +export type Subscriptionc195_ltokenArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_ltokensArgs = { +export type Subscriptionc195_ltokensArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -350,14 +493,14 @@ export type Subscriptionc42161_ltokensArgs = { }; -export type Subscriptionc42161_tvlchangeArgs = { +export type Subscriptionc195_tvlchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_tvlchangesArgs = { +export type Subscriptionc195_tvlchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -368,14 +511,14 @@ export type Subscriptionc42161_tvlchangesArgs = { }; -export type Subscriptionc42161_aprchangeArgs = { +export type Subscriptionc195_aprchangeArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_aprchangesArgs = { +export type Subscriptionc195_aprchangesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -386,14 +529,14 @@ export type Subscriptionc42161_aprchangesArgs = { }; -export type Subscriptionc42161_activityArgs = { +export type Subscriptionc195_activityArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_activitiesArgs = { +export type Subscriptionc195_activitiesArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -404,14 +547,14 @@ export type Subscriptionc42161_activitiesArgs = { }; -export type Subscriptionc42161_rewardsMintArgs = { +export type Subscriptionc195_rewardsMintArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_rewardsMintsArgs = { +export type Subscriptionc195_rewardsMintsArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -422,14 +565,14 @@ export type Subscriptionc42161_rewardsMintsArgs = { }; -export type Subscriptionc42161_preMiningLockArgs = { +export type Subscriptionc195_preMiningLockArgs = { id: Scalars['ID']; block?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; }; -export type Subscriptionc42161_preMiningLocksArgs = { +export type Subscriptionc195_preMiningLocksArgs = { skip?: InputMaybe; first?: InputMaybe; orderBy?: InputMaybe; @@ -440,7 +583,7 @@ export type Subscriptionc42161_preMiningLocksArgs = { }; -export type Subscriptionc42161__metaArgs = { +export type Subscriptionc195__metaArgs = { block?: InputMaybe; }; @@ -557,6 +700,119 @@ export type Subscriptionc59144__metaArgs = { block?: InputMaybe; }; + +export type Subscriptionc42161_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc42161__metaArgs = { + block?: InputMaybe; +}; + export type APRChange = { id: Scalars['ID']; ltoken: LToken; @@ -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,19 +1548,19 @@ export type derivedFromDirectiveArgs = { export type derivedFromDirectiveResolver = DirectiveResolverFn; export type QueryResolvers = ResolversObject<{ - 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>; @@ -1318,22 +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<{ - 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>; @@ -1347,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<{ @@ -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 & LineaTypes.Context & ArbitrumTypes.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": return Promise.resolve(importedModule$1) as T; + case ".graphclient/sources/arbitrum/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":"c195_","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..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 { - c42161_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 - c42161_ltokens( + c195_ltokens( skip: Int = 0 first: Int = 100 orderBy: LToken_orderBy @@ -39,7 +39,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [LToken!]! - c42161_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 - c42161_tvlchanges( + c195_tvlchanges( skip: Int = 0 first: Int = 100 orderBy: TVLChange_orderBy @@ -65,7 +65,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [TVLChange!]! - c42161_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 - c42161_aprchanges( + c195_aprchanges( skip: Int = 0 first: Int = 100 orderBy: APRChange_orderBy @@ -91,7 +91,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [APRChange!]! - c42161_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 - c42161_activities( + c195_activities( skip: Int = 0 first: Int = 100 orderBy: Activity_orderBy @@ -117,7 +117,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [Activity!]! - c42161_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 - c42161_rewardsMints( + c195_rewardsMints( skip: Int = 0 first: Int = 100 orderBy: RewardsMint_orderBy @@ -143,7 +143,7 @@ type Query { """ subgraphError: _SubgraphErrorPolicy_! = deny ): [RewardsMint!]! - c42161_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 - c42161_preMiningLocks( + c195_preMiningLocks( skip: Int = 0 first: Int = 100 orderBy: PreMiningLock_orderBy @@ -170,7 +170,7 @@ type Query { subgraphError: _SubgraphErrorPolicy_! = deny ): [PreMiningLock!]! """Access to subgraph metadata""" - c42161__meta(block: Block_height): _Meta_ + c195__meta(block: Block_height): _Meta_ c59144_ltoken( id: ID! """ @@ -329,9 +329,6 @@ type Query { ): [PreMiningLock!]! """Access to subgraph metadata""" c59144__meta(block: Block_height): _Meta_ -} - -type Subscription { c42161_ltoken( id: ID! """ @@ -490,6 +487,167 @@ type Subscription { ): [PreMiningLock!]! """Access to subgraph metadata""" c42161__meta(block: Block_height): _Meta_ +} + +type Subscription { + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + c195_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""" + c195__meta(block: Block_height): _Meta_ c59144_ltoken( id: ID! """ @@ -648,6 +806,164 @@ type Subscription { ): [PreMiningLock!]! """Access to subgraph metadata""" 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + c42161_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + c42161_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + c42161_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + c42161_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + c42161_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + c42161_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""" + c42161__meta(block: Block_height): _Meta_ } type APRChange { @@ -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..1735f283 --- /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 { + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + c195_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""" + c195__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 { + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): LToken + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): TVLChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): APRChange + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): Activity + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): RewardsMint + c195_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!]! + 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. + """ + block: Block_height + """ + Set to `allow` to receive data even if the subgraph has skipped over errors while syncing. + """ + subgraphError: _SubgraphErrorPolicy_! = deny + ): PreMiningLock + c195_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""" + c195__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..f98cb1ba --- /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 = { + 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 */ + c195__meta?: Maybe<_Meta_>; +}; + + +export type Queryc195_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Queryc195__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 = { + 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 */ + c195__meta?: Maybe<_Meta_>; +}; + + +export type Subscriptionc195_ltokenArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_ltokensArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_tvlchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_tvlchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_aprchangeArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_aprchangesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_activityArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_activitiesArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_rewardsMintArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_rewardsMintsArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_preMiningLockArgs = { + id: Scalars['ID']; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195_preMiningLocksArgs = { + skip?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + where?: InputMaybe; + block?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; +}; + + +export type Subscriptionc195__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 **/ + c195_ltoken: InContextSdkMethod, + /** null **/ + c195_ltokens: InContextSdkMethod, + /** null **/ + c195_tvlchange: InContextSdkMethod, + /** null **/ + c195_tvlchanges: InContextSdkMethod, + /** null **/ + c195_aprchange: InContextSdkMethod, + /** null **/ + c195_aprchanges: InContextSdkMethod, + /** null **/ + c195_activity: InContextSdkMethod, + /** null **/ + c195_activities: InContextSdkMethod, + /** null **/ + c195_rewardsMint: InContextSdkMethod, + /** null **/ + c195_rewardsMints: InContextSdkMethod, + /** null **/ + c195_preMiningLock: InContextSdkMethod, + /** null **/ + c195_preMiningLocks: InContextSdkMethod, + /** Access to subgraph metadata **/ + c195__meta: InContextSdkMethod + }; + + export type MutationSdk = { + + }; + + export type SubscriptionSdk = { + /** null **/ + c195_ltoken: InContextSdkMethod, + /** null **/ + c195_ltokens: InContextSdkMethod, + /** null **/ + c195_tvlchange: InContextSdkMethod, + /** null **/ + c195_tvlchanges: InContextSdkMethod, + /** null **/ + c195_aprchange: InContextSdkMethod, + /** null **/ + c195_aprchanges: InContextSdkMethod, + /** null **/ + c195_activity: InContextSdkMethod, + /** null **/ + c195_activities: InContextSdkMethod, + /** null **/ + c195_rewardsMint: InContextSdkMethod, + /** null **/ + c195_rewardsMints: InContextSdkMethod, + /** null **/ + c195_preMiningLock: InContextSdkMethod, + /** null **/ + c195_preMiningLocks: InContextSdkMethod, + /** Access to subgraph metadata **/ + c195__meta: InContextSdkMethod + }; + + export type Context = { + ["OKX_X1_Testnet"]: { Query: QuerySdk, Mutation: MutationSdk, Subscription: SubscriptionSdk }, + + }; +} diff --git a/.graphclientrc.yml b/.graphclientrc.yml index cf555f68..90ad3ac7 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: "c195_" + includeRootOperations: true + includeTypes: false + # - name: localhost # handler: # graphql: 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 d2402e26..7f995c9c 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-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; diff --git a/subgraph/build/LTokenSignaler/LTokenSignaler.wasm b/subgraph/build/LTokenSignaler/LTokenSignaler.wasm new file mode 100644 index 00000000..55ac8887 Binary files /dev/null and b/subgraph/build/LTokenSignaler/LTokenSignaler.wasm differ diff --git a/subgraph/build/contracts/abis/LToken.json b/subgraph/build/contracts/abis/LToken.json new file mode 100644 index 00000000..c3277242 --- /dev/null +++ b/subgraph/build/contracts/abis/LToken.json @@ -0,0 +1,1301 @@ +[ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "newAPRUD7x3", + "type": "uint16" + } + ], + "name": "APRChangeEvent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "int256", + "name": "id", + "type": "int256" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "enum LToken.Action", + "name": "action", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountAfterFees", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum LToken.Status", + "name": "newStatus", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "int256", + "name": "newId", + "type": "int256" + } + ], + "name": "ActivityEvent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "balanceBefore", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "rewards", + "type": "uint256" + } + ], + "name": "MintedRewardsEvent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newTVL", + "type": "uint256" + } + ], + "name": "TVLChangeEvent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "requestId", + "type": "uint256" + } + ], + "name": "cancelWithdrawalRequest", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimFees", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "depositFor", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "feesRateUD7x3", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "frozenRequests", + "outputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint96", + "name": "amount", + "type": "uint96" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "fund", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getAPR", + "outputs": [ + { + "internalType": "uint16", + "name": "", + "type": "uint16" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getExpectedRetained", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "getWithdrawnAmountAndFees", + "outputs": [ + { + "internalType": "uint256", + "name": "withdrawnAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "fees", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "globalBlacklist", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "globalOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "globalPause", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalOwner_", + "type": "address" + }, + { + "internalType": "address", + "name": "globalPause_", + "type": "address" + }, + { + "internalType": "address", + "name": "globalBlacklist_", + "type": "address" + }, + { + "internalType": "address", + "name": "ldyStaking_", + "type": "address" + }, + { + "internalType": "address", + "name": "underlyingToken", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "instantWithdrawal", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "invested", + "outputs": [ + { + "internalType": "contract IERC20Upgradeable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "ldyStaking", + "outputs": [ + { + "internalType": "contract LDYStaking", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "listenerContract", + "type": "address" + } + ], + "name": "listenToTransfers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "requestId", + "type": "uint256" + } + ], + "name": "processBigQueuedRequest", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "processQueuedRequests", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "realBalanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "realTotalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "recoverERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "recoverUnderlying", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "repatriate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "requestWithdrawal", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "retentionRateUD7x3", + "outputs": [ + { + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "rewardsRedirectsFromTo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "rewardsRedirectsToFrom", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint16", + "name": "aprUD7x3", + "type": "uint16" + } + ], + "name": "setAPR", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "feesRateUD7x3_", + "type": "uint32" + } + ], + "name": "setFeesRate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "fund_", + "type": "address" + } + ], + "name": "setFund", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "ldyStakingAddress", + "type": "address" + } + ], + "name": "setLDYStaking", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint32", + "name": "retentionRateUD7x3_", + "type": "uint32" + } + ], + "name": "setRetentionRate", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "withdrawer_", + "type": "address" + } + ], + "name": "setWithdrawer", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "startRewardsRedirection", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "name": "stopRewardsRedirection", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalQueued", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "transfersListeners", + "outputs": [ + { + "internalType": "contract ITransfersListener", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unclaimedFees", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "underlying", + "outputs": [ + { + "internalType": "contract IERC20Upgradeable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "listenerContract", + "type": "address" + } + ], + "name": "unlistenToTransfers", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "unmintedRewardsOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "usableUnderlyings", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdrawTo", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "withdrawalQueue", + "outputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "uint96", + "name": "amount", + "type": "uint96" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawalQueueCursor", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawer", + "outputs": [ + { + "internalType": "address payable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } +] \ No newline at end of file diff --git a/subgraph/build/contracts/abis/LTokenSignaler.json b/subgraph/build/contracts/abis/LTokenSignaler.json new file mode 100644 index 00000000..6a185dfa --- /dev/null +++ b/subgraph/build/contracts/abis/LTokenSignaler.json @@ -0,0 +1,213 @@ +[ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "lTokenAddress", + "type": "address" + } + ], + "name": "LTokenSignalEvent", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "inputs": [], + "name": "globalOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "globalOwner_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lTokenAddress", + "type": "address" + } + ], + "name": "signalLToken", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } +] \ No newline at end of file diff --git a/subgraph/build/contracts/abis/PreMining.json b/subgraph/build/contracts/abis/PreMining.json new file mode 100644 index 00000000..9ef893e8 --- /dev/null +++ b/subgraph/build/contracts/abis/PreMining.json @@ -0,0 +1,596 @@ +[ + { + "inputs": [ + { + "internalType": "address", + "name": "lTokenAddress_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "maxDistributedLDY_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lockedHardCap_", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "minLockDuration_", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "maxLockDuration_", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "vestingDuration_", + "type": "uint8" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "duration", + "type": "uint8" + } + ], + "name": "Lock", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferStarted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "acceptOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "accountsLocks", + "outputs": [ + { + "internalType": "uint240", + "name": "amount", + "type": "uint240" + }, + { + "internalType": "uint8", + "name": "duration", + "type": "uint8" + }, + { + "internalType": "bool", + "name": "hasUnlocked", + "type": "bool" + }, + { + "internalType": "uint216", + "name": "claimedRewards", + "type": "uint216" + }, + { + "internalType": "uint40", + "name": "lockEndTimestamp", + "type": "uint40" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "availableToClaim", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimPhaseStartTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimRewards", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "eligibleRewardsOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "endDepositPhase", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "hasClaimPhaseStarted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hasDepositPhaseEnded", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "hasRecoveryPhaseStarted", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "instantUnlock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lToken", + "outputs": [ + { + "internalType": "contract LToken", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "ldyToken", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint8", + "name": "duration", + "type": "uint8" + } + ], + "name": "lock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "lockedHardCap", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maxDistributedLDY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maxLockDuration", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maxWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "minLockDuration", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "processUnlockRequests", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "recoverERC20", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "requestUnlock", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "ldyTokenAddress", + "type": "address" + } + ], + "name": "setLDYToken", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "startClaimPhase", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "startRecoveryPhase", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "totalLocked", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "underlyingToken", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "unlockRequests", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unlockRequestsCursor", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "vestingDuration", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + } +] \ No newline at end of file diff --git a/subgraph/build/schema.graphql b/subgraph/build/schema.graphql new file mode 100644 index 00000000..0658be23 --- /dev/null +++ b/subgraph/build/schema.graphql @@ -0,0 +1,64 @@ +type LToken @entity { + id: ID! # Token address + symbol: String! + decimals: Int! + totalMintedRewards: BigDecimal! + tvlUpdates: [TVLChange!] @derivedFrom(field: "ltoken") + aprUpdates: [APRChange!] @derivedFrom(field: "ltoken") + activities: [Activity!] @derivedFrom(field: "ltoken") + rewardsMints: [RewardsMint!] @derivedFrom(field: "ltoken") +} + +type TVLChange @entity(immutable: true) { + id: ID! + ltoken: LToken! + timestamp: BigInt! + amount: BigDecimal! +} + +type APRChange @entity(immutable: true) { + id: ID! + ltoken: LToken! + timestamp: BigInt! + apr: BigDecimal! +} + +enum ActivityAction { + Deposit + Withdraw +} + +enum ActivityStatus { + Queued + Cancelled + Success # Sucess for deposits + Fulfilled # Success for withdrawals +} + +type Activity @entity { + id: ID! + requestId: BigInt! # Withdrawal request ID, or -1 + ltoken: LToken! + timestamp: BigInt! + account: Bytes! + action: ActivityAction! + amount: BigDecimal! + amountAfterFees: BigDecimal! + status: ActivityStatus! +} + +type RewardsMint @entity(immutable: true) { + id: ID! + ltoken: LToken! + timestamp: BigInt! + account: Bytes! + balanceBefore: BigDecimal! + revenue: BigDecimal! + growth: BigDecimal! +} + +type PreMiningLock @entity { + id: ID! # Account address + amount: BigDecimal! + duration: Int! +} diff --git a/subgraph/build/subgraph.yaml b/subgraph/build/subgraph.yaml new file mode 100644 index 00000000..dc173408 --- /dev/null +++ b/subgraph/build/subgraph.yaml @@ -0,0 +1,78 @@ +specVersion: 0.0.6 +description: A subgraph of Ledgity Yield data +repository: https://github.com/LedgityLabs/LedgityYield +schema: + file: schema.graphql +dataSources: + - kind: ethereum/contract + name: LTokenSignaler + network: arbitrum-one + source: + address: "0x1e1B0bB6C182eFD7d64cdAbbF3A3E315dE26E259" + abi: LTokenSignaler + startBlock: 10172276 + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: LTokenSignaler\LTokenSignaler.wasm + entities: + - LToken + abis: + - name: LTokenSignaler + file: contracts\abis\LTokenSignaler.json + - name: LToken + file: contracts\abis\LToken.json + eventHandlers: + - event: LTokenSignalEvent(indexed address) + handler: handleSignaledLToken + - kind: ethereum/contract + name: PreMining + network: arbitrum-one + source: + address: "0x2Bb79F621518BbA45dA5Ec57BC885C4686A60De9" + abi: PreMining + startBlock: 10172300 + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: LTokenSignaler\LTokenSignaler.wasm + entities: + - PreMining + abis: + - name: PreMining + file: contracts\abis\PreMining.json + eventHandlers: + - event: Lock(indexed address,uint256,uint8) + handler: handlePreMiningLock +templates: + - kind: ethereum/contract + name: LToken + network: arbitrum-one + source: + abi: LToken + mapping: + kind: ethereum/events + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: LTokenSignaler\LTokenSignaler.wasm + entities: + - LToken + - TVLChange + - APRChange + - Activity + - RewardsMint + abis: + - name: LToken + file: contracts\abis\LToken.json + eventHandlers: + - event: TVLChangeEvent(uint256) + handler: handleTVLChangeEvent + - event: APRChangeEvent(uint16) + handler: handleAPRChangeEvent + - event: ActivityEvent(indexed int256,indexed address,indexed + uint8,uint256,uint256,uint8,int256) + handler: handleActivityEvent + - event: MintedRewardsEvent(indexed address,uint256,uint256) + handler: handleMintedRewardsEvent diff --git a/subgraph/generated/LTokenSignaler/LToken.ts b/subgraph/generated/LTokenSignaler/LToken.ts new file mode 100644 index 00000000..7d510ef9 --- /dev/null +++ b/subgraph/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/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; + } +}