@aave/graphql 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/testing.d.ts CHANGED
@@ -331,10 +331,14 @@ type introspection_types = {
331
331
  'PrepareTokenSwapRequest': { kind: 'INPUT_OBJECT'; name: 'PrepareTokenSwapRequest'; isOneOf: false; inputFields: [{ name: 'quoteId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'SwapQuoteId'; ofType: null; }; }; defaultValue: null }, { name: 'permitSig'; type: { kind: 'INPUT_OBJECT'; name: 'ERC20PermitSignature'; ofType: null; }; defaultValue: null }]; };
332
332
  'PrepareTokenSwapResult': { kind: 'UNION'; name: 'PrepareTokenSwapResult'; fields: {}; possibleTypes: 'InsufficientBalanceError' | 'PrepareSwapOrder'; };
333
333
  'PreviewAction': { kind: 'INPUT_OBJECT'; name: 'PreviewAction'; isOneOf: true; inputFields: [{ name: 'supply'; type: { kind: 'INPUT_OBJECT'; name: 'SupplyRequest'; ofType: null; }; defaultValue: null }, { name: 'borrow'; type: { kind: 'INPUT_OBJECT'; name: 'BorrowRequest'; ofType: null; }; defaultValue: null }, { name: 'repay'; type: { kind: 'INPUT_OBJECT'; name: 'RepayRequest'; ofType: null; }; defaultValue: null }, { name: 'withdraw'; type: { kind: 'INPUT_OBJECT'; name: 'WithdrawRequest'; ofType: null; }; defaultValue: null }, { name: 'setUserSuppliesAsCollateral'; type: { kind: 'INPUT_OBJECT'; name: 'SetUserSuppliesAsCollateralRequest'; ofType: null; }; defaultValue: null }, { name: 'updateUserPositionConditions'; type: { kind: 'INPUT_OBJECT'; name: 'UpdateUserPositionConditionsRequest'; ofType: null; }; defaultValue: null }, { name: 'supplySwap'; type: { kind: 'INPUT_OBJECT'; name: 'SupplySwapQuoteRequest'; ofType: null; }; defaultValue: null }, { name: 'borrowSwap'; type: { kind: 'INPUT_OBJECT'; name: 'BorrowSwapQuoteRequest'; ofType: null; }; defaultValue: null }, { name: 'repayWithSupply'; type: { kind: 'INPUT_OBJECT'; name: 'RepayWithSupplyQuoteRequest'; ofType: null; }; defaultValue: null }, { name: 'withdrawSwap'; type: { kind: 'INPUT_OBJECT'; name: 'WithdrawSwapQuoteRequest'; ofType: null; }; defaultValue: null }]; };
334
+ 'PreviewBorrowPointsReward': { kind: 'OBJECT'; name: 'PreviewBorrowPointsReward'; fields: { 'criteria': { name: 'criteria'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PointsCriteria'; ofType: null; }; }; } }; 'endDate': { name: 'endDate'; type: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'RewardId'; ofType: null; }; } }; 'multiplier': { name: 'multiplier'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Float'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'program': { name: 'program'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PointsProgram'; ofType: null; }; } }; 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'startDate': { name: 'startDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; };
335
+ 'PreviewMerklBorrowReward': { kind: 'OBJECT'; name: 'PreviewMerklBorrowReward'; fields: { 'criteria': { name: 'criteria'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'MerklCriteria'; ofType: null; }; }; }; } }; 'discountApy': { name: 'discountApy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'endDate': { name: 'endDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'RewardId'; ofType: null; }; } }; 'payoutToken': { name: 'payoutToken'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Token'; ofType: null; }; } }; 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'startDate': { name: 'startDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; };
336
+ 'PreviewMerklSupplyReward': { kind: 'OBJECT'; name: 'PreviewMerklSupplyReward'; fields: { 'criteria': { name: 'criteria'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'MerklCriteria'; ofType: null; }; }; }; } }; 'endDate': { name: 'endDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'extraApy': { name: 'extraApy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'RewardId'; ofType: null; }; } }; 'payoutToken': { name: 'payoutToken'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Token'; ofType: null; }; } }; 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'startDate': { name: 'startDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; };
334
337
  'PreviewRequest': { kind: 'INPUT_OBJECT'; name: 'PreviewRequest'; isOneOf: false; inputFields: [{ name: 'action'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'PreviewAction'; ofType: null; }; }; defaultValue: null }]; };
