@gmx-io/sdk 1.6.4 → 1.7.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.
Files changed (84) hide show
  1. package/README.md +48 -0
  2. package/build/cjs/scripts/subsquid-codegen.js +1 -1
  3. package/build/cjs/src/clients/v1/testUtil.js +1 -1
  4. package/build/cjs/src/clients/v2/__tests__/data.spec.js +5 -5
  5. package/build/cjs/src/clients/v2/__tests__/decrease.spec.js +6 -6
  6. package/build/cjs/src/clients/v2/__tests__/editCancel.spec.js +12 -12
  7. package/build/cjs/src/clients/v2/__tests__/errors.spec.js +1 -47
  8. package/build/cjs/src/clients/v2/__tests__/errorsLifecycle.spec.js +53 -0
  9. package/build/cjs/src/clients/v2/__tests__/globalCleanup.js +80 -0
  10. package/build/cjs/src/clients/v2/__tests__/increase.spec.js +14 -14
  11. package/build/cjs/src/clients/v2/__tests__/multichain.spec.js +5 -6
  12. package/build/cjs/src/clients/v2/__tests__/prepareErrors.spec.js +167 -0
  13. package/build/cjs/src/clients/v2/__tests__/setupAllowance.js +32 -0
  14. package/build/cjs/src/clients/v2/__tests__/subaccount.spec.js +16 -123
  15. package/build/cjs/src/clients/v2/__tests__/subaccountLifecycle.spec.js +108 -0
  16. package/build/cjs/src/clients/v2/__tests__/testUtil.js +38 -5
  17. package/build/cjs/src/clients/v2/__tests__/tradingCapacity.spec.js +371 -0
  18. package/build/cjs/src/clients/v2/index.js +6 -1
  19. package/build/cjs/src/codegen/subsquid.js +284 -20
  20. package/build/cjs/src/configs/__tests__/markets.spec.js +8 -0
  21. package/build/cjs/src/utils/__tests__/markets.spec.js +60 -0
  22. package/build/cjs/src/utils/__tests__/numbers.spec.js +39 -0
  23. package/build/cjs/src/utils/__tests__/positionPnlCap.spec.js +78 -0
  24. package/build/cjs/src/utils/__tests__/positions.spec.js +16 -4
  25. package/build/cjs/src/utils/markets/api.js +90 -2
  26. package/build/cjs/src/utils/markets/multicall.js +4 -6
  27. package/build/cjs/src/utils/markets/types.js +8 -0
  28. package/build/cjs/src/utils/markets/utils.js +67 -9
  29. package/build/cjs/src/utils/numbers/utils.js +28 -9
  30. package/build/cjs/src/utils/orderTransactions/api.js +160 -2
  31. package/build/cjs/src/utils/positions/utils.js +1 -1
  32. package/build/cjs/src/utils/tradeHistory/__tests__/utils.spec.js +64 -0
  33. package/build/cjs/src/utils/tradeHistory/utils.js +2 -0
  34. package/build/esm/scripts/subsquid-codegen.js +1 -1
  35. package/build/esm/src/clients/v1/testUtil.js +1 -1
  36. package/build/esm/src/clients/v2/__tests__/data.spec.js +6 -6
  37. package/build/esm/src/clients/v2/__tests__/decrease.spec.js +7 -7
  38. package/build/esm/src/clients/v2/__tests__/editCancel.spec.js +13 -13
  39. package/build/esm/src/clients/v2/__tests__/errors.spec.js +2 -48
  40. package/build/esm/src/clients/v2/__tests__/errorsLifecycle.spec.js +51 -0
  41. package/build/esm/src/clients/v2/__tests__/globalCleanup.js +77 -0
  42. package/build/esm/src/clients/v2/__tests__/increase.spec.js +15 -15
  43. package/build/esm/src/clients/v2/__tests__/multichain.spec.js +6 -7
  44. package/build/esm/src/clients/v2/__tests__/prepareErrors.spec.js +165 -0
  45. package/build/esm/src/clients/v2/__tests__/setupAllowance.js +30 -0
  46. package/build/esm/src/clients/v2/__tests__/subaccount.spec.js +17 -124
  47. package/build/esm/src/clients/v2/__tests__/subaccountLifecycle.spec.js +106 -0
  48. package/build/esm/src/clients/v2/__tests__/testUtil.js +33 -4
  49. package/build/esm/src/clients/v2/__tests__/tradingCapacity.spec.js +369 -0
  50. package/build/esm/src/clients/v2/index.js +6 -2
  51. package/build/esm/src/codegen/subsquid.js +282 -18
  52. package/build/esm/src/configs/__tests__/markets.spec.js +9 -1
  53. package/build/esm/src/utils/__tests__/markets.spec.js +61 -1
  54. package/build/esm/src/utils/__tests__/numbers.spec.js +40 -1
  55. package/build/esm/src/utils/__tests__/positionPnlCap.spec.js +76 -0
  56. package/build/esm/src/utils/__tests__/positions.spec.js +17 -5
  57. package/build/esm/src/utils/markets/api.js +88 -2
  58. package/build/esm/src/utils/markets/multicall.js +4 -6
  59. package/build/esm/src/utils/markets/types.js +8 -0
  60. package/build/esm/src/utils/markets/utils.js +65 -8
  61. package/build/esm/src/utils/numbers/utils.js +24 -7
  62. package/build/esm/src/utils/orderTransactions/api.js +157 -1
  63. package/build/esm/src/utils/positions/utils.js +2 -2
  64. package/build/esm/src/utils/tradeHistory/__tests__/utils.spec.js +62 -0
  65. package/build/esm/src/utils/tradeHistory/utils.js +2 -0
  66. package/build/tsconfig.tsbuildinfo +1 -1
  67. package/build/types/src/clients/v2/__tests__/errorsLifecycle.spec.d.ts +1 -0
  68. package/build/types/src/clients/v2/__tests__/globalCleanup.d.ts +1 -0
  69. package/build/types/src/clients/v2/__tests__/prepareErrors.spec.d.ts +1 -0
  70. package/build/types/src/clients/v2/__tests__/setupAllowance.d.ts +1 -0
  71. package/build/types/src/clients/v2/__tests__/subaccountLifecycle.spec.d.ts +1 -0
  72. package/build/types/src/clients/v2/__tests__/testUtil.d.ts +7 -1
  73. package/build/types/src/clients/v2/__tests__/tradingCapacity.spec.d.ts +1 -0
  74. package/build/types/src/clients/v2/index.d.ts +8 -5
  75. package/build/types/src/codegen/subsquid.d.ts +1141 -51
  76. package/build/types/src/utils/__tests__/positionPnlCap.spec.d.ts +1 -0
  77. package/build/types/src/utils/markets/api.d.ts +6 -2
  78. package/build/types/src/utils/markets/types.d.ts +28 -1
  79. package/build/types/src/utils/markets/utils.d.ts +7 -8
  80. package/build/types/src/utils/numbers/utils.d.ts +2 -0
  81. package/build/types/src/utils/orderTransactions/api.d.ts +50 -0
  82. package/build/types/src/utils/tradeHistory/__tests__/utils.spec.d.ts +1 -0
  83. package/build/types/src/utils/tradeHistory/types.d.ts +2 -0
  84. package/package.json +2 -1
