@berachain/graphql 0.4.10-beta.1 → 0.4.10-beta.2

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.
@@ -1,25 +1,20 @@
1
1
  "use strict";var l=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var H=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},k=(i,e,t,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let y of D(e))!d.call(i,y)&&y!==t&&l(i,y,{get:()=>e[y],enumerable:!(u=A(e,y))||u.enumerable});return i};var f=i=>k(l({},"__esModule",{value:!0}),i);var V={};H(V,{Aggregation_Interval:()=>c,ChainTransaction_OrderBy:()=>I,GetHoneyTxn:()=>F,GetSnapshots:()=>C,HoneyCollateral_OrderBy:()=>b,HoneySnapshotData:()=>B,HoneySnapshot_OrderBy:()=>_,HoneySupplyDayData_OrderBy:()=>S,HoneyTxnData:()=>x,HoneyTxnTimeseries_OrderBy:()=>M,HoneyTxn_OrderBy:()=>m,OrderDirection:()=>g,TxnType:()=>h,_SubgraphErrorPolicy_:()=>T,default:()=>E});module.exports=f(V);var o=require("@apollo/client"),c=(t=>(t.Day="day",t.Hour="hour",t))(c||{}),I=(s=>(s.HoneyTxn="honeyTxn",s.Id="id",s.IsBasketMode="isBasketMode",s.TxHash="txHash",s.Type="type",s))(I||{}),b=(n=>(n.Collateral="collateral",n.CollateralAmount="collateralAmount",n.HoneyTxn="honeyTxn",n.HoneyTxnFrom="honeyTxn__from",n.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",n.HoneyTxnId="honeyTxn__id",n.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",n.HoneyTxnTimestamp="honeyTxn__timestamp",n.HoneyTxnTo="honeyTxn__to",n.HoneyTxnType="honeyTxn__type",n.Id="id",n))(b||{}),_=(r=>(r.AllTimeVolume="allTimeVolume",r.Id="id",r.MintVolume="mintVolume",r.RedeemVolume="redeemVolume",r.Timestamp="timestamp",r.TotalSupply="totalSupply",r.TotalVolume="totalVolume",r))(_||{}),S=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(S||{}),M=(p=>(p.BlockNumber="blockNumber",p.From="from",p.HoneyAmount="honeyAmount",p.Id="id",p.Timestamp="timestamp",p.To="to",p.TotalSupply="totalSupply",p.TxHash="txHash",p.TxnType="txnType",p))(M||{}),m=(a=>(a.ChainTransaction="chainTransaction",a.ChainTransactionId="chainTransaction__id",a.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",a.ChainTransactionTxHash="chainTransaction__txHash",a.ChainTransactionType="chainTransaction__type",a.Collateral="collateral",a.From="from",a.HoneyAmount="honeyAmount",a.Id="id",a.IsBasketMode="isBasketMode",a.Timestamp="timestamp",a.To="to",a.Type="type",a))(m||{}),g=(t=>(t.Asc="asc",t.Desc="desc",t))(g||{}),h=(t=>(t.Mint="MINT",t.Redeem="REDEEM",t))(h||{}),T=(t=>(t.Allow="allow",t.Deny="deny",t))(T||{}),x=o.gql`
2
2
  fragment HoneyTxnData on HoneyTxn {
3
- id
4
3
  timestamp
5
4
  from
6
5
  to
7
6
  type
8
7
  honeyAmount
9
8
  chainTransaction {
10
- id
11
9
  txHash
12
10
  }
13
11
  collateral {
14
12
  collateral
15
13
  collateralAmount
16
- id
17
14
  }
18
15
  }
19
16
  `,B=o.gql`
20
17
  fragment HoneySnapshotData on HoneySnapshot {
21
- id
22
- allTimeVolume
23
18
  mintVolume
24
19
  redeemVolume
25
20
  timestamp
@@ -650,7 +650,6 @@ declare enum _SubgraphErrorPolicy_ {
650
650
  }
651
651
  type HoneyTxnDataFragment = {
652
652
  __typename?: 'HoneyTxn';
653
- id: string;
654
653
  timestamp: string;
655
654
  from: `0x${string}`;
656
655
  to: `0x${string}`;
@@ -658,14 +657,12 @@ type HoneyTxnDataFragment = {
658
657
  honeyAmount: string;
659
658
  chainTransaction: {
660
659
  __typename?: 'ChainTransaction';
661
- id: `0x${string}`;
662
660
  txHash: `0x${string}`;
663
661
  };
664
662
  collateral: Array<{
665
663
  __typename?: 'HoneyCollateral';
666
664
  collateral: `0x${string}`;
667
665
  collateralAmount: string;
668
- id: string;
669
666
  }>;
670
667
  };
671
668
  type GetHoneyTxnQueryVariables = Exact<{
@@ -677,7 +674,6 @@ type GetHoneyTxnQuery = {
677
674
  __typename?: 'Query';
678
675
  honeyTxns: Array<{
679
676
  __typename?: 'HoneyTxn';
680
- id: string;
681
677
  timestamp: string;
682
678
  from: `0x${string}`;
683
679
  to: `0x${string}`;
@@ -685,14 +681,12 @@ type GetHoneyTxnQuery = {
685
681
  honeyAmount: string;
686
682
  chainTransaction: {
687
683
  __typename?: 'ChainTransaction';
688
- id: `0x${string}`;
689
684
  txHash: `0x${string}`;
690
685
  };
691
686
  collateral: Array<{
692
687
  __typename?: 'HoneyCollateral';
693
688
  collateral: `0x${string}`;
694
689
  collateralAmount: string;
695
- id: string;
696
690
  }>;
697
691
  }>;
698
692
  };
@@ -704,8 +698,6 @@ type GetSnapshotsQuery = {
704
698
  __typename?: 'Query';
705
699
  honeySnapshots: Array<{
706
700
  __typename?: 'HoneySnapshot';
707
- id: string;
708
- allTimeVolume: string;
709
701
  mintVolume: string;
710
702
  redeemVolume: string;
711
703
  timestamp: string;
@@ -715,8 +707,6 @@ type GetSnapshotsQuery = {
715
707
  };
716
708
  type HoneySnapshotDataFragment = {
717
709
  __typename?: 'HoneySnapshot';
718
- id: string;
719
- allTimeVolume: string;
720
710
  mintVolume: string;
721
711
  redeemVolume: string;
722
712
  timestamp: string;
@@ -650,7 +650,6 @@ declare enum _SubgraphErrorPolicy_ {
650
650
  }
651
651
  type HoneyTxnDataFragment = {
652
652
  __typename?: 'HoneyTxn';
653
- id: string;
654
653
  timestamp: string;
655
654
  from: `0x${string}`;
656
655
  to: `0x${string}`;
@@ -658,14 +657,12 @@ type HoneyTxnDataFragment = {
658
657
  honeyAmount: string;
659
658
  chainTransaction: {
660
659
  __typename?: 'ChainTransaction';
661
- id: `0x${string}`;
662
660
  txHash: `0x${string}`;
663
661
  };
664
662
  collateral: Array<{
665
663
  __typename?: 'HoneyCollateral';
666
664
  collateral: `0x${string}`;
667
665
  collateralAmount: string;
668
- id: string;
669
666
  }>;
670
667
  };
671
668
  type GetHoneyTxnQueryVariables = Exact<{
@@ -677,7 +674,6 @@ type GetHoneyTxnQuery = {
677
674
  __typename?: 'Query';
678
675
  honeyTxns: Array<{
679
676
  __typename?: 'HoneyTxn';
680
- id: string;
681
677
  timestamp: string;
682
678
  from: `0x${string}`;
683
679
  to: `0x${string}`;
@@ -685,14 +681,12 @@ type GetHoneyTxnQuery = {
685
681
  honeyAmount: string;
686
682
  chainTransaction: {
687
683
  __typename?: 'ChainTransaction';
688
- id: `0x${string}`;
689
684
  txHash: `0x${string}`;
690
685
  };
691
686
  collateral: Array<{
692
687
  __typename?: 'HoneyCollateral';
693
688
  collateral: `0x${string}`;
694
689
  collateralAmount: string;
695
- id: string;
696
690
  }>;
697
691
  }>;
698
692
  };
@@ -704,8 +698,6 @@ type GetSnapshotsQuery = {
704
698
  __typename?: 'Query';
705
699
  honeySnapshots: Array<{
706
700
  __typename?: 'HoneySnapshot';
707
- id: string;
708
- allTimeVolume: string;
709
701
  mintVolume: string;
710
702
  redeemVolume: string;
711
703
  timestamp: string;
@@ -715,8 +707,6 @@ type GetSnapshotsQuery = {
715
707
  };
716
708
  type HoneySnapshotDataFragment = {
717
709
  __typename?: 'HoneySnapshot';
718
- id: string;
719
- allTimeVolume: string;
720
710
  mintVolume: string;
721
711
  redeemVolume: string;
722
712
  timestamp: string;
@@ -1,25 +1,20 @@
1
1
  import{gql as r}from"@apollo/client";var y=(a=>(a.Day="day",a.Hour="hour",a))(y||{}),s=(i=>(i.HoneyTxn="honeyTxn",i.Id="id",i.IsBasketMode="isBasketMode",i.TxHash="txHash",i.Type="type",i))(s||{}),o=(n=>(n.Collateral="collateral",n.CollateralAmount="collateralAmount",n.HoneyTxn="honeyTxn",n.HoneyTxnFrom="honeyTxn__from",n.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",n.HoneyTxnId="honeyTxn__id",n.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",n.HoneyTxnTimestamp="honeyTxn__timestamp",n.HoneyTxnTo="honeyTxn__to",n.HoneyTxnType="honeyTxn__type",n.Id="id",n))(o||{}),l=(p=>(p.AllTimeVolume="allTimeVolume",p.Id="id",p.MintVolume="mintVolume",p.RedeemVolume="redeemVolume",p.Timestamp="timestamp",p.TotalSupply="totalSupply",p.TotalVolume="totalVolume",p))(l||{}),c=(u=>(u.Amount="amount",u.Id="id",u.Timestamp="timestamp",u))(c||{}),I=(e=>(e.BlockNumber="blockNumber",e.From="from",e.HoneyAmount="honeyAmount",e.Id="id",e.Timestamp="timestamp",e.To="to",e.TotalSupply="totalSupply",e.TxHash="txHash",e.TxnType="txnType",e))(I||{}),b=(t=>(t.ChainTransaction="chainTransaction",t.ChainTransactionId="chainTransaction__id",t.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",t.ChainTransactionTxHash="chainTransaction__txHash",t.ChainTransactionType="chainTransaction__type",t.Collateral="collateral",t.From="from",t.HoneyAmount="honeyAmount",t.Id="id",t.IsBasketMode="isBasketMode",t.Timestamp="timestamp",t.To="to",t.Type="type",t))(b||{}),_=(a=>(a.Asc="asc",a.Desc="desc",a))(_||{}),S=(a=>(a.Mint="MINT",a.Redeem="REDEEM",a))(S||{}),M=(a=>(a.Allow="allow",a.Deny="deny",a))(M||{}),m=r`
2
2
  fragment HoneyTxnData on HoneyTxn {
3
- id
4
3
  timestamp
5
4
  from
6
5
  to
7
6
  type
8
7
  honeyAmount
9
8
  chainTransaction {
10
- id
11
9
  txHash
12
10
  }
13
11
  collateral {
14
12
  collateral
15
13
  collateralAmount
16
- id
17
14
  }
18
15
  }
19
16
  `,g=r`
20
17
  fragment HoneySnapshotData on HoneySnapshot {
21
- id
22
- allTimeVolume
23
18
  mintVolume
24
19
  redeemVolume
25
20
  timestamp
@@ -2,12 +2,10 @@
2
2
  fragment BoostByValidator on BoostByValidator {
3
3
  allTimeNetAmount
4
4
  netAmount
5
- id
6
5
  timestamp
7
6
  }
8
7
  `,h=A.gql`
9
8
  fragment ValidatorMinimal on Validator {
10
- id
11
9
  publicKey
12
10
  activeBoostAmount: activeBoostAmount
13
11
  }
@@ -71,7 +69,6 @@
71
69
  }
72
70
  receivedTokenAmount
73
71
  timestamp
74
- id
75
72
  }
76
73
  userValidatorBoostQueued: userBoosts(
77
74
  first: 10
@@ -3965,7 +3965,6 @@ declare enum _SubgraphErrorPolicy_ {
3965
3965
  }
3966
3966
  type ValidatorMinimalFragment = {
3967
3967
  __typename?: 'Validator';
3968
- id: `0x${string}`;
3969
3968
  publicKey: `0x${string}`;
3970
3969
  activeBoostAmount: string;
3971
3970
  };
@@ -3973,7 +3972,6 @@ type BoostByValidatorFragment = {
3973
3972
  __typename?: 'BoostByValidator';
3974
3973
  allTimeNetAmount: string;
3975
3974
  netAmount: string;
3976
- id: string;
3977
3975
  timestamp: string;
3978
3976
  };
3979
3977
  type BlockRewardStatsByValidatorFragment = {
@@ -3983,7 +3981,6 @@ type BlockRewardStatsByValidatorFragment = {
3983
3981
  earnedBGTAmount: string;
3984
3982
  validator: {
3985
3983
  __typename?: 'Validator';
3986
- id: `0x${string}`;
3987
3984
  publicKey: `0x${string}`;
3988
3985
  activeBoostAmount: string;
3989
3986
  };
@@ -4001,7 +3998,6 @@ type GetValidatorBlockStatsQuery = {
4001
3998
  timestamp: string;
4002
3999
  validator: {
4003
4000
  __typename?: 'Validator';
4004
- id: `0x${string}`;
4005
4001
  publicKey: `0x${string}`;
4006
4002
  activeBoostAmount: string;
4007
4003
  };
@@ -4028,7 +4024,6 @@ type GetValidatorAnalyticsQuery = {
4028
4024
  __typename?: 'BoostByValidator';
4029
4025
  allTimeNetAmount: string;
4030
4026
  netAmount: string;
4031
- id: string;
4032
4027
  timestamp: string;
4033
4028
  }>;
4034
4029
  blockRewardStatsByValidators: Array<{
@@ -4038,7 +4033,6 @@ type GetValidatorAnalyticsQuery = {
4038
4033
  earnedBGTAmount: string;
4039
4034
  validator: {
4040
4035
  __typename?: 'Validator';
4041
- id: `0x${string}`;
4042
4036
  publicKey: `0x${string}`;
4043
4037
  activeBoostAmount: string;
4044
4038
  };
@@ -4047,7 +4041,6 @@ type GetValidatorAnalyticsQuery = {
4047
4041
  __typename?: 'IncentiveDistributionByValidator';
4048
4042
  receivedTokenAmount: string;
4049
4043
  timestamp: string;
4050
- id: string;
4051
4044
  token: {
4052
4045
  __typename?: 'TokenInformation';
4053
4046
  address: `0x${string}`;
@@ -3965,7 +3965,6 @@ declare enum _SubgraphErrorPolicy_ {
3965
3965
  }
3966
3966
  type ValidatorMinimalFragment = {
3967
3967
  __typename?: 'Validator';
3968
- id: `0x${string}`;
3969
3968
  publicKey: `0x${string}`;
3970
3969
  activeBoostAmount: string;
3971
3970
  };
@@ -3973,7 +3972,6 @@ type BoostByValidatorFragment = {
3973
3972
  __typename?: 'BoostByValidator';
3974
3973
  allTimeNetAmount: string;
3975
3974
  netAmount: string;
3976
- id: string;
3977
3975
  timestamp: string;
3978
3976
  };
3979
3977
  type BlockRewardStatsByValidatorFragment = {
@@ -3983,7 +3981,6 @@ type BlockRewardStatsByValidatorFragment = {
3983
3981
  earnedBGTAmount: string;
3984
3982
  validator: {
3985
3983
  __typename?: 'Validator';
3986
- id: `0x${string}`;
3987
3984
  publicKey: `0x${string}`;
3988
3985
  activeBoostAmount: string;
3989
3986
  };
@@ -4001,7 +3998,6 @@ type GetValidatorBlockStatsQuery = {
4001
3998
  timestamp: string;
4002
3999
  validator: {
4003
4000
  __typename?: 'Validator';
4004
- id: `0x${string}`;
4005
4001
  publicKey: `0x${string}`;
4006
4002
  activeBoostAmount: string;
4007
4003
  };
@@ -4028,7 +4024,6 @@ type GetValidatorAnalyticsQuery = {
4028
4024
  __typename?: 'BoostByValidator';
4029
4025
  allTimeNetAmount: string;
4030
4026
  netAmount: string;
4031
- id: string;
4032
4027
  timestamp: string;
4033
4028
  }>;
4034
4029
  blockRewardStatsByValidators: Array<{
@@ -4038,7 +4033,6 @@ type GetValidatorAnalyticsQuery = {
4038
4033
  earnedBGTAmount: string;
4039
4034
  validator: {
4040
4035
  __typename?: 'Validator';
4041
- id: `0x${string}`;
4042
4036
  publicKey: `0x${string}`;
4043
4037
  activeBoostAmount: string;
4044
4038
  };
@@ -4047,7 +4041,6 @@ type GetValidatorAnalyticsQuery = {
4047
4041
  __typename?: 'IncentiveDistributionByValidator';
4048
4042
  receivedTokenAmount: string;
4049
4043
  timestamp: string;
4050
- id: string;
4051
4044
  token: {
4052
4045
  __typename?: 'TokenInformation';
4053
4046
  address: `0x${string}`;
@@ -2,12 +2,10 @@ import{gql as d}from"@apollo/client";var k=(a=>(a.Id="id",a.IncentiveRate="incen
2
2
  fragment BoostByValidator on BoostByValidator {
3
3
  allTimeNetAmount
4
4
  netAmount
5
- id
6
5
  timestamp
7
6
  }
8
7
  `,B=d`
9
8
  fragment ValidatorMinimal on Validator {
10
- id
11
9
  publicKey
12
10
  activeBoostAmount: activeBoostAmount
13
11
  }
@@ -71,7 +69,6 @@ import{gql as d}from"@apollo/client";var k=(a=>(a.Id="id",a.IncentiveRate="incen
71
69
  }
72
70
  receivedTokenAmount
73
71
  timestamp
74
- id
75
72
  }
76
73
  userValidatorBoostQueued: userBoosts(
77
74
  first: 10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/graphql",
3
- "version": "0.4.10-beta.1",
3
+ "version": "0.4.10-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -29,7 +29,7 @@
29
29
  "dotenv": "16.6.1",
30
30
  "graphql": "16.12.0",
31
31
  "tsup": "8.5.1",
32
- "@berachain/config": "^0.1.8-beta.0"
32
+ "@berachain/config": "^0.1.8"
33
33
  },
34
34
  "exports": {
35
35
  "./governance": {