335
338
  'PreviewReserveRates': { kind: 'OBJECT'; name: 'PreviewReserveRates'; fields: { 'borrowApy': { name: 'borrowApy'; type: { kind: 'OBJECT'; name: 'PercentNumberVariation'; ofType: null; } }; 'supplyApy': { name: 'supplyApy'; type: { kind: 'OBJECT'; name: 'PercentNumberVariation'; ofType: null; } }; }; };
336
- 'PreviewRewardChange': { kind: 'OBJECT'; name: 'PreviewRewardChange'; fields: { 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'reward': { name: 'reward'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'Reward'; ofType: null; }; } }; }; };
337
- 'PreviewRewardOutcome': { kind: 'OBJECT'; name: 'PreviewRewardOutcome'; fields: { 'gained': { name: 'gained'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PreviewRewardChange'; ofType: null; }; }; }; } }; 'lost': { name: 'lost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PreviewRewardChange'; ofType: null; }; }; }; } }; }; };
339
+ 'PreviewReward': { kind: 'UNION'; name: 'PreviewReward'; fields: {}; possibleTypes: 'PreviewBorrowPointsReward' | 'PreviewMerklBorrowReward' | 'PreviewMerklSupplyReward' | 'PreviewSupplyPointsReward'; };
340
+ 'PreviewRewardOutcome': { kind: 'OBJECT'; name: 'PreviewRewardOutcome'; fields: { 'abandoned': { name: 'abandoned'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveReward'; ofType: null; }; }; }; } }; 'acquired': { name: 'acquired'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveReward'; ofType: null; }; }; }; } }; 'gained': { name: 'gained'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PreviewReward'; ofType: null; }; }; }; } }; 'lost': { name: 'lost'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PreviewReward'; ofType: null; }; }; }; } }; }; };
341
+ 'PreviewSupplyPointsReward': { kind: 'OBJECT'; name: 'PreviewSupplyPointsReward'; fields: { 'criteria': { name: 'criteria'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'PointsCriteria'; ofType: null; }; }; } }; 'endDate': { name: 'endDate'; type: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'RewardId'; ofType: null; }; } }; 'multiplier': { name: 'multiplier'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Float'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'program': { name: 'program'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PointsProgram'; ofType: null; }; } }; 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'startDate': { name: 'startDate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; };
338
342
  'PreviewUserPosition': { kind: 'OBJECT'; name: 'PreviewUserPosition'; fields: { 'healthFactor': { name: 'healthFactor'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'HealthFactorResult'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'UserPositionId'; ofType: null; }; } }; 'maxBorrowingPower': { name: 'maxBorrowingPower'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmountVariation'; ofType: null; }; } }; 'netApy': { name: 'netApy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumberVariation'; ofType: null; }; } }; 'netBalance': { name: 'netBalance'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmountVariation'; ofType: null; }; } }; 'netCollateral': { name: 'netCollateral'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmountVariation'; ofType: null; }; } }; 'otherConditions': { name: 'otherConditions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UserPositionConditionVariation'; ofType: null; }; }; }; } }; 'projectedEarnings': { name: 'projectedEarnings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmountVariation'; ofType: null; }; } }; 'remainingBorrowingPower': { name: 'remainingBorrowingPower'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmountVariation'; ofType: null; }; } }; 'reserveRates': { name: 'reserveRates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PreviewReserveRates'; ofType: null; }; } }; 'rewards': { name: 'rewards'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PreviewRewardOutcome'; ofType: null; }; } }; 'riskPremium': { name: 'riskPremium'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumberVariation'; ofType: null; }; } }; }; };