@@ -289,7 +289,7 @@ export interface AccountPnlSummaryBucketObject {
289
289
  pnlBpsRank?: Maybe<Scalars["Int"]["output"]>;
290
290
  pnlUsd: Scalars["BigInt"]["output"];
291
291
  pnlUsdRank?: Maybe<Scalars["Int"]["output"]>;
292
- /** Signed PnL contribution from funding received */
292
+ /** Signed PnL contribution from positive funding accrued as claimable (claimed or not) */
293
293
  positiveFundingFeesUsd: Scalars["BigInt"]["output"];
294
294
  /** Field for debug */
295
295
  realizedBasePnlUsd: Scalars["BigInt"]["output"];
@@ -351,6 +351,7 @@ export interface AccountStat {
351
351
  netCapitalDelta?: Maybe<Scalars["BigInt"]["output"]>;
352
352
  period: Scalars["String"]["output"];
353
353
  positions: Array<Position>;
354
+ positiveFundingFeesUsd?: Maybe<Scalars["BigInt"]["output"]>;
354
355
  realizedFees: Scalars["BigInt"]["output"];
355
356
  realizedPnl: Scalars["BigInt"]["output"];
356
357
  realizedPriceImpact: Scalars["BigInt"]["output"];
@@ -450,6 +451,12 @@ export declare enum AccountStatOrderByInput {
450
451
  period_DESC = "period_DESC",
451
452
  period_DESC_NULLS_FIRST = "period_DESC_NULLS_FIRST",
452
453
  period_DESC_NULLS_LAST = "period_DESC_NULLS_LAST",
454
+ positiveFundingFeesUsd_ASC = "positiveFundingFeesUsd_ASC",
455
+ positiveFundingFeesUsd_ASC_NULLS_FIRST = "positiveFundingFeesUsd_ASC_NULLS_FIRST",
456
+ positiveFundingFeesUsd_ASC_NULLS_LAST = "positiveFundingFeesUsd_ASC_NULLS_LAST",
457
+ positiveFundingFeesUsd_DESC = "positiveFundingFeesUsd_DESC",
458
+ positiveFundingFeesUsd_DESC_NULLS_FIRST = "positiveFundingFeesUsd_DESC_NULLS_FIRST",
459
+ positiveFundingFeesUsd_DESC_NULLS_LAST = "positiveFundingFeesUsd_DESC_NULLS_LAST",
453
460
  realizedFees_ASC = "realizedFees_ASC",
454
461
  realizedFees_ASC_NULLS_FIRST = "realizedFees_ASC_NULLS_FIRST",
455
462
  realizedFees_ASC_NULLS_LAST = "realizedFees_ASC_NULLS_LAST",
@@ -646,6 +653,15 @@ export interface AccountStatWhereInput {
646
653
  positions_every?: InputMaybe<PositionWhereInput>;
647
654
  positions_none?: InputMaybe<PositionWhereInput>;
648
655
  positions_some?: InputMaybe<PositionWhereInput>;
656
+ positiveFundingFeesUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
657
+ positiveFundingFeesUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
658
+ positiveFundingFeesUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
659
+ positiveFundingFeesUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
660
+ positiveFundingFeesUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
661
+ positiveFundingFeesUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
662
+ positiveFundingFeesUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
663
+ positiveFundingFeesUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
664
+ positiveFundingFeesUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
649
665
  realizedFees_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
650
666
  realizedFees_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
651
667
  realizedFees_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -872,6 +888,7 @@ export interface AffiliateStatsPoint {
872
888
  rebatesUsd: Scalars["BigInt"]["output"];
873
889
  timestamp: Scalars["Float"]["output"];
874
890
  tradersGained: Scalars["Float"]["output"];
891
+ tradersGraduated: Scalars["Float"]["output"];
875
892
  tradersLost: Scalars["Float"]["output"];
876
893
  tradersNet: Scalars["Float"]["output"];
877
894
  tradesCount: Scalars["Float"]["output"];
@@ -895,6 +912,8 @@ export interface AffiliateStatsSummary {
895
912
  rebatesUsdDelta?: Maybe<Scalars["BigInt"]["output"]>;
896
913
  tradersGained?: Maybe<Scalars["Float"]["output"]>;
897
914
  tradersGainedDelta?: Maybe<Scalars["Float"]["output"]>;
915
+ tradersGraduated?: Maybe<Scalars["Float"]["output"]>;
916
+ tradersGraduatedDelta?: Maybe<Scalars["Float"]["output"]>;
898
917
  tradersLost?: Maybe<Scalars["Float"]["output"]>;
899
918
  tradersLostDelta?: Maybe<Scalars["Float"]["output"]>;
900
919
  tradersNet?: Maybe<Scalars["Float"]["output"]>;
@@ -915,6 +934,7 @@ export interface AffiliateTraderStatsByHour {
915
934
  id: Scalars["String"]["output"];
916
935
  timestamp: Scalars["Int"]["output"];
917
936
  tradersGained: Scalars["Int"]["output"];
937
+ tradersGraduated: Scalars["Int"]["output"];
918
938
  tradersLost: Scalars["Int"]["output"];
919
939
  tradersNet: Scalars["Int"]["output"];
920
940
  }
@@ -948,6 +968,12 @@ export declare enum AffiliateTraderStatsByHourOrderByInput {
948
968
  tradersGained_DESC = "tradersGained_DESC",
949
969
  tradersGained_DESC_NULLS_FIRST = "tradersGained_DESC_NULLS_FIRST",
950
970
  tradersGained_DESC_NULLS_LAST = "tradersGained_DESC_NULLS_LAST",
971
+ tradersGraduated_ASC = "tradersGraduated_ASC",
972
+ tradersGraduated_ASC_NULLS_FIRST = "tradersGraduated_ASC_NULLS_FIRST",
973
+ tradersGraduated_ASC_NULLS_LAST = "tradersGraduated_ASC_NULLS_LAST",
974
+ tradersGraduated_DESC = "tradersGraduated_DESC",
975
+ tradersGraduated_DESC_NULLS_FIRST = "tradersGraduated_DESC_NULLS_FIRST",
976
+ tradersGraduated_DESC_NULLS_LAST = "tradersGraduated_DESC_NULLS_LAST",
951
977
  tradersLost_ASC = "tradersLost_ASC",
952
978
  tradersLost_ASC_NULLS_FIRST = "tradersLost_ASC_NULLS_FIRST",
953
979
  tradersLost_ASC_NULLS_LAST = "tradersLost_ASC_NULLS_LAST",
@@ -1016,6 +1042,15 @@ export interface AffiliateTraderStatsByHourWhereInput {
1016
1042
  tradersGained_lte?: InputMaybe<Scalars["Int"]["input"]>;
1017
1043
  tradersGained_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
1018
1044
  tradersGained_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1045
+ tradersGraduated_eq?: InputMaybe<Scalars["Int"]["input"]>;
1046
+ tradersGraduated_gt?: InputMaybe<Scalars["Int"]["input"]>;
1047
+ tradersGraduated_gte?: InputMaybe<Scalars["Int"]["input"]>;
1048
+ tradersGraduated_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1049
+ tradersGraduated_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1050
+ tradersGraduated_lt?: InputMaybe<Scalars["Int"]["input"]>;
1051
+ tradersGraduated_lte?: InputMaybe<Scalars["Int"]["input"]>;
1052
+ tradersGraduated_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
1053
+ tradersGraduated_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
1019
1054
  tradersLost_eq?: InputMaybe<Scalars["Int"]["input"]>;
1020
1055
  tradersLost_gt?: InputMaybe<Scalars["Int"]["input"]>;
1021
1056
  tradersLost_gte?: InputMaybe<Scalars["Int"]["input"]>;
@@ -1664,6 +1699,7 @@ export interface ClaimableCollateral {
1664
1699
  factor: Scalars["BigInt"]["output"];
1665
1700
  factorByTime: Scalars["BigInt"]["output"];
1666
1701
  group: ClaimableCollateralGroup;
1702
+ groupId: Scalars["String"]["output"];
1667
1703
  id: Scalars["String"]["output"];
1668
1704
  marketAddress: Scalars["String"]["output"];
1669
1705
  reductionFactor: Scalars["BigInt"]["output"];
@@ -1944,6 +1980,23 @@ export interface ClaimableCollateralWhereInput {
1944
1980
  factor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
1945
1981
  factor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
1946
1982
  group?: InputMaybe<ClaimableCollateralGroupWhereInput>;
1983
+ groupId_contains?: InputMaybe<Scalars["String"]["input"]>;
1984
+ groupId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
1985
+ groupId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
1986
+ groupId_eq?: InputMaybe<Scalars["String"]["input"]>;
1987
+ groupId_gt?: InputMaybe<Scalars["String"]["input"]>;
1988
+ groupId_gte?: InputMaybe<Scalars["String"]["input"]>;
1989
+ groupId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
1990
+ groupId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1991
+ groupId_lt?: InputMaybe<Scalars["String"]["input"]>;
1992
+ groupId_lte?: InputMaybe<Scalars["String"]["input"]>;
1993
+ groupId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
1994
+ groupId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
1995
+ groupId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
1996
+ groupId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
1997
+ groupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
1998
+ groupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
1999
+ groupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
1947
2000
  group_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
1948
2001
  id_contains?: InputMaybe<Scalars["String"]["input"]>;
1949
2002
  id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
@@ -2089,6 +2142,15 @@ export interface ClaimableFundingFeeInfosConnection {
2089
2142
  pageInfo: PageInfo;
2090
2143
  totalCount: Scalars["Int"]["output"];
2091
2144
  }
2145
+ export interface CodeTierRuleInput {
2146
+ eligibleForTier: Scalars["String"]["input"];
2147
+ shouldFallbackToCode: Scalars["String"]["input"];
2148
+ }
2149
+ export interface CodeUpdateGroup {
2150
+ __typename?: "CodeUpdateGroup";
2151
+ toCode: Scalars["String"]["output"];
2152
+ traders: Array<Scalars["String"]["output"]>;
2153
+ }
2092
2154
  export interface CollectedFeesInfo {
2093
2155
  __typename?: "CollectedFeesInfo";
2094
2156
  address: Scalars["String"]["output"];
@@ -2097,6 +2159,7 @@ export interface CollectedFeesInfo {
2097
2159
  cumulativeBorrowingFeeUsdForPool: Scalars["BigInt"]["output"];
2098
2160
  cumulativeBorrowingFeeUsdPerPoolValue: Scalars["BigInt"]["output"];
2099
2161
  cumulativeFeeUsdForPool: Scalars["BigInt"]["output"];
2162
+ cumulativeFeeUsdPerGlvToken: Scalars["BigInt"]["output"];
2100
2163
  cumulativeFeeUsdPerPoolValue: Scalars["BigInt"]["output"];
2101
2164
  entityType: EntityType;
2102
2165
  feeUsdForPool: Scalars["BigInt"]["output"];
@@ -2147,6 +2210,12 @@ export declare enum CollectedFeesInfoOrderByInput {
2147
2210
  cumulativeFeeUsdForPool_DESC = "cumulativeFeeUsdForPool_DESC",
2148
2211
  cumulativeFeeUsdForPool_DESC_NULLS_FIRST = "cumulativeFeeUsdForPool_DESC_NULLS_FIRST",
2149
2212
  cumulativeFeeUsdForPool_DESC_NULLS_LAST = "cumulativeFeeUsdForPool_DESC_NULLS_LAST",
2213
+ cumulativeFeeUsdPerGlvToken_ASC = "cumulativeFeeUsdPerGlvToken_ASC",
2214
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST",
2215
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST",
2216
+ cumulativeFeeUsdPerGlvToken_DESC = "cumulativeFeeUsdPerGlvToken_DESC",
2217
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST",
2218
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST",
2150
2219
  cumulativeFeeUsdPerPoolValue_ASC = "cumulativeFeeUsdPerPoolValue_ASC",
2151
2220
  cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_FIRST",
2152
2221
  cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST = "cumulativeFeeUsdPerPoolValue_ASC_NULLS_LAST",
@@ -2255,6 +2324,15 @@ export interface CollectedFeesInfoWhereInput {
2255
2324
  cumulativeFeeUsdForPool_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
2256
2325
  cumulativeFeeUsdForPool_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2257
2326
  cumulativeFeeUsdForPool_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2327
+ cumulativeFeeUsdPerGlvToken_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2328
+ cumulativeFeeUsdPerGlvToken_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
2329
+ cumulativeFeeUsdPerGlvToken_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
2330
+ cumulativeFeeUsdPerGlvToken_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2331
+ cumulativeFeeUsdPerGlvToken_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
2332
+ cumulativeFeeUsdPerGlvToken_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
2333
+ cumulativeFeeUsdPerGlvToken_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
2334
+ cumulativeFeeUsdPerGlvToken_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2335
+ cumulativeFeeUsdPerGlvToken_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
2258
2336
  cumulativeFeeUsdPerPoolValue_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
2259
2337
  cumulativeFeeUsdPerPoolValue_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
2260
2338
  cumulativeFeeUsdPerPoolValue_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -2970,7 +3048,9 @@ export interface FundingRateSnapshotsConnection {
2970
3048
  }
2971
3049
  export interface Glv {
2972
3050
  __typename?: "Glv";
3051
+ cumulativeFeeUsdPerGlvToken: Scalars["BigInt"]["output"];
2973
3052
  glvTokenAddress: Scalars["String"]["output"];
3053
+ glvTokenSupply: Scalars["BigInt"]["output"];
2974
3054
  gmComposition: Array<Scalars["String"]["output"]>;
2975
3055
  id: Scalars["String"]["output"];
2976
3056
  longTokenAddress: Scalars["String"]["output"];
@@ -2995,12 +3075,24 @@ export interface GlvEdge {
2995
3075
  node: Glv;
2996
3076
  }
2997
3077
  export declare enum GlvOrderByInput {
3078
+ cumulativeFeeUsdPerGlvToken_ASC = "cumulativeFeeUsdPerGlvToken_ASC",
3079
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_FIRST",
3080
+ cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_ASC_NULLS_LAST",
3081
+ cumulativeFeeUsdPerGlvToken_DESC = "cumulativeFeeUsdPerGlvToken_DESC",
3082
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_FIRST",
3083
+ cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST = "cumulativeFeeUsdPerGlvToken_DESC_NULLS_LAST",
2998
3084
  glvTokenAddress_ASC = "glvTokenAddress_ASC",
2999
3085
  glvTokenAddress_ASC_NULLS_FIRST = "glvTokenAddress_ASC_NULLS_FIRST",
3000
3086
  glvTokenAddress_ASC_NULLS_LAST = "glvTokenAddress_ASC_NULLS_LAST",
3001
3087
  glvTokenAddress_DESC = "glvTokenAddress_DESC",
3002
3088
  glvTokenAddress_DESC_NULLS_FIRST = "glvTokenAddress_DESC_NULLS_FIRST",
3003
3089
  glvTokenAddress_DESC_NULLS_LAST = "glvTokenAddress_DESC_NULLS_LAST",
3090
+ glvTokenSupply_ASC = "glvTokenSupply_ASC",
3091
+ glvTokenSupply_ASC_NULLS_FIRST = "glvTokenSupply_ASC_NULLS_FIRST",
3092
+ glvTokenSupply_ASC_NULLS_LAST = "glvTokenSupply_ASC_NULLS_LAST",
3093
+ glvTokenSupply_DESC = "glvTokenSupply_DESC",
3094
+ glvTokenSupply_DESC_NULLS_FIRST = "glvTokenSupply_DESC_NULLS_FIRST",
3095
+ glvTokenSupply_DESC_NULLS_LAST = "glvTokenSupply_DESC_NULLS_LAST",
3004
3096
  id_ASC = "id_ASC",
3005
3097
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3006
3098
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
@@ -3041,9 +3133,352 @@ export interface GlvPnlAprsWhereInputWhereInput {
3041
3133
  periodEnd: Scalars["Float"]["input"];
3042
3134
  periodStart: Scalars["Float"]["input"];
3043
3135
  }
3136
+ export interface GlvTokenBalance {
3137
+ __typename?: "GlvTokenBalance";
3138
+ account: Scalars["String"]["output"];
3139
+ balance: Scalars["BigInt"]["output"];
3140
+ cumulativeIncome: Scalars["BigInt"]["output"];
3141
+ entrySnapshot: Scalars["BigInt"]["output"];
3142
+ glvAddress: Scalars["String"]["output"];
3143
+ id: Scalars["String"]["output"];
3144
+ }
3145
+ export interface GlvTokenBalanceChange {
3146
+ __typename?: "GlvTokenBalanceChange";
3147
+ account: Scalars["String"]["output"];
3148
+ balance: Scalars["BigInt"]["output"];
3149
+ blockNumber: Scalars["Int"]["output"];
3150
+ cumulativeIncome: Scalars["BigInt"]["output"];
3151
+ glvAddress: Scalars["String"]["output"];
3152
+ id: Scalars["String"]["output"];
3153
+ index: Scalars["Int"]["output"];
3154
+ snapshot: Scalars["BigInt"]["output"];
3155
+ timestamp: Scalars["Int"]["output"];
3156
+ }
3157
+ export interface GlvTokenBalanceChangeEdge {
3158
+ __typename?: "GlvTokenBalanceChangeEdge";
3159
+ cursor: Scalars["String"]["output"];
3160
+ node: GlvTokenBalanceChange;
3161
+ }
3162
+ export declare enum GlvTokenBalanceChangeOrderByInput {
3163
+ account_ASC = "account_ASC",
3164
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
3165
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
3166
+ account_DESC = "account_DESC",
3167
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
3168
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
3169
+ balance_ASC = "balance_ASC",
3170
+ balance_ASC_NULLS_FIRST = "balance_ASC_NULLS_FIRST",
3171
+ balance_ASC_NULLS_LAST = "balance_ASC_NULLS_LAST",
3172
+ balance_DESC = "balance_DESC",
3173
+ balance_DESC_NULLS_FIRST = "balance_DESC_NULLS_FIRST",
3174
+ balance_DESC_NULLS_LAST = "balance_DESC_NULLS_LAST",
3175
+ blockNumber_ASC = "blockNumber_ASC",
3176
+ blockNumber_ASC_NULLS_FIRST = "blockNumber_ASC_NULLS_FIRST",
3177
+ blockNumber_ASC_NULLS_LAST = "blockNumber_ASC_NULLS_LAST",
3178
+ blockNumber_DESC = "blockNumber_DESC",
3179
+ blockNumber_DESC_NULLS_FIRST = "blockNumber_DESC_NULLS_FIRST",
3180
+ blockNumber_DESC_NULLS_LAST = "blockNumber_DESC_NULLS_LAST",
3181
+ cumulativeIncome_ASC = "cumulativeIncome_ASC",
3182
+ cumulativeIncome_ASC_NULLS_FIRST = "cumulativeIncome_ASC_NULLS_FIRST",
3183
+ cumulativeIncome_ASC_NULLS_LAST = "cumulativeIncome_ASC_NULLS_LAST",
3184
+ cumulativeIncome_DESC = "cumulativeIncome_DESC",
3185
+ cumulativeIncome_DESC_NULLS_FIRST = "cumulativeIncome_DESC_NULLS_FIRST",
3186
+ cumulativeIncome_DESC_NULLS_LAST = "cumulativeIncome_DESC_NULLS_LAST",
3187
+ glvAddress_ASC = "glvAddress_ASC",
3188
+ glvAddress_ASC_NULLS_FIRST = "glvAddress_ASC_NULLS_FIRST",
3189
+ glvAddress_ASC_NULLS_LAST = "glvAddress_ASC_NULLS_LAST",
3190
+ glvAddress_DESC = "glvAddress_DESC",
3191
+ glvAddress_DESC_NULLS_FIRST = "glvAddress_DESC_NULLS_FIRST",
3192
+ glvAddress_DESC_NULLS_LAST = "glvAddress_DESC_NULLS_LAST",
3193
+ id_ASC = "id_ASC",
3194
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3195
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
3196
+ id_DESC = "id_DESC",
3197
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
3198
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
3199
+ index_ASC = "index_ASC",
3200
+ index_ASC_NULLS_FIRST = "index_ASC_NULLS_FIRST",
3201
+ index_ASC_NULLS_LAST = "index_ASC_NULLS_LAST",
3202
+ index_DESC = "index_DESC",
3203
+ index_DESC_NULLS_FIRST = "index_DESC_NULLS_FIRST",
3204
+ index_DESC_NULLS_LAST = "index_DESC_NULLS_LAST",
3205
+ snapshot_ASC = "snapshot_ASC",
3206
+ snapshot_ASC_NULLS_FIRST = "snapshot_ASC_NULLS_FIRST",
3207
+ snapshot_ASC_NULLS_LAST = "snapshot_ASC_NULLS_LAST",
3208
+ snapshot_DESC = "snapshot_DESC",
3209
+ snapshot_DESC_NULLS_FIRST = "snapshot_DESC_NULLS_FIRST",
3210
+ snapshot_DESC_NULLS_LAST = "snapshot_DESC_NULLS_LAST",
3211
+ timestamp_ASC = "timestamp_ASC",
3212
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
3213
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
3214
+ timestamp_DESC = "timestamp_DESC",
3215
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
3216
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST"
3217
+ }
3218
+ export interface GlvTokenBalanceChangeWhereInput {
3219
+ AND?: InputMaybe<Array<GlvTokenBalanceChangeWhereInput>>;
3220
+ OR?: InputMaybe<Array<GlvTokenBalanceChangeWhereInput>>;
3221
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
3222
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3223
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3224
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
3225
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
3226
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
3227
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3228
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3229
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
3230
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
3231
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3232
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3233
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3234
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3235
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3236
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3237
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3238
+ balance_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3239
+ balance_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3240
+ balance_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3241
+ balance_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3242
+ balance_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3243
+ balance_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3244
+ balance_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3245
+ balance_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3246
+ balance_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3247
+ blockNumber_eq?: InputMaybe<Scalars["Int"]["input"]>;
3248
+ blockNumber_gt?: InputMaybe<Scalars["Int"]["input"]>;
3249
+ blockNumber_gte?: InputMaybe<Scalars["Int"]["input"]>;
3250
+ blockNumber_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3251
+ blockNumber_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3252
+ blockNumber_lt?: InputMaybe<Scalars["Int"]["input"]>;
3253
+ blockNumber_lte?: InputMaybe<Scalars["Int"]["input"]>;
3254
+ blockNumber_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3255
+ blockNumber_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3256
+ cumulativeIncome_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3257
+ cumulativeIncome_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3258
+ cumulativeIncome_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3259
+ cumulativeIncome_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3260
+ cumulativeIncome_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3261
+ cumulativeIncome_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3262
+ cumulativeIncome_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3263
+ cumulativeIncome_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3264
+ cumulativeIncome_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3265
+ glvAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
3266
+ glvAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3267
+ glvAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3268
+ glvAddress_eq?: InputMaybe<Scalars["String"]["input"]>;
3269
+ glvAddress_gt?: InputMaybe<Scalars["String"]["input"]>;
3270
+ glvAddress_gte?: InputMaybe<Scalars["String"]["input"]>;
3271
+ glvAddress_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3272
+ glvAddress_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3273
+ glvAddress_lt?: InputMaybe<Scalars["String"]["input"]>;
3274
+ glvAddress_lte?: InputMaybe<Scalars["String"]["input"]>;
3275
+ glvAddress_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3276
+ glvAddress_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3277
+ glvAddress_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3278
+ glvAddress_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3279
+ glvAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3280
+ glvAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3281
+ glvAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3282
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
3283
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3284
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3285
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
3286
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
3287
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
3288
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3289
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3290
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
3291
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
3292
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3293
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3294
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3295
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3296
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3297
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3298
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3299
+ index_eq?: InputMaybe<Scalars["Int"]["input"]>;
3300
+ index_gt?: InputMaybe<Scalars["Int"]["input"]>;
3301
+ index_gte?: InputMaybe<Scalars["Int"]["input"]>;
3302
+ index_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3303
+ index_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3304
+ index_lt?: InputMaybe<Scalars["Int"]["input"]>;
3305
+ index_lte?: InputMaybe<Scalars["Int"]["input"]>;
3306
+ index_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3307
+ index_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3308
+ snapshot_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3309
+ snapshot_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3310
+ snapshot_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3311
+ snapshot_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3312
+ snapshot_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3313
+ snapshot_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3314
+ snapshot_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3315
+ snapshot_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3316
+ snapshot_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3317
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
3318
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
3319
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
3320
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3321
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3322
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
3323
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
3324
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
3325
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
3326
+ }
3327
+ export interface GlvTokenBalanceChangesConnection {
3328
+ __typename?: "GlvTokenBalanceChangesConnection";
3329
+ edges: Array<GlvTokenBalanceChangeEdge>;
3330
+ pageInfo: PageInfo;
3331
+ totalCount: Scalars["Int"]["output"];
3332
+ }
3333
+ export interface GlvTokenBalanceEdge {
3334
+ __typename?: "GlvTokenBalanceEdge";
3335
+ cursor: Scalars["String"]["output"];
3336
+ node: GlvTokenBalance;
3337
+ }
3338
+ export declare enum GlvTokenBalanceOrderByInput {
3339
+ account_ASC = "account_ASC",
3340
+ account_ASC_NULLS_FIRST = "account_ASC_NULLS_FIRST",
3341
+ account_ASC_NULLS_LAST = "account_ASC_NULLS_LAST",
3342
+ account_DESC = "account_DESC",
3343
+ account_DESC_NULLS_FIRST = "account_DESC_NULLS_FIRST",
3344
+ account_DESC_NULLS_LAST = "account_DESC_NULLS_LAST",
3345
+ balance_ASC = "balance_ASC",
3346
+ balance_ASC_NULLS_FIRST = "balance_ASC_NULLS_FIRST",
3347
+ balance_ASC_NULLS_LAST = "balance_ASC_NULLS_LAST",
3348
+ balance_DESC = "balance_DESC",
3349
+ balance_DESC_NULLS_FIRST = "balance_DESC_NULLS_FIRST",
3350
+ balance_DESC_NULLS_LAST = "balance_DESC_NULLS_LAST",
3351
+ cumulativeIncome_ASC = "cumulativeIncome_ASC",
3352
+ cumulativeIncome_ASC_NULLS_FIRST = "cumulativeIncome_ASC_NULLS_FIRST",
3353
+ cumulativeIncome_ASC_NULLS_LAST = "cumulativeIncome_ASC_NULLS_LAST",
3354
+ cumulativeIncome_DESC = "cumulativeIncome_DESC",
3355
+ cumulativeIncome_DESC_NULLS_FIRST = "cumulativeIncome_DESC_NULLS_FIRST",
3356
+ cumulativeIncome_DESC_NULLS_LAST = "cumulativeIncome_DESC_NULLS_LAST",
3357
+ entrySnapshot_ASC = "entrySnapshot_ASC",
3358
+ entrySnapshot_ASC_NULLS_FIRST = "entrySnapshot_ASC_NULLS_FIRST",
3359
+ entrySnapshot_ASC_NULLS_LAST = "entrySnapshot_ASC_NULLS_LAST",
3360
+ entrySnapshot_DESC = "entrySnapshot_DESC",
3361
+ entrySnapshot_DESC_NULLS_FIRST = "entrySnapshot_DESC_NULLS_FIRST",
3362
+ entrySnapshot_DESC_NULLS_LAST = "entrySnapshot_DESC_NULLS_LAST",
3363
+ glvAddress_ASC = "glvAddress_ASC",
3364
+ glvAddress_ASC_NULLS_FIRST = "glvAddress_ASC_NULLS_FIRST",
3365
+ glvAddress_ASC_NULLS_LAST = "glvAddress_ASC_NULLS_LAST",
3366
+ glvAddress_DESC = "glvAddress_DESC",
3367
+ glvAddress_DESC_NULLS_FIRST = "glvAddress_DESC_NULLS_FIRST",
3368
+ glvAddress_DESC_NULLS_LAST = "glvAddress_DESC_NULLS_LAST",
3369
+ id_ASC = "id_ASC",
3370
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3371
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
3372
+ id_DESC = "id_DESC",
3373
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
3374
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST"
3375
+ }
3376
+ export interface GlvTokenBalanceWhereInput {
3377
+ AND?: InputMaybe<Array<GlvTokenBalanceWhereInput>>;
3378
+ OR?: InputMaybe<Array<GlvTokenBalanceWhereInput>>;
3379
+ account_contains?: InputMaybe<Scalars["String"]["input"]>;
3380
+ account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3381
+ account_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3382
+ account_eq?: InputMaybe<Scalars["String"]["input"]>;
3383
+ account_gt?: InputMaybe<Scalars["String"]["input"]>;
3384
+ account_gte?: InputMaybe<Scalars["String"]["input"]>;
3385
+ account_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3386
+ account_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3387
+ account_lt?: InputMaybe<Scalars["String"]["input"]>;
3388
+ account_lte?: InputMaybe<Scalars["String"]["input"]>;
3389
+ account_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3390
+ account_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3391
+ account_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3392
+ account_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3393
+ account_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3394
+ account_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3395
+ account_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3396
+ balance_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3397
+ balance_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3398
+ balance_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3399
+ balance_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3400
+ balance_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3401
+ balance_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3402
+ balance_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3403
+ balance_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3404
+ balance_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3405
+ cumulativeIncome_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3406
+ cumulativeIncome_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3407
+ cumulativeIncome_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3408
+ cumulativeIncome_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3409
+ cumulativeIncome_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3410
+ cumulativeIncome_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3411
+ cumulativeIncome_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3412
+ cumulativeIncome_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3413
+ cumulativeIncome_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3414
+ entrySnapshot_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3415
+ entrySnapshot_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3416
+ entrySnapshot_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3417
+ entrySnapshot_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3418
+ entrySnapshot_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3419
+ entrySnapshot_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3420
+ entrySnapshot_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3421
+ entrySnapshot_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3422
+ entrySnapshot_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3423
+ glvAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
3424
+ glvAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3425
+ glvAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3426
+ glvAddress_eq?: InputMaybe<Scalars["String"]["input"]>;
3427
+ glvAddress_gt?: InputMaybe<Scalars["String"]["input"]>;
3428
+ glvAddress_gte?: InputMaybe<Scalars["String"]["input"]>;
3429
+ glvAddress_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3430
+ glvAddress_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3431
+ glvAddress_lt?: InputMaybe<Scalars["String"]["input"]>;
3432
+ glvAddress_lte?: InputMaybe<Scalars["String"]["input"]>;
3433
+ glvAddress_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3434
+ glvAddress_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3435
+ glvAddress_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3436
+ glvAddress_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3437
+ glvAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3438
+ glvAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3439
+ glvAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3440
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
3441
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3442
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3443
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
3444
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
3445
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
3446
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3447
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3448
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
3449
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
3450
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
3451
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3452
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
3453
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
3454
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3455
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3456
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3457
+ }
3458
+ export interface GlvTokenBalancesConnection {
3459
+ __typename?: "GlvTokenBalancesConnection";
3460
+ edges: Array<GlvTokenBalanceEdge>;
3461
+ pageInfo: PageInfo;
3462
+ totalCount: Scalars["Int"]["output"];
3463
+ }
3464
+ export interface GlvUserEarning {
3465
+ __typename?: "GlvUserEarning";
3466
+ glvAddress: Scalars["String"]["output"];
3467
+ lifetimeFeeUsd: Scalars["BigInt"]["output"];
3468
+ recent7dFeeUsd: Scalars["BigInt"]["output"];
3469
+ }
3044
3470
  export interface GlvWhereInput {
3045
3471
  AND?: InputMaybe<Array<GlvWhereInput>>;
3046
3472
  OR?: InputMaybe<Array<GlvWhereInput>>;
3473
+ cumulativeFeeUsdPerGlvToken_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3474
+ cumulativeFeeUsdPerGlvToken_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3475
+ cumulativeFeeUsdPerGlvToken_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3476
+ cumulativeFeeUsdPerGlvToken_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3477
+ cumulativeFeeUsdPerGlvToken_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3478
+ cumulativeFeeUsdPerGlvToken_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3479
+ cumulativeFeeUsdPerGlvToken_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3480
+ cumulativeFeeUsdPerGlvToken_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3481
+ cumulativeFeeUsdPerGlvToken_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3047
3482
  glvTokenAddress_contains?: InputMaybe<Scalars["String"]["input"]>;
3048
3483
  glvTokenAddress_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
3049
3484
  glvTokenAddress_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -3061,6 +3496,15 @@ export interface GlvWhereInput {
3061
3496
  glvTokenAddress_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
3062
3497
  glvTokenAddress_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3063
3498
  glvTokenAddress_startsWith?: InputMaybe<Scalars["String"]["input"]>;
3499
+ glvTokenSupply_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3500
+ glvTokenSupply_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
3501
+ glvTokenSupply_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
3502
+ glvTokenSupply_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3503
+ glvTokenSupply_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
3504
+ glvTokenSupply_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
3505
+ glvTokenSupply_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
3506
+ glvTokenSupply_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
3507
+ glvTokenSupply_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
3064
3508
  gmComposition_containsAll?: InputMaybe<Array<Scalars["String"]["input"]>>;
3065
3509
  gmComposition_containsAny?: InputMaybe<Array<Scalars["String"]["input"]>>;
3066
3510
  gmComposition_containsNone?: InputMaybe<Array<Scalars["String"]["input"]>>;
@@ -3159,6 +3603,20 @@ export interface MarketEdge {
3159
3603
  cursor: Scalars["String"]["output"];
3160
3604
  node: Market;
3161
3605
  }
3606
+ export interface MarketFeeUsdByPeriod {
3607
+ __typename?: "MarketFeeUsdByPeriod";
3608
+ annualizedBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3609
+ annualizedFeeUsdForPool: Scalars["BigInt"]["output"];
3610
+ annualizedNonBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3611
+ borrowFeesFromTimestamp: Scalars["Float"]["output"];
3612
+ borrowFeesToTimestamp: Scalars["Float"]["output"];
3613
+ collectedFeesFromTimestamp: Scalars["Float"]["output"];
3614
+ collectedFeesToTimestamp: Scalars["Float"]["output"];
3615
+ marketAddress: Scalars["String"]["output"];
3616
+ periodBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3617
+ periodFeeUsdForPool: Scalars["BigInt"]["output"];
3618
+ periodNonBorrowFeeUsdForPool: Scalars["BigInt"]["output"];
3619
+ }
3162
3620
  export interface MarketInfo {
3163
3621
  __typename?: "MarketInfo";
3164
3622
  aboveOptimalUsageBorrowingFactorLong: Scalars["BigInt"]["output"];
@@ -3178,7 +3636,6 @@ export interface MarketInfo {
3178
3636
  fundingFactorPerSecond: Scalars["BigInt"]["output"];
3179
3637
  fundingIncreaseFactorPerSecond: Scalars["BigInt"]["output"];
3180
3638
  fundingUpdatedAt: Scalars["Int"]["output"];
3181
- minFundingIncreaseRatePerSecond: Scalars["BigInt"]["output"];
3182
3639
  id: Scalars["String"]["output"];
3183
3640
  indexTokenAddress: Scalars["String"]["output"];
3184
3641
  isDisabled: Scalars["Boolean"]["output"];
@@ -3194,7 +3651,6 @@ export interface MarketInfo {
3194
3651
  longsPayShorts: Scalars["Boolean"]["output"];
3195
3652
  marketTokenAddress: Scalars["String"]["output"];
3196
3653
  marketTokenSupply: Scalars["BigInt"]["output"];
3197
- maxFundingFactorPerSecond: Scalars["BigInt"]["output"];
3198
3654
  maxFundingFactorPerSecondLong: Scalars["BigInt"]["output"];
3199
3655
  maxFundingFactorPerSecondShort: Scalars["BigInt"]["output"];
3200
3656
  maxLendableImpactFactor: Scalars["BigInt"]["output"];
@@ -3215,9 +3671,9 @@ export interface MarketInfo {
3215
3671
  minCollateralFactorForLiquidation: Scalars["BigInt"]["output"];
3216
3672
  minCollateralFactorForOpenInterestLong: Scalars["BigInt"]["output"];
3217
3673
  minCollateralFactorForOpenInterestShort: Scalars["BigInt"]["output"];
3218
- minFundingFactorPerSecond: Scalars["BigInt"]["output"];
3219
3674
  minFundingFactorPerSecondLong: Scalars["BigInt"]["output"];
3220
3675
  minFundingFactorPerSecondShort: Scalars["BigInt"]["output"];
3676
+ minFundingIncreaseRatePerSecond: Scalars["BigInt"]["output"];
3221
3677
  minPositionImpactPoolAmount: Scalars["BigInt"]["output"];
3222
3678
  openInterestReserveFactorLong: Scalars["BigInt"]["output"];
3223
3679
  openInterestReserveFactorShort: Scalars["BigInt"]["output"];
@@ -3372,12 +3828,6 @@ export declare enum MarketInfoOrderByInput {
3372
3828
  fundingUpdatedAt_DESC = "fundingUpdatedAt_DESC",
3373
3829
  fundingUpdatedAt_DESC_NULLS_FIRST = "fundingUpdatedAt_DESC_NULLS_FIRST",
3374
3830
  fundingUpdatedAt_DESC_NULLS_LAST = "fundingUpdatedAt_DESC_NULLS_LAST",
3375
- minFundingIncreaseRatePerSecond_ASC = "minFundingIncreaseRatePerSecond_ASC",
3376
- minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST",
3377
- minFundingIncreaseRatePerSecond_ASC_NULLS_LAST = "minFundingIncreaseRatePerSecond_ASC_NULLS_LAST",
3378
- minFundingIncreaseRatePerSecond_DESC = "minFundingIncreaseRatePerSecond_DESC",
3379
- minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST",
3380
- minFundingIncreaseRatePerSecond_DESC_NULLS_LAST = "minFundingIncreaseRatePerSecond_DESC_NULLS_LAST",
3381
3831
  id_ASC = "id_ASC",
3382
3832
  id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
3383
3833
  id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
@@ -3468,12 +3918,18 @@ export declare enum MarketInfoOrderByInput {
3468
3918
  marketTokenSupply_DESC = "marketTokenSupply_DESC",
3469
3919
  marketTokenSupply_DESC_NULLS_FIRST = "marketTokenSupply_DESC_NULLS_FIRST",
3470
3920
  marketTokenSupply_DESC_NULLS_LAST = "marketTokenSupply_DESC_NULLS_LAST",
3471
- maxFundingFactorPerSecond_ASC = "maxFundingFactorPerSecond_ASC",
3472
- maxFundingFactorPerSecond_ASC_NULLS_FIRST = "maxFundingFactorPerSecond_ASC_NULLS_FIRST",
3473
- maxFundingFactorPerSecond_ASC_NULLS_LAST = "maxFundingFactorPerSecond_ASC_NULLS_LAST",
3474
- maxFundingFactorPerSecond_DESC = "maxFundingFactorPerSecond_DESC",
3475
- maxFundingFactorPerSecond_DESC_NULLS_FIRST = "maxFundingFactorPerSecond_DESC_NULLS_FIRST",
3476
- maxFundingFactorPerSecond_DESC_NULLS_LAST = "maxFundingFactorPerSecond_DESC_NULLS_LAST",
3921
+ maxFundingFactorPerSecondLong_ASC = "maxFundingFactorPerSecondLong_ASC",
3922
+ maxFundingFactorPerSecondLong_ASC_NULLS_FIRST = "maxFundingFactorPerSecondLong_ASC_NULLS_FIRST",
3923
+ maxFundingFactorPerSecondLong_ASC_NULLS_LAST = "maxFundingFactorPerSecondLong_ASC_NULLS_LAST",
3924
+ maxFundingFactorPerSecondLong_DESC = "maxFundingFactorPerSecondLong_DESC",
3925
+ maxFundingFactorPerSecondLong_DESC_NULLS_FIRST = "maxFundingFactorPerSecondLong_DESC_NULLS_FIRST",
3926
+ maxFundingFactorPerSecondLong_DESC_NULLS_LAST = "maxFundingFactorPerSecondLong_DESC_NULLS_LAST",
3927
+ maxFundingFactorPerSecondShort_ASC = "maxFundingFactorPerSecondShort_ASC",
3928
+ maxFundingFactorPerSecondShort_ASC_NULLS_FIRST = "maxFundingFactorPerSecondShort_ASC_NULLS_FIRST",
3929
+ maxFundingFactorPerSecondShort_ASC_NULLS_LAST = "maxFundingFactorPerSecondShort_ASC_NULLS_LAST",
3930
+ maxFundingFactorPerSecondShort_DESC = "maxFundingFactorPerSecondShort_DESC",
3931
+ maxFundingFactorPerSecondShort_DESC_NULLS_FIRST = "maxFundingFactorPerSecondShort_DESC_NULLS_FIRST",
3932
+ maxFundingFactorPerSecondShort_DESC_NULLS_LAST = "maxFundingFactorPerSecondShort_DESC_NULLS_LAST",
3477
3933
  maxLendableImpactFactorForWithdrawals_ASC = "maxLendableImpactFactorForWithdrawals_ASC",
3478
3934
  maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_FIRST",
3479
3935
  maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST = "maxLendableImpactFactorForWithdrawals_ASC_NULLS_LAST",
@@ -3582,12 +4038,24 @@ export declare enum MarketInfoOrderByInput {
3582
4038
  minCollateralFactor_DESC = "minCollateralFactor_DESC",
3583
4039
  minCollateralFactor_DESC_NULLS_FIRST = "minCollateralFactor_DESC_NULLS_FIRST",
3584
4040
  minCollateralFactor_DESC_NULLS_LAST = "minCollateralFactor_DESC_NULLS_LAST",
3585
- minFundingFactorPerSecond_ASC = "minFundingFactorPerSecond_ASC",
3586
- minFundingFactorPerSecond_ASC_NULLS_FIRST = "minFundingFactorPerSecond_ASC_NULLS_FIRST",
3587
- minFundingFactorPerSecond_ASC_NULLS_LAST = "minFundingFactorPerSecond_ASC_NULLS_LAST",
3588
- minFundingFactorPerSecond_DESC = "minFundingFactorPerSecond_DESC",
3589
- minFundingFactorPerSecond_DESC_NULLS_FIRST = "minFundingFactorPerSecond_DESC_NULLS_FIRST",
3590
- minFundingFactorPerSecond_DESC_NULLS_LAST = "minFundingFactorPerSecond_DESC_NULLS_LAST",
4041
+ minFundingFactorPerSecondLong_ASC = "minFundingFactorPerSecondLong_ASC",
4042
+ minFundingFactorPerSecondLong_ASC_NULLS_FIRST = "minFundingFactorPerSecondLong_ASC_NULLS_FIRST",
4043
+ minFundingFactorPerSecondLong_ASC_NULLS_LAST = "minFundingFactorPerSecondLong_ASC_NULLS_LAST",
4044
+ minFundingFactorPerSecondLong_DESC = "minFundingFactorPerSecondLong_DESC",
4045
+ minFundingFactorPerSecondLong_DESC_NULLS_FIRST = "minFundingFactorPerSecondLong_DESC_NULLS_FIRST",
4046
+ minFundingFactorPerSecondLong_DESC_NULLS_LAST = "minFundingFactorPerSecondLong_DESC_NULLS_LAST",
4047
+ minFundingFactorPerSecondShort_ASC = "minFundingFactorPerSecondShort_ASC",
4048
+ minFundingFactorPerSecondShort_ASC_NULLS_FIRST = "minFundingFactorPerSecondShort_ASC_NULLS_FIRST",
4049
+ minFundingFactorPerSecondShort_ASC_NULLS_LAST = "minFundingFactorPerSecondShort_ASC_NULLS_LAST",
4050
+ minFundingFactorPerSecondShort_DESC = "minFundingFactorPerSecondShort_DESC",
4051
+ minFundingFactorPerSecondShort_DESC_NULLS_FIRST = "minFundingFactorPerSecondShort_DESC_NULLS_FIRST",
4052
+ minFundingFactorPerSecondShort_DESC_NULLS_LAST = "minFundingFactorPerSecondShort_DESC_NULLS_LAST",
4053
+ minFundingIncreaseRatePerSecond_ASC = "minFundingIncreaseRatePerSecond_ASC",
4054
+ minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_ASC_NULLS_FIRST",
4055
+ minFundingIncreaseRatePerSecond_ASC_NULLS_LAST = "minFundingIncreaseRatePerSecond_ASC_NULLS_LAST",
4056
+ minFundingIncreaseRatePerSecond_DESC = "minFundingIncreaseRatePerSecond_DESC",
4057
+ minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST = "minFundingIncreaseRatePerSecond_DESC_NULLS_FIRST",
4058
+ minFundingIncreaseRatePerSecond_DESC_NULLS_LAST = "minFundingIncreaseRatePerSecond_DESC_NULLS_LAST",
3591
4059
  minPositionImpactPoolAmount_ASC = "minPositionImpactPoolAmount_ASC",
3592
4060
  minPositionImpactPoolAmount_ASC_NULLS_FIRST = "minPositionImpactPoolAmount_ASC_NULLS_FIRST",
3593
4061
  minPositionImpactPoolAmount_ASC_NULLS_LAST = "minPositionImpactPoolAmount_ASC_NULLS_LAST",
@@ -4015,15 +4483,6 @@ export interface MarketInfoWhereInput {
4015
4483
  fundingUpdatedAt_lte?: InputMaybe<Scalars["Int"]["input"]>;
4016
4484
  fundingUpdatedAt_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
4017
4485
  fundingUpdatedAt_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
4018
- minFundingIncreaseRatePerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4019
- minFundingIncreaseRatePerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4020
- minFundingIncreaseRatePerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4021
- minFundingIncreaseRatePerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4022
- minFundingIncreaseRatePerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4023
- minFundingIncreaseRatePerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4024
- minFundingIncreaseRatePerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4025
- minFundingIncreaseRatePerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4026
- minFundingIncreaseRatePerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4027
4486
  id_contains?: InputMaybe<Scalars["String"]["input"]>;
4028
4487
  id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
4029
4488
  id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -4179,15 +4638,24 @@ export interface MarketInfoWhereInput {
4179
4638
  marketTokenSupply_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4180
4639
  marketTokenSupply_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4181
4640
  marketTokenSupply_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4182
- maxFundingFactorPerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4183
- maxFundingFactorPerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4184
- maxFundingFactorPerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4185
- maxFundingFactorPerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4186
- maxFundingFactorPerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4187
- maxFundingFactorPerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4188
- maxFundingFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4189
- maxFundingFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4190
- maxFundingFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4641
+ maxFundingFactorPerSecondLong_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4642
+ maxFundingFactorPerSecondLong_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4643
+ maxFundingFactorPerSecondLong_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4644
+ maxFundingFactorPerSecondLong_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4645
+ maxFundingFactorPerSecondLong_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4646
+ maxFundingFactorPerSecondLong_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4647
+ maxFundingFactorPerSecondLong_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4648
+ maxFundingFactorPerSecondLong_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4649
+ maxFundingFactorPerSecondLong_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4650
+ maxFundingFactorPerSecondShort_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4651
+ maxFundingFactorPerSecondShort_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4652
+ maxFundingFactorPerSecondShort_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4653
+ maxFundingFactorPerSecondShort_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4654
+ maxFundingFactorPerSecondShort_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4655
+ maxFundingFactorPerSecondShort_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4656
+ maxFundingFactorPerSecondShort_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4657
+ maxFundingFactorPerSecondShort_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4658
+ maxFundingFactorPerSecondShort_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4191
4659
  maxLendableImpactFactorForWithdrawals_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4192
4660
  maxLendableImpactFactorForWithdrawals_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4193
4661
  maxLendableImpactFactorForWithdrawals_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -4350,15 +4818,33 @@ export interface MarketInfoWhereInput {
4350
4818
  minCollateralFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4351
4819
  minCollateralFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4352
4820
  minCollateralFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4353
- minFundingFactorPerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4354
- minFundingFactorPerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4355
- minFundingFactorPerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4356
- minFundingFactorPerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4357
- minFundingFactorPerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4358
- minFundingFactorPerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4359
- minFundingFactorPerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4360
- minFundingFactorPerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4361
- minFundingFactorPerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4821
+ minFundingFactorPerSecondLong_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4822
+ minFundingFactorPerSecondLong_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4823
+ minFundingFactorPerSecondLong_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4824
+ minFundingFactorPerSecondLong_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4825
+ minFundingFactorPerSecondLong_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4826
+ minFundingFactorPerSecondLong_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4827
+ minFundingFactorPerSecondLong_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4828
+ minFundingFactorPerSecondLong_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4829
+ minFundingFactorPerSecondLong_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4830
+ minFundingFactorPerSecondShort_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4831
+ minFundingFactorPerSecondShort_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4832
+ minFundingFactorPerSecondShort_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4833
+ minFundingFactorPerSecondShort_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4834
+ minFundingFactorPerSecondShort_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4835
+ minFundingFactorPerSecondShort_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4836
+ minFundingFactorPerSecondShort_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4837
+ minFundingFactorPerSecondShort_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4838
+ minFundingFactorPerSecondShort_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4839
+ minFundingIncreaseRatePerSecond_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4840
+ minFundingIncreaseRatePerSecond_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4841
+ minFundingIncreaseRatePerSecond_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
4842
+ minFundingIncreaseRatePerSecond_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4843
+ minFundingIncreaseRatePerSecond_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
4844
+ minFundingIncreaseRatePerSecond_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
4845
+ minFundingIncreaseRatePerSecond_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
4846
+ minFundingIncreaseRatePerSecond_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4847
+ minFundingIncreaseRatePerSecond_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
4362
4848
  minPositionImpactPoolAmount_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
4363
4849
  minPositionImpactPoolAmount_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
4364
4850
  minPositionImpactPoolAmount_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -4945,6 +5431,11 @@ export interface MarketsConnection {
4945
5431
  pageInfo: PageInfo;
4946
5432
  totalCount: Scalars["Int"]["output"];
4947
5433
  }
5434
+ export interface MarketsFeeUsdWhereInput {
5435
+ marketAddresses?: InputMaybe<Array<Scalars["String"]["input"]>>;
5436
+ periodEnd: Scalars["Float"]["input"];
5437
+ periodStart: Scalars["Float"]["input"];
5438
+ }
4948
5439
  export interface MultichainFundingInfo {
4949
5440
  __typename?: "MultichainFundingInfo";
4950
5441
  account: Scalars["String"]["output"];
@@ -5763,6 +6254,7 @@ export interface Order {
5763
6254
  swapPath: Array<Scalars["String"]["output"]>;
5764
6255
  triggerPrice: Scalars["BigInt"]["output"];
5765
6256
  twapGroupId?: Maybe<Scalars["String"]["output"]>;
6257
+ uiFeeFactor?: Maybe<Scalars["BigInt"]["output"]>;
5766
6258
  uiFeeReceiver: Scalars["String"]["output"];
5767
6259
  updatedAtBlock: Scalars["BigInt"]["output"];
5768
6260
  }
@@ -5940,6 +6432,12 @@ export declare enum OrderOrderByInput {
5940
6432
  twapGroupId_DESC = "twapGroupId_DESC",
5941
6433
  twapGroupId_DESC_NULLS_FIRST = "twapGroupId_DESC_NULLS_FIRST",
5942
6434
  twapGroupId_DESC_NULLS_LAST = "twapGroupId_DESC_NULLS_LAST",
6435
+ uiFeeFactor_ASC = "uiFeeFactor_ASC",
6436
+ uiFeeFactor_ASC_NULLS_FIRST = "uiFeeFactor_ASC_NULLS_FIRST",
6437
+ uiFeeFactor_ASC_NULLS_LAST = "uiFeeFactor_ASC_NULLS_LAST",
6438
+ uiFeeFactor_DESC = "uiFeeFactor_DESC",
6439
+ uiFeeFactor_DESC_NULLS_FIRST = "uiFeeFactor_DESC_NULLS_FIRST",
6440
+ uiFeeFactor_DESC_NULLS_LAST = "uiFeeFactor_DESC_NULLS_LAST",
5943
6441
  uiFeeReceiver_ASC = "uiFeeReceiver_ASC",
5944
6442
  uiFeeReceiver_ASC_NULLS_FIRST = "uiFeeReceiver_ASC_NULLS_FIRST",
5945
6443
  uiFeeReceiver_ASC_NULLS_LAST = "uiFeeReceiver_ASC_NULLS_LAST",
@@ -6314,6 +6812,15 @@ export interface OrderWhereInput {
6314
6812
  twapGroupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
6315
6813
  twapGroupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6316
6814
  twapGroupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
6815
+ uiFeeFactor_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6816
+ uiFeeFactor_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
6817
+ uiFeeFactor_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
6818
+ uiFeeFactor_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6819
+ uiFeeFactor_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
6820
+ uiFeeFactor_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
6821
+ uiFeeFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
6822
+ uiFeeFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
6823
+ uiFeeFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
6317
6824
  uiFeeReceiver_contains?: InputMaybe<Scalars["String"]["input"]>;
6318
6825
  uiFeeReceiver_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
6319
6826
  uiFeeReceiver_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -6378,7 +6885,7 @@ export interface PeriodAccountStatObject {
6378
6885
  losses: Scalars["Float"]["output"];
6379
6886
  maxCapital: Scalars["BigInt"]["output"];
6380
6887
  netCapital: Scalars["BigInt"]["output"];
6381
- /** Positive funding accrued as claimable in the period (claimed or not) */
6888
+ /** Signed PnL contribution from funding received in the period, whether claimed or not. Excluded from realizedFees; add once to PnL. */
6382
6889
  positiveFundingFeesUsd: Scalars["BigInt"]["output"];
6383
6890
  realizedFees: Scalars["BigInt"]["output"];
6384
6891
  realizedPnl: Scalars["BigInt"]["output"];
@@ -6600,6 +7107,7 @@ export interface Position {
6600
7107
  __typename?: "Position";
6601
7108
  account: Scalars["String"]["output"];
6602
7109
  accountStat: AccountStat;
7110
+ accountStatId: Scalars["String"]["output"];
6603
7111
  collateralAmount: Scalars["BigInt"]["output"];
6604
7112
  collateralToken: Scalars["String"]["output"];
6605
7113
  entryPrice: Scalars["BigInt"]["output"];
@@ -7748,6 +8256,124 @@ export interface PositionFeesInfoWithPeriodsConnection {
7748
8256
  pageInfo: PageInfo;
7749
8257
  totalCount: Scalars["Int"]["output"];
7750
8258
  }
8259
+ export interface PositionLifecycle {
8260
+ __typename?: "PositionLifecycle";
8261
+ currentLifecycleId?: Maybe<Scalars["String"]["output"]>;
8262
+ id: Scalars["String"]["output"];
8263
+ isOpen: Scalars["Boolean"]["output"];
8264
+ lastClosedLifecycleId?: Maybe<Scalars["String"]["output"]>;
8265
+ updatedAtBlock: Scalars["Int"]["output"];
8266
+ }
8267
+ export interface PositionLifecycleEdge {
8268
+ __typename?: "PositionLifecycleEdge";
8269
+ cursor: Scalars["String"]["output"];
8270
+ node: PositionLifecycle;
8271
+ }
8272
+ export declare enum PositionLifecycleOrderByInput {
8273
+ currentLifecycleId_ASC = "currentLifecycleId_ASC",
8274
+ currentLifecycleId_ASC_NULLS_FIRST = "currentLifecycleId_ASC_NULLS_FIRST",
8275
+ currentLifecycleId_ASC_NULLS_LAST = "currentLifecycleId_ASC_NULLS_LAST",
8276
+ currentLifecycleId_DESC = "currentLifecycleId_DESC",
8277
+ currentLifecycleId_DESC_NULLS_FIRST = "currentLifecycleId_DESC_NULLS_FIRST",
8278
+ currentLifecycleId_DESC_NULLS_LAST = "currentLifecycleId_DESC_NULLS_LAST",
8279
+ id_ASC = "id_ASC",
8280
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
8281
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
8282
+ id_DESC = "id_DESC",
8283
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
8284
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
8285
+ isOpen_ASC = "isOpen_ASC",
8286
+ isOpen_ASC_NULLS_FIRST = "isOpen_ASC_NULLS_FIRST",
8287
+ isOpen_ASC_NULLS_LAST = "isOpen_ASC_NULLS_LAST",
8288
+ isOpen_DESC = "isOpen_DESC",
8289
+ isOpen_DESC_NULLS_FIRST = "isOpen_DESC_NULLS_FIRST",
8290
+ isOpen_DESC_NULLS_LAST = "isOpen_DESC_NULLS_LAST",
8291
+ lastClosedLifecycleId_ASC = "lastClosedLifecycleId_ASC",
8292
+ lastClosedLifecycleId_ASC_NULLS_FIRST = "lastClosedLifecycleId_ASC_NULLS_FIRST",
8293
+ lastClosedLifecycleId_ASC_NULLS_LAST = "lastClosedLifecycleId_ASC_NULLS_LAST",
8294
+ lastClosedLifecycleId_DESC = "lastClosedLifecycleId_DESC",
8295
+ lastClosedLifecycleId_DESC_NULLS_FIRST = "lastClosedLifecycleId_DESC_NULLS_FIRST",
8296
+ lastClosedLifecycleId_DESC_NULLS_LAST = "lastClosedLifecycleId_DESC_NULLS_LAST",
8297
+ updatedAtBlock_ASC = "updatedAtBlock_ASC",
8298
+ updatedAtBlock_ASC_NULLS_FIRST = "updatedAtBlock_ASC_NULLS_FIRST",
8299
+ updatedAtBlock_ASC_NULLS_LAST = "updatedAtBlock_ASC_NULLS_LAST",
8300
+ updatedAtBlock_DESC = "updatedAtBlock_DESC",
8301
+ updatedAtBlock_DESC_NULLS_FIRST = "updatedAtBlock_DESC_NULLS_FIRST",
8302
+ updatedAtBlock_DESC_NULLS_LAST = "updatedAtBlock_DESC_NULLS_LAST"
8303
+ }
8304
+ export interface PositionLifecycleWhereInput {
8305
+ AND?: InputMaybe<Array<PositionLifecycleWhereInput>>;
8306
+ OR?: InputMaybe<Array<PositionLifecycleWhereInput>>;
8307
+ currentLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
8308
+ currentLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8309
+ currentLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8310
+ currentLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
8311
+ currentLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
8312
+ currentLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
8313
+ currentLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8314
+ currentLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8315
+ currentLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
8316
+ currentLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
8317
+ currentLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8318
+ currentLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8319
+ currentLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8320
+ currentLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8321
+ currentLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8322
+ currentLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8323
+ currentLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8324
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
8325
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8326
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8327
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
8328
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
8329
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
8330
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8331
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8332
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
8333
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
8334
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8335
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8336
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8337
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8338
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8339
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8340
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8341
+ isOpen_eq?: InputMaybe<Scalars["Boolean"]["input"]>;
8342
+ isOpen_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8343
+ isOpen_not_eq?: InputMaybe<Scalars["Boolean"]["input"]>;
8344
+ lastClosedLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
8345
+ lastClosedLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8346
+ lastClosedLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8347
+ lastClosedLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
8348
+ lastClosedLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
8349
+ lastClosedLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
8350
+ lastClosedLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8351
+ lastClosedLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8352
+ lastClosedLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
8353
+ lastClosedLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
8354
+ lastClosedLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8355
+ lastClosedLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8356
+ lastClosedLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8357
+ lastClosedLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8358
+ lastClosedLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8359
+ lastClosedLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8360
+ lastClosedLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8361
+ updatedAtBlock_eq?: InputMaybe<Scalars["Int"]["input"]>;
8362
+ updatedAtBlock_gt?: InputMaybe<Scalars["Int"]["input"]>;
8363
+ updatedAtBlock_gte?: InputMaybe<Scalars["Int"]["input"]>;
8364
+ updatedAtBlock_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8365
+ updatedAtBlock_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8366
+ updatedAtBlock_lt?: InputMaybe<Scalars["Int"]["input"]>;
8367
+ updatedAtBlock_lte?: InputMaybe<Scalars["Int"]["input"]>;
8368
+ updatedAtBlock_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
8369
+ updatedAtBlock_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
8370
+ }
8371
+ export interface PositionLifecyclesConnection {
8372
+ __typename?: "PositionLifecyclesConnection";
8373
+ edges: Array<PositionLifecycleEdge>;
8374
+ pageInfo: PageInfo;
8375
+ totalCount: Scalars["Int"]["output"];
8376
+ }
7751
8377
  export interface PositionMarketVolumeInfo {
7752
8378
  __typename?: "PositionMarketVolumeInfo";
7753
8379
  market: Scalars["String"]["output"];
@@ -7832,6 +8458,12 @@ export declare enum PositionOrderByInput {
7832
8458
  accountStat_period_DESC = "accountStat_period_DESC",
7833
8459
  accountStat_period_DESC_NULLS_FIRST = "accountStat_period_DESC_NULLS_FIRST",
7834
8460
  accountStat_period_DESC_NULLS_LAST = "accountStat_period_DESC_NULLS_LAST",
8461
+ accountStat_positiveFundingFeesUsd_ASC = "accountStat_positiveFundingFeesUsd_ASC",
8462
+ accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST = "accountStat_positiveFundingFeesUsd_ASC_NULLS_FIRST",
8463
+ accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST = "accountStat_positiveFundingFeesUsd_ASC_NULLS_LAST",
8464
+ accountStat_positiveFundingFeesUsd_DESC = "accountStat_positiveFundingFeesUsd_DESC",
8465
+ accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST = "accountStat_positiveFundingFeesUsd_DESC_NULLS_FIRST",
8466
+ accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST = "accountStat_positiveFundingFeesUsd_DESC_NULLS_LAST",
7835
8467
  accountStat_realizedFees_ASC = "accountStat_realizedFees_ASC",
7836
8468
  accountStat_realizedFees_ASC_NULLS_FIRST = "accountStat_realizedFees_ASC_NULLS_FIRST",
7837
8469
  accountStat_realizedFees_ASC_NULLS_LAST = "accountStat_realizedFees_ASC_NULLS_LAST",
@@ -8183,6 +8815,23 @@ export interface PositionWhereInput {
8183
8815
  AND?: InputMaybe<Array<PositionWhereInput>>;
8184
8816
  OR?: InputMaybe<Array<PositionWhereInput>>;
8185
8817
  accountStat?: InputMaybe<AccountStatWhereInput>;
8818
+ accountStatId_contains?: InputMaybe<Scalars["String"]["input"]>;
8819
+ accountStatId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8820
+ accountStatId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8821
+ accountStatId_eq?: InputMaybe<Scalars["String"]["input"]>;
8822
+ accountStatId_gt?: InputMaybe<Scalars["String"]["input"]>;
8823
+ accountStatId_gte?: InputMaybe<Scalars["String"]["input"]>;
8824
+ accountStatId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8825
+ accountStatId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8826
+ accountStatId_lt?: InputMaybe<Scalars["String"]["input"]>;
8827
+ accountStatId_lte?: InputMaybe<Scalars["String"]["input"]>;
8828
+ accountStatId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
8829
+ accountStatId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
8830
+ accountStatId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
8831
+ accountStatId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
8832
+ accountStatId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
8833
+ accountStatId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8834
+ accountStatId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
8186
8835
  accountStat_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
8187
8836
  account_contains?: InputMaybe<Scalars["String"]["input"]>;
8188
8837
  account_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
@@ -8736,6 +9385,13 @@ export interface Query {
8736
9385
  fundingRateSnapshots: Array<FundingRateSnapshot>;
8737
9386
  fundingRateSnapshotsConnection: FundingRateSnapshotsConnection;
8738
9387
  glvById?: Maybe<Glv>;
9388
+ glvTokenBalanceById?: Maybe<GlvTokenBalance>;
9389
+ glvTokenBalanceChangeById?: Maybe<GlvTokenBalanceChange>;
9390
+ glvTokenBalanceChanges: Array<GlvTokenBalanceChange>;
9391
+ glvTokenBalanceChangesConnection: GlvTokenBalanceChangesConnection;
9392
+ glvTokenBalances: Array<GlvTokenBalance>;
9393
+ glvTokenBalancesConnection: GlvTokenBalancesConnection;
9394
+ glvUserEarnings: Array<GlvUserEarning>;
8739
9395
  glvs: Array<Glv>;
8740
9396
  glvsAprByPeriod: Array<GlvApr>;
8741
9397
  glvsConnection: GlvsConnection;
@@ -8747,6 +9403,7 @@ export interface Query {
8747
9403
  markets: Array<Market>;
8748
9404
  marketsAprByPeriod: Array<MarketApr>;
8749
9405
  marketsConnection: MarketsConnection;
9406
+ marketsFeeUsdByPeriod: Array<MarketFeeUsdByPeriod>;
8750
9407
  marketsNetRatesByPeriod: Array<MarketNetRatesResponse>;
8751
9408
  marketsPnlAprByPeriod: Array<MarketPnlApr>;
8752
9409
  multichainFunding: Array<MultichainFundingInfo>;
@@ -8787,6 +9444,9 @@ export interface Query {
8787
9444
  positionFeesInfoWithPeriodById?: Maybe<PositionFeesInfoWithPeriod>;
8788
9445
  positionFeesInfoWithPeriods: Array<PositionFeesInfoWithPeriod>;
8789
9446
  positionFeesInfoWithPeriodsConnection: PositionFeesInfoWithPeriodsConnection;
9447
+ positionLifecycleById?: Maybe<PositionLifecycle>;
9448
+ positionLifecycles: Array<PositionLifecycle>;
9449
+ positionLifecyclesConnection: PositionLifecyclesConnection;
8790
9450
  positionTotalCollateralAmount: Array<PositionTotalCollateralAmount>;
8791
9451
  positionVolumeInfoById?: Maybe<PositionVolumeInfo>;
8792
9452
  positionVolumeInfos: Array<PositionVolumeInfo>;
@@ -8803,6 +9463,13 @@ export interface Query {
8803
9463
  referralCodeOwnerById?: Maybe<ReferralCodeOwner>;
8804
9464
  referralCodeOwners: Array<ReferralCodeOwner>;
8805
9465
  referralCodeOwnersConnection: ReferralCodeOwnersConnection;
9466
+ referralCodeUpdates: ReferralCodeUpdatesResponse;
9467
+ referralTierById?: Maybe<ReferralTier>;
9468
+ referralTiers: Array<ReferralTier>;
9469
+ referralTiersConnection: ReferralTiersConnection;
9470
+ referrerTierById?: Maybe<ReferrerTier>;
9471
+ referrerTiers: Array<ReferrerTier>;
9472
+ referrerTiersConnection: ReferrerTiersConnection;
8806
9473
  squidStatus: SquidStatus;
8807
9474
  stakingPowerById?: Maybe<StakingPower>;
8808
9475
  stakingPowers: Array<StakingPower>;
@@ -8823,6 +9490,9 @@ export interface Query {
8823
9490
  tradeActionById?: Maybe<TradeAction>;
8824
9491
  tradeActions: Array<TradeAction>;
8825
9492
  tradeActionsConnection: TradeActionsConnection;
9493
+ traderFirstReferralById?: Maybe<TraderFirstReferral>;
9494
+ traderFirstReferrals: Array<TraderFirstReferral>;
9495
+ traderFirstReferralsConnection: TraderFirstReferralsConnection;
8826
9496
  traderReferralById?: Maybe<TraderReferral>;
8827
9497
  traderReferralStats: TraderReferralStatsResponse;
8828
9498
  traderReferralTradeStatsByHourById?: Maybe<TraderReferralTradeStatsByHour>;
@@ -9107,6 +9777,39 @@ export interface QueryfundingRateSnapshotsConnectionArgs {
9107
9777
  export interface QueryglvByIdArgs {
9108
9778
  id: Scalars["String"]["input"];
9109
9779
  }
9780
+ export interface QueryglvTokenBalanceByIdArgs {
9781
+ id: Scalars["String"]["input"];
9782
+ }
9783
+ export interface QueryglvTokenBalanceChangeByIdArgs {
9784
+ id: Scalars["String"]["input"];
9785
+ }
9786
+ export interface QueryglvTokenBalanceChangesArgs {
9787
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9788
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9789
+ orderBy?: InputMaybe<Array<GlvTokenBalanceChangeOrderByInput>>;
9790
+ where?: InputMaybe<GlvTokenBalanceChangeWhereInput>;
9791
+ }
9792
+ export interface QueryglvTokenBalanceChangesConnectionArgs {
9793
+ after?: InputMaybe<Scalars["String"]["input"]>;
9794
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9795
+ orderBy: Array<GlvTokenBalanceChangeOrderByInput>;
9796
+ where?: InputMaybe<GlvTokenBalanceChangeWhereInput>;
9797
+ }
9798
+ export interface QueryglvTokenBalancesArgs {
9799
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
9800
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
9801
+ orderBy?: InputMaybe<Array<GlvTokenBalanceOrderByInput>>;
9802
+ where?: InputMaybe<GlvTokenBalanceWhereInput>;
9803
+ }
9804
+ export interface QueryglvTokenBalancesConnectionArgs {
9805
+ after?: InputMaybe<Scalars["String"]["input"]>;
9806
+ first?: InputMaybe<Scalars["Int"]["input"]>;
9807
+ orderBy: Array<GlvTokenBalanceOrderByInput>;
9808
+ where?: InputMaybe<GlvTokenBalanceWhereInput>;
9809
+ }
9810
+ export interface QueryglvUserEarningsArgs {
9811
+ account: Scalars["String"]["input"];
9812
+ }
9110
9813
  export interface QueryglvsArgs {
9111
9814
  limit?: InputMaybe<Scalars["Int"]["input"]>;
9112
9815
  offset?: InputMaybe<Scalars["Int"]["input"]>;
@@ -9158,6 +9861,9 @@ export interface QuerymarketsConnectionArgs {
9158
9861
  orderBy: Array<MarketOrderByInput>;
9159
9862
  where?: InputMaybe<MarketWhereInput>;
9160
9863
  }
9864
+ export interface QuerymarketsFeeUsdByPeriodArgs {
9865
+ where: MarketsFeeUsdWhereInput;
9866
+ }
9161
9867
  export interface QuerymarketsNetRatesByPeriodArgs {
9162
9868
  where?: InputMaybe<MarketNetRatesWhereInput>;
9163
9869
  }
@@ -9346,6 +10052,21 @@ export interface QuerypositionFeesInfoWithPeriodsConnectionArgs {
9346
10052
  orderBy: Array<PositionFeesInfoWithPeriodOrderByInput>;
9347
10053
  where?: InputMaybe<PositionFeesInfoWithPeriodWhereInput>;
9348
10054
  }
10055
+ export interface QuerypositionLifecycleByIdArgs {
10056
+ id: Scalars["String"]["input"];
10057
+ }
10058
+ export interface QuerypositionLifecyclesArgs {
10059
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10060
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10061
+ orderBy?: InputMaybe<Array<PositionLifecycleOrderByInput>>;
10062
+ where?: InputMaybe<PositionLifecycleWhereInput>;
10063
+ }
10064
+ export interface QuerypositionLifecyclesConnectionArgs {
10065
+ after?: InputMaybe<Scalars["String"]["input"]>;
10066
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10067
+ orderBy: Array<PositionLifecycleOrderByInput>;
10068
+ where?: InputMaybe<PositionLifecycleWhereInput>;
10069
+ }
9349
10070
  export interface QuerypositionTotalCollateralAmountArgs {
9350
10071
  where?: InputMaybe<PositionTotalCollateralAmountWhereInput>;
9351
10072
  }
@@ -9424,6 +10145,45 @@ export interface QueryreferralCodeOwnersConnectionArgs {
9424
10145
  orderBy: Array<ReferralCodeOwnerOrderByInput>;
9425
10146
  where?: InputMaybe<ReferralCodeOwnerWhereInput>;
9426
10147
  }
10148
+ export interface QueryreferralCodeUpdatesArgs {
10149
+ affiliateRewardsUsdMin: Scalars["String"]["input"];
10150
+ codeTiersAsc: Array<CodeTierRuleInput>;
10151
+ ignoreCodes?: InputMaybe<Array<Scalars["String"]["input"]>>;
10152
+ ignoreTiers?: InputMaybe<Array<Scalars["String"]["input"]>>;
10153
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10154
+ timeSinceTraderCodeAssigning: Scalars["Float"]["input"];
10155
+ vipTiersAsc: Array<VipTierInput>;
10156
+ }
10157
+ export interface QueryreferralTierByIdArgs {
10158
+ id: Scalars["String"]["input"];
10159
+ }
10160
+ export interface QueryreferralTiersArgs {
10161
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10162
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10163
+ orderBy?: InputMaybe<Array<ReferralTierOrderByInput>>;
10164
+ where?: InputMaybe<ReferralTierWhereInput>;
10165
+ }
10166
+ export interface QueryreferralTiersConnectionArgs {
10167
+ after?: InputMaybe<Scalars["String"]["input"]>;
10168
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10169
+ orderBy: Array<ReferralTierOrderByInput>;
10170
+ where?: InputMaybe<ReferralTierWhereInput>;
10171
+ }
10172
+ export interface QueryreferrerTierByIdArgs {
10173
+ id: Scalars["String"]["input"];
10174
+ }
10175
+ export interface QueryreferrerTiersArgs {
10176
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10177
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10178
+ orderBy?: InputMaybe<Array<ReferrerTierOrderByInput>>;
10179
+ where?: InputMaybe<ReferrerTierWhereInput>;
10180
+ }
10181
+ export interface QueryreferrerTiersConnectionArgs {
10182
+ after?: InputMaybe<Scalars["String"]["input"]>;
10183
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10184
+ orderBy: Array<ReferrerTierOrderByInput>;
10185
+ where?: InputMaybe<ReferrerTierWhereInput>;
10186
+ }
9427
10187
  export interface QuerystakingPowerByIdArgs {
9428
10188
  id: Scalars["String"]["input"];
9429
10189
  }
@@ -9514,6 +10274,21 @@ export interface QuerytradeActionsConnectionArgs {
9514
10274
  orderBy: Array<TradeActionOrderByInput>;
9515
10275
  where?: InputMaybe<TradeActionWhereInput>;
9516
10276
  }
10277
+ export interface QuerytraderFirstReferralByIdArgs {
10278
+ id: Scalars["String"]["input"];
10279
+ }
10280
+ export interface QuerytraderFirstReferralsArgs {
10281
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
10282
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
10283
+ orderBy?: InputMaybe<Array<TraderFirstReferralOrderByInput>>;
10284
+ where?: InputMaybe<TraderFirstReferralWhereInput>;
10285
+ }
10286
+ export interface QuerytraderFirstReferralsConnectionArgs {
10287
+ after?: InputMaybe<Scalars["String"]["input"]>;
10288
+ first?: InputMaybe<Scalars["Int"]["input"]>;
10289
+ orderBy: Array<TraderFirstReferralOrderByInput>;
10290
+ where?: InputMaybe<TraderFirstReferralWhereInput>;
10291
+ }
9517
10292
  export interface QuerytraderReferralByIdArgs {
9518
10293
  id: Scalars["String"]["input"];
9519
10294
  }
@@ -9686,6 +10461,154 @@ export interface ReferralCodeOwnersConnection {
9686
10461
  pageInfo: PageInfo;
9687
10462
  totalCount: Scalars["Int"]["output"];
9688
10463
  }
10464
+ export interface ReferralCodeUpdatesResponse {
10465
+ __typename?: "ReferralCodeUpdatesResponse";
10466
+ updates: Array<CodeUpdateGroup>;
10467
+ }
10468
+ export interface ReferralTier {
10469
+ __typename?: "ReferralTier";
10470
+ discountShare: Scalars["BigInt"]["output"];
10471
+ id: Scalars["String"]["output"];
10472
+ totalRebate: Scalars["BigInt"]["output"];
10473
+ }
10474
+ export interface ReferralTierEdge {
10475
+ __typename?: "ReferralTierEdge";
10476
+ cursor: Scalars["String"]["output"];
10477
+ node: ReferralTier;
10478
+ }
10479
+ export declare enum ReferralTierOrderByInput {
10480
+ discountShare_ASC = "discountShare_ASC",
10481
+ discountShare_ASC_NULLS_FIRST = "discountShare_ASC_NULLS_FIRST",
10482
+ discountShare_ASC_NULLS_LAST = "discountShare_ASC_NULLS_LAST",
10483
+ discountShare_DESC = "discountShare_DESC",
10484
+ discountShare_DESC_NULLS_FIRST = "discountShare_DESC_NULLS_FIRST",
10485
+ discountShare_DESC_NULLS_LAST = "discountShare_DESC_NULLS_LAST",
10486
+ id_ASC = "id_ASC",
10487
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
10488
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
10489
+ id_DESC = "id_DESC",
10490
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
10491
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
10492
+ totalRebate_ASC = "totalRebate_ASC",
10493
+ totalRebate_ASC_NULLS_FIRST = "totalRebate_ASC_NULLS_FIRST",
10494
+ totalRebate_ASC_NULLS_LAST = "totalRebate_ASC_NULLS_LAST",
10495
+ totalRebate_DESC = "totalRebate_DESC",
10496
+ totalRebate_DESC_NULLS_FIRST = "totalRebate_DESC_NULLS_FIRST",
10497
+ totalRebate_DESC_NULLS_LAST = "totalRebate_DESC_NULLS_LAST"
10498
+ }
10499
+ export interface ReferralTierWhereInput {
10500
+ AND?: InputMaybe<Array<ReferralTierWhereInput>>;
10501
+ OR?: InputMaybe<Array<ReferralTierWhereInput>>;
10502
+ discountShare_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10503
+ discountShare_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10504
+ discountShare_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
10505
+ discountShare_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10506
+ discountShare_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10507
+ discountShare_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
10508
+ discountShare_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
10509
+ discountShare_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10510
+ discountShare_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10511
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
10512
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10513
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10514
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
10515
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
10516
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
10517
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10518
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10519
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
10520
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
10521
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10522
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10523
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10524
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10525
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10526
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10527
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10528
+ totalRebate_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10529
+ totalRebate_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
10530
+ totalRebate_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
10531
+ totalRebate_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10532
+ totalRebate_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10533
+ totalRebate_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
10534
+ totalRebate_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
10535
+ totalRebate_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
10536
+ totalRebate_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
10537
+ }
10538
+ export interface ReferralTiersConnection {
10539
+ __typename?: "ReferralTiersConnection";
10540
+ edges: Array<ReferralTierEdge>;
10541
+ pageInfo: PageInfo;
10542
+ totalCount: Scalars["Int"]["output"];
10543
+ }
10544
+ export interface ReferrerTier {
10545
+ __typename?: "ReferrerTier";
10546
+ id: Scalars["String"]["output"];
10547
+ tierId: Scalars["String"]["output"];
10548
+ }
10549
+ export interface ReferrerTierEdge {
10550
+ __typename?: "ReferrerTierEdge";
10551
+ cursor: Scalars["String"]["output"];
10552
+ node: ReferrerTier;
10553
+ }
10554
+ export declare enum ReferrerTierOrderByInput {
10555
+ id_ASC = "id_ASC",
10556
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
10557
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
10558
+ id_DESC = "id_DESC",
10559
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
10560
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
10561
+ tierId_ASC = "tierId_ASC",
10562
+ tierId_ASC_NULLS_FIRST = "tierId_ASC_NULLS_FIRST",
10563
+ tierId_ASC_NULLS_LAST = "tierId_ASC_NULLS_LAST",
10564
+ tierId_DESC = "tierId_DESC",
10565
+ tierId_DESC_NULLS_FIRST = "tierId_DESC_NULLS_FIRST",
10566
+ tierId_DESC_NULLS_LAST = "tierId_DESC_NULLS_LAST"
10567
+ }
10568
+ export interface ReferrerTierWhereInput {
10569
+ AND?: InputMaybe<Array<ReferrerTierWhereInput>>;
10570
+ OR?: InputMaybe<Array<ReferrerTierWhereInput>>;
10571
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
10572
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10573
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10574
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
10575
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
10576
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
10577
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10578
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10579
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
10580
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
10581
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10582
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10583
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10584
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10585
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10586
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10587
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10588
+ tierId_contains?: InputMaybe<Scalars["String"]["input"]>;
10589
+ tierId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10590
+ tierId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10591
+ tierId_eq?: InputMaybe<Scalars["String"]["input"]>;
10592
+ tierId_gt?: InputMaybe<Scalars["String"]["input"]>;
10593
+ tierId_gte?: InputMaybe<Scalars["String"]["input"]>;
10594
+ tierId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10595
+ tierId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
10596
+ tierId_lt?: InputMaybe<Scalars["String"]["input"]>;
10597
+ tierId_lte?: InputMaybe<Scalars["String"]["input"]>;
10598
+ tierId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
10599
+ tierId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
10600
+ tierId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
10601
+ tierId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
10602
+ tierId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
10603
+ tierId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10604
+ tierId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
10605
+ }
10606
+ export interface ReferrerTiersConnection {
10607
+ __typename?: "ReferrerTiersConnection";
10608
+ edges: Array<ReferrerTierEdge>;
10609
+ pageInfo: PageInfo;
10610
+ totalCount: Scalars["Int"]["output"];
10611
+ }
9689
10612
  export interface SquidStatus {
9690
10613
  __typename?: "SquidStatus";
9691
10614
  finalizedHeight: Scalars["Int"]["output"];
@@ -10596,9 +11519,9 @@ export interface TradeAction {
10596
11519
  orderKey: Scalars["String"]["output"];
10597
11520
  orderType: Scalars["Int"]["output"];
10598
11521
  pnlUsd?: Maybe<Scalars["BigInt"]["output"]>;
11522
+ positionFeeAmount?: Maybe<Scalars["BigInt"]["output"]>;
10599
11523
  positionKey?: Maybe<Scalars["String"]["output"]>;
10600
11524
  positionLifecycleId?: Maybe<Scalars["String"]["output"]>;
10601
- positionFeeAmount?: Maybe<Scalars["BigInt"]["output"]>;
10602
11525
  positionSizeInTokens?: Maybe<Scalars["BigInt"]["output"]>;
10603
11526
  positionSizeInUsd?: Maybe<Scalars["BigInt"]["output"]>;
10604
11527
  priceImpactAmount?: Maybe<Scalars["BigInt"]["output"]>;
@@ -10620,6 +11543,7 @@ export interface TradeAction {
10620
11543
  transactionHash: Scalars["String"]["output"];
10621
11544
  triggerPrice?: Maybe<Scalars["BigInt"]["output"]>;
10622
11545
  twapGroupId?: Maybe<Scalars["String"]["output"]>;
11546
+ uiFeeFactor?: Maybe<Scalars["BigInt"]["output"]>;
10623
11547
  uiFeeReceiver: Scalars["String"]["output"];
10624
11548
  }
10625
11549
  export interface TradeActionEdge {
@@ -10802,6 +11726,12 @@ export declare enum TradeActionOrderByInput {
10802
11726
  positionKey_DESC = "positionKey_DESC",
10803
11727
  positionKey_DESC_NULLS_FIRST = "positionKey_DESC_NULLS_FIRST",
10804
11728
  positionKey_DESC_NULLS_LAST = "positionKey_DESC_NULLS_LAST",
11729
+ positionLifecycleId_ASC = "positionLifecycleId_ASC",
11730
+ positionLifecycleId_ASC_NULLS_FIRST = "positionLifecycleId_ASC_NULLS_FIRST",
11731
+ positionLifecycleId_ASC_NULLS_LAST = "positionLifecycleId_ASC_NULLS_LAST",
11732
+ positionLifecycleId_DESC = "positionLifecycleId_DESC",
11733
+ positionLifecycleId_DESC_NULLS_FIRST = "positionLifecycleId_DESC_NULLS_FIRST",
11734
+ positionLifecycleId_DESC_NULLS_LAST = "positionLifecycleId_DESC_NULLS_LAST",
10805
11735
  positionSizeInTokens_ASC = "positionSizeInTokens_ASC",
10806
11736
  positionSizeInTokens_ASC_NULLS_FIRST = "positionSizeInTokens_ASC_NULLS_FIRST",
10807
11737
  positionSizeInTokens_ASC_NULLS_LAST = "positionSizeInTokens_ASC_NULLS_LAST",
@@ -10922,6 +11852,12 @@ export declare enum TradeActionOrderByInput {
10922
11852
  twapGroupId_DESC = "twapGroupId_DESC",
10923
11853
  twapGroupId_DESC_NULLS_FIRST = "twapGroupId_DESC_NULLS_FIRST",
10924
11854
  twapGroupId_DESC_NULLS_LAST = "twapGroupId_DESC_NULLS_LAST",
11855
+ uiFeeFactor_ASC = "uiFeeFactor_ASC",
11856
+ uiFeeFactor_ASC_NULLS_FIRST = "uiFeeFactor_ASC_NULLS_FIRST",
11857
+ uiFeeFactor_ASC_NULLS_LAST = "uiFeeFactor_ASC_NULLS_LAST",
11858
+ uiFeeFactor_DESC = "uiFeeFactor_DESC",
11859
+ uiFeeFactor_DESC_NULLS_FIRST = "uiFeeFactor_DESC_NULLS_FIRST",
11860
+ uiFeeFactor_DESC_NULLS_LAST = "uiFeeFactor_DESC_NULLS_LAST",
10925
11861
  uiFeeReceiver_ASC = "uiFeeReceiver_ASC",
10926
11862
  uiFeeReceiver_ASC_NULLS_FIRST = "uiFeeReceiver_ASC_NULLS_FIRST",
10927
11863
  uiFeeReceiver_ASC_NULLS_LAST = "uiFeeReceiver_ASC_NULLS_LAST",
@@ -11243,6 +12179,23 @@ export interface TradeActionWhereInput {
11243
12179
  positionKey_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11244
12180
  positionKey_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11245
12181
  positionKey_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12182
+ positionLifecycleId_contains?: InputMaybe<Scalars["String"]["input"]>;
12183
+ positionLifecycleId_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12184
+ positionLifecycleId_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12185
+ positionLifecycleId_eq?: InputMaybe<Scalars["String"]["input"]>;
12186
+ positionLifecycleId_gt?: InputMaybe<Scalars["String"]["input"]>;
12187
+ positionLifecycleId_gte?: InputMaybe<Scalars["String"]["input"]>;
12188
+ positionLifecycleId_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12189
+ positionLifecycleId_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12190
+ positionLifecycleId_lt?: InputMaybe<Scalars["String"]["input"]>;
12191
+ positionLifecycleId_lte?: InputMaybe<Scalars["String"]["input"]>;
12192
+ positionLifecycleId_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12193
+ positionLifecycleId_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12194
+ positionLifecycleId_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12195
+ positionLifecycleId_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12196
+ positionLifecycleId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12197
+ positionLifecycleId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12198
+ positionLifecycleId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11246
12199
  positionSizeInTokens_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11247
12200
  positionSizeInTokens_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
11248
12201
  positionSizeInTokens_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -11453,6 +12406,15 @@ export interface TradeActionWhereInput {
11453
12406
  twapGroupId_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
11454
12407
  twapGroupId_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
11455
12408
  twapGroupId_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12409
+ uiFeeFactor_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12410
+ uiFeeFactor_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12411
+ uiFeeFactor_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12412
+ uiFeeFactor_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12413
+ uiFeeFactor_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12414
+ uiFeeFactor_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12415
+ uiFeeFactor_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12416
+ uiFeeFactor_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12417
+ uiFeeFactor_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11456
12418
  uiFeeReceiver_contains?: InputMaybe<Scalars["String"]["input"]>;
11457
12419
  uiFeeReceiver_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
11458
12420
  uiFeeReceiver_endsWith?: InputMaybe<Scalars["String"]["input"]>;
@@ -11477,6 +12439,114 @@ export interface TradeActionsConnection {
11477
12439
  pageInfo: PageInfo;
11478
12440
  totalCount: Scalars["Int"]["output"];
11479
12441
  }
12442
+ export interface TraderFirstReferral {
12443
+ __typename?: "TraderFirstReferral";
12444
+ id: Scalars["String"]["output"];
12445
+ referralCode: Scalars["String"]["output"];
12446
+ timestamp: Scalars["Int"]["output"];
12447
+ trader: Scalars["String"]["output"];
12448
+ }
12449
+ export interface TraderFirstReferralEdge {
12450
+ __typename?: "TraderFirstReferralEdge";
12451
+ cursor: Scalars["String"]["output"];
12452
+ node: TraderFirstReferral;
12453
+ }
12454
+ export declare enum TraderFirstReferralOrderByInput {
12455
+ id_ASC = "id_ASC",
12456
+ id_ASC_NULLS_FIRST = "id_ASC_NULLS_FIRST",
12457
+ id_ASC_NULLS_LAST = "id_ASC_NULLS_LAST",
12458
+ id_DESC = "id_DESC",
12459
+ id_DESC_NULLS_FIRST = "id_DESC_NULLS_FIRST",
12460
+ id_DESC_NULLS_LAST = "id_DESC_NULLS_LAST",
12461
+ referralCode_ASC = "referralCode_ASC",
12462
+ referralCode_ASC_NULLS_FIRST = "referralCode_ASC_NULLS_FIRST",
12463
+ referralCode_ASC_NULLS_LAST = "referralCode_ASC_NULLS_LAST",
12464
+ referralCode_DESC = "referralCode_DESC",
12465
+ referralCode_DESC_NULLS_FIRST = "referralCode_DESC_NULLS_FIRST",
12466
+ referralCode_DESC_NULLS_LAST = "referralCode_DESC_NULLS_LAST",
12467
+ timestamp_ASC = "timestamp_ASC",
12468
+ timestamp_ASC_NULLS_FIRST = "timestamp_ASC_NULLS_FIRST",
12469
+ timestamp_ASC_NULLS_LAST = "timestamp_ASC_NULLS_LAST",
12470
+ timestamp_DESC = "timestamp_DESC",
12471
+ timestamp_DESC_NULLS_FIRST = "timestamp_DESC_NULLS_FIRST",
12472
+ timestamp_DESC_NULLS_LAST = "timestamp_DESC_NULLS_LAST",
12473
+ trader_ASC = "trader_ASC",
12474
+ trader_ASC_NULLS_FIRST = "trader_ASC_NULLS_FIRST",
12475
+ trader_ASC_NULLS_LAST = "trader_ASC_NULLS_LAST",
12476
+ trader_DESC = "trader_DESC",
12477
+ trader_DESC_NULLS_FIRST = "trader_DESC_NULLS_FIRST",
12478
+ trader_DESC_NULLS_LAST = "trader_DESC_NULLS_LAST"
12479
+ }
12480
+ export interface TraderFirstReferralWhereInput {
12481
+ AND?: InputMaybe<Array<TraderFirstReferralWhereInput>>;
12482
+ OR?: InputMaybe<Array<TraderFirstReferralWhereInput>>;
12483
+ id_contains?: InputMaybe<Scalars["String"]["input"]>;
12484
+ id_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12485
+ id_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12486
+ id_eq?: InputMaybe<Scalars["String"]["input"]>;
12487
+ id_gt?: InputMaybe<Scalars["String"]["input"]>;
12488
+ id_gte?: InputMaybe<Scalars["String"]["input"]>;
12489
+ id_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12490
+ id_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12491
+ id_lt?: InputMaybe<Scalars["String"]["input"]>;
12492
+ id_lte?: InputMaybe<Scalars["String"]["input"]>;
12493
+ id_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12494
+ id_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12495
+ id_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12496
+ id_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12497
+ id_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12498
+ id_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12499
+ id_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12500
+ referralCode_contains?: InputMaybe<Scalars["String"]["input"]>;
12501
+ referralCode_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12502
+ referralCode_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12503
+ referralCode_eq?: InputMaybe<Scalars["String"]["input"]>;
12504
+ referralCode_gt?: InputMaybe<Scalars["String"]["input"]>;
12505
+ referralCode_gte?: InputMaybe<Scalars["String"]["input"]>;
12506
+ referralCode_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12507
+ referralCode_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12508
+ referralCode_lt?: InputMaybe<Scalars["String"]["input"]>;
12509
+ referralCode_lte?: InputMaybe<Scalars["String"]["input"]>;
12510
+ referralCode_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12511
+ referralCode_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12512
+ referralCode_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12513
+ referralCode_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12514
+ referralCode_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12515
+ referralCode_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12516
+ referralCode_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12517
+ timestamp_eq?: InputMaybe<Scalars["Int"]["input"]>;
12518
+ timestamp_gt?: InputMaybe<Scalars["Int"]["input"]>;
12519
+ timestamp_gte?: InputMaybe<Scalars["Int"]["input"]>;
12520
+ timestamp_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
12521
+ timestamp_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12522
+ timestamp_lt?: InputMaybe<Scalars["Int"]["input"]>;
12523
+ timestamp_lte?: InputMaybe<Scalars["Int"]["input"]>;
12524
+ timestamp_not_eq?: InputMaybe<Scalars["Int"]["input"]>;
12525
+ timestamp_not_in?: InputMaybe<Array<Scalars["Int"]["input"]>>;
12526
+ trader_contains?: InputMaybe<Scalars["String"]["input"]>;
12527
+ trader_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12528
+ trader_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12529
+ trader_eq?: InputMaybe<Scalars["String"]["input"]>;
12530
+ trader_gt?: InputMaybe<Scalars["String"]["input"]>;
12531
+ trader_gte?: InputMaybe<Scalars["String"]["input"]>;
12532
+ trader_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12533
+ trader_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12534
+ trader_lt?: InputMaybe<Scalars["String"]["input"]>;
12535
+ trader_lte?: InputMaybe<Scalars["String"]["input"]>;
12536
+ trader_not_contains?: InputMaybe<Scalars["String"]["input"]>;
12537
+ trader_not_containsInsensitive?: InputMaybe<Scalars["String"]["input"]>;
12538
+ trader_not_endsWith?: InputMaybe<Scalars["String"]["input"]>;
12539
+ trader_not_eq?: InputMaybe<Scalars["String"]["input"]>;
12540
+ trader_not_in?: InputMaybe<Array<Scalars["String"]["input"]>>;
12541
+ trader_not_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12542
+ trader_startsWith?: InputMaybe<Scalars["String"]["input"]>;
12543
+ }
12544
+ export interface TraderFirstReferralsConnection {
12545
+ __typename?: "TraderFirstReferralsConnection";
12546
+ edges: Array<TraderFirstReferralEdge>;
12547
+ pageInfo: PageInfo;
12548
+ totalCount: Scalars["Int"]["output"];
12549
+ }
11480
12550
  export interface TraderReferral {
11481
12551
  __typename?: "TraderReferral";
11482
12552
  affiliate?: Maybe<Scalars["String"]["output"]>;
@@ -11561,6 +12631,7 @@ export interface TraderReferralStatsWhereInput {
11561
12631
  }
11562
12632
  export interface TraderReferralTradeStatsByHour {
11563
12633
  __typename?: "TraderReferralTradeStatsByHour";
12634
+ affiliateRewardsUsd: Scalars["BigInt"]["output"];
11564
12635
  discountsUsd: Scalars["BigInt"]["output"];
11565
12636
  id: Scalars["String"]["output"];
11566
12637
  timestamp: Scalars["Int"]["output"];
@@ -11573,6 +12644,12 @@ export interface TraderReferralTradeStatsByHourEdge {
11573
12644
  node: TraderReferralTradeStatsByHour;
11574
12645
  }
11575
12646
  export declare enum TraderReferralTradeStatsByHourOrderByInput {
12647
+ affiliateRewardsUsd_ASC = "affiliateRewardsUsd_ASC",
12648
+ affiliateRewardsUsd_ASC_NULLS_FIRST = "affiliateRewardsUsd_ASC_NULLS_FIRST",
12649
+ affiliateRewardsUsd_ASC_NULLS_LAST = "affiliateRewardsUsd_ASC_NULLS_LAST",
12650
+ affiliateRewardsUsd_DESC = "affiliateRewardsUsd_DESC",
12651
+ affiliateRewardsUsd_DESC_NULLS_FIRST = "affiliateRewardsUsd_DESC_NULLS_FIRST",
12652
+ affiliateRewardsUsd_DESC_NULLS_LAST = "affiliateRewardsUsd_DESC_NULLS_LAST",
11576
12653
  discountsUsd_ASC = "discountsUsd_ASC",
11577
12654
  discountsUsd_ASC_NULLS_FIRST = "discountsUsd_ASC_NULLS_FIRST",
11578
12655
  discountsUsd_ASC_NULLS_LAST = "discountsUsd_ASC_NULLS_LAST",
@@ -11607,6 +12684,15 @@ export declare enum TraderReferralTradeStatsByHourOrderByInput {
11607
12684
  export interface TraderReferralTradeStatsByHourWhereInput {
11608
12685
  AND?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
11609
12686
  OR?: InputMaybe<Array<TraderReferralTradeStatsByHourWhereInput>>;
12687
+ affiliateRewardsUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12688
+ affiliateRewardsUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
12689
+ affiliateRewardsUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
12690
+ affiliateRewardsUsd_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
12691
+ affiliateRewardsUsd_isNull?: InputMaybe<Scalars["Boolean"]["input"]>;
12692
+ affiliateRewardsUsd_lt?: InputMaybe<Scalars["BigInt"]["input"]>;
12693
+ affiliateRewardsUsd_lte?: InputMaybe<Scalars["BigInt"]["input"]>;
12694
+ affiliateRewardsUsd_not_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
12695
+ affiliateRewardsUsd_not_in?: InputMaybe<Array<Scalars["BigInt"]["input"]>>;
11610
12696
  discountsUsd_eq?: InputMaybe<Scalars["BigInt"]["input"]>;
11611
12697
  discountsUsd_gt?: InputMaybe<Scalars["BigInt"]["input"]>;
11612
12698
  discountsUsd_gte?: InputMaybe<Scalars["BigInt"]["input"]>;
@@ -11771,6 +12857,10 @@ export interface TraderReferralsConnection {
11771
12857
  pageInfo: PageInfo;
11772
12858
  totalCount: Scalars["Int"]["output"];
11773
12859
  }
12860
+ export interface VipTierInput {
12861
+ shouldFallbackToCode: Scalars["String"]["input"];
12862
+ withVolumeMoreThan: Scalars["String"]["input"];
12863
+ }
11774
12864
  export interface VolumeInfo {
11775
12865
  __typename?: "VolumeInfo";
11776
12866
  depositVolumeUsd: Scalars["BigInt"]["output"];