@berachain/graphql 0.1.0-alpha.9 → 0.1.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -9
- package/dist/bend/whisk.codegen.cjs +424 -0
- package/dist/bend/whisk.codegen.d.cts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +15 -15
- package/dist/bend/whisk.codegen.js +15 -15
- package/dist/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.d.cts +376 -0
- package/dist/chain/chain.codegen.d.ts +2 -2
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/dex/api.codegen.cjs +199 -0
- package/dist/dex/api.codegen.d.cts +3845 -0
- package/dist/dex/api.codegen.d.ts +52 -43
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/subgraph.codegen.cjs +88 -0
- package/dist/dex/subgraph.codegen.d.cts +5887 -0
- package/dist/dex/subgraph.codegen.d.ts +9 -9
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.d.cts +1622 -0
- package/dist/governance/governance.codegen.d.ts +9 -9
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/honey/honey.codegen.cjs +104 -0
- package/dist/honey/honey.codegen.d.cts +936 -0
- package/dist/honey/honey.codegen.d.ts +10 -10
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/pol/api.codegen.cjs +301 -0
- package/dist/pol/api.codegen.d.cts +3631 -0
- package/dist/pol/api.codegen.d.ts +61 -52
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/subgraph.codegen.cjs +197 -0
- package/dist/pol/subgraph.codegen.d.cts +4671 -0
- package/dist/pol/subgraph.codegen.d.ts +20 -20
- package/dist/pol/subgraph.codegen.js +20 -20
- package/package.json +26 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql from 'graphql';
|
|
2
2
|
|
|
3
3
|
type Maybe<T> = T | null;
|
|
4
4
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -1750,14 +1750,14 @@ type GetAccountIsOfacSanctionedQuery = {
|
|
|
1750
1750
|
isOfacSanctioned: boolean;
|
|
1751
1751
|
} | null;
|
|
1752
1752
|
};
|
|
1753
|
-
declare const ChainInfoFragment:
|
|
1754
|
-
declare const TokenInfoFragment:
|
|
1755
|
-
declare const CuratorInfoFragment:
|
|
1756
|
-
declare const ApyFragment:
|
|
1757
|
-
declare const VaultSummaryFragment:
|
|
1758
|
-
declare const MarketSummaryFragment:
|
|
1759
|
-
declare const VaultSummaries:
|
|
1760
|
-
declare const MarketSummaries:
|
|
1753
|
+
declare const ChainInfoFragment: graphql.DocumentNode;
|
|
1754
|
+
declare const TokenInfoFragment: graphql.DocumentNode;
|
|
1755
|
+
declare const CuratorInfoFragment: graphql.DocumentNode;
|
|
1756
|
+
declare const ApyFragment: graphql.DocumentNode;
|
|
1757
|
+
declare const VaultSummaryFragment: graphql.DocumentNode;
|
|
1758
|
+
declare const MarketSummaryFragment: graphql.DocumentNode;
|
|
1759
|
+
declare const VaultSummaries: graphql.DocumentNode;
|
|
1760
|
+
declare const MarketSummaries: graphql.DocumentNode;
|
|
1761
1761
|
/** Vault */
|
|
1762
1762
|
type Vault = {
|
|
1763
1763
|
__typename?: 'Vault';
|
|
@@ -1782,12 +1782,12 @@ type Vault = {
|
|
|
1782
1782
|
/** Address of the vault */
|
|
1783
1783
|
vaultAddress: Scalars['Address']['output'];
|
|
1784
1784
|
};
|
|
1785
|
-
declare const Vault:
|
|
1786
|
-
declare const Market:
|
|
1787
|
-
declare const VaultPositions:
|
|
1788
|
-
declare const MarketPositions:
|
|
1789
|
-
declare const SupportedMarketIds:
|
|
1790
|
-
declare const GetAccountIsOfacSanctioned:
|
|
1785
|
+
declare const Vault: graphql.DocumentNode;
|
|
1786
|
+
declare const Market: graphql.DocumentNode;
|
|
1787
|
+
declare const VaultPositions: graphql.DocumentNode;
|
|
1788
|
+
declare const MarketPositions: graphql.DocumentNode;
|
|
1789
|
+
declare const SupportedMarketIds: graphql.DocumentNode;
|
|
1790
|
+
declare const GetAccountIsOfacSanctioned: graphql.DocumentNode;
|
|
1791
1791
|
interface PossibleTypesResultData {
|
|
1792
1792
|
possibleTypes: {
|
|
1793
1793
|
[key: string]: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supply",n))(y||{}),m=(r=>(r.Base="base",r.Ens="ens",r.Farcaster="farcaster",r.Lens="lens",r.Nns="nns",r.Uni="uni",r.World="world",r))(m||{}),d=(n=>(n.Borrow="Borrow",n.Lend="Lend",n))(d||{}),c=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(c||{}),g=(e=>(e.Enzyme="enzyme",e.EulerV2="euler_v2",e.Gearbox="gearbox",e.Lista="lista",e.Mellow="mellow",e.Midas="midas",e.Morpho="morpho",e.Napier="napier",e.Pendle="pendle",e.Reserve="reserve",e.Silo="silo",e.TurtleClub="turtle_club",e))(g||{}),A=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(A||{}),s=t`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,o=
|
|
7
|
+
`,o=t`
|
|
8
8
|
fragment TokenInfoFragment on Token {
|
|
9
9
|
address
|
|
10
10
|
symbol
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
icon
|
|
13
13
|
category
|
|
14
14
|
}
|
|
15
|
-
`,u=
|
|
15
|
+
`,u=t`
|
|
16
16
|
fragment CuratorInfoFragment on Curator {
|
|
17
17
|
name
|
|
18
18
|
image
|
|
19
19
|
url
|
|
20
20
|
}
|
|
21
|
-
`,i=
|
|
21
|
+
`,i=t`
|
|
22
22
|
fragment ApyFragment on Apy {
|
|
23
23
|
base
|
|
24
24
|
rewards {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
total
|
|
31
31
|
fee
|
|
32
32
|
}
|
|
33
|
-
${o}`,p=
|
|
33
|
+
${o}`,p=t`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
${s}
|
|
79
79
|
${o}
|
|
80
80
|
${u}
|
|
81
|
-
${i}`,l=
|
|
81
|
+
${i}`,l=t`
|
|
82
82
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
83
83
|
chain {
|
|
84
84
|
...ChainInfoFragment
|
|
@@ -134,7 +134,7 @@ ${i}`,l= exports.MarketSummaryFragment =_client.gql`
|
|
|
134
134
|
}
|
|
135
135
|
${s}
|
|
136
136
|
${o}
|
|
137
|
-
${i}`,h=
|
|
137
|
+
${i}`,h=t`
|
|
138
138
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
139
139
|
morphoVaults(
|
|
140
140
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
@@ -148,7 +148,7 @@ ${i}`,h= exports.VaultSummaries =_client.gql`
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
${p}`,k=
|
|
151
|
+
${p}`,k=t`
|
|
152
152
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
153
153
|
morphoMarkets(
|
|
154
154
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -162,7 +162,7 @@ ${i}`,h= exports.VaultSummaries =_client.gql`
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
${l}`,M=
|
|
165
|
+
${l}`,M=t`
|
|
166
166
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
167
167
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
168
168
|
items {
|
|
@@ -242,7 +242,7 @@ ${i}`,h= exports.VaultSummaries =_client.gql`
|
|
|
242
242
|
${p}
|
|
243
243
|
${s}
|
|
244
244
|
${o}
|
|
245
|
-
${i}`,S=
|
|
245
|
+
${i}`,S=t`
|
|
246
246
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
247
247
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
248
248
|
items {
|
|
@@ -329,7 +329,7 @@ ${i}`,S= exports.Market =_client.gql`
|
|
|
329
329
|
${l}
|
|
330
330
|
${o}
|
|
331
331
|
${s}
|
|
332
|
-
${u}`,I=
|
|
332
|
+
${u}`,I=t`
|
|
333
333
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
334
334
|
morphoVaultPositions(
|
|
335
335
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -357,7 +357,7 @@ ${u}`,I= exports.VaultPositions =_client.gql`
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
`,x=
|
|
360
|
+
`,x=t`
|
|
361
361
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
362
362
|
morphoMarketPositions(
|
|
363
363
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -400,7 +400,7 @@ ${u}`,I= exports.VaultPositions =_client.gql`
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
`,T=
|
|
403
|
+
`,T=t`
|
|
404
404
|
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
405
405
|
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
406
406
|
items {
|
|
@@ -415,10 +415,10 @@ ${u}`,I= exports.VaultPositions =_client.gql`
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
`,f=
|
|
418
|
+
`,f=t`
|
|
419
419
|
query getAccountIsOfacSanctioned($address: Address!) {
|
|
420
420
|
identity(address: $address) {
|
|
421
421
|
isOfacSanctioned
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
`,_={possibleTypes:{}},w=
|
|
424
|
+
`,_={possibleTypes:{}},w=_;export{i as ApyFragment,y as ApySide,s as ChainInfoFragment,u as CuratorInfoFragment,f as GetAccountIsOfacSanctioned,m as IdentityResolver,S as Market,x as MarketPositions,k as MarketSummaries,l as MarketSummaryFragment,d as MerklAction,T as SupportedMarketIds,c as TokenCategory,o as TokenInfoFragment,M as Vault,I as VaultPositions,g as VaultProtocol,h as VaultSummaries,p as VaultSummaryFragment,A as VaultType,w as default};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var e=(a=>(a.Day="day",a.Hour="hour",a))(e||{}),s= exports.Block_OrderBy =(t=>(t.Author="author",t.BaseFeePerGas="baseFeePerGas",t.Difficulty="difficulty",t.GasLimit="gasLimit",t.GasUsed="gasUsed",t.Hash="hash",t.Id="id",t.Number="number",t.ParentHash="parentHash",t.ReceiptsRoot="receiptsRoot",t.Size="size",t.StateRoot="stateRoot",t.Timestamp="timestamp",t.TotalDifficulty="totalDifficulty",t.TransactionsRoot="transactionsRoot",t.UnclesHash="unclesHash",t))(s||{}),p= exports.OrderDirection =(a=>(a.Asc="asc",a.Desc="desc",a))(p||{}),u= exports._SubgraphErrorPolicy_ =(a=>(a.Allow="allow",a.Deny="deny",a))(u||{}),y= exports.GetBlocksTimeStamp =_client.gql`
|
|
2
|
+
query GetBlocksTimeStamp($skip: Int!) {
|
|
3
|
+
newest: blocks(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
4
|
+
timestamp
|
|
5
|
+
number
|
|
6
|
+
}
|
|
7
|
+
oldest: blocks(first: 1, orderBy: timestamp, orderDirection: desc, skip: $skip) {
|
|
8
|
+
timestamp
|
|
9
|
+
number
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`,i={possibleTypes:{}},o= exports.default =i;exports.Aggregation_Interval = e; exports.Block_OrderBy = s; exports.GetBlocksTimeStamp = y; exports.OrderDirection = p; exports._SubgraphErrorPolicy_ = u; exports.default = o;
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import * as graphql from 'graphql';
|
|
2
|
+
|
|
3
|
+
type Maybe<T> = T | null;
|
|
4
|
+
type InputMaybe<T> = Maybe<T>;
|
|
5
|
+
type Exact<T extends {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}> = {
|
|
8
|
+
[K in keyof T]: T[K];
|
|
9
|
+
};
|
|
10
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
11
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
12
|
+
};
|
|
13
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
14
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
15
|
+
};
|
|
16
|
+
type MakeEmpty<T extends {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}, K extends keyof T> = {
|
|
19
|
+
[_ in K]?: never;
|
|
20
|
+
};
|
|
21
|
+
type Incremental<T> = T | {
|
|
22
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
23
|
+
};
|
|
24
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
25
|
+
type Scalars = {
|
|
26
|
+
ID: {
|
|
27
|
+
input: string;
|
|
28
|
+
output: string;
|
|
29
|
+
};
|
|
30
|
+
String: {
|
|
31
|
+
input: string;
|
|
32
|
+
output: string;
|
|
33
|
+
};
|
|
34
|
+
Boolean: {
|
|
35
|
+
input: boolean;
|
|
36
|
+
output: boolean;
|
|
37
|
+
};
|
|
38
|
+
Int: {
|
|
39
|
+
input: number;
|
|
40
|
+
output: number;
|
|
41
|
+
};
|
|
42
|
+
Float: {
|
|
43
|
+
input: number;
|
|
44
|
+
output: number;
|
|
45
|
+
};
|
|
46
|
+
BigDecimal: {
|
|
47
|
+
input: any;
|
|
48
|
+
output: any;
|
|
49
|
+
};
|
|
50
|
+
BigInt: {
|
|
51
|
+
input: any;
|
|
52
|
+
output: any;
|
|
53
|
+
};
|
|
54
|
+
Bytes: {
|
|
55
|
+
input: any;
|
|
56
|
+
output: any;
|
|
57
|
+
};
|
|
58
|
+
Int8: {
|
|
59
|
+
input: any;
|
|
60
|
+
output: any;
|
|
61
|
+
};
|
|
62
|
+
Timestamp: {
|
|
63
|
+
input: any;
|
|
64
|
+
output: any;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
declare enum Aggregation_Interval {
|
|
68
|
+
Day = "day",
|
|
69
|
+
Hour = "hour"
|
|
70
|
+
}
|
|
71
|
+
type Block = {
|
|
72
|
+
__typename?: 'Block';
|
|
73
|
+
author: Scalars['Bytes']['output'];
|
|
74
|
+
baseFeePerGas?: Maybe<Scalars['BigInt']['output']>;
|
|
75
|
+
difficulty: Scalars['BigInt']['output'];
|
|
76
|
+
gasLimit: Scalars['BigInt']['output'];
|
|
77
|
+
gasUsed: Scalars['BigInt']['output'];
|
|
78
|
+
hash: Scalars['Bytes']['output'];
|
|
79
|
+
id: Scalars['Bytes']['output'];
|
|
80
|
+
number: Scalars['BigInt']['output'];
|
|
81
|
+
parentHash: Scalars['Bytes']['output'];
|
|
82
|
+
receiptsRoot: Scalars['Bytes']['output'];
|
|
83
|
+
size?: Maybe<Scalars['BigInt']['output']>;
|
|
84
|
+
stateRoot: Scalars['Bytes']['output'];
|
|
85
|
+
timestamp: Scalars['BigInt']['output'];
|
|
86
|
+
totalDifficulty: Scalars['BigInt']['output'];
|
|
87
|
+
transactionsRoot: Scalars['Bytes']['output'];
|
|
88
|
+
unclesHash: Scalars['Bytes']['output'];
|
|
89
|
+
};
|
|
90
|
+
type BlockChangedFilter = {
|
|
91
|
+
number_gte: Scalars['Int']['input'];
|
|
92
|
+
};
|
|
93
|
+
type Block_Filter = {
|
|
94
|
+
/** Filter for the block changed event. */
|
|
95
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
96
|
+
and?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
|
|
97
|
+
author?: InputMaybe<Scalars['Bytes']['input']>;
|
|
98
|
+
author_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
99
|
+
author_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
100
|
+
author_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
101
|
+
author_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
102
|
+
author_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
103
|
+
author_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
104
|
+
author_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
105
|
+
author_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
106
|
+
author_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
107
|
+
baseFeePerGas?: InputMaybe<Scalars['BigInt']['input']>;
|
|
108
|
+
baseFeePerGas_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
109
|
+
baseFeePerGas_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
110
|
+
baseFeePerGas_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
111
|
+
baseFeePerGas_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
112
|
+
baseFeePerGas_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
113
|
+
baseFeePerGas_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
114
|
+
baseFeePerGas_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
115
|
+
difficulty?: InputMaybe<Scalars['BigInt']['input']>;
|
|
116
|
+
difficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
117
|
+
difficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
118
|
+
difficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
119
|
+
difficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
120
|
+
difficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
121
|
+
difficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
122
|
+
difficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
123
|
+
gasLimit?: InputMaybe<Scalars['BigInt']['input']>;
|
|
124
|
+
gasLimit_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
125
|
+
gasLimit_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
126
|
+
gasLimit_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
127
|
+
gasLimit_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
128
|
+
gasLimit_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
129
|
+
gasLimit_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
130
|
+
gasLimit_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
131
|
+
gasUsed?: InputMaybe<Scalars['BigInt']['input']>;
|
|
132
|
+
gasUsed_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
133
|
+
gasUsed_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
134
|
+
gasUsed_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
135
|
+
gasUsed_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
136
|
+
gasUsed_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
137
|
+
gasUsed_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
138
|
+
gasUsed_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
139
|
+
hash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
140
|
+
hash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
141
|
+
hash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
142
|
+
hash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
143
|
+
hash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
144
|
+
hash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
145
|
+
hash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
146
|
+
hash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
147
|
+
hash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
148
|
+
hash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
149
|
+
id?: InputMaybe<Scalars['Bytes']['input']>;
|
|
150
|
+
id_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
151
|
+
id_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
152
|
+
id_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
153
|
+
id_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
154
|
+
id_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
155
|
+
id_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
156
|
+
id_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
157
|
+
id_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
158
|
+
id_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
159
|
+
number?: InputMaybe<Scalars['BigInt']['input']>;
|
|
160
|
+
number_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
161
|
+
number_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
162
|
+
number_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
163
|
+
number_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
164
|
+
number_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
165
|
+
number_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
166
|
+
number_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
167
|
+
or?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
|
|
168
|
+
parentHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
169
|
+
parentHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
170
|
+
parentHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
171
|
+
parentHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
172
|
+
parentHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
173
|
+
parentHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
174
|
+
parentHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
175
|
+
parentHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
176
|
+
parentHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
177
|
+
parentHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
178
|
+
receiptsRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
179
|
+
receiptsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
180
|
+
receiptsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
181
|
+
receiptsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
182
|
+
receiptsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
183
|
+
receiptsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
184
|
+
receiptsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
185
|
+
receiptsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
186
|
+
receiptsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
187
|
+
receiptsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
188
|
+
size?: InputMaybe<Scalars['BigInt']['input']>;
|
|
189
|
+
size_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
190
|
+
size_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
191
|
+
size_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
192
|
+
size_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
193
|
+
size_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
194
|
+
size_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
195
|
+
size_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
196
|
+
stateRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
197
|
+
stateRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
198
|
+
stateRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
199
|
+
stateRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
200
|
+
stateRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
201
|
+
stateRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
202
|
+
stateRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
203
|
+
stateRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
204
|
+
stateRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
205
|
+
stateRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
206
|
+
timestamp?: InputMaybe<Scalars['BigInt']['input']>;
|
|
207
|
+
timestamp_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
208
|
+
timestamp_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
209
|
+
timestamp_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
210
|
+
timestamp_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
211
|
+
timestamp_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
212
|
+
timestamp_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
213
|
+
timestamp_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
214
|
+
totalDifficulty?: InputMaybe<Scalars['BigInt']['input']>;
|
|
215
|
+
totalDifficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
216
|
+
totalDifficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
217
|
+
totalDifficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
218
|
+
totalDifficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
219
|
+
totalDifficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
220
|
+
totalDifficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
221
|
+
totalDifficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
222
|
+
transactionsRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
223
|
+
transactionsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
224
|
+
transactionsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
225
|
+
transactionsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
226
|
+
transactionsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
227
|
+
transactionsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
228
|
+
transactionsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
229
|
+
transactionsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
230
|
+
transactionsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
231
|
+
transactionsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
232
|
+
unclesHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
233
|
+
unclesHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
234
|
+
unclesHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
235
|
+
unclesHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
236
|
+
unclesHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
237
|
+
unclesHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
238
|
+
unclesHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
239
|
+
unclesHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
240
|
+
unclesHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
241
|
+
unclesHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
242
|
+
};
|
|
243
|
+
type Block_Height = {
|
|
244
|
+
hash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
245
|
+
number?: InputMaybe<Scalars['Int']['input']>;
|
|
246
|
+
number_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
247
|
+
};
|
|
248
|
+
declare enum Block_OrderBy {
|
|
249
|
+
Author = "author",
|
|
250
|
+
BaseFeePerGas = "baseFeePerGas",
|
|
251
|
+
Difficulty = "difficulty",
|
|
252
|
+
GasLimit = "gasLimit",
|
|
253
|
+
GasUsed = "gasUsed",
|
|
254
|
+
Hash = "hash",
|
|
255
|
+
Id = "id",
|
|
256
|
+
Number = "number",
|
|
257
|
+
ParentHash = "parentHash",
|
|
258
|
+
ReceiptsRoot = "receiptsRoot",
|
|
259
|
+
Size = "size",
|
|
260
|
+
StateRoot = "stateRoot",
|
|
261
|
+
Timestamp = "timestamp",
|
|
262
|
+
TotalDifficulty = "totalDifficulty",
|
|
263
|
+
TransactionsRoot = "transactionsRoot",
|
|
264
|
+
UnclesHash = "unclesHash"
|
|
265
|
+
}
|
|
266
|
+
/** Defines the order direction, either ascending or descending */
|
|
267
|
+
declare enum OrderDirection {
|
|
268
|
+
Asc = "asc",
|
|
269
|
+
Desc = "desc"
|
|
270
|
+
}
|
|
271
|
+
type Query = {
|
|
272
|
+
__typename?: 'Query';
|
|
273
|
+
/** Access to subgraph metadata */
|
|
274
|
+
_meta?: Maybe<_Meta_>;
|
|
275
|
+
block?: Maybe<Block>;
|
|
276
|
+
blocks: Array<Block>;
|
|
277
|
+
};
|
|
278
|
+
type Query_MetaArgs = {
|
|
279
|
+
block?: InputMaybe<Block_Height>;
|
|
280
|
+
};
|
|
281
|
+
type QueryBlockArgs = {
|
|
282
|
+
block?: InputMaybe<Block_Height>;
|
|
283
|
+
id: Scalars['ID']['input'];
|
|
284
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
285
|
+
};
|
|
286
|
+
type QueryBlocksArgs = {
|
|
287
|
+
block?: InputMaybe<Block_Height>;
|
|
288
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
289
|
+
orderBy?: InputMaybe<Block_OrderBy>;
|
|
290
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
291
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
292
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
293
|
+
where?: InputMaybe<Block_Filter>;
|
|
294
|
+
};
|
|
295
|
+
type Subscription = {
|
|
296
|
+
__typename?: 'Subscription';
|
|
297
|
+
/** Access to subgraph metadata */
|
|
298
|
+
_meta?: Maybe<_Meta_>;
|
|
299
|
+
block?: Maybe<Block>;
|
|
300
|
+
blocks: Array<Block>;
|
|
301
|
+
};
|
|
302
|
+
type Subscription_MetaArgs = {
|
|
303
|
+
block?: InputMaybe<Block_Height>;
|
|
304
|
+
};
|
|
305
|
+
type SubscriptionBlockArgs = {
|
|
306
|
+
block?: InputMaybe<Block_Height>;
|
|
307
|
+
id: Scalars['ID']['input'];
|
|
308
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
309
|
+
};
|
|
310
|
+
type SubscriptionBlocksArgs = {
|
|
311
|
+
block?: InputMaybe<Block_Height>;
|
|
312
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
313
|
+
orderBy?: InputMaybe<Block_OrderBy>;
|
|
314
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
315
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
316
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
317
|
+
where?: InputMaybe<Block_Filter>;
|
|
318
|
+
};
|
|
319
|
+
type _Block_ = {
|
|
320
|
+
__typename?: '_Block_';
|
|
321
|
+
/** The hash of the block */
|
|
322
|
+
hash?: Maybe<Scalars['Bytes']['output']>;
|
|
323
|
+
/** The block number */
|
|
324
|
+
number: Scalars['Int']['output'];
|
|
325
|
+
/** The hash of the parent block */
|
|
326
|
+
parentHash?: Maybe<Scalars['Bytes']['output']>;
|
|
327
|
+
/** Integer representation of the timestamp stored in blocks for the chain */
|
|
328
|
+
timestamp?: Maybe<Scalars['Int']['output']>;
|
|
329
|
+
};
|
|
330
|
+
/** The type for the top-level _meta field */
|
|
331
|
+
type _Meta_ = {
|
|
332
|
+
__typename?: '_Meta_';
|
|
333
|
+
/**
|
|
334
|
+
* Information about a specific subgraph block. The hash of the block
|
|
335
|
+
* will be null if the _meta field has a block constraint that asks for
|
|
336
|
+
* a block number. It will be filled if the _meta field has no block constraint
|
|
337
|
+
* and therefore asks for the latest block
|
|
338
|
+
*
|
|
339
|
+
*/
|
|
340
|
+
block: _Block_;
|
|
341
|
+
/** The deployment ID */
|
|
342
|
+
deployment: Scalars['String']['output'];
|
|
343
|
+
/** If `true`, the subgraph encountered indexing errors at some past block */
|
|
344
|
+
hasIndexingErrors: Scalars['Boolean']['output'];
|
|
345
|
+
};
|
|
346
|
+
declare enum _SubgraphErrorPolicy_ {
|
|
347
|
+
/** Data will be returned even if the subgraph has indexing errors */
|
|
348
|
+
Allow = "allow",
|
|
349
|
+
/** If the subgraph has indexing errors, data will be omitted. The default. */
|
|
350
|
+
Deny = "deny"
|
|
351
|
+
}
|
|
352
|
+
type GetBlocksTimeStampQueryVariables = Exact<{
|
|
353
|
+
skip: Scalars['Int']['input'];
|
|
354
|
+
}>;
|
|
355
|
+
type GetBlocksTimeStampQuery = {
|
|
356
|
+
__typename?: 'Query';
|
|
357
|
+
newest: Array<{
|
|
358
|
+
__typename?: 'Block';
|
|
359
|
+
timestamp: any;
|
|
360
|
+
number: any;
|
|
361
|
+
}>;
|
|
362
|
+
oldest: Array<{
|
|
363
|
+
__typename?: 'Block';
|
|
364
|
+
timestamp: any;
|
|
365
|
+
number: any;
|
|
366
|
+
}>;
|
|
367
|
+
};
|
|
368
|
+
declare const GetBlocksTimeStamp: graphql.DocumentNode;
|
|
369
|
+
interface PossibleTypesResultData {
|
|
370
|
+
possibleTypes: {
|
|
371
|
+
[key: string]: string[];
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
declare const result: PossibleTypesResultData;
|
|
375
|
+
|
|
376
|
+
export { Aggregation_Interval, type Block, type BlockChangedFilter, type Block_Filter, type Block_Height, Block_OrderBy, type Exact, GetBlocksTimeStamp, type GetBlocksTimeStampQuery, type GetBlocksTimeStampQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, OrderDirection, type PossibleTypesResultData, type Query, type QueryBlockArgs, type QueryBlocksArgs, type Query_MetaArgs, type Scalars, type Subscription, type SubscriptionBlockArgs, type SubscriptionBlocksArgs, type Subscription_MetaArgs, type _Block_, type _Meta_, _SubgraphErrorPolicy_, result as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as graphql from 'graphql';
|
|
2
2
|
|
|
3
3
|
type Maybe<T> = T | null;
|
|
4
4
|
type InputMaybe<T> = Maybe<T>;
|
|
@@ -365,7 +365,7 @@ type GetBlocksTimeStampQuery = {
|
|
|
365
365
|
number: any;
|
|
366
366
|
}>;
|
|
367
367
|
};
|
|
368
|
-
declare const GetBlocksTimeStamp:
|
|
368
|
+
declare const GetBlocksTimeStamp: graphql.DocumentNode;
|
|
369
369
|
interface PossibleTypesResultData {
|
|
370
370
|
possibleTypes: {
|
|
371
371
|
[key: string]: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{gql as n}from"@apollo/client";var e=(a=>(a.Day="day",a.Hour="hour",a))(e||{}),s=(t=>(t.Author="author",t.BaseFeePerGas="baseFeePerGas",t.Difficulty="difficulty",t.GasLimit="gasLimit",t.GasUsed="gasUsed",t.Hash="hash",t.Id="id",t.Number="number",t.ParentHash="parentHash",t.ReceiptsRoot="receiptsRoot",t.Size="size",t.StateRoot="stateRoot",t.Timestamp="timestamp",t.TotalDifficulty="totalDifficulty",t.TransactionsRoot="transactionsRoot",t.UnclesHash="unclesHash",t))(s||{}),p=(a=>(a.Asc="asc",a.Desc="desc",a))(p||{}),u=(a=>(a.Allow="allow",a.Deny="deny",a))(u||{}),y=n`
|
|
2
2
|
query GetBlocksTimeStamp($skip: Int!) {
|
|
3
3
|
newest: blocks(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
4
4
|
timestamp
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
number
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
`,i={possibleTypes:{}},o=
|
|
12
|
+
`,i={possibleTypes:{}},o=i;export{e as Aggregation_Interval,s as Block_OrderBy,y as GetBlocksTimeStamp,p as OrderDirection,u as _SubgraphErrorPolicy_,o as default};
|