339
343
  'ProtocolHistoryRequest': { kind: 'INPUT_OBJECT'; name: 'ProtocolHistoryRequest'; isOneOf: false; inputFields: [{ name: 'currency'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Currency'; ofType: null; }; }; defaultValue: "USD" }, { name: 'window'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'TimeWindow'; ofType: null; }; }; defaultValue: "LAST_DAY" }]; };
340
344
  'ProtocolHistorySample': { kind: 'OBJECT'; name: 'ProtocolHistorySample'; fields: { 'borrows': { name: 'borrows'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmount'; ofType: null; }; } }; 'date': { name: 'date'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'deposits': { name: 'deposits'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ExchangeAmount'; ofType: null; }; } }; }; };
@@ -364,6 +368,7 @@ type introspection_types = {
364
368
  'ReserveInput': { kind: 'INPUT_OBJECT'; name: 'ReserveInput'; isOneOf: false; inputFields: [{ name: 'chainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ChainId'; ofType: null; }; }; defaultValue: null }, { name: 'spoke'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; }; defaultValue: null }, { name: 'onChainId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'OnChainReserveId'; ofType: null; }; }; defaultValue: null }]; };
365
369
  'ReserveRequest': { kind: 'INPUT_OBJECT'; name: 'ReserveRequest'; isOneOf: false; inputFields: [{ name: 'query'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ReserveRequestQuery'; ofType: null; }; }; defaultValue: null }, { name: 'user'; type: { kind: 'SCALAR'; name: 'EvmAddress'; ofType: null; }; defaultValue: null }]; };
366
370
  'ReserveRequestQuery': { kind: 'INPUT_OBJECT'; name: 'ReserveRequestQuery'; isOneOf: true; inputFields: [{ name: 'reserveId'; type: { kind: 'SCALAR'; name: 'ReserveId'; ofType: null; }; defaultValue: null }, { name: 'reserveInput'; type: { kind: 'INPUT_OBJECT'; name: 'ReserveInput'; ofType: null; }; defaultValue: null }]; };
371
+ 'ReserveReward': { kind: 'OBJECT'; name: 'ReserveReward'; fields: { 'reserve': { name: 'reserve'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReserveInfo'; ofType: null; }; } }; 'reward': { name: 'reward'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'Reward'; ofType: null; }; } }; }; };
367
372
  'ReserveSettings': { kind: 'OBJECT'; name: 'ReserveSettings'; fields: { 'borrowCap': { name: 'borrowCap'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; 'borrowable': { name: 'borrowable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'collateral': { name: 'collateral'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'collateralFactor': { name: 'collateralFactor'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'collateralRisk': { name: 'collateralRisk'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'latestDynamicConfigKey': { name: 'latestDynamicConfigKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DynamicConfigKey'; ofType: null; }; } }; 'liquidationFee': { name: 'liquidationFee'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'maxLiquidationBonus': { name: 'maxLiquidationBonus'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'receiveSharesEnabled': { name: 'receiveSharesEnabled'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'suppliable': { name: 'suppliable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'supplyCap': { name: 'supplyCap'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; }; };
368
373
  'ReserveStatus': { kind: 'OBJECT'; name: 'ReserveStatus'; fields: { 'active': { name: 'active'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'frozen': { name: 'frozen'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'paused': { name: 'paused'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; }; };
369
374
  'ReserveSummary': { kind: 'OBJECT'; name: 'ReserveSummary'; fields: { 'borrowApy': { name: 'borrowApy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; 'borrowable': { name: 'borrowable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; 'borrowed': { name: 'borrowed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; 'rewards': { name: 'rewards'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'Reward'; ofType: null; }; }; }; } }; 'suppliable': { name: 'suppliable'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; 'supplied': { name: 'supplied'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Erc20Amount'; ofType: null; }; } }; 'supplyApy': { name: 'supplyApy'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PercentNumber'; ofType: null; }; } }; }; };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aave/graphql",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "GraphQL bindings for the Aave API",
5
5
  "repository": {
6
6
  "directory": "packages/graphql",