@berachain/graphql 0.1.10-beta.0 → 0.2.0
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/dist/bend/whisk.codegen.cjs +22 -153
- package/dist/bend/whisk.codegen.d.cts +151 -241
- package/dist/bend/whisk.codegen.d.ts +151 -241
- package/dist/bend/whisk.codegen.mjs +17 -148
- package/dist/chain/chain.codegen.cjs +1 -1
- package/dist/chain/chain.codegen.d.cts +14 -14
- package/dist/chain/chain.codegen.d.ts +14 -14
- package/dist/chain/chain.codegen.mjs +2 -2
- package/dist/dex/api.codegen.cjs +10 -10
- package/dist/dex/api.codegen.d.cts +187 -187
- package/dist/dex/api.codegen.d.ts +187 -187
- package/dist/dex/api.codegen.mjs +10 -10
- package/dist/dex/subgraph.codegen.cjs +2 -2
- package/dist/dex/subgraph.codegen.d.cts +47 -47
- package/dist/dex/subgraph.codegen.d.ts +47 -47
- package/dist/dex/subgraph.codegen.mjs +2 -2
- package/dist/governance/governance.codegen.cjs +9 -9
- package/dist/governance/governance.codegen.d.cts +133 -133
- package/dist/governance/governance.codegen.d.ts +133 -133
- package/dist/governance/governance.codegen.mjs +9 -9
- package/dist/honey/honey.codegen.cjs +3 -3
- package/dist/honey/honey.codegen.d.cts +40 -40
- package/dist/honey/honey.codegen.d.ts +40 -40
- package/dist/honey/honey.codegen.mjs +2 -2
- package/dist/pol/api.codegen.cjs +1 -1
- package/dist/pol/api.codegen.d.cts +6 -6
- package/dist/pol/api.codegen.d.ts +6 -6
- package/dist/pol/api.codegen.mjs +2 -2
- package/dist/pol/subgraph.codegen.cjs +21 -27
- package/dist/pol/subgraph.codegen.d.cts +87 -100
- package/dist/pol/subgraph.codegen.d.ts +87 -100
- package/dist/pol/subgraph.codegen.mjs +21 -27
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{gql as
|
|
1
|
+
import{gql as e}from"@apollo/client";var y=(r=>(r.Borrow="Borrow",r.Supply="Supply",r))(y||{}),m=(a=>(a.OneDay="one_day",a.SevenDays="seven_days",a.ThirtyDays="thirty_days",a))(m||{}),d=(r=>(r.Generic="generic",r.MorphoV1="morpho_v1",r))(d||{}),c=(n=>(n.Base="base",n.Ens="ens",n.Farcaster="farcaster",n.Lens="lens",n.Nns="nns",n.Uni="uni",n.World="world",n))(c||{}),A=(r=>(r.Borrow="Borrow",r.Lend="Lend",r))(A||{}),g=(a=>(a.Btc="Btc",a.Eth="Eth",a.Stable="Stable",a))(g||{}),_=(t=>(t.Enzyme="enzyme",t.EulerEarn="euler_earn",t.EulerV2="euler_v2",t.Gearbox="gearbox",t.Lista="lista",t.Mellow="mellow",t.Midas="midas",t.Morpho="morpho",t.Napier="napier",t.Pendle="pendle",t.Reserve="reserve",t.Silo="silo",t.TurtleClub="turtle_club",t))(_||{}),h=(a=>(a.Index="index",a.Lending="lending",a.Staking="staking",a))(h||{}),s=e`
|
|
2
2
|
fragment ChainInfoFragment on Chain {
|
|
3
3
|
id
|
|
4
4
|
name
|
|
5
5
|
icon
|
|
6
6
|
}
|
|
7
|
-
`,o=
|
|
7
|
+
`,o=e`
|
|
8
8
|
fragment TokenInfoFragment on Token {
|
|
9
9
|
address
|
|
10
10
|
symbol
|
|
@@ -12,13 +12,13 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
12
12
|
icon
|
|
13
13
|
category
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,i=e`
|
|
16
16
|
fragment CuratorInfoFragment on Curator {
|
|
17
17
|
name
|
|
18
18
|
image
|
|
19
19
|
url
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,u=e`
|
|
22
22
|
fragment ApyFragment on Apy {
|
|
23
23
|
base
|
|
24
24
|
rewards {
|
|
@@ -30,7 +30,7 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
30
30
|
total
|
|
31
31
|
fee
|
|
32
32
|
}
|
|
33
|
-
${o}`,
|
|
33
|
+
${o}`,p=e`
|
|
34
34
|
fragment VaultSummaryFragment on MorphoVault {
|
|
35
35
|
chain {
|
|
36
36
|
...ChainInfoFragment
|
|
@@ -81,8 +81,8 @@ import{gql as t}from"@apollo/client";var y=(n=>(n.Borrow="Borrow",n.Supply="Supp
|
|
|
81
81
|
}
|
|
82
82
|
${s}
|
|
83
83
|
${o}
|
|
84
|
-
${
|
|
85
|
-
${
|
|
84
|
+
${i}
|
|
85
|
+
${u}`,l=e`
|
|
86
86
|
fragment MarketSummaryFragment on MorphoMarket {
|
|
87
87
|
chain {
|
|
88
88
|
...ChainInfoFragment
|
|
@@ -139,7 +139,7 @@ ${i}`,p=t`
|
|
|
139
139
|
}
|
|
140
140
|
${s}
|
|
141
141
|
${o}
|
|
142
|
-
${
|
|
142
|
+
${u}`,M=e`
|
|
143
143
|
query VaultSummaries($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
144
144
|
morphoVaults(
|
|
145
145
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}
|
|
@@ -153,7 +153,7 @@ ${i}`,h=t`
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
${
|
|
156
|
+
${p}`,S=e`
|
|
157
157
|
query MarketSummaries($chainIds: [ChainId!]!, $marketIds: [Hex!]!) {
|
|
158
158
|
morphoMarkets(
|
|
159
159
|
where: {chainId_in: $chainIds, marketId_in: $marketIds}
|
|
@@ -167,7 +167,7 @@ ${i}`,h=t`
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
${
|
|
170
|
+
${l}`,I=e`
|
|
171
171
|
query Vault($chainId: ChainId!, $vaultAddress: Address!) {
|
|
172
172
|
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$vaultAddress]}) {
|
|
173
173
|
items {
|
|
@@ -244,10 +244,10 @@ ${i}`,h=t`
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
${
|
|
247
|
+
${p}
|
|
248
248
|
${s}
|
|
249
249
|
${o}
|
|
250
|
-
${
|
|
250
|
+
${u}`,x=e`
|
|
251
251
|
query Market($chainId: ChainId!, $marketId: Hex!) {
|
|
252
252
|
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
253
253
|
items {
|
|
@@ -331,10 +331,10 @@ ${i}`,I=t`
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
${
|
|
334
|
+
${l}
|
|
335
335
|
${o}
|
|
336
336
|
${s}
|
|
337
|
-
${
|
|
337
|
+
${i}`,T=e`
|
|
338
338
|
query VaultPositions($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!, $accountAddress: Address!) {
|
|
339
339
|
morphoVaultPositions(
|
|
340
340
|
where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses, accountAddress_in: [$accountAddress]}
|
|
@@ -362,7 +362,7 @@ ${u}`,S=t`
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
`,
|
|
365
|
+
`,f=e`
|
|
366
366
|
query MarketPositions($chainIds: [ChainId!]!, $marketIds: [Hex!]!, $accountAddress: Address!) {
|
|
367
367
|
morphoMarketPositions(
|
|
368
368
|
where: {chainId_in: $chainIds, marketId_in: $marketIds, accountAddress_in: [$accountAddress]}
|
|
@@ -405,7 +405,7 @@ ${u}`,S=t`
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
`,
|
|
408
|
+
`,w=e`
|
|
409
409
|
query SupportedMarketIds($chainIds: [ChainId!]!, $vaultAddresses: [Address!]!) {
|
|
410
410
|
morphoVaults(where: {chainId_in: $chainIds, vaultAddress_in: $vaultAddresses}) {
|
|
411
411
|
items {
|
|
@@ -420,135 +420,4 @@ ${u}`,S=t`
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
`,w
|
|
424
|
-
query VaultHistoryData($chainId: ChainId!, $marketId: Address!) {
|
|
425
|
-
morphoVaults(where: {chainId_in: [$chainId], vaultAddress_in: [$marketId]}) {
|
|
426
|
-
items {
|
|
427
|
-
historical {
|
|
428
|
-
daily {
|
|
429
|
-
supplyApy1d {
|
|
430
|
-
total
|
|
431
|
-
}
|
|
432
|
-
totalSupplied {
|
|
433
|
-
usd
|
|
434
|
-
raw
|
|
435
|
-
formatted
|
|
436
|
-
}
|
|
437
|
-
bucketTimestamp
|
|
438
|
-
}
|
|
439
|
-
hourly {
|
|
440
|
-
supplyApy1d {
|
|
441
|
-
total
|
|
442
|
-
}
|
|
443
|
-
totalSupplied {
|
|
444
|
-
formatted
|
|
445
|
-
raw
|
|
446
|
-
usd
|
|
447
|
-
}
|
|
448
|
-
bucketTimestamp
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
`,f=t`
|
|
455
|
-
query VaultMarketAllocationHistoryData($chainId: ChainId!, $marketIds: [Hex!]!) {
|
|
456
|
-
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: $marketIds}) {
|
|
457
|
-
items {
|
|
458
|
-
historical {
|
|
459
|
-
hourly {
|
|
460
|
-
bucketTimestamp
|
|
461
|
-
totalSupplied {
|
|
462
|
-
formatted
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
daily {
|
|
466
|
-
bucketTimestamp
|
|
467
|
-
totalSupplied {
|
|
468
|
-
formatted
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
name
|
|
473
|
-
isIdle
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
`,C=t`
|
|
478
|
-
query MarketBorrowHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
479
|
-
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
480
|
-
items {
|
|
481
|
-
historical {
|
|
482
|
-
daily {
|
|
483
|
-
borrowApy1d {
|
|
484
|
-
total
|
|
485
|
-
}
|
|
486
|
-
totalBorrowed {
|
|
487
|
-
usd
|
|
488
|
-
raw
|
|
489
|
-
formatted
|
|
490
|
-
}
|
|
491
|
-
bucketTimestamp
|
|
492
|
-
}
|
|
493
|
-
hourly {
|
|
494
|
-
borrowApy1d {
|
|
495
|
-
total
|
|
496
|
-
}
|
|
497
|
-
totalBorrowed {
|
|
498
|
-
formatted
|
|
499
|
-
raw
|
|
500
|
-
usd
|
|
501
|
-
}
|
|
502
|
-
bucketTimestamp
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
`,V=t`
|
|
509
|
-
query MarketIBRHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
510
|
-
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
511
|
-
items {
|
|
512
|
-
historical {
|
|
513
|
-
daily {
|
|
514
|
-
borrowApyInstantaneous {
|
|
515
|
-
total
|
|
516
|
-
}
|
|
517
|
-
bucketTimestamp
|
|
518
|
-
}
|
|
519
|
-
hourly {
|
|
520
|
-
borrowApyInstantaneous {
|
|
521
|
-
total
|
|
522
|
-
}
|
|
523
|
-
bucketTimestamp
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
`,P=t`
|
|
530
|
-
query MarketCollateralAtRiskHistoryData($chainId: ChainId!, $marketId: Hex!) {
|
|
531
|
-
morphoMarkets(where: {chainId_in: [$chainId], marketId_in: [$marketId]}) {
|
|
532
|
-
items {
|
|
533
|
-
historical {
|
|
534
|
-
daily {
|
|
535
|
-
totalCollateral {
|
|
536
|
-
formatted
|
|
537
|
-
raw
|
|
538
|
-
usd
|
|
539
|
-
}
|
|
540
|
-
bucketTimestamp
|
|
541
|
-
}
|
|
542
|
-
hourly {
|
|
543
|
-
totalCollateral {
|
|
544
|
-
formatted
|
|
545
|
-
raw
|
|
546
|
-
usd
|
|
547
|
-
}
|
|
548
|
-
bucketTimestamp
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
`,_={possibleTypes:{}},$=_;export{i as ApyFragment,y as ApySide,s as ChainInfoFragment,u as CuratorInfoFragment,m as IdentityResolver,I as Market,C as MarketBorrowHistoryData,P as MarketCollateralAtRiskHistoryData,V as MarketIbrHistoryData,x as MarketPositions,k as MarketSummaries,p as MarketSummaryFragment,d as MerklAction,T as SupportedMarketIds,c as TokenCategory,o as TokenInfoFragment,M as Vault,w as VaultHistoryData,f as VaultMarketAllocationHistoryData,S as VaultPositions,A as VaultProtocol,h as VaultSummaries,l as VaultSummaryFragment,g as VaultType,$ as default};
|
|
423
|
+
`,b={possibleTypes:{Erc4626Vault:["GenericErc4626Vault","MorphoVault"]}},V=b;export{u as ApyFragment,y as ApySide,m as ApyTimeframe,s as ChainInfoFragment,i as CuratorInfoFragment,d as Erc4626VaultProtocol,c as IdentityResolver,x as Market,f as MarketPositions,S as MarketSummaries,l as MarketSummaryFragment,A as MerklAction,w as SupportedMarketIds,g as TokenCategory,o as TokenInfoFragment,I as Vault,T as VaultPositions,_ as VaultProtocol,M as VaultSummaries,p as VaultSummaryFragment,h as VaultType,V as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var S=(e,n)=>{for(var a in n)i(e,a,{get:n[a],enumerable:!0})},_=(e,n,a,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of I(n))!b.call(e,s)&&s!==a&&i(e,s,{get:()=>n[s],enumerable:!(p=c(n,s))||p.enumerable});return e};var M=e=>_(i({},"__esModule",{value:!0}),e);var h={};S(h,{Aggregation_Interval:()=>r,Block_OrderBy:()=>y,GetBlocksTimeStamp:()=>B,OrderDirection:()=>o,_SubgraphErrorPolicy_:()=>l,default:()=>m});module.exports=M(h);var u=require("@apollo/client"),r=(a=>(a.Day="day",a.Hour="hour",a))(r||{}),y=(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))(y||{}),o=(a=>(a.Asc="asc",a.Desc="desc",a))(o||{}),l=(a=>(a.Allow="allow",a.Deny="deny",a))(l||{}),B=u.gql`
|
|
2
2
|
query GetBlocksTimeStamp($skip: Int!) {
|
|
3
3
|
newest: blocks(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
4
4
|
timestamp
|
|
@@ -44,24 +44,24 @@ type Scalars = {
|
|
|
44
44
|
output: number;
|
|
45
45
|
};
|
|
46
46
|
BigDecimal: {
|
|
47
|
-
input:
|
|
48
|
-
output:
|
|
47
|
+
input: string;
|
|
48
|
+
output: string;
|
|
49
49
|
};
|
|
50
50
|
BigInt: {
|
|
51
|
-
input:
|
|
52
|
-
output:
|
|
51
|
+
input: string;
|
|
52
|
+
output: string;
|
|
53
53
|
};
|
|
54
54
|
Bytes: {
|
|
55
|
-
input:
|
|
56
|
-
output:
|
|
55
|
+
input: `0x${string}`;
|
|
56
|
+
output: `0x${string}`;
|
|
57
57
|
};
|
|
58
58
|
Int8: {
|
|
59
|
-
input:
|
|
60
|
-
output:
|
|
59
|
+
input: string;
|
|
60
|
+
output: string;
|
|
61
61
|
};
|
|
62
62
|
Timestamp: {
|
|
63
|
-
input:
|
|
64
|
-
output:
|
|
63
|
+
input: string;
|
|
64
|
+
output: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
declare enum Aggregation_Interval {
|
|
@@ -356,13 +356,13 @@ type GetBlocksTimeStampQuery = {
|
|
|
356
356
|
__typename?: 'Query';
|
|
357
357
|
newest: Array<{
|
|
358
358
|
__typename?: 'Block';
|
|
359
|
-
timestamp:
|
|
360
|
-
number:
|
|
359
|
+
timestamp: string;
|
|
360
|
+
number: string;
|
|
361
361
|
}>;
|
|
362
362
|
oldest: Array<{
|
|
363
363
|
__typename?: 'Block';
|
|
364
|
-
timestamp:
|
|
365
|
-
number:
|
|
364
|
+
timestamp: string;
|
|
365
|
+
number: string;
|
|
366
366
|
}>;
|
|
367
367
|
};
|
|
368
368
|
declare const GetBlocksTimeStamp: graphql.DocumentNode;
|
|
@@ -44,24 +44,24 @@ type Scalars = {
|
|
|
44
44
|
output: number;
|
|
45
45
|
};
|
|
46
46
|
BigDecimal: {
|
|
47
|
-
input:
|
|
48
|
-
output:
|
|
47
|
+
input: string;
|
|
48
|
+
output: string;
|
|
49
49
|
};
|
|
50
50
|
BigInt: {
|
|
51
|
-
input:
|
|
52
|
-
output:
|
|
51
|
+
input: string;
|
|
52
|
+
output: string;
|
|
53
53
|
};
|
|
54
54
|
Bytes: {
|
|
55
|
-
input:
|
|
56
|
-
output:
|
|
55
|
+
input: `0x${string}`;
|
|
56
|
+
output: `0x${string}`;
|
|
57
57
|
};
|
|
58
58
|
Int8: {
|
|
59
|
-
input:
|
|
60
|
-
output:
|
|
59
|
+
input: string;
|
|
60
|
+
output: string;
|
|
61
61
|
};
|
|
62
62
|
Timestamp: {
|
|
63
|
-
input:
|
|
64
|
-
output:
|
|
63
|
+
input: string;
|
|
64
|
+
output: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
declare enum Aggregation_Interval {
|
|
@@ -356,13 +356,13 @@ type GetBlocksTimeStampQuery = {
|
|
|
356
356
|
__typename?: 'Query';
|
|
357
357
|
newest: Array<{
|
|
358
358
|
__typename?: 'Block';
|
|
359
|
-
timestamp:
|
|
360
|
-
number:
|
|
359
|
+
timestamp: string;
|
|
360
|
+
number: string;
|
|
361
361
|
}>;
|
|
362
362
|
oldest: Array<{
|
|
363
363
|
__typename?: 'Block';
|
|
364
|
-
timestamp:
|
|
365
|
-
number:
|
|
364
|
+
timestamp: string;
|
|
365
|
+
number: string;
|
|
366
366
|
}>;
|
|
367
367
|
};
|
|
368
368
|
declare const GetBlocksTimeStamp: graphql.DocumentNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
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||{}),
|
|
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||{}),i=(a=>(a.Asc="asc",a.Desc="desc",a))(i||{}),p=(a=>(a.Allow="allow",a.Deny="deny",a))(p||{}),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 @@ import{gql as n}from"@apollo/client";var e=(a=>(a.Day="day",a.Hour="hour",a))(e|
|
|
|
9
9
|
number
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,u={possibleTypes:{}},o=u;export{e as Aggregation_Interval,s as Block_OrderBy,y as GetBlocksTimeStamp,i as OrderDirection,p as _SubgraphErrorPolicy_,o as default};
|
package/dist/dex/api.codegen.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var S=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var at=Object.getOwnPropertyNames;var et=Object.prototype.hasOwnProperty;var ot=(c,u)=>{for(var t in u)S(c,t,{get:u[t],enumerable:!0})},rt=(c,u,t,a)=>{if(u&&typeof u=="object"||typeof u=="function")for(let e of at(u))!et.call(c,e)&&e!==t&&S(c,e,{get:()=>u[e],enumerable:!(a=tt(u,e))||a.enumerable});return c};var nt=c=>rt(S({},"__esModule",{value:!0}),c);var mt={};ot(mt,{DynamicData:()=>y,GetGlobalLiquidityAndSwapVolume:()=>ct,GetPool:()=>st,GetPoolEvents:()=>ut,GetPoolHistoricalData:()=>it,GetPools:()=>lt,GetTokenCurrentPrices:()=>pt,GqlChain:()=>g,GqlContentNewsItemSource:()=>d,GqlPoolAddRemoveEventV3:()=>j,GqlPoolAprItemType:()=>G,GqlPoolEventType:()=>b,GqlPoolEventsDataRange:()=>P,GqlPoolFilterCategory:()=>q,GqlPoolJoinExitType:()=>A,GqlPoolNestingType:()=>I,GqlPoolOrderBy:()=>h,GqlPoolOrderDirection:()=>_,GqlPoolSnapshotDataRange:()=>D,GqlPoolSwapEventCowAmm:()=>z,GqlPoolSwapEventV3:()=>X,GqlPoolType:()=>T,GqlRewardVaultIncentiveOrderBy:()=>k,GqlRewardVaultIncentiveOrderDirection:()=>M,GqlRewardVaultOrderBy:()=>B,GqlRewardVaultOrderDirection:()=>v,GqlRewardVaultSnapshotDataRange:()=>w,GqlRewardVaultSnapshotResolution:()=>x,GqlSWberaVaultMetadataResolution:()=>V,GqlSorSwapType:()=>C,GqlStakeBeraVaultEventType:()=>R,GqlTokenChartDataRange:()=>E,GqlTokenType:()=>F,GqlUserVaultDepositOrderBy:()=>f,GqlUserVaultDepositOrderDirection:()=>U,GqlValidatorBlockUptimeStatus:()=>N,GqlValidatorBoostOrderBy:()=>L,GqlValidatorBoostOrderDirection:()=>H,GqlValidatorOrderBy:()=>$,GqlValidatorOrderDirection:()=>W,GqlVaultSnapshotDataRange:()=>O,MinimalPool:()=>K,MinimalPoolInList:()=>Y,PoolEvent:()=>Z,PoolHistoricalData:()=>J,RewardVault:()=>m,UserBalance:()=>Q,default:()=>yt});module.exports=nt(mt);var n=require("@apollo/client"),g=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(g||{}),d=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(d||{}),G=(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(G||{}),b=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(b||{}),P=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(P||{}),q=(p=>(p.BlackListed="BLACK_LISTED",p.Incentivized="INCENTIVIZED",p.Lrt="LRT",p.Points="POINTS",p.PointsEigenlayer="POINTS_EIGENLAYER",p.PointsGyro="POINTS_GYRO",p.PointsKelp="POINTS_KELP",p.PointsRenzo="POINTS_RENZO",p.PointsSwell="POINTS_SWELL",p.Superfest="SUPERFEST",p))(q||{}),A=(t=>(t.Exit="Exit",t.Join="Join",t))(A||{}),I=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(I||{}),h=(r=>(r.Apr="apr",r.BgtApr="bgtApr",r.CombinedApr="combinedApr",r.Fees24h="fees24h",r.TotalLiquidity="totalLiquidity",r.TotalShares="totalShares",r.UserbalanceUsd="userbalanceUsd",r.Volume24h="volume24h",r))(h||{}),_=(t=>(t.Asc="asc",t.Desc="desc",t))(_||{}),D=(o=>(o.AllTime="ALL_TIME",o.NinetyDays="NINETY_DAYS",o.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",o.OneYear="ONE_YEAR",o.ThirtyDays="THIRTY_DAYS",o))(D||{}),T=(s=>(s.ComposableStable="COMPOSABLE_STABLE",s.CowAmm="COW_AMM",s.Element="ELEMENT",s.Fx="FX",s.Gyro="GYRO",s.Gyro3="GYRO3",s.Gyroe="GYROE",s.Investment="INVESTMENT",s.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",s.MetaStable="META_STABLE",s.PhantomStable="PHANTOM_STABLE",s.Stable="STABLE",s.Unknown="UNKNOWN",s.Weighted="WEIGHTED",s))(T||{}),k=(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(k||{}),M=(t=>(t.Asc="asc",t.Desc="desc",t))(M||{}),B=(r=>(r.ActiveIncentivesRateUsd="activeIncentivesRateUsd",r.ActiveIncentivesValueUsd="activeIncentivesValueUsd",r.AllTimeBgtReceived="allTimeBGTReceived",r.Apr="apr",r.Apy="apy",r.BgtCapturePercentage="bgtCapturePercentage",r.Last24hBgtReceived="last24hBGTReceived",r.ProjectedApr="projectedApr",r))(B||{}),v=(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),w=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.SixtyDays="SIXTY_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(w||{}),x=(t=>(t.Day="DAY",t.Hour="HOUR",t))(x||{}),V=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(V||{}),C=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(C||{}),R=(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(R||{}),E=(o=>(o.NinetyDay="NINETY_DAY",o.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",o.OneYear="ONE_YEAR",o.SevenDay="SEVEN_DAY",o.ThirtyDay="THIRTY_DAY",o))(E||{}),F=(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(F||{}),f=(u=>(u.Amount="amount",u))(f||{}),U=(t=>(t.Asc="asc",t.Desc="desc",t))(U||{}),N=(e=>(e.Inactive="INACTIVE",e.Offline="OFFLINE",e.Proposed="PROPOSED",e.Signed="SIGNED",e))(N||{}),L=(o=>(o.ActiveBoostAmount="activeBoostAmount",o.LatestBlock="latestBlock",o.LatestBlockTime="latestBlockTime",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o))(L||{}),H=(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),$=(l=>(l.ActiveBoostAmount="activeBoostAmount",l.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",l.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",l.Apy="apy",l.BgtCapturePercentage="bgtCapturePercentage",l.BoostApr="boostApr",l.CommissionOnIncentives="commissionOnIncentives",l.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",l.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",l.QueuedBoostAmount="queuedBoostAmount",l.QueuedDropBoostAmount="queuedDropBoostAmount",l.RewardRate="rewardRate",l.StakedBeraAmount="stakedBeraAmount",l.UsersActiveBoostCount="usersActiveBoostCount",l.UsersQueuedBoostCount="usersQueuedBoostCount",l))($||{}),W=(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.SixtyDays="SIXTY_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(O||{}),y=n.gql`
|
|
2
2
|
fragment DynamicData on GqlPoolDynamicData {
|
|
3
3
|
totalShares
|
|
4
4
|
fees24h
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
id
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,Q=n.gql`
|
|
17
17
|
fragment UserBalance on GqlPoolUserBalance {
|
|
18
18
|
totalBalanceUsd
|
|
19
19
|
walletBalance
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
vaultAddress
|
|
32
32
|
stakingTokenAddress
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
`,Y=n.gql`
|
|
35
35
|
fragment MinimalPoolInList on GqlPoolMinimal {
|
|
36
36
|
id
|
|
37
37
|
name
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
...RewardVault
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
${
|
|
60
|
-
${
|
|
59
|
+
${y}
|
|
60
|
+
${Q}
|
|
61
61
|
${m}`,K=n.gql`
|
|
62
62
|
fragment MinimalPool on GqlPoolBase {
|
|
63
63
|
id
|
|
@@ -85,7 +85,7 @@ ${m}`,K=n.gql`
|
|
|
85
85
|
...RewardVault
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
${
|
|
88
|
+
${y}
|
|
89
89
|
${m}`,J=n.gql`
|
|
90
90
|
fragment PoolHistoricalData on GqlPoolSnapshot {
|
|
91
91
|
id
|
|
@@ -156,19 +156,19 @@ ${j}`,lt=n.gql`
|
|
|
156
156
|
where: {userAddress: $userAddress, chainIn: $chain}
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
|
-
${
|
|
159
|
+
${Y}`,st=n.gql`
|
|
160
160
|
query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
|
|
161
161
|
poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
|
|
162
162
|
...MinimalPool
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
${K}`,
|
|
165
|
+
${K}`,it=n.gql`
|
|
166
166
|
query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
|
|
167
167
|
poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
|
|
168
168
|
...PoolHistoricalData
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
${J}`,
|
|
171
|
+
${J}`,ut=n.gql`
|
|
172
172
|
query GetPoolEvents($poolId: String!, $typeIn: [GqlPoolEventType!]!, $chain: GqlChain!) {
|
|
173
173
|
poolGetEvents(
|
|
174
174
|
poolId: $poolId
|
|
@@ -196,4 +196,4 @@ ${j}`,lt=n.gql`
|
|
|
196
196
|
totalLiquidity
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,St={possibleTypes:{GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolFeaturedPoolGroupItem:["GqlFeaturePoolGroupItemExternalLink","GqlPoolMinimal"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},yt=St;0&&(module.exports={DynamicData,GetGlobalLiquidityAndSwapVolume,GetPool,GetPoolEvents,GetPoolHistoricalData,GetPools,GetTokenCurrentPrices,GqlChain,GqlContentNewsItemSource,GqlPoolAddRemoveEventV3,GqlPoolAprItemType,GqlPoolEventType,GqlPoolEventsDataRange,GqlPoolFilterCategory,GqlPoolJoinExitType,GqlPoolNestingType,GqlPoolOrderBy,GqlPoolOrderDirection,GqlPoolSnapshotDataRange,GqlPoolSwapEventCowAmm,GqlPoolSwapEventV3,GqlPoolType,GqlRewardVaultIncentiveOrderBy,GqlRewardVaultIncentiveOrderDirection,GqlRewardVaultOrderBy,GqlRewardVaultOrderDirection,GqlRewardVaultSnapshotDataRange,GqlRewardVaultSnapshotResolution,GqlSWberaVaultMetadataResolution,GqlSorSwapType,GqlStakeBeraVaultEventType,GqlTokenChartDataRange,GqlTokenType,GqlUserVaultDepositOrderBy,GqlUserVaultDepositOrderDirection,GqlValidatorBlockUptimeStatus,GqlValidatorBoostOrderBy,GqlValidatorBoostOrderDirection,GqlValidatorOrderBy,GqlValidatorOrderDirection,GqlVaultSnapshotDataRange,MinimalPool,MinimalPoolInList,PoolEvent,PoolHistoricalData,RewardVault,UserBalance});
|