@aave/graphql 1.0.0-next.3 → 1.0.0-next.5
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/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +546 -4
- package/dist/index.d.ts +546 -4
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/schema.js.map +1 -1
- package/dist/test-utils.cjs +26 -1
- package/dist/test-utils.cjs.map +1 -1
- package/dist/test-utils.js +26 -1
- package/dist/test-utils.js.map +1 -1
- package/package.json +2 -2
package/dist/test-utils.cjs
CHANGED
|
@@ -195,6 +195,7 @@ type Chain {
|
|
|
195
195
|
nativeInfo: TokenInfo!
|
|
196
196
|
nativeGateway: EvmAddress!
|
|
197
197
|
signatureGateway: EvmAddress!
|
|
198
|
+
rpcUrl: String!
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
"""A supported blockchain chain ID"""
|
|
@@ -517,6 +518,11 @@ input HubAssetsRequestQuery @oneOf {
|
|
|
517
518
|
|
|
518
519
|
scalar HubId
|
|
519
520
|
|
|
521
|
+
input HubIdTokenInput {
|
|
522
|
+
hubId: HubId!
|
|
523
|
+
token: EvmAddress!
|
|
524
|
+
}
|
|
525
|
+
|
|
520
526
|
input HubInput {
|
|
521
527
|
"""The hub address"""
|
|
522
528
|
address: EvmAddress!
|
|
@@ -1123,15 +1129,21 @@ input ReservesRequestQuery @oneOf {
|
|
|
1123
1129
|
"""Get all the reserves on a hub for an underlying"""
|
|
1124
1130
|
hubToken: HubTokenInput
|
|
1125
1131
|
|
|
1132
|
+
"""Get all the reserves on a hub for an underlying by a hub id"""
|
|
1133
|
+
hubIdToken: HubIdTokenInput
|
|
1134
|
+
|
|
1126
1135
|
"""Get all the reserves on a list of chains"""
|
|
1127
1136
|
chainIds: [ChainId!]
|
|
1128
1137
|
|
|
1129
1138
|
"""Get all the reserves for a spoke for an underlying"""
|
|
1130
1139
|
spokeToken: SpokeTokenInput
|
|
1131
1140
|
|
|
1132
|
-
"""Get all
|
|
1141
|
+
"""Get all reserves on a hub"""
|
|
1133
1142
|
hub: HubInput
|
|
1134
1143
|
|
|
1144
|
+
"""Get all reserves with a hub id"""
|
|
1145
|
+
hubId: HubId
|
|
1146
|
+
|
|
1135
1147
|
"""Get all the reserves on based on user position id"""
|
|
1136
1148
|
userPositionId: UserPositionId
|
|
1137
1149
|
}
|
|
@@ -1605,6 +1617,16 @@ input UserBalancesByHub {
|
|
|
1605
1617
|
byReservesType: ReservesRequestFilter! = ALL
|
|
1606
1618
|
}
|
|
1607
1619
|
|
|
1620
|
+
input UserBalancesByHubId {
|
|
1621
|
+
"""The hub id"""
|
|
1622
|
+
hubId: HubId!
|
|
1623
|
+
|
|
1624
|
+
"""
|
|
1625
|
+
The type of reserve to use when determine the tokens to retrieve balances for
|
|
1626
|
+
"""
|
|
1627
|
+
byReservesType: ReservesRequestFilter! = ALL
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1608
1630
|
input UserBalancesBySpoke {
|
|
1609
1631
|
"""The spoke address"""
|
|
1610
1632
|
address: EvmAddress!
|
|
@@ -1649,6 +1671,9 @@ input UserBalancesRequestFilter @oneOf {
|
|
|
1649
1671
|
"""The balances for the tokens of hub assets on a given hub"""
|
|
1650
1672
|
hub: UserBalancesByHub
|
|
1651
1673
|
|
|
1674
|
+
"""The balances for the tokens of the hub assets on a given hub id"""
|
|
1675
|
+
hubId: UserBalancesByHubId
|
|
1676
|
+
|
|
1652
1677
|
"""The balances for the tokens of reserves attached to a spoke"""
|
|
1653
1678
|
spoke: UserBalancesBySpoke
|
|
1654
1679
|
|
package/dist/test-utils.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../schema.graphql","../src/test-utils.ts"],"names":["schema_default","schema","buildSchema"],"mappings":"4CAAA,IAAAA,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gRate: PercentNumber!\n}\n\ninput ActivitiesRequest {\n query: ActivitiesRequestQuery!\n user: EvmAddress\n types: [ActivityFeedType!]! = [BORROW, SUPPLY, WITHDRAW, REPAY, LIQUIDATED, SET_AS_COLLATERAL]\n pageSize: PageSize! = FIFTY\n cursor: Cursor\n}\n\ninput ActivitiesRequestQuery @oneOf {\n hub: HubInput\n hubId: HubId\n spoke: SpokeInput\n spokeId: SpokeId\n chainIds: [ChainId!]\n txHash: TxHashInput\n}\n\nenum ActivityFeedType {\n SUPPLY\n BORROW\n REPAY\n WITHDRAW\n LIQUIDATED\n SET_AS_COLLATERAL\n}\n\nunion ActivityItem = BorrowActivity | SupplyActivity | WithdrawActivity | RepayActivity | LiquidatedActivity | UsingAsCollateralActivity\n\nscalar AlwaysTrue\n\ninput AmountInput @oneOf {\n \"\"\"Exact amount\"\"\"\n exact: BigDecimal\n\n \"\"\"Max amount\"\"\"\n max: AlwaysTrue\n}\n\nenum ApyMetric {\n HIGHEST\n LOWEST\n AVERAGE\n}\n\ntype Asset {\n id: AssetId!\n token: Erc20Token!\n summary: AssetSummary!\n price(currency: Currency! = USD): FiatAmountWithChange!\n}\n\ninput AssetBorrowHistoryRequest {\n query: AssetBorrowHistoryRequestQuery!\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetBorrowHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetBorrowSample {\n date: DateTime!\n amount: DecimalNumber!\n}\n\nscalar AssetId\n\ninput AssetPriceHistoryRequest {\n query: AssetPriceHistoryRequestQuery!\n currency: Currency! = USD\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetPriceHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetPriceSample {\n date: DateTime!\n price: BigDecimal!\n}\n\ninput AssetRequest {\n query: AssetRequestQuery!\n}\n\ninput AssetRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetSummary {\n totalSupplyCap: DecimalNumberWithChange!\n totalSupplied: DecimalNumberWithChange!\n totalSuppliable: DecimalNumberWithChange!\n totalBorrowCap: DecimalNumberWithChange!\n totalBorrowed: DecimalNumberWithChange!\n totalBorrowable: DecimalNumberWithChange!\n totalSuppliedFiat(currency: Currency! = USD): FiatAmountWithChange!\n totalBorrowedFiat(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The supply APY dependent on what you pass in for the `metric`\"\"\"\n supplyApy(metric: ApyMetric! = AVERAGE): PercentNumber!\n\n \"\"\"The borrow APY dependent on what you pass in for the `metric`\"\"\"\n borrowApy(metric: ApyMetric! = AVERAGE): PercentNumber!\n}\n\ninput AssetSupplyHistoryRequest {\n query: AssetSupplyHistoryRequestQuery!\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetSupplyHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetSupplySample {\n date: DateTime!\n amount: DecimalNumber!\n}\n\nscalar BigDecimal\n\nscalar BigInt\n\nscalar BlockchainData\n\ninput BorrowAPYHistoryRequest {\n reserve: ReserveId!\n window: TimeWindow! = LAST_DAY\n}\n\ntype BorrowActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n borrowed: Erc20Amount!\n chain: Chain!\n}\n\ninput BorrowRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveAmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput CancelIntentSwapInput {\n id: SwapId!\n signature: Signature!\n}\n\nunion CancelSwapExecutionPlan = TransactionRequest | SwapCancelled\n\ninput CancelSwapRequest @oneOf {\n intent: CancelIntentSwapInput\n transaction: SwapId\n}\n\ntype CancelSwapTypeDefinition {\n EIP712Domain: [TypeField!]!\n OrderCancellations: [TypeField!]!\n}\n\ntype CancelSwapTypedData {\n types: CancelSwapTypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: JSON!\n}\n\ntype Chain {\n name: String!\n icon: String!\n chainId: ChainId!\n explorerUrl: String!\n isTestnet: Boolean!\n nativeWrappedToken: EvmAddress!\n nativeInfo: TokenInfo!\n nativeGateway: EvmAddress!\n signatureGateway: EvmAddress!\n}\n\n\"\"\"A supported blockchain chain ID\"\"\"\nscalar ChainId\n\ninput ChainRequest {\n \"\"\"The chain id\"\"\"\n chainId: ChainId!\n}\n\nenum ChainsFilter {\n TESTNET_ONLY\n MAINNET_ONLY\n ALL\n}\n\nenum Currency {\n USD\n GBP\n EUR\n}\n\nscalar Cursor\n\nscalar DateTime\n\ntype DecimalNumber {\n \"\"\"The on-chain representation of `value`, stored as an integer.\"\"\"\n onChainValue: BigInt!\n\n \"\"\"\n The number of decimals defining how many fractional digits the number supports.\n \"\"\"\n decimals: Int!\n\n \"\"\"The normalized value computed as `onChainValue / 10^decimals`.\"\"\"\n value: BigDecimal!\n}\n\ntype DecimalNumberWithChange {\n current: DecimalNumber!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype DomainData {\n name: String!\n version: String!\n chainId: ChainId!\n verifyingContract: EvmAddress!\n}\n\ninput ERC20PermitSignature {\n \"\"\"The signature for the erc721\"\"\"\n value: Signature!\n\n \"\"\"The deadline for the erc721\"\"\"\n deadline: Int!\n}\n\ntype Erc20Amount {\n \"\"\"The value\"\"\"\n amount: DecimalNumber!\n\n \"\"\"The fiat amount\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The fiat rate\"\"\"\n fiatRate(currency: Currency! = USD): DecimalNumber!\n isWrappedNative: Boolean!\n token: Erc20Token!\n}\n\ntype Erc20ApprovalRequired {\n \"\"\"The transaction requires an approval first\"\"\"\n transaction: TransactionRequest!\n\n \"\"\"The reason for the approval\"\"\"\n reason: String!\n\n \"\"\"The required amount missing to be able to do the original transaction\"\"\"\n requiredAmount: DecimalNumber!\n\n \"\"\"The current allowance approved\"\"\"\n currentAllowance: DecimalNumber!\n\n \"\"\"The transaction to send after the approval is complete\"\"\"\n originalTransaction: TransactionRequest!\n}\n\ninput Erc20Input {\n \"\"\"The token address\"\"\"\n address: EvmAddress!\n\n \"\"\"The token chain id\"\"\"\n chainId: ChainId!\n}\n\ntype Erc20Token {\n \"\"\"The token address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain its deployed to\"\"\"\n chain: Chain!\n\n \"\"\"The ERC20 token info\"\"\"\n info: TokenInfo!\n\n \"\"\"\n The protocol only deals with ERC20 this allows you to understand if\n the token is a wrapped native token to allow you to maybe change `WETH` > `ETH`\n on the display screen, or whatever you decide makes sense\n \"\"\"\n isWrappedNativeToken: Boolean!\n\n \"\"\"If permit is supported for the ERC20 token\"\"\"\n permitSupported: Boolean!\n}\n\nscalar EvmAddress\n\ninput ExchangeRateRequest {\n \"\"\"The from criteria\"\"\"\n from: ExchangeRateRequestFrom!\n\n \"\"\"The currency to get the result in\"\"\"\n to: Currency!\n\n \"\"\"\n The date time to get the exchange rate at, if not provided the latest rate is returned\n \"\"\"\n at: DateTime\n}\n\ninput ExchangeRateRequestFrom @oneOf {\n \"\"\"The currency\"\"\"\n fiat: Currency\n\n \"\"\"The erc20 token\"\"\"\n erc20: Erc20Input\n\n \"\"\"The native token\"\"\"\n native: ChainId\n}\n\nunion ExecutionPlan = TransactionRequest | Erc20ApprovalRequired | PreContractActionRequired | InsufficientBalanceError\n\ntype FiatAmount {\n value: BigDecimal!\n name: String!\n symbol: String!\n}\n\ntype FiatAmountValueVariation {\n current: FiatAmount!\n after: FiatAmount!\n}\n\ntype FiatAmountWithChange {\n current: FiatAmount!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ninput ForkTopUpErc20 {\n \"\"\"The token address\"\"\"\n currency: EvmAddress!\n\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction\n \"\"\"\n value: BigDecimal!\n}\n\ninput ForkTopUpRequest {\n \"\"\"The address you want the funds to be topped up against\"\"\"\n user: EvmAddress!\n\n \"\"\"The erc20 information\"\"\"\n erc20: ForkTopUpErc20\n\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction\n \"\"\"\n native: BigDecimal\n}\n\ntype ForkTopUpResponse {\n message: String!\n\n \"\"\"The tx hash of the newly created transaction\"\"\"\n txHash: String\n}\n\ninput HasProcessedKnownTransactionRequest {\n \"\"\"\n The operation types this is given to you on the TransactionRequest::operations\n \"\"\"\n operations: [OperationType!]!\n\n \"\"\"The tx hash\"\"\"\n txHash: TxHash!\n}\n\ntype HealthFactorError {\n reason: String!\n current: BigDecimal\n after: BigDecimal\n}\n\nunion HealthFactorResult = HealthFactorVariation | HealthFactorError\n\ntype HealthFactorVariation {\n current: BigDecimal\n after: BigDecimal\n}\n\ntype HealthFactorWithChange {\n current: BigDecimal\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype Hub {\n \"\"\"The id for the hub\"\"\"\n id: HubId!\n\n \"\"\"The hub name\"\"\"\n name: String!\n\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain the hub is deployed on\"\"\"\n chain: Chain!\n\n \"\"\"The hub summary\"\"\"\n summary(currency: Currency! = USD): HubSummary!\n}\n\ntype HubAsset {\n \"\"\"The id for the hub asset\"\"\"\n id: HubAssetId!\n\n \"\"\"The onchain asset id\"\"\"\n onchainAssetId: OnChainHubAssetId!\n\n \"\"\"The hub\"\"\"\n hub: Hub!\n\n \"\"\"The underlying token\"\"\"\n underlying: Erc20Token!\n\n \"\"\"The hub asset summary\"\"\"\n summary: HubAssetSummary!\n\n \"\"\"The hub asset settings\"\"\"\n settings: HubAssetSettings!\n userState: HubAssetUserState\n}\n\nscalar HubAssetId\n\ntype HubAssetSettings {\n \"\"\"The fee receiver\"\"\"\n feeReceiver: EvmAddress!\n\n \"\"\"The liquidity fee\"\"\"\n liquidityFee: PercentNumber!\n\n \"\"\"The ir strategy\"\"\"\n irStrategy: EvmAddress!\n\n \"\"\"The reinvestment strategy\"\"\"\n reinvestmentController: EvmAddress\n}\n\ntype HubAssetSummary {\n \"\"\"The supplied amount\"\"\"\n supplied: Erc20Amount!\n\n \"\"\"The borrowed amount\"\"\"\n borrowed: Erc20Amount!\n\n \"\"\"The available liquidity\"\"\"\n availableLiquidity: Erc20Amount!\n\n \"\"\"The supply APY\"\"\"\n supplyApy: PercentNumber!\n\n \"\"\"The borrow APY\"\"\"\n borrowApy: PercentNumber!\n\n \"\"\"The net APY\"\"\"\n netApy: PercentNumber!\n\n \"\"\"The utilization rate\"\"\"\n utilizationRate: PercentNumber!\n}\n\ntype HubAssetUserState {\n \"\"\"The hub asset balance\"\"\"\n balance: Erc20Amount!\n}\n\ninput HubAssetsRequest {\n query: HubAssetsRequestQuery!\n user: EvmAddress\n orderBy: HubAssetsRequestOrderBy! = {assetName: ASC}\n}\n\ninput HubAssetsRequestOrderBy @oneOf {\n assetName: OrderDirection\n availableLiquidity: OrderDirection\n supplyApy: OrderDirection\n borrowApy: OrderDirection\n}\n\ninput HubAssetsRequestQuery @oneOf {\n hubInput: HubInput\n hubId: HubId\n}\n\nscalar HubId\n\ninput HubInput {\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The hub chain id\"\"\"\n chainId: ChainId!\n}\n\ninput HubRequest {\n query: HubRequestQuery!\n}\n\ninput HubRequestQuery @oneOf {\n hubInput: HubInput\n hubId: HubId\n}\n\ntype HubSummary {\n \"\"\"\n The total spoke reserves aggregated borrowed using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalBorrowed: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated borrow caps using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalBorrowCap: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated supplied using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalSupplied: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated supply caps using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalSupplyCap: FiatAmount!\n\n \"\"\"\n The utilization rate\"\n \"\"\"\n utilizationRate: BigDecimal!\n}\n\ninput HubTokenInput {\n chainId: ChainId!\n hub: EvmAddress!\n token: EvmAddress!\n}\n\ninput HubsRequest {\n query: HubsRequestQuery!\n orderBy: HubsRequestOrderBy! = {name: ASC}\n}\n\ninput HubsRequestOrderBy @oneOf {\n name: OrderDirection\n totalBorrowed: OrderDirection\n totalSupplied: OrderDirection\n}\n\ninput HubsRequestQuery @oneOf {\n \"\"\"Get back all the hubs which have one of the underlying tokens supplied\"\"\"\n tokens: [Erc20Input!]\n\n \"\"\"Get back all the hubs based on the chain ids passed in\"\"\"\n chainIds: [ChainId!]\n}\n\ntype InsufficientBalanceError {\n \"\"\"The amount required to do the original transaction\"\"\"\n required: DecimalNumber!\n\n \"\"\"The amount available in the wallet\"\"\"\n available: DecimalNumber!\n}\n\n\"\"\"A scalar that can represent any JSON value.\"\"\"\nscalar JSON\n\ninput LiquidatePositionDebtAmount @oneOf {\n \"\"\"Exact amount\"\"\"\n exact: BigDecimal\n\n \"\"\"The most you can liquidate\"\"\"\n max: AlwaysTrue\n}\n\nunion LiquidatePositionExecutionPlan = TransactionRequest | Erc20ApprovalRequired | InsufficientBalanceError\n\ninput LiquidatePositionRequest {\n \"\"\"The collateral reserve id\"\"\"\n collateral: ReserveId!\n\n \"\"\"The debt reserve id\"\"\"\n debt: ReserveId!\n\n \"\"\"The amount to liquidate\"\"\"\n amount: LiquidatePositionDebtAmount!\n\n \"\"\"The person liquidating the position\"\"\"\n liquidator: EvmAddress!\n\n \"\"\"The user to liquidate\"\"\"\n user: EvmAddress!\n\n \"\"\"If you would like to receive shares over the asset\"\"\"\n receiveShares: Boolean! = false\n}\n\ntype LiquidatedActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n collateralReserve: ReserveInfo!\n debtReserve: ReserveInfo!\n collateral: Erc20Amount!\n debt: Erc20Amount!\n liquidator: EvmAddress!\n chain: Chain!\n}\n\ntype Mutation {\n \"\"\"Top up a balance for a user or yourself on the fork\"\"\"\n forkTopUp(request: ForkTopUpRequest!): ForkTopUpResponse!\n}\n\ntype NativeAmount {\n \"\"\"The native token\"\"\"\n token: NativeToken!\n\n \"\"\"The value\"\"\"\n amount: DecimalNumber!\n\n \"\"\"The fiat amount\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The fiat rate\"\"\"\n fiatRate(currency: Currency! = USD): DecimalNumber!\n}\n\ntype NativeToken {\n info: TokenInfo!\n chain: Chain!\n}\n\nscalar OnChainHubAssetId\n\nscalar OnChainReserveId\n\nenum OperationType {\n SPOKE_BORROW\n SPOKE_REPAY\n SPOKE_SUPPLY\n SPOKE_WITHDRAW\n SPOKE_UPDATE_USER_RISK_PREMIUM\n SPOKE_SET_USER_USING_AS_COLLATERAL\n SPOKE_SET_USER_POSITION_MANAGER\n RENOUNCE_SPOKE_USER_POSITION_MANAGER\n LIQUIDATION\n}\n\nenum OrderDirection {\n ASC\n DESC\n}\n\nenum PageSize {\n TEN\n FIFTY\n}\n\ntype PaginatedActivitiesResult {\n items: [ActivityItem!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedResultInfo {\n \"\"\"The cursor to the previous page of results, if any.\"\"\"\n prev: Cursor\n\n \"\"\"The cursor to the next page of results, if any.\"\"\"\n next: Cursor\n}\n\ntype PaginatedSpokePositionManagerResult {\n items: [SpokePositionManger!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedSpokeUserPositionManagerResult {\n items: [SpokeUserPositionManager!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedUserSwapsResult {\n items: [SwapStatus!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PercentNumber {\n \"\"\"\n The on-chain representation of the percentage, stored in basis points (bps).\n \"\"\"\n onChainValue: BigInt!\n\n \"\"\"The number of decimals defining the precision of `bps`.\"\"\"\n decimals: Int!\n\n \"\"\"The percentage value where 1.0 represents 100%.\"\"\"\n value: BigDecimal!\n\n \"\"\"The human-friendly percentage value formatted for display.\"\"\"\n normalized: BigDecimal!\n}\n\ntype PercentNumberVariation {\n current: PercentNumber!\n after: PercentNumber!\n}\n\ntype PercentNumberWithChange {\n current: PercentNumber!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype PermitMessageData {\n owner: EvmAddress!\n spender: EvmAddress!\n value: BigInt!\n nonce: BigInt!\n deadline: Int!\n}\n\ninput PermitRequest @oneOf {\n supply: SupplyPermitRequest\n repay: RepayPermitRequest\n}\n\ntype PermitTypedDataResponse {\n types: TypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: PermitMessageData!\n}\n\ntype PreContractActionRequired {\n \"\"\"The transaction requires a pre-contract action first\"\"\"\n transaction: TransactionRequest!\n\n \"\"\"The reason for the pre-contract action\"\"\"\n reason: String!\n\n \"\"\"The transaction to send after the approval is complete\"\"\"\n originalTransaction: TransactionRequest!\n}\n\ninput PrepareLimitOrderSwapInput {\n quoteId: SwapQuoteId!\n newSellAmount: BigDecimal\n newBuyAmount: BigDecimal\n\n \"\"\"Slippage in basis points\"\"\"\n newSlippage: BigDecimal\n newReceiver: EvmAddress\n}\n\ninput PrepareMarketOrderSwapInput {\n chainId: ChainId!\n buy: TokenInput!\n sell: TokenInput!\n amount: BigDecimal!\n kind: SwapKind!\n user: EvmAddress!\n receiver: EvmAddress\n}\n\ninput PrepareSwapCancelRequest {\n id: SwapId!\n}\n\ntype PrepareSwapCancelResult {\n data: CancelSwapTypedData!\n}\n\ninput PrepareSwapRequest @oneOf {\n market: PrepareMarketOrderSwapInput\n limit: PrepareLimitOrderSwapInput\n}\n\nunion PrepareSwapResult = SwapByIntent | SwapByIntentWithApprovalRequired | SwapByTransaction | InsufficientBalanceError\n\ninput PreviewAction @oneOf {\n supply: SupplyRequest\n borrow: BorrowRequest\n repay: RepayRequest\n withdraw: WithdrawRequest\n setUserSupplyAsCollateral: SetUserSupplyAsCollateralRequest\n}\n\ninput PreviewRequest {\n action: PreviewAction!\n}\n\ntype PreviewUserPosition {\n id: UserPositionId!\n healthFactor: HealthFactorResult!\n riskPremium: PercentNumberVariation!\n\n \"\"\"The net APY for one user position on a current spoke\"\"\"\n netApy: PercentNumberVariation!\n netCollateral(currency: Currency! = USD): FiatAmountValueVariation!\n netBalance(currency: Currency! = USD): FiatAmountValueVariation!\n}\n\ntype Query {\n health: Boolean!\n chain(request: ChainRequest!): Chain\n chains(filter: ChainsFilter!): [Chain!]!\n\n \"\"\"Generate EIP-712 typed data for EIP-2612 permit signature\"\"\"\n permitTypedData(request: PermitRequest!): PermitTypedDataResponse!\n\n \"\"\"Get the exchange rate of tokens > currency or currency > currency\"\"\"\n exchangeRate(request: ExchangeRateRequest!): FiatAmount!\n asset(request: AssetRequest!): Asset\n assetSupplyHistory(request: AssetSupplyHistoryRequest!): [AssetSupplySample!]!\n assetBorrowHistory(request: AssetBorrowHistoryRequest!): [AssetBorrowSample!]!\n assetPriceHistory(request: AssetPriceHistoryRequest!): [AssetPriceSample!]!\n\n \"\"\"Fetch a list of hubs depending on your search criteria\"\"\"\n hubs(request: HubsRequest!): [Hub!]!\n hub(request: HubRequest!): Hub\n hubAssets(request: HubAssetsRequest!): [HubAsset!]!\n reserve(request: ReserveRequest!): Reserve\n reserves(request: ReservesRequest!): [Reserve!]!\n supply(request: SupplyRequest!): ExecutionPlan!\n borrow(request: BorrowRequest!): ExecutionPlan!\n withdraw(request: WithdrawRequest!): ExecutionPlan!\n repay(request: RepayRequest!): ExecutionPlan!\n spokePositionManagers(request: SpokePositionManagersRequest!): PaginatedSpokePositionManagerResult!\n spokeUserPositionManagers(request: SpokeUserPositionManagersRequest!): PaginatedSpokeUserPositionManagerResult!\n setSpokeUserPositionManager(request: SetSpokeUserPositionManagerRequest!): TransactionRequest!\n renounceSpokeUserPositionManager(request: RenounceSpokeUserPositionManagerRequest!): TransactionRequest!\n setUserSupplyAsCollateral(request: SetUserSupplyAsCollateralRequest!): TransactionRequest!\n liquidatePosition(request: LiquidatePositionRequest!): LiquidatePositionExecutionPlan!\n updateUserRiskPremium(request: UpdateUserRiskPremiumRequest!): TransactionRequest!\n updateUserDynamicConfig(request: UpdateUserDynamicConfigRequest!): TransactionRequest!\n preview(request: PreviewRequest!): PreviewUserPosition!\n borrowApyHistory(request: BorrowAPYHistoryRequest!): [APYSample!]!\n supplyApyHistory(request: SupplyAPYHistoryRequest!): [APYSample!]!\n spoke(request: SpokeRequest!): Spoke\n\n \"\"\"Lists all spokes\"\"\"\n spokes(request: SpokesRequest!): [Spoke!]!\n\n \"\"\"\n Get the user balances for the protocol\n This will only return assets that can be used on the protocol\n \"\"\"\n userBalances(request: UserBalancesRequest!): [UserBalance!]!\n userBorrows(request: UserBorrowsRequest!): [UserBorrowItem!]!\n userSummary(request: UserSummaryRequest!): UserSummary!\n userSummaryHistory(request: UserSummaryHistoryRequest!): [UserSummaryHistoryItem!]!\n userPositions(request: UserPositionsRequest!): [UserPosition!]!\n userPosition(request: UserPositionRequest!): UserPosition\n userSupplies(request: UserSuppliesRequest!): [UserSupplyItem!]!\n\n \"\"\"\n This lets you know the API has processed the known transaction hash, as the API uses caching to make things as fast\n as possible, it has an invalidation task, so sometimes if the receipt is complete, we may still (rarely) serve\n old data for 100-200ms longer, it's best to query after you got the receipt to be told that it is ready to go.\n Note the invalidation is very quick, and most of the time it's present even before your receipt is returned this is to\n cater for the race condition.\n \"\"\"\n hasProcessedKnownTransaction(request: HasProcessedKnownTransactionRequest!): Boolean!\n activities(request: ActivitiesRequest!): PaginatedActivitiesResult!\n swapQuote(request: SwapQuoteRequest!): SwapQuote!\n prepareSwap(request: PrepareSwapRequest!): PrepareSwapResult!\n swap(request: SwapRequest!): SwapExecutionPlan!\n swapStatus(request: SwapStatusRequest!): SwapStatus!\n userSwaps(request: UserSwapsRequest!): PaginatedUserSwapsResult!\n prepareSwapCancel(request: PrepareSwapCancelRequest!): PrepareSwapCancelResult!\n cancelSwap(request: CancelSwapRequest!): CancelSwapExecutionPlan!\n swappableTokens(request: SwappableTokensRequest!): [Token!]!\n}\n\ninput RenounceSpokeUserPositionManagerRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The address to remove as a position manager\"\"\"\n manager: EvmAddress!\n\n \"\"\"The address to remove `manager` as position manager\"\"\"\n managing: EvmAddress!\n}\n\ntype RepayActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n repaid: Erc20Amount!\n chain: Chain!\n}\n\ninput RepayAmountInputWithPermit @oneOf {\n \"\"\"The native amount\"\"\"\n native: AmountInput\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: RepayErc20AmountInputWithPermit\n}\n\ninput RepayErc20AmountInputWithPermit {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: AmountInput!\n\n \"\"\"\n The signed ERC20 permit message to operate on the relevant token without a need for an ERC20 Approval transaction.\n \"\"\"\n permitSig: ERC20PermitSignature\n}\n\ninput RepayPermitRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount repaying\"\"\"\n amount: AmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput RepayRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount repaying\"\"\"\n amount: RepayAmountInputWithPermit!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ntype Reserve {\n id: ReserveId!\n onChainId: OnChainReserveId!\n borrowCap: BigDecimal!\n supplyCap: BigDecimal!\n chain: Chain!\n summary: ReserveSummary!\n settings: ReserveSettings!\n status: ReserveStatus!\n canBorrow: Boolean!\n canSupply: Boolean!\n canUseAsCollateral: Boolean!\n userState: ReserveUserState\n asset: HubAsset!\n spoke: Spoke!\n}\n\ninput ReserveAmountInput @oneOf {\n \"\"\"The native amount\"\"\"\n native: BigDecimal\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: ReserveErc20AmountInput\n}\n\ninput ReserveAmountInputWithPermit @oneOf {\n \"\"\"The native amount\"\"\"\n native: BigDecimal\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: ReserveErc20AmountInputWithPermit\n}\n\ninput ReserveErc20AmountInput {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: BigDecimal!\n}\n\ninput ReserveErc20AmountInputWithPermit {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: BigDecimal!\n\n \"\"\"\n The signed ERC20 permit message to operate on the relevant token without a need for an ERC20 Approval transaction.\n \"\"\"\n permitSig: ERC20PermitSignature\n}\n\nscalar ReserveId\n\ntype ReserveInfo {\n id: ReserveId!\n asset: HubAsset!\n}\n\ninput ReserveInput {\n chainId: ChainId!\n spoke: EvmAddress!\n onChainId: OnChainReserveId!\n}\n\ninput ReserveRequest {\n query: ReserveRequestQuery!\n\n \"\"\"\n The user who is doing the query (this injects user state into some of the return objects)\n \"\"\"\n user: EvmAddress\n}\n\ninput ReserveRequestQuery @oneOf {\n reserveId: ReserveId\n reserveInput: ReserveInput\n}\n\ntype ReserveSettings {\n collateralFactor: PercentNumber!\n maxLiquidationBonus: PercentNumber!\n collateralRisk: PercentNumber!\n borrowable: Boolean!\n collateral: Boolean!\n suppliable: Boolean!\n}\n\ntype ReserveStatus {\n frozen: Boolean!\n paused: Boolean!\n active: Boolean!\n}\n\ntype ReserveSummary {\n supplied: Erc20Amount!\n borrowed: Erc20Amount!\n supplyApy: PercentNumber!\n borrowApy: PercentNumber!\n}\n\ntype ReserveUserState {\n balance: Erc20Amount!\n suppliable: Erc20Amount!\n borrowable: Erc20Amount!\n borrowApy: PercentNumber!\n}\n\ninput ReservesRequest {\n \"\"\"The reserve's request query\"\"\"\n query: ReservesRequestQuery!\n\n \"\"\"\n The user who is doing the query (this injects user state into some of the return objects)\n \"\"\"\n user: EvmAddress\n\n \"\"\"The reserve's filter\"\"\"\n filter: ReservesRequestFilter! = ALL\n\n \"\"\"The reserve's order by\"\"\"\n orderBy: ReservesRequestOrderBy! = {assetName: ASC}\n}\n\nenum ReservesRequestFilter {\n SUPPLY\n BORROW\n ALL\n}\n\ninput ReservesRequestOrderBy @oneOf {\n assetName: OrderDirection\n userBalance: OrderDirection\n supplyApy: OrderDirection\n supplyAvailable: OrderDirection\n borrowApy: OrderDirection\n borrowAvailable: OrderDirection\n collateralFactor: OrderDirection\n}\n\ninput ReservesRequestQuery @oneOf {\n \"\"\"Get all the reserves for a spoke\"\"\"\n spoke: SpokeInput\n\n \"\"\"Get all the reserves for a spoke\"\"\"\n spokeId: SpokeId\n\n \"\"\"Get all the reserves with underlying tokens\"\"\"\n tokens: [Erc20Input!]\n\n \"\"\"Get all the reserves on a hub for an underlying\"\"\"\n hubToken: HubTokenInput\n\n \"\"\"Get all the reserves on a list of chains\"\"\"\n chainIds: [ChainId!]\n\n \"\"\"Get all the reserves for a spoke for an underlying\"\"\"\n spokeToken: SpokeTokenInput\n\n \"\"\"Get all tokens on a hub\"\"\"\n hub: HubInput\n\n \"\"\"Get all the reserves on based on user position id\"\"\"\n userPositionId: UserPositionId\n}\n\ninput SetSpokeUserPositionManagerRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The address to become the position manager\"\"\"\n manager: EvmAddress!\n\n \"\"\"Approve or remove the manager\"\"\"\n approve: Boolean!\n\n \"\"\"The user to set the position `manager` for\"\"\"\n user: EvmAddress!\n\n \"\"\"The signature\"\"\"\n signature: ERC20PermitSignature\n}\n\ninput SetUserSupplyAsCollateralRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If you want to enable the collateral or disable\"\"\"\n enableCollateral: Boolean!\n}\n\nscalar Signature\n\ntype Spoke {\n \"\"\"The id for the spoke\"\"\"\n id: SpokeId!\n\n \"\"\"The spoke name (offchain)\"\"\"\n name: String!\n\n \"\"\"The spoke address\"\"\"\n address: EvmAddress!\n\n \"\"\"The spoke chain\"\"\"\n chain: Chain!\n}\n\nscalar SpokeId\n\ninput SpokeInput {\n \"\"\"The address of the spoke\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain id the spoke is deployed to\"\"\"\n chainId: ChainId!\n}\n\ninput SpokePositionManagersRequest {\n spoke: SpokeId!\n includeInactive: Boolean\n pageSize: PageSize!\n cursor: Cursor\n}\n\ntype SpokePositionManger {\n name: String!\n address: EvmAddress!\n active: Boolean!\n}\n\ninput SpokeRequest {\n \"\"\"The spoke request query\"\"\"\n query: SpokeRequestQuery!\n}\n\ninput SpokeRequestQuery @oneOf {\n spoke: SpokeInput\n spokeId: SpokeId\n}\n\ninput SpokeTokenInput {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The token\"\"\"\n token: EvmAddress!\n}\n\ntype SpokeUserPositionManager {\n name: String!\n address: EvmAddress!\n approvedOn: DateTime!\n active: Boolean!\n}\n\ninput SpokeUserPositionManagersRequest {\n spoke: SpokeId!\n user: EvmAddress!\n pageSize: PageSize!\n cursor: Cursor\n}\n\ninput SpokesRequest {\n query: SpokesRequestQuery!\n}\n\ninput SpokesRequestQuery @oneOf {\n \"\"\"\n The hub id\n Get all the spokes which hubs are linked to a spoke reserve\n \"\"\"\n hubId: HubId\n\n \"\"\"\n The hub address and chain id\n Get all the spokes which hubs are linked to a spoke reserve\n \"\"\"\n hub: HubInput\n\n \"\"\"\n The chain ids\n Get all the spokes which are on the list of chain ids\n \"\"\"\n chainIds: [ChainId!]\n}\n\ninput SupplyAPYHistoryRequest {\n reserve: ReserveId!\n window: TimeWindow! = LAST_DAY\n}\n\ntype SupplyActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n supplied: Erc20Amount!\n chain: Chain!\n}\n\ninput SupplyPermitRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveErc20AmountInput!\n\n \"\"\"If you wish to enable collateral with it meaning you can borrow\"\"\"\n enableCollateral: Boolean! = true\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput SupplyRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveAmountInputWithPermit!\n\n \"\"\"If you wish to enable collateral with it meaning you can borrow\"\"\"\n enableCollateral: Boolean! = true\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ntype SwapApprovalRequired {\n approval: TransactionRequest!\n originalTransaction: SwapTransactionRequest!\n}\n\ntype SwapByIntent {\n quote: SwapQuote!\n data: SwapByIntentTypedData!\n}\n\ninput SwapByIntentInput {\n quoteId: SwapQuoteId!\n signature: Signature!\n}\n\ntype SwapByIntentTypeDefinition {\n EIP712Domain: [TypeField!]!\n Order: [TypeField!]!\n}\n\ntype SwapByIntentTypedData {\n types: SwapByIntentTypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: JSON!\n}\n\ntype SwapByIntentWithApprovalRequired {\n quote: SwapQuote!\n approval: TransactionRequest!\n data: SwapByIntentTypedData!\n}\n\ntype SwapByTransaction {\n quote: SwapQuote!\n}\n\ntype SwapCancelled {\n createdAt: DateTime!\n cancelledAt: DateTime\n explorerLink: String!\n}\n\nunion SwapExecutionPlan = SwapTransactionRequest | SwapApprovalRequired | InsufficientBalanceError | SwapReceipt\n\ntype SwapExpired {\n createdAt: DateTime!\n expiredAt: DateTime!\n explorerLink: String!\n}\n\ntype SwapFulfilled {\n txHash: String!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n sold: TokenAmount!\n bought: TokenAmount!\n createdAt: DateTime!\n fulfilledAt: DateTime!\n explorerLink: String!\n refundTxHash: TxHash\n}\n\nscalar SwapId\n\nenum SwapKind {\n BUY\n SELL\n}\n\ntype SwapOpen {\n swapId: SwapId!\n createdAt: DateTime!\n deadline: DateTime!\n explorerLink: String!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n}\n\ntype SwapPendingSignature {\n createdAt: DateTime!\n deadline: DateTime!\n explorerLink: String!\n}\n\ntype SwapQuote {\n quoteId: SwapQuoteId!\n suggestedSlippage: PercentNumber!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n costs: SwapQuoteCosts!\n\n \"\"\"Minimum received amount after all costs and slippage\"\"\"\n minimumReceived: TokenAmount!\n}\n\ntype SwapQuoteCosts {\n \"\"\"Network and provider costs\"\"\"\n networkCosts: TokenAmount!\n\n \"\"\"Aave partner fee amount\"\"\"\n partnerFee: TokenAmount!\n}\n\nscalar SwapQuoteId\n\ninput SwapQuoteRequest {\n chainId: ChainId!\n buy: TokenInput!\n sell: TokenInput!\n amount: BigDecimal!\n kind: SwapKind\n from: EvmAddress!\n receiver: EvmAddress\n}\n\ntype SwapReceipt {\n id: SwapId!\n createdAt: DateTime!\n explorerLink: String!\n}\n\ninput SwapRequest @oneOf {\n intent: SwapByIntentInput\n transaction: SwapWithTransactionInput\n}\n\nunion SwapStatus = SwapOpen | SwapPendingSignature | SwapCancelled | SwapExpired | SwapFulfilled\n\nenum SwapStatusFilter {\n CANCELLED\n EXPIRED\n FULFILLED\n OPEN\n PENDING_SIGNATURE\n}\n\ninput SwapStatusRequest {\n id: SwapId!\n}\n\ntype SwapTransactionRequest {\n transaction: TransactionRequest!\n orderReceipt: SwapReceipt!\n}\n\ninput SwapWithTransactionInput {\n quoteId: SwapQuoteId!\n permitSig: Signature\n\n \"\"\"\n Whether the swap order creator is a smart contract wallet. If not provided, it will be inferred following the ERC-1271 standard.\n \"\"\"\n isSenderSmartContractWallet: Boolean\n}\n\ninput SwappableTokenInput @oneOf {\n native: ChainId\n erc20: Erc20Input\n}\n\ninput SwappableTokensRequest {\n query: SwappableTokensRequestQuery\n}\n\ninput SwappableTokensRequestQuery @oneOf {\n chainIds: [ChainId!]\n from: SwappableTokenInput\n to: SwappableTokenInput\n}\n\nenum TimeWindow {\n LAST_DAY\n LAST_WEEK\n LAST_MONTH\n LAST_SIX_MONTHS\n LAST_YEAR\n ALL\n}\n\nunion Token = NativeToken | Erc20Token\n\nunion TokenAmount = NativeAmount | Erc20Amount\n\ntype TokenInfo {\n \"\"\"The token name\"\"\"\n name: String!\n\n \"\"\"The token symbol\"\"\"\n symbol: String!\n\n \"\"\"The token icon\"\"\"\n icon: String!\n\n \"\"\"The token decimals\"\"\"\n decimals: Int!\n}\n\ninput TokenInput @oneOf {\n \"\"\"Native token\"\"\"\n native: AlwaysTrue\n\n \"\"\"The erc20 address\"\"\"\n erc20: EvmAddress\n}\n\ntype TransactionRequest {\n to: EvmAddress!\n from: EvmAddress!\n data: BlockchainData!\n value: BigInt!\n chainId: ChainId!\n operations: [OperationType!]\n}\n\nscalar TxHash\n\ninput TxHashInput {\n txHash: TxHash!\n chainId: ChainId!\n}\n\ntype TypeDefinition {\n EIP712Domain: [TypeField!]!\n Permit: [TypeField!]!\n}\n\ntype TypeField {\n name: String!\n type: String!\n}\n\ninput UpdateUserDynamicConfigRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If not supplied, this will use `sender` which is the normal route\"\"\"\n onBehalfOf: EvmAddress\n}\n\ninput UpdateUserRiskPremiumRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If not supplied, this will use `sender` which is the normal route\"\"\"\n onBehalfOf: EvmAddress\n}\n\ntype UserBalance {\n \"\"\"The user balance id\"\"\"\n id: UserBalanceId!\n\n \"\"\"The token info\"\"\"\n info: TokenInfo!\n\n \"\"\"The balances across chains it will be 1 item per chain\"\"\"\n balances: [TokenAmount!]!\n\n \"\"\"The total amount summed across all balances\"\"\"\n totalAmount: DecimalNumber!\n\n \"\"\"The total fiat amount summed across all balances\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The supply APY dependent on what you pass in for the `metric`\"\"\"\n supplyApy(metric: ApyMetric! = HIGHEST): PercentNumber!\n\n \"\"\"The borrow APY dependent on what you pass in for the `metric`\"\"\"\n borrowApy(metric: ApyMetric! = HIGHEST): PercentNumber!\n}\n\nscalar UserBalanceId\n\ninput UserBalancesByChains {\n \"\"\"List of chains\"\"\"\n chainIds: [ChainId!]!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesByHub {\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The hub chain id\"\"\"\n chainId: ChainId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesBySpoke {\n \"\"\"The spoke address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain id the spoke is deployed to\"\"\"\n chainId: ChainId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesByUserPosition {\n \"\"\"The user position id\"\"\"\n userPositionId: UserPositionId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesRequest {\n \"\"\"The user to get the balance for\"\"\"\n user: EvmAddress!\n\n \"\"\"The order by clause - defaults to the highest USD value\"\"\"\n orderBy: UserBalancesRequestOrderBy! = {balance: DESC}\n\n \"\"\"The user balance filter\"\"\"\n filter: UserBalancesRequestFilter!\n\n \"\"\"If you want to include 0 balances in the return list\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserBalancesRequestFilter @oneOf {\n \"\"\"The balances for the tokens on the specified chains\"\"\"\n chains: UserBalancesByChains\n\n \"\"\"The balances for the tokens of hub assets on a given hub\"\"\"\n hub: UserBalancesByHub\n\n \"\"\"The balances for the tokens of reserves attached to a spoke\"\"\"\n spoke: UserBalancesBySpoke\n\n \"\"\"The balances for the swappable tokens\"\"\"\n swappable: SwappableTokensRequestQuery\n\n \"\"\"\n The balances for the tokens of the spoke associated with the given user position\n \"\"\"\n userPosition: UserBalancesByUserPosition\n}\n\ninput UserBalancesRequestOrderBy @oneOf {\n \"\"\"The name of the token\"\"\"\n name: OrderDirection\n\n \"\"\"The balance of the token\"\"\"\n balance: OrderDirection\n}\n\ntype UserBorrowItem {\n \"\"\"The user borrow item id\"\"\"\n id: UserBorrowItemId!\n\n \"\"\"The reserve borrowed from\"\"\"\n reserve: Reserve!\n\n \"\"\"The amount borrowed on this reserve\"\"\"\n principal: Erc20Amount!\n\n \"\"\"The overall debt including accrued interests\"\"\"\n debt: Erc20Amount!\n\n \"\"\"The interest incurred on the loan\"\"\"\n interest: Erc20Amount!\n\n \"\"\"\n When the borrow was created.\n This is null if they have no supply item, for\n example, when using include_zero_balances this comes\n back as principal and debt as 0\n \"\"\"\n createdAt: DateTime\n}\n\nscalar UserBorrowItemId\n\ninput UserBorrowsQueryRequest @oneOf {\n userSpoke: UserSpokeInput\n userToken: UserToken\n userPositionId: UserPositionId\n userChains: UserChains\n}\n\ninput UserBorrowsRequest {\n query: UserBorrowsQueryRequest!\n orderBy: UserBorrowsRequestOrderBy! = {amount: DESC}\n\n \"\"\"If you wish to include zero balances in the results\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserBorrowsRequestOrderBy @oneOf {\n assetName: OrderDirection\n created: OrderDirection\n amount: OrderDirection\n apy: OrderDirection\n}\n\ninput UserChains {\n user: EvmAddress!\n chainIds: [ChainId!]!\n}\n\ntype UserPosition {\n \"\"\"The user position ID\"\"\"\n id: UserPositionId!\n\n \"\"\"The user holding this position\"\"\"\n user: EvmAddress!\n createdAt: DateTime!\n totalSupplied(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"\n Total collateral which is the full some of the assets supplied which are enabled as collateral\n \"\"\"\n totalCollateral(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"Total debt which is the total amount borrowed plus the accrued premium\"\"\"\n totalDebt(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The net balance which is `total_supplied` - `borrows`\"\"\"\n netBalance(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The net collateral which is `totalCollateral` - `totalDebt`\"\"\"\n netCollateral(currency: Currency! = USD): FiatAmountWithChange!\n netApy: PercentNumber!\n netSupplyApy: PercentNumberWithChange!\n netBorrowApy: PercentNumberWithChange!\n healthFactor: HealthFactorWithChange!\n betterRiskPremium: PercentNumber\n riskPremium: PercentNumber!\n netBalancePercentChange(window: TimeWindow! = LAST_DAY): PercentNumber!\n spoke: Spoke!\n averageCollateralFactor: PercentNumber!\n}\n\nscalar UserPositionId\n\ninput UserPositionRequest @oneOf {\n userSpoke: UserSpokeInput\n id: UserPositionId\n}\n\ninput UserPositionsRequest {\n \"\"\"The user to get the positions for\"\"\"\n user: EvmAddress!\n\n \"\"\"The filter for the user position\"\"\"\n filter: UserPositionsRequestFilter!\n\n \"\"\"The ordering for the positions\"\"\"\n orderBy: UserPositionsRequestOrderBy! = {created: ASC}\n}\n\ninput UserPositionsRequestFilter @oneOf {\n tokens: [Erc20Input!]\n chainIds: [ChainId!]\n}\n\ninput UserPositionsRequestOrderBy @oneOf {\n created: OrderDirection\n balance: OrderDirection\n netApy: OrderDirection\n healthFactor: OrderDirection\n netCollateral: OrderDirection\n}\n\ninput UserSpokeInput {\n spoke: SpokeId!\n user: EvmAddress!\n}\n\ntype UserSummary {\n totalPositions: Int!\n\n \"\"\"Net balance = supply - debt\"\"\"\n netBalance(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"Total supply where is_collateral is true\"\"\"\n totalCollateral(currency: Currency! = USD): FiatAmount!\n\n \"\"\"Total supplied across all positions\"\"\"\n totalSupplied(currency: Currency! = USD): FiatAmount!\n\n \"\"\"Total debt across all positions\"\"\"\n totalDebt(currency: Currency! = USD): FiatAmount!\n\n \"\"\"\n Net APY = (Σ (supplied_amount_i * supply_apy_i) - Σ (borrowed_amount_j * borrow_apy_j)) / (Σ supplied_amount_i)\n \"\"\"\n netApy: PercentNumber!\n\n \"\"\"Interest earned (net fee earned)\"\"\"\n netFeeEarned: FiatAmount!\n\n \"\"\"Lowest health factor across all positions\"\"\"\n lowestHealthFactor: BigDecimal\n}\n\ninput UserSummaryFilter @oneOf {\n spoke: SpokeInput\n spokeId: SpokeId\n chainIds: [ChainId!]\n userPositionId: UserPositionId\n}\n\ntype UserSummaryHistoryItem {\n healthFactor: BigDecimal\n date: DateTime!\n\n \"\"\"The aggregated net balance for the time period\"\"\"\n netBalance(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The aggregated borrows for the time period\"\"\"\n borrows(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The aggregated supplies for the time period\"\"\"\n supplies(currency: Currency! = USD): FiatAmount!\n}\n\ninput UserSummaryHistoryRequest {\n user: EvmAddress!\n filter: UserSummaryFilter\n window: TimeWindow! = LAST_DAY\n}\n\ninput UserSummaryRequest {\n user: EvmAddress!\n filter: UserSummaryFilter\n}\n\ninput UserSuppliesQueryRequest @oneOf {\n userSpoke: UserSpokeInput\n userToken: UserToken\n userPositionId: UserPositionId\n userChains: UserChains\n}\n\ninput UserSuppliesRequest {\n query: UserSuppliesQueryRequest!\n orderBy: UserSuppliesRequestOrderBy! = {amount: DESC}\n\n \"\"\"If you wish to include zero balances in the results\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserSuppliesRequestOrderBy @oneOf {\n assetName: OrderDirection\n created: OrderDirection\n amount: OrderDirection\n apy: OrderDirection\n}\n\ntype UserSupplyItem {\n \"\"\"The user supply item id\"\"\"\n id: UserSupplyItemId!\n\n \"\"\"The reserve supplied to\"\"\"\n reserve: Reserve!\n\n \"\"\"The amount supplied to this reserve\"\"\"\n principal: Erc20Amount!\n\n \"\"\"The overall amount you can withdraw, including accrued interests\"\"\"\n withdrawable: Erc20Amount!\n\n \"\"\"The interest amount earned on supplying\"\"\"\n interest: Erc20Amount!\n\n \"\"\"If this supply is used as collateral\"\"\"\n isCollateral: Boolean!\n\n \"\"\"\n When the supply was created.\n This is null if they have no supply item, for\n example, when using include_zero_balances this comes\n back as principal and withdrawable as 0\n \"\"\"\n createdAt: DateTime\n}\n\nscalar UserSupplyItemId\n\ninput UserSwapsRequest {\n chainId: ChainId!\n user: EvmAddress!\n filterBy: [SwapStatusFilter!]\n pageSize: PageSize! = FIFTY\n cursor: Cursor\n}\n\ninput UserToken {\n user: EvmAddress!\n token: Erc20Input!\n}\n\ntype UsingAsCollateralActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n enabledAsCollateral: Boolean!\n chain: Chain!\n}\n\ntype WithdrawActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n withdrawn: Erc20Amount!\n chain: Chain!\n}\n\ninput WithdrawRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount withdrawing\"\"\"\n amount: WithdrawReserveAmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput WithdrawReserveAmountInput @oneOf {\n \"\"\"The native amount\"\"\"\n native: AmountInput\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: AmountInput\n}","import { buildSchema } from 'graphql';\n\nimport schemaSDL from '../schema.graphql';\n\n/**\n * @internal\n */\nexport const schema = buildSchema(schemaSDL);\n"]}
|
|
1
|
+
{"version":3,"sources":["../schema.graphql","../src/test-utils.ts"],"names":["schema_default","schema","buildSchema"],"mappings":"4CAAA,IAAAA,CAAAA,CAAA,CAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;A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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;GCOO,IAAMC,CAAAA,CAASC,oBAAYF,CAAS","file":"test-utils.cjs","sourcesContent":["type APYSample {\n date: DateTime!\n avgRate: PercentNumber!\n}\n\ninput ActivitiesRequest {\n query: ActivitiesRequestQuery!\n user: EvmAddress\n types: [ActivityFeedType!]! = [BORROW, SUPPLY, WITHDRAW, REPAY, LIQUIDATED, SET_AS_COLLATERAL]\n pageSize: PageSize! = FIFTY\n cursor: Cursor\n}\n\ninput ActivitiesRequestQuery @oneOf {\n hub: HubInput\n hubId: HubId\n spoke: SpokeInput\n spokeId: SpokeId\n chainIds: [ChainId!]\n txHash: TxHashInput\n}\n\nenum ActivityFeedType {\n SUPPLY\n BORROW\n REPAY\n WITHDRAW\n LIQUIDATED\n SET_AS_COLLATERAL\n}\n\nunion ActivityItem = BorrowActivity | SupplyActivity | WithdrawActivity | RepayActivity | LiquidatedActivity | UsingAsCollateralActivity\n\nscalar AlwaysTrue\n\ninput AmountInput @oneOf {\n \"\"\"Exact amount\"\"\"\n exact: BigDecimal\n\n \"\"\"Max amount\"\"\"\n max: AlwaysTrue\n}\n\nenum ApyMetric {\n HIGHEST\n LOWEST\n AVERAGE\n}\n\ntype Asset {\n id: AssetId!\n token: Erc20Token!\n summary: AssetSummary!\n price(currency: Currency! = USD): FiatAmountWithChange!\n}\n\ninput AssetBorrowHistoryRequest {\n query: AssetBorrowHistoryRequestQuery!\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetBorrowHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetBorrowSample {\n date: DateTime!\n amount: DecimalNumber!\n}\n\nscalar AssetId\n\ninput AssetPriceHistoryRequest {\n query: AssetPriceHistoryRequestQuery!\n currency: Currency! = USD\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetPriceHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetPriceSample {\n date: DateTime!\n price: BigDecimal!\n}\n\ninput AssetRequest {\n query: AssetRequestQuery!\n}\n\ninput AssetRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetSummary {\n totalSupplyCap: DecimalNumberWithChange!\n totalSupplied: DecimalNumberWithChange!\n totalSuppliable: DecimalNumberWithChange!\n totalBorrowCap: DecimalNumberWithChange!\n totalBorrowed: DecimalNumberWithChange!\n totalBorrowable: DecimalNumberWithChange!\n totalSuppliedFiat(currency: Currency! = USD): FiatAmountWithChange!\n totalBorrowedFiat(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The supply APY dependent on what you pass in for the `metric`\"\"\"\n supplyApy(metric: ApyMetric! = AVERAGE): PercentNumber!\n\n \"\"\"The borrow APY dependent on what you pass in for the `metric`\"\"\"\n borrowApy(metric: ApyMetric! = AVERAGE): PercentNumber!\n}\n\ninput AssetSupplyHistoryRequest {\n query: AssetSupplyHistoryRequestQuery!\n window: TimeWindow! = LAST_DAY\n}\n\ninput AssetSupplyHistoryRequestQuery @oneOf {\n token: Erc20Input\n assetId: AssetId\n}\n\ntype AssetSupplySample {\n date: DateTime!\n amount: DecimalNumber!\n}\n\nscalar BigDecimal\n\nscalar BigInt\n\nscalar BlockchainData\n\ninput BorrowAPYHistoryRequest {\n reserve: ReserveId!\n window: TimeWindow! = LAST_DAY\n}\n\ntype BorrowActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n borrowed: Erc20Amount!\n chain: Chain!\n}\n\ninput BorrowRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveAmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput CancelIntentSwapInput {\n id: SwapId!\n signature: Signature!\n}\n\nunion CancelSwapExecutionPlan = TransactionRequest | SwapCancelled\n\ninput CancelSwapRequest @oneOf {\n intent: CancelIntentSwapInput\n transaction: SwapId\n}\n\ntype CancelSwapTypeDefinition {\n EIP712Domain: [TypeField!]!\n OrderCancellations: [TypeField!]!\n}\n\ntype CancelSwapTypedData {\n types: CancelSwapTypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: JSON!\n}\n\ntype Chain {\n name: String!\n icon: String!\n chainId: ChainId!\n explorerUrl: String!\n isTestnet: Boolean!\n nativeWrappedToken: EvmAddress!\n nativeInfo: TokenInfo!\n nativeGateway: EvmAddress!\n signatureGateway: EvmAddress!\n rpcUrl: String!\n}\n\n\"\"\"A supported blockchain chain ID\"\"\"\nscalar ChainId\n\ninput ChainRequest {\n \"\"\"The chain id\"\"\"\n chainId: ChainId!\n}\n\nenum ChainsFilter {\n TESTNET_ONLY\n MAINNET_ONLY\n ALL\n}\n\nenum Currency {\n USD\n GBP\n EUR\n}\n\nscalar Cursor\n\nscalar DateTime\n\ntype DecimalNumber {\n \"\"\"The on-chain representation of `value`, stored as an integer.\"\"\"\n onChainValue: BigInt!\n\n \"\"\"\n The number of decimals defining how many fractional digits the number supports.\n \"\"\"\n decimals: Int!\n\n \"\"\"The normalized value computed as `onChainValue / 10^decimals`.\"\"\"\n value: BigDecimal!\n}\n\ntype DecimalNumberWithChange {\n current: DecimalNumber!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype DomainData {\n name: String!\n version: String!\n chainId: ChainId!\n verifyingContract: EvmAddress!\n}\n\ninput ERC20PermitSignature {\n \"\"\"The signature for the erc721\"\"\"\n value: Signature!\n\n \"\"\"The deadline for the erc721\"\"\"\n deadline: Int!\n}\n\ntype Erc20Amount {\n \"\"\"The value\"\"\"\n amount: DecimalNumber!\n\n \"\"\"The fiat amount\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The fiat rate\"\"\"\n fiatRate(currency: Currency! = USD): DecimalNumber!\n isWrappedNative: Boolean!\n token: Erc20Token!\n}\n\ntype Erc20ApprovalRequired {\n \"\"\"The transaction requires an approval first\"\"\"\n transaction: TransactionRequest!\n\n \"\"\"The reason for the approval\"\"\"\n reason: String!\n\n \"\"\"The required amount missing to be able to do the original transaction\"\"\"\n requiredAmount: DecimalNumber!\n\n \"\"\"The current allowance approved\"\"\"\n currentAllowance: DecimalNumber!\n\n \"\"\"The transaction to send after the approval is complete\"\"\"\n originalTransaction: TransactionRequest!\n}\n\ninput Erc20Input {\n \"\"\"The token address\"\"\"\n address: EvmAddress!\n\n \"\"\"The token chain id\"\"\"\n chainId: ChainId!\n}\n\ntype Erc20Token {\n \"\"\"The token address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain its deployed to\"\"\"\n chain: Chain!\n\n \"\"\"The ERC20 token info\"\"\"\n info: TokenInfo!\n\n \"\"\"\n The protocol only deals with ERC20 this allows you to understand if\n the token is a wrapped native token to allow you to maybe change `WETH` > `ETH`\n on the display screen, or whatever you decide makes sense\n \"\"\"\n isWrappedNativeToken: Boolean!\n\n \"\"\"If permit is supported for the ERC20 token\"\"\"\n permitSupported: Boolean!\n}\n\nscalar EvmAddress\n\ninput ExchangeRateRequest {\n \"\"\"The from criteria\"\"\"\n from: ExchangeRateRequestFrom!\n\n \"\"\"The currency to get the result in\"\"\"\n to: Currency!\n\n \"\"\"\n The date time to get the exchange rate at, if not provided the latest rate is returned\n \"\"\"\n at: DateTime\n}\n\ninput ExchangeRateRequestFrom @oneOf {\n \"\"\"The currency\"\"\"\n fiat: Currency\n\n \"\"\"The erc20 token\"\"\"\n erc20: Erc20Input\n\n \"\"\"The native token\"\"\"\n native: ChainId\n}\n\nunion ExecutionPlan = TransactionRequest | Erc20ApprovalRequired | PreContractActionRequired | InsufficientBalanceError\n\ntype FiatAmount {\n value: BigDecimal!\n name: String!\n symbol: String!\n}\n\ntype FiatAmountValueVariation {\n current: FiatAmount!\n after: FiatAmount!\n}\n\ntype FiatAmountWithChange {\n current: FiatAmount!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ninput ForkTopUpErc20 {\n \"\"\"The token address\"\"\"\n currency: EvmAddress!\n\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction\n \"\"\"\n value: BigDecimal!\n}\n\ninput ForkTopUpRequest {\n \"\"\"The address you want the funds to be topped up against\"\"\"\n user: EvmAddress!\n\n \"\"\"The erc20 information\"\"\"\n erc20: ForkTopUpErc20\n\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction\n \"\"\"\n native: BigDecimal\n}\n\ntype ForkTopUpResponse {\n message: String!\n\n \"\"\"The tx hash of the newly created transaction\"\"\"\n txHash: String\n}\n\ninput HasProcessedKnownTransactionRequest {\n \"\"\"\n The operation types this is given to you on the TransactionRequest::operations\n \"\"\"\n operations: [OperationType!]!\n\n \"\"\"The tx hash\"\"\"\n txHash: TxHash!\n}\n\ntype HealthFactorError {\n reason: String!\n current: BigDecimal\n after: BigDecimal\n}\n\nunion HealthFactorResult = HealthFactorVariation | HealthFactorError\n\ntype HealthFactorVariation {\n current: BigDecimal\n after: BigDecimal\n}\n\ntype HealthFactorWithChange {\n current: BigDecimal\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype Hub {\n \"\"\"The id for the hub\"\"\"\n id: HubId!\n\n \"\"\"The hub name\"\"\"\n name: String!\n\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain the hub is deployed on\"\"\"\n chain: Chain!\n\n \"\"\"The hub summary\"\"\"\n summary(currency: Currency! = USD): HubSummary!\n}\n\ntype HubAsset {\n \"\"\"The id for the hub asset\"\"\"\n id: HubAssetId!\n\n \"\"\"The onchain asset id\"\"\"\n onchainAssetId: OnChainHubAssetId!\n\n \"\"\"The hub\"\"\"\n hub: Hub!\n\n \"\"\"The underlying token\"\"\"\n underlying: Erc20Token!\n\n \"\"\"The hub asset summary\"\"\"\n summary: HubAssetSummary!\n\n \"\"\"The hub asset settings\"\"\"\n settings: HubAssetSettings!\n userState: HubAssetUserState\n}\n\nscalar HubAssetId\n\ntype HubAssetSettings {\n \"\"\"The fee receiver\"\"\"\n feeReceiver: EvmAddress!\n\n \"\"\"The liquidity fee\"\"\"\n liquidityFee: PercentNumber!\n\n \"\"\"The ir strategy\"\"\"\n irStrategy: EvmAddress!\n\n \"\"\"The reinvestment strategy\"\"\"\n reinvestmentController: EvmAddress\n}\n\ntype HubAssetSummary {\n \"\"\"The supplied amount\"\"\"\n supplied: Erc20Amount!\n\n \"\"\"The borrowed amount\"\"\"\n borrowed: Erc20Amount!\n\n \"\"\"The available liquidity\"\"\"\n availableLiquidity: Erc20Amount!\n\n \"\"\"The supply APY\"\"\"\n supplyApy: PercentNumber!\n\n \"\"\"The borrow APY\"\"\"\n borrowApy: PercentNumber!\n\n \"\"\"The net APY\"\"\"\n netApy: PercentNumber!\n\n \"\"\"The utilization rate\"\"\"\n utilizationRate: PercentNumber!\n}\n\ntype HubAssetUserState {\n \"\"\"The hub asset balance\"\"\"\n balance: Erc20Amount!\n}\n\ninput HubAssetsRequest {\n query: HubAssetsRequestQuery!\n user: EvmAddress\n orderBy: HubAssetsRequestOrderBy! = {assetName: ASC}\n}\n\ninput HubAssetsRequestOrderBy @oneOf {\n assetName: OrderDirection\n availableLiquidity: OrderDirection\n supplyApy: OrderDirection\n borrowApy: OrderDirection\n}\n\ninput HubAssetsRequestQuery @oneOf {\n hubInput: HubInput\n hubId: HubId\n}\n\nscalar HubId\n\ninput HubIdTokenInput {\n hubId: HubId!\n token: EvmAddress!\n}\n\ninput HubInput {\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The hub chain id\"\"\"\n chainId: ChainId!\n}\n\ninput HubRequest {\n query: HubRequestQuery!\n}\n\ninput HubRequestQuery @oneOf {\n hubInput: HubInput\n hubId: HubId\n}\n\ntype HubSummary {\n \"\"\"\n The total spoke reserves aggregated borrowed using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalBorrowed: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated borrow caps using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalBorrowCap: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated supplied using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalSupplied: FiatAmount!\n\n \"\"\"\n The total spoke reserves aggregated supply caps using this hub, showed in fiat as each asset has a different value\n \"\"\"\n totalSupplyCap: FiatAmount!\n\n \"\"\"\n The utilization rate\"\n \"\"\"\n utilizationRate: BigDecimal!\n}\n\ninput HubTokenInput {\n chainId: ChainId!\n hub: EvmAddress!\n token: EvmAddress!\n}\n\ninput HubsRequest {\n query: HubsRequestQuery!\n orderBy: HubsRequestOrderBy! = {name: ASC}\n}\n\ninput HubsRequestOrderBy @oneOf {\n name: OrderDirection\n totalBorrowed: OrderDirection\n totalSupplied: OrderDirection\n}\n\ninput HubsRequestQuery @oneOf {\n \"\"\"Get back all the hubs which have one of the underlying tokens supplied\"\"\"\n tokens: [Erc20Input!]\n\n \"\"\"Get back all the hubs based on the chain ids passed in\"\"\"\n chainIds: [ChainId!]\n}\n\ntype InsufficientBalanceError {\n \"\"\"The amount required to do the original transaction\"\"\"\n required: DecimalNumber!\n\n \"\"\"The amount available in the wallet\"\"\"\n available: DecimalNumber!\n}\n\n\"\"\"A scalar that can represent any JSON value.\"\"\"\nscalar JSON\n\ninput LiquidatePositionDebtAmount @oneOf {\n \"\"\"Exact amount\"\"\"\n exact: BigDecimal\n\n \"\"\"The most you can liquidate\"\"\"\n max: AlwaysTrue\n}\n\nunion LiquidatePositionExecutionPlan = TransactionRequest | Erc20ApprovalRequired | InsufficientBalanceError\n\ninput LiquidatePositionRequest {\n \"\"\"The collateral reserve id\"\"\"\n collateral: ReserveId!\n\n \"\"\"The debt reserve id\"\"\"\n debt: ReserveId!\n\n \"\"\"The amount to liquidate\"\"\"\n amount: LiquidatePositionDebtAmount!\n\n \"\"\"The person liquidating the position\"\"\"\n liquidator: EvmAddress!\n\n \"\"\"The user to liquidate\"\"\"\n user: EvmAddress!\n\n \"\"\"If you would like to receive shares over the asset\"\"\"\n receiveShares: Boolean! = false\n}\n\ntype LiquidatedActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n collateralReserve: ReserveInfo!\n debtReserve: ReserveInfo!\n collateral: Erc20Amount!\n debt: Erc20Amount!\n liquidator: EvmAddress!\n chain: Chain!\n}\n\ntype Mutation {\n \"\"\"Top up a balance for a user or yourself on the fork\"\"\"\n forkTopUp(request: ForkTopUpRequest!): ForkTopUpResponse!\n}\n\ntype NativeAmount {\n \"\"\"The native token\"\"\"\n token: NativeToken!\n\n \"\"\"The value\"\"\"\n amount: DecimalNumber!\n\n \"\"\"The fiat amount\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The fiat rate\"\"\"\n fiatRate(currency: Currency! = USD): DecimalNumber!\n}\n\ntype NativeToken {\n info: TokenInfo!\n chain: Chain!\n}\n\nscalar OnChainHubAssetId\n\nscalar OnChainReserveId\n\nenum OperationType {\n SPOKE_BORROW\n SPOKE_REPAY\n SPOKE_SUPPLY\n SPOKE_WITHDRAW\n SPOKE_UPDATE_USER_RISK_PREMIUM\n SPOKE_SET_USER_USING_AS_COLLATERAL\n SPOKE_SET_USER_POSITION_MANAGER\n RENOUNCE_SPOKE_USER_POSITION_MANAGER\n LIQUIDATION\n}\n\nenum OrderDirection {\n ASC\n DESC\n}\n\nenum PageSize {\n TEN\n FIFTY\n}\n\ntype PaginatedActivitiesResult {\n items: [ActivityItem!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedResultInfo {\n \"\"\"The cursor to the previous page of results, if any.\"\"\"\n prev: Cursor\n\n \"\"\"The cursor to the next page of results, if any.\"\"\"\n next: Cursor\n}\n\ntype PaginatedSpokePositionManagerResult {\n items: [SpokePositionManger!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedSpokeUserPositionManagerResult {\n items: [SpokeUserPositionManager!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PaginatedUserSwapsResult {\n items: [SwapStatus!]!\n pageInfo: PaginatedResultInfo!\n}\n\ntype PercentNumber {\n \"\"\"\n The on-chain representation of the percentage, stored in basis points (bps).\n \"\"\"\n onChainValue: BigInt!\n\n \"\"\"The number of decimals defining the precision of `bps`.\"\"\"\n decimals: Int!\n\n \"\"\"The percentage value where 1.0 represents 100%.\"\"\"\n value: BigDecimal!\n\n \"\"\"The human-friendly percentage value formatted for display.\"\"\"\n normalized: BigDecimal!\n}\n\ntype PercentNumberVariation {\n current: PercentNumber!\n after: PercentNumber!\n}\n\ntype PercentNumberWithChange {\n current: PercentNumber!\n change(window: TimeWindow! = LAST_DAY): PercentNumber!\n}\n\ntype PermitMessageData {\n owner: EvmAddress!\n spender: EvmAddress!\n value: BigInt!\n nonce: BigInt!\n deadline: Int!\n}\n\ninput PermitRequest @oneOf {\n supply: SupplyPermitRequest\n repay: RepayPermitRequest\n}\n\ntype PermitTypedDataResponse {\n types: TypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: PermitMessageData!\n}\n\ntype PreContractActionRequired {\n \"\"\"The transaction requires a pre-contract action first\"\"\"\n transaction: TransactionRequest!\n\n \"\"\"The reason for the pre-contract action\"\"\"\n reason: String!\n\n \"\"\"The transaction to send after the approval is complete\"\"\"\n originalTransaction: TransactionRequest!\n}\n\ninput PrepareLimitOrderSwapInput {\n quoteId: SwapQuoteId!\n newSellAmount: BigDecimal\n newBuyAmount: BigDecimal\n\n \"\"\"Slippage in basis points\"\"\"\n newSlippage: BigDecimal\n newReceiver: EvmAddress\n}\n\ninput PrepareMarketOrderSwapInput {\n chainId: ChainId!\n buy: TokenInput!\n sell: TokenInput!\n amount: BigDecimal!\n kind: SwapKind!\n user: EvmAddress!\n receiver: EvmAddress\n}\n\ninput PrepareSwapCancelRequest {\n id: SwapId!\n}\n\ntype PrepareSwapCancelResult {\n data: CancelSwapTypedData!\n}\n\ninput PrepareSwapRequest @oneOf {\n market: PrepareMarketOrderSwapInput\n limit: PrepareLimitOrderSwapInput\n}\n\nunion PrepareSwapResult = SwapByIntent | SwapByIntentWithApprovalRequired | SwapByTransaction | InsufficientBalanceError\n\ninput PreviewAction @oneOf {\n supply: SupplyRequest\n borrow: BorrowRequest\n repay: RepayRequest\n withdraw: WithdrawRequest\n setUserSupplyAsCollateral: SetUserSupplyAsCollateralRequest\n}\n\ninput PreviewRequest {\n action: PreviewAction!\n}\n\ntype PreviewUserPosition {\n id: UserPositionId!\n healthFactor: HealthFactorResult!\n riskPremium: PercentNumberVariation!\n\n \"\"\"The net APY for one user position on a current spoke\"\"\"\n netApy: PercentNumberVariation!\n netCollateral(currency: Currency! = USD): FiatAmountValueVariation!\n netBalance(currency: Currency! = USD): FiatAmountValueVariation!\n}\n\ntype Query {\n health: Boolean!\n chain(request: ChainRequest!): Chain\n chains(filter: ChainsFilter!): [Chain!]!\n\n \"\"\"Generate EIP-712 typed data for EIP-2612 permit signature\"\"\"\n permitTypedData(request: PermitRequest!): PermitTypedDataResponse!\n\n \"\"\"Get the exchange rate of tokens > currency or currency > currency\"\"\"\n exchangeRate(request: ExchangeRateRequest!): FiatAmount!\n asset(request: AssetRequest!): Asset\n assetSupplyHistory(request: AssetSupplyHistoryRequest!): [AssetSupplySample!]!\n assetBorrowHistory(request: AssetBorrowHistoryRequest!): [AssetBorrowSample!]!\n assetPriceHistory(request: AssetPriceHistoryRequest!): [AssetPriceSample!]!\n\n \"\"\"Fetch a list of hubs depending on your search criteria\"\"\"\n hubs(request: HubsRequest!): [Hub!]!\n hub(request: HubRequest!): Hub\n hubAssets(request: HubAssetsRequest!): [HubAsset!]!\n reserve(request: ReserveRequest!): Reserve\n reserves(request: ReservesRequest!): [Reserve!]!\n supply(request: SupplyRequest!): ExecutionPlan!\n borrow(request: BorrowRequest!): ExecutionPlan!\n withdraw(request: WithdrawRequest!): ExecutionPlan!\n repay(request: RepayRequest!): ExecutionPlan!\n spokePositionManagers(request: SpokePositionManagersRequest!): PaginatedSpokePositionManagerResult!\n spokeUserPositionManagers(request: SpokeUserPositionManagersRequest!): PaginatedSpokeUserPositionManagerResult!\n setSpokeUserPositionManager(request: SetSpokeUserPositionManagerRequest!): TransactionRequest!\n renounceSpokeUserPositionManager(request: RenounceSpokeUserPositionManagerRequest!): TransactionRequest!\n setUserSupplyAsCollateral(request: SetUserSupplyAsCollateralRequest!): TransactionRequest!\n liquidatePosition(request: LiquidatePositionRequest!): LiquidatePositionExecutionPlan!\n updateUserRiskPremium(request: UpdateUserRiskPremiumRequest!): TransactionRequest!\n updateUserDynamicConfig(request: UpdateUserDynamicConfigRequest!): TransactionRequest!\n preview(request: PreviewRequest!): PreviewUserPosition!\n borrowApyHistory(request: BorrowAPYHistoryRequest!): [APYSample!]!\n supplyApyHistory(request: SupplyAPYHistoryRequest!): [APYSample!]!\n spoke(request: SpokeRequest!): Spoke\n\n \"\"\"Lists all spokes\"\"\"\n spokes(request: SpokesRequest!): [Spoke!]!\n\n \"\"\"\n Get the user balances for the protocol\n This will only return assets that can be used on the protocol\n \"\"\"\n userBalances(request: UserBalancesRequest!): [UserBalance!]!\n userBorrows(request: UserBorrowsRequest!): [UserBorrowItem!]!\n userSummary(request: UserSummaryRequest!): UserSummary!\n userSummaryHistory(request: UserSummaryHistoryRequest!): [UserSummaryHistoryItem!]!\n userPositions(request: UserPositionsRequest!): [UserPosition!]!\n userPosition(request: UserPositionRequest!): UserPosition\n userSupplies(request: UserSuppliesRequest!): [UserSupplyItem!]!\n\n \"\"\"\n This lets you know the API has processed the known transaction hash, as the API uses caching to make things as fast\n as possible, it has an invalidation task, so sometimes if the receipt is complete, we may still (rarely) serve\n old data for 100-200ms longer, it's best to query after you got the receipt to be told that it is ready to go.\n Note the invalidation is very quick, and most of the time it's present even before your receipt is returned this is to\n cater for the race condition.\n \"\"\"\n hasProcessedKnownTransaction(request: HasProcessedKnownTransactionRequest!): Boolean!\n activities(request: ActivitiesRequest!): PaginatedActivitiesResult!\n swapQuote(request: SwapQuoteRequest!): SwapQuote!\n prepareSwap(request: PrepareSwapRequest!): PrepareSwapResult!\n swap(request: SwapRequest!): SwapExecutionPlan!\n swapStatus(request: SwapStatusRequest!): SwapStatus!\n userSwaps(request: UserSwapsRequest!): PaginatedUserSwapsResult!\n prepareSwapCancel(request: PrepareSwapCancelRequest!): PrepareSwapCancelResult!\n cancelSwap(request: CancelSwapRequest!): CancelSwapExecutionPlan!\n swappableTokens(request: SwappableTokensRequest!): [Token!]!\n}\n\ninput RenounceSpokeUserPositionManagerRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The address to remove as a position manager\"\"\"\n manager: EvmAddress!\n\n \"\"\"The address to remove `manager` as position manager\"\"\"\n managing: EvmAddress!\n}\n\ntype RepayActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n repaid: Erc20Amount!\n chain: Chain!\n}\n\ninput RepayAmountInputWithPermit @oneOf {\n \"\"\"The native amount\"\"\"\n native: AmountInput\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: RepayErc20AmountInputWithPermit\n}\n\ninput RepayErc20AmountInputWithPermit {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: AmountInput!\n\n \"\"\"\n The signed ERC20 permit message to operate on the relevant token without a need for an ERC20 Approval transaction.\n \"\"\"\n permitSig: ERC20PermitSignature\n}\n\ninput RepayPermitRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount repaying\"\"\"\n amount: AmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput RepayRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount repaying\"\"\"\n amount: RepayAmountInputWithPermit!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ntype Reserve {\n id: ReserveId!\n onChainId: OnChainReserveId!\n borrowCap: BigDecimal!\n supplyCap: BigDecimal!\n chain: Chain!\n summary: ReserveSummary!\n settings: ReserveSettings!\n status: ReserveStatus!\n canBorrow: Boolean!\n canSupply: Boolean!\n canUseAsCollateral: Boolean!\n userState: ReserveUserState\n asset: HubAsset!\n spoke: Spoke!\n}\n\ninput ReserveAmountInput @oneOf {\n \"\"\"The native amount\"\"\"\n native: BigDecimal\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: ReserveErc20AmountInput\n}\n\ninput ReserveAmountInputWithPermit @oneOf {\n \"\"\"The native amount\"\"\"\n native: BigDecimal\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: ReserveErc20AmountInputWithPermit\n}\n\ninput ReserveErc20AmountInput {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: BigDecimal!\n}\n\ninput ReserveErc20AmountInputWithPermit {\n \"\"\"\n Token value in its main unit (e.g., 1.5 DAI), not in the smallest fraction (e.g., wei).\n \"\"\"\n value: BigDecimal!\n\n \"\"\"\n The signed ERC20 permit message to operate on the relevant token without a need for an ERC20 Approval transaction.\n \"\"\"\n permitSig: ERC20PermitSignature\n}\n\nscalar ReserveId\n\ntype ReserveInfo {\n id: ReserveId!\n asset: HubAsset!\n}\n\ninput ReserveInput {\n chainId: ChainId!\n spoke: EvmAddress!\n onChainId: OnChainReserveId!\n}\n\ninput ReserveRequest {\n query: ReserveRequestQuery!\n\n \"\"\"\n The user who is doing the query (this injects user state into some of the return objects)\n \"\"\"\n user: EvmAddress\n}\n\ninput ReserveRequestQuery @oneOf {\n reserveId: ReserveId\n reserveInput: ReserveInput\n}\n\ntype ReserveSettings {\n collateralFactor: PercentNumber!\n maxLiquidationBonus: PercentNumber!\n collateralRisk: PercentNumber!\n borrowable: Boolean!\n collateral: Boolean!\n suppliable: Boolean!\n}\n\ntype ReserveStatus {\n frozen: Boolean!\n paused: Boolean!\n active: Boolean!\n}\n\ntype ReserveSummary {\n supplied: Erc20Amount!\n borrowed: Erc20Amount!\n supplyApy: PercentNumber!\n borrowApy: PercentNumber!\n}\n\ntype ReserveUserState {\n balance: Erc20Amount!\n suppliable: Erc20Amount!\n borrowable: Erc20Amount!\n borrowApy: PercentNumber!\n}\n\ninput ReservesRequest {\n \"\"\"The reserve's request query\"\"\"\n query: ReservesRequestQuery!\n\n \"\"\"\n The user who is doing the query (this injects user state into some of the return objects)\n \"\"\"\n user: EvmAddress\n\n \"\"\"The reserve's filter\"\"\"\n filter: ReservesRequestFilter! = ALL\n\n \"\"\"The reserve's order by\"\"\"\n orderBy: ReservesRequestOrderBy! = {assetName: ASC}\n}\n\nenum ReservesRequestFilter {\n SUPPLY\n BORROW\n ALL\n}\n\ninput ReservesRequestOrderBy @oneOf {\n assetName: OrderDirection\n userBalance: OrderDirection\n supplyApy: OrderDirection\n supplyAvailable: OrderDirection\n borrowApy: OrderDirection\n borrowAvailable: OrderDirection\n collateralFactor: OrderDirection\n}\n\ninput ReservesRequestQuery @oneOf {\n \"\"\"Get all the reserves for a spoke\"\"\"\n spoke: SpokeInput\n\n \"\"\"Get all the reserves for a spoke\"\"\"\n spokeId: SpokeId\n\n \"\"\"Get all the reserves with underlying tokens\"\"\"\n tokens: [Erc20Input!]\n\n \"\"\"Get all the reserves on a hub for an underlying\"\"\"\n hubToken: HubTokenInput\n\n \"\"\"Get all the reserves on a hub for an underlying by a hub id\"\"\"\n hubIdToken: HubIdTokenInput\n\n \"\"\"Get all the reserves on a list of chains\"\"\"\n chainIds: [ChainId!]\n\n \"\"\"Get all the reserves for a spoke for an underlying\"\"\"\n spokeToken: SpokeTokenInput\n\n \"\"\"Get all reserves on a hub\"\"\"\n hub: HubInput\n\n \"\"\"Get all reserves with a hub id\"\"\"\n hubId: HubId\n\n \"\"\"Get all the reserves on based on user position id\"\"\"\n userPositionId: UserPositionId\n}\n\ninput SetSpokeUserPositionManagerRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The address to become the position manager\"\"\"\n manager: EvmAddress!\n\n \"\"\"Approve or remove the manager\"\"\"\n approve: Boolean!\n\n \"\"\"The user to set the position `manager` for\"\"\"\n user: EvmAddress!\n\n \"\"\"The signature\"\"\"\n signature: ERC20PermitSignature\n}\n\ninput SetUserSupplyAsCollateralRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If you want to enable the collateral or disable\"\"\"\n enableCollateral: Boolean!\n}\n\nscalar Signature\n\ntype Spoke {\n \"\"\"The id for the spoke\"\"\"\n id: SpokeId!\n\n \"\"\"The spoke name (offchain)\"\"\"\n name: String!\n\n \"\"\"The spoke address\"\"\"\n address: EvmAddress!\n\n \"\"\"The spoke chain\"\"\"\n chain: Chain!\n}\n\nscalar SpokeId\n\ninput SpokeInput {\n \"\"\"The address of the spoke\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain id the spoke is deployed to\"\"\"\n chainId: ChainId!\n}\n\ninput SpokePositionManagersRequest {\n spoke: SpokeId!\n includeInactive: Boolean\n pageSize: PageSize!\n cursor: Cursor\n}\n\ntype SpokePositionManger {\n name: String!\n address: EvmAddress!\n active: Boolean!\n}\n\ninput SpokeRequest {\n \"\"\"The spoke request query\"\"\"\n query: SpokeRequestQuery!\n}\n\ninput SpokeRequestQuery @oneOf {\n spoke: SpokeInput\n spokeId: SpokeId\n}\n\ninput SpokeTokenInput {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The token\"\"\"\n token: EvmAddress!\n}\n\ntype SpokeUserPositionManager {\n name: String!\n address: EvmAddress!\n approvedOn: DateTime!\n active: Boolean!\n}\n\ninput SpokeUserPositionManagersRequest {\n spoke: SpokeId!\n user: EvmAddress!\n pageSize: PageSize!\n cursor: Cursor\n}\n\ninput SpokesRequest {\n query: SpokesRequestQuery!\n}\n\ninput SpokesRequestQuery @oneOf {\n \"\"\"\n The hub id\n Get all the spokes which hubs are linked to a spoke reserve\n \"\"\"\n hubId: HubId\n\n \"\"\"\n The hub address and chain id\n Get all the spokes which hubs are linked to a spoke reserve\n \"\"\"\n hub: HubInput\n\n \"\"\"\n The chain ids\n Get all the spokes which are on the list of chain ids\n \"\"\"\n chainIds: [ChainId!]\n}\n\ninput SupplyAPYHistoryRequest {\n reserve: ReserveId!\n window: TimeWindow! = LAST_DAY\n}\n\ntype SupplyActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n supplied: Erc20Amount!\n chain: Chain!\n}\n\ninput SupplyPermitRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveErc20AmountInput!\n\n \"\"\"If you wish to enable collateral with it meaning you can borrow\"\"\"\n enableCollateral: Boolean! = true\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput SupplyRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount supplying\"\"\"\n amount: ReserveAmountInputWithPermit!\n\n \"\"\"If you wish to enable collateral with it meaning you can borrow\"\"\"\n enableCollateral: Boolean! = true\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ntype SwapApprovalRequired {\n approval: TransactionRequest!\n originalTransaction: SwapTransactionRequest!\n}\n\ntype SwapByIntent {\n quote: SwapQuote!\n data: SwapByIntentTypedData!\n}\n\ninput SwapByIntentInput {\n quoteId: SwapQuoteId!\n signature: Signature!\n}\n\ntype SwapByIntentTypeDefinition {\n EIP712Domain: [TypeField!]!\n Order: [TypeField!]!\n}\n\ntype SwapByIntentTypedData {\n types: SwapByIntentTypeDefinition!\n primaryType: String!\n domain: DomainData!\n message: JSON!\n}\n\ntype SwapByIntentWithApprovalRequired {\n quote: SwapQuote!\n approval: TransactionRequest!\n data: SwapByIntentTypedData!\n}\n\ntype SwapByTransaction {\n quote: SwapQuote!\n}\n\ntype SwapCancelled {\n createdAt: DateTime!\n cancelledAt: DateTime\n explorerLink: String!\n}\n\nunion SwapExecutionPlan = SwapTransactionRequest | SwapApprovalRequired | InsufficientBalanceError | SwapReceipt\n\ntype SwapExpired {\n createdAt: DateTime!\n expiredAt: DateTime!\n explorerLink: String!\n}\n\ntype SwapFulfilled {\n txHash: String!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n sold: TokenAmount!\n bought: TokenAmount!\n createdAt: DateTime!\n fulfilledAt: DateTime!\n explorerLink: String!\n refundTxHash: TxHash\n}\n\nscalar SwapId\n\nenum SwapKind {\n BUY\n SELL\n}\n\ntype SwapOpen {\n swapId: SwapId!\n createdAt: DateTime!\n deadline: DateTime!\n explorerLink: String!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n}\n\ntype SwapPendingSignature {\n createdAt: DateTime!\n deadline: DateTime!\n explorerLink: String!\n}\n\ntype SwapQuote {\n quoteId: SwapQuoteId!\n suggestedSlippage: PercentNumber!\n desiredSell: TokenAmount!\n desiredBuy: TokenAmount!\n costs: SwapQuoteCosts!\n\n \"\"\"Minimum received amount after all costs and slippage\"\"\"\n minimumReceived: TokenAmount!\n}\n\ntype SwapQuoteCosts {\n \"\"\"Network and provider costs\"\"\"\n networkCosts: TokenAmount!\n\n \"\"\"Aave partner fee amount\"\"\"\n partnerFee: TokenAmount!\n}\n\nscalar SwapQuoteId\n\ninput SwapQuoteRequest {\n chainId: ChainId!\n buy: TokenInput!\n sell: TokenInput!\n amount: BigDecimal!\n kind: SwapKind\n from: EvmAddress!\n receiver: EvmAddress\n}\n\ntype SwapReceipt {\n id: SwapId!\n createdAt: DateTime!\n explorerLink: String!\n}\n\ninput SwapRequest @oneOf {\n intent: SwapByIntentInput\n transaction: SwapWithTransactionInput\n}\n\nunion SwapStatus = SwapOpen | SwapPendingSignature | SwapCancelled | SwapExpired | SwapFulfilled\n\nenum SwapStatusFilter {\n CANCELLED\n EXPIRED\n FULFILLED\n OPEN\n PENDING_SIGNATURE\n}\n\ninput SwapStatusRequest {\n id: SwapId!\n}\n\ntype SwapTransactionRequest {\n transaction: TransactionRequest!\n orderReceipt: SwapReceipt!\n}\n\ninput SwapWithTransactionInput {\n quoteId: SwapQuoteId!\n permitSig: Signature\n\n \"\"\"\n Whether the swap order creator is a smart contract wallet. If not provided, it will be inferred following the ERC-1271 standard.\n \"\"\"\n isSenderSmartContractWallet: Boolean\n}\n\ninput SwappableTokenInput @oneOf {\n native: ChainId\n erc20: Erc20Input\n}\n\ninput SwappableTokensRequest {\n query: SwappableTokensRequestQuery\n}\n\ninput SwappableTokensRequestQuery @oneOf {\n chainIds: [ChainId!]\n from: SwappableTokenInput\n to: SwappableTokenInput\n}\n\nenum TimeWindow {\n LAST_DAY\n LAST_WEEK\n LAST_MONTH\n LAST_SIX_MONTHS\n LAST_YEAR\n ALL\n}\n\nunion Token = NativeToken | Erc20Token\n\nunion TokenAmount = NativeAmount | Erc20Amount\n\ntype TokenInfo {\n \"\"\"The token name\"\"\"\n name: String!\n\n \"\"\"The token symbol\"\"\"\n symbol: String!\n\n \"\"\"The token icon\"\"\"\n icon: String!\n\n \"\"\"The token decimals\"\"\"\n decimals: Int!\n}\n\ninput TokenInput @oneOf {\n \"\"\"Native token\"\"\"\n native: AlwaysTrue\n\n \"\"\"The erc20 address\"\"\"\n erc20: EvmAddress\n}\n\ntype TransactionRequest {\n to: EvmAddress!\n from: EvmAddress!\n data: BlockchainData!\n value: BigInt!\n chainId: ChainId!\n operations: [OperationType!]\n}\n\nscalar TxHash\n\ninput TxHashInput {\n txHash: TxHash!\n chainId: ChainId!\n}\n\ntype TypeDefinition {\n EIP712Domain: [TypeField!]!\n Permit: [TypeField!]!\n}\n\ntype TypeField {\n name: String!\n type: String!\n}\n\ninput UpdateUserDynamicConfigRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If not supplied, this will use `sender` which is the normal route\"\"\"\n onBehalfOf: EvmAddress\n}\n\ninput UpdateUserRiskPremiumRequest {\n \"\"\"The spoke id\"\"\"\n spoke: SpokeId!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n\n \"\"\"If not supplied, this will use `sender` which is the normal route\"\"\"\n onBehalfOf: EvmAddress\n}\n\ntype UserBalance {\n \"\"\"The user balance id\"\"\"\n id: UserBalanceId!\n\n \"\"\"The token info\"\"\"\n info: TokenInfo!\n\n \"\"\"The balances across chains it will be 1 item per chain\"\"\"\n balances: [TokenAmount!]!\n\n \"\"\"The total amount summed across all balances\"\"\"\n totalAmount: DecimalNumber!\n\n \"\"\"The total fiat amount summed across all balances\"\"\"\n fiatAmount(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The supply APY dependent on what you pass in for the `metric`\"\"\"\n supplyApy(metric: ApyMetric! = HIGHEST): PercentNumber!\n\n \"\"\"The borrow APY dependent on what you pass in for the `metric`\"\"\"\n borrowApy(metric: ApyMetric! = HIGHEST): PercentNumber!\n}\n\nscalar UserBalanceId\n\ninput UserBalancesByChains {\n \"\"\"List of chains\"\"\"\n chainIds: [ChainId!]!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesByHub {\n \"\"\"The hub address\"\"\"\n address: EvmAddress!\n\n \"\"\"The hub chain id\"\"\"\n chainId: ChainId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesByHubId {\n \"\"\"The hub id\"\"\"\n hubId: HubId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesBySpoke {\n \"\"\"The spoke address\"\"\"\n address: EvmAddress!\n\n \"\"\"The chain id the spoke is deployed to\"\"\"\n chainId: ChainId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesByUserPosition {\n \"\"\"The user position id\"\"\"\n userPositionId: UserPositionId!\n\n \"\"\"\n The type of reserve to use when determine the tokens to retrieve balances for\n \"\"\"\n byReservesType: ReservesRequestFilter! = ALL\n}\n\ninput UserBalancesRequest {\n \"\"\"The user to get the balance for\"\"\"\n user: EvmAddress!\n\n \"\"\"The order by clause - defaults to the highest USD value\"\"\"\n orderBy: UserBalancesRequestOrderBy! = {balance: DESC}\n\n \"\"\"The user balance filter\"\"\"\n filter: UserBalancesRequestFilter!\n\n \"\"\"If you want to include 0 balances in the return list\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserBalancesRequestFilter @oneOf {\n \"\"\"The balances for the tokens on the specified chains\"\"\"\n chains: UserBalancesByChains\n\n \"\"\"The balances for the tokens of hub assets on a given hub\"\"\"\n hub: UserBalancesByHub\n\n \"\"\"The balances for the tokens of the hub assets on a given hub id\"\"\"\n hubId: UserBalancesByHubId\n\n \"\"\"The balances for the tokens of reserves attached to a spoke\"\"\"\n spoke: UserBalancesBySpoke\n\n \"\"\"The balances for the swappable tokens\"\"\"\n swappable: SwappableTokensRequestQuery\n\n \"\"\"\n The balances for the tokens of the spoke associated with the given user position\n \"\"\"\n userPosition: UserBalancesByUserPosition\n}\n\ninput UserBalancesRequestOrderBy @oneOf {\n \"\"\"The name of the token\"\"\"\n name: OrderDirection\n\n \"\"\"The balance of the token\"\"\"\n balance: OrderDirection\n}\n\ntype UserBorrowItem {\n \"\"\"The user borrow item id\"\"\"\n id: UserBorrowItemId!\n\n \"\"\"The reserve borrowed from\"\"\"\n reserve: Reserve!\n\n \"\"\"The amount borrowed on this reserve\"\"\"\n principal: Erc20Amount!\n\n \"\"\"The overall debt including accrued interests\"\"\"\n debt: Erc20Amount!\n\n \"\"\"The interest incurred on the loan\"\"\"\n interest: Erc20Amount!\n\n \"\"\"\n When the borrow was created.\n This is null if they have no supply item, for\n example, when using include_zero_balances this comes\n back as principal and debt as 0\n \"\"\"\n createdAt: DateTime\n}\n\nscalar UserBorrowItemId\n\ninput UserBorrowsQueryRequest @oneOf {\n userSpoke: UserSpokeInput\n userToken: UserToken\n userPositionId: UserPositionId\n userChains: UserChains\n}\n\ninput UserBorrowsRequest {\n query: UserBorrowsQueryRequest!\n orderBy: UserBorrowsRequestOrderBy! = {amount: DESC}\n\n \"\"\"If you wish to include zero balances in the results\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserBorrowsRequestOrderBy @oneOf {\n assetName: OrderDirection\n created: OrderDirection\n amount: OrderDirection\n apy: OrderDirection\n}\n\ninput UserChains {\n user: EvmAddress!\n chainIds: [ChainId!]!\n}\n\ntype UserPosition {\n \"\"\"The user position ID\"\"\"\n id: UserPositionId!\n\n \"\"\"The user holding this position\"\"\"\n user: EvmAddress!\n createdAt: DateTime!\n totalSupplied(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"\n Total collateral which is the full some of the assets supplied which are enabled as collateral\n \"\"\"\n totalCollateral(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"Total debt which is the total amount borrowed plus the accrued premium\"\"\"\n totalDebt(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The net balance which is `total_supplied` - `borrows`\"\"\"\n netBalance(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"The net collateral which is `totalCollateral` - `totalDebt`\"\"\"\n netCollateral(currency: Currency! = USD): FiatAmountWithChange!\n netApy: PercentNumber!\n netSupplyApy: PercentNumberWithChange!\n netBorrowApy: PercentNumberWithChange!\n healthFactor: HealthFactorWithChange!\n betterRiskPremium: PercentNumber\n riskPremium: PercentNumber!\n netBalancePercentChange(window: TimeWindow! = LAST_DAY): PercentNumber!\n spoke: Spoke!\n averageCollateralFactor: PercentNumber!\n}\n\nscalar UserPositionId\n\ninput UserPositionRequest @oneOf {\n userSpoke: UserSpokeInput\n id: UserPositionId\n}\n\ninput UserPositionsRequest {\n \"\"\"The user to get the positions for\"\"\"\n user: EvmAddress!\n\n \"\"\"The filter for the user position\"\"\"\n filter: UserPositionsRequestFilter!\n\n \"\"\"The ordering for the positions\"\"\"\n orderBy: UserPositionsRequestOrderBy! = {created: ASC}\n}\n\ninput UserPositionsRequestFilter @oneOf {\n tokens: [Erc20Input!]\n chainIds: [ChainId!]\n}\n\ninput UserPositionsRequestOrderBy @oneOf {\n created: OrderDirection\n balance: OrderDirection\n netApy: OrderDirection\n healthFactor: OrderDirection\n netCollateral: OrderDirection\n}\n\ninput UserSpokeInput {\n spoke: SpokeId!\n user: EvmAddress!\n}\n\ntype UserSummary {\n totalPositions: Int!\n\n \"\"\"Net balance = supply - debt\"\"\"\n netBalance(currency: Currency! = USD): FiatAmountWithChange!\n\n \"\"\"Total supply where is_collateral is true\"\"\"\n totalCollateral(currency: Currency! = USD): FiatAmount!\n\n \"\"\"Total supplied across all positions\"\"\"\n totalSupplied(currency: Currency! = USD): FiatAmount!\n\n \"\"\"Total debt across all positions\"\"\"\n totalDebt(currency: Currency! = USD): FiatAmount!\n\n \"\"\"\n Net APY = (Σ (supplied_amount_i * supply_apy_i) - Σ (borrowed_amount_j * borrow_apy_j)) / (Σ supplied_amount_i)\n \"\"\"\n netApy: PercentNumber!\n\n \"\"\"Interest earned (net fee earned)\"\"\"\n netFeeEarned: FiatAmount!\n\n \"\"\"Lowest health factor across all positions\"\"\"\n lowestHealthFactor: BigDecimal\n}\n\ninput UserSummaryFilter @oneOf {\n spoke: SpokeInput\n spokeId: SpokeId\n chainIds: [ChainId!]\n userPositionId: UserPositionId\n}\n\ntype UserSummaryHistoryItem {\n healthFactor: BigDecimal\n date: DateTime!\n\n \"\"\"The aggregated net balance for the time period\"\"\"\n netBalance(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The aggregated borrows for the time period\"\"\"\n borrows(currency: Currency! = USD): FiatAmount!\n\n \"\"\"The aggregated supplies for the time period\"\"\"\n supplies(currency: Currency! = USD): FiatAmount!\n}\n\ninput UserSummaryHistoryRequest {\n user: EvmAddress!\n filter: UserSummaryFilter\n window: TimeWindow! = LAST_DAY\n}\n\ninput UserSummaryRequest {\n user: EvmAddress!\n filter: UserSummaryFilter\n}\n\ninput UserSuppliesQueryRequest @oneOf {\n userSpoke: UserSpokeInput\n userToken: UserToken\n userPositionId: UserPositionId\n userChains: UserChains\n}\n\ninput UserSuppliesRequest {\n query: UserSuppliesQueryRequest!\n orderBy: UserSuppliesRequestOrderBy! = {amount: DESC}\n\n \"\"\"If you wish to include zero balances in the results\"\"\"\n includeZeroBalances: Boolean! = false\n}\n\ninput UserSuppliesRequestOrderBy @oneOf {\n assetName: OrderDirection\n created: OrderDirection\n amount: OrderDirection\n apy: OrderDirection\n}\n\ntype UserSupplyItem {\n \"\"\"The user supply item id\"\"\"\n id: UserSupplyItemId!\n\n \"\"\"The reserve supplied to\"\"\"\n reserve: Reserve!\n\n \"\"\"The amount supplied to this reserve\"\"\"\n principal: Erc20Amount!\n\n \"\"\"The overall amount you can withdraw, including accrued interests\"\"\"\n withdrawable: Erc20Amount!\n\n \"\"\"The interest amount earned on supplying\"\"\"\n interest: Erc20Amount!\n\n \"\"\"If this supply is used as collateral\"\"\"\n isCollateral: Boolean!\n\n \"\"\"\n When the supply was created.\n This is null if they have no supply item, for\n example, when using include_zero_balances this comes\n back as principal and withdrawable as 0\n \"\"\"\n createdAt: DateTime\n}\n\nscalar UserSupplyItemId\n\ninput UserSwapsRequest {\n chainId: ChainId!\n user: EvmAddress!\n filterBy: [SwapStatusFilter!]\n pageSize: PageSize! = FIFTY\n cursor: Cursor\n}\n\ninput UserToken {\n user: EvmAddress!\n token: Erc20Input!\n}\n\ntype UsingAsCollateralActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n enabledAsCollateral: Boolean!\n chain: Chain!\n}\n\ntype WithdrawActivity {\n id: ID!\n user: EvmAddress!\n timestamp: DateTime!\n txHash: TxHash!\n spoke: Spoke!\n reserve: ReserveInfo!\n withdrawn: Erc20Amount!\n chain: Chain!\n}\n\ninput WithdrawRequest {\n \"\"\"The reserve id\"\"\"\n reserve: ReserveId!\n\n \"\"\"The amount withdrawing\"\"\"\n amount: WithdrawReserveAmountInput!\n\n \"\"\"The user sending the transaction (normally the user's wallet address)\"\"\"\n sender: EvmAddress!\n}\n\ninput WithdrawReserveAmountInput @oneOf {\n \"\"\"The native amount\"\"\"\n native: AmountInput\n\n \"\"\"The erc20 amount input\"\"\"\n erc20: AmountInput\n}","import { buildSchema } from 'graphql';\n\nimport schemaSDL from '../schema.graphql';\n\n/**\n * @internal\n */\nexport const schema = buildSchema(schemaSDL);\n"]}
|
package/dist/test-utils.js
CHANGED
|
@@ -195,6 +195,7 @@ type Chain {
|
|
|
195
195
|
nativeInfo: TokenInfo!
|
|
196
196
|
nativeGateway: EvmAddress!
|
|
197
197
|
signatureGateway: EvmAddress!
|
|
198
|
+
rpcUrl: String!
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
"""A supported blockchain chain ID"""
|
|
@@ -517,6 +518,11 @@ input HubAssetsRequestQuery @oneOf {
|
|
|
517
518
|
|
|
518
519
|
scalar HubId
|
|
519
520
|
|
|
521
|
+
input HubIdTokenInput {
|
|
522
|
+
hubId: HubId!
|
|
523
|
+
token: EvmAddress!
|
|
524
|
+
}
|
|
525
|
+
|
|
520
526
|
input HubInput {
|
|
521
527
|
"""The hub address"""
|
|
522
528
|
address: EvmAddress!
|
|
@@ -1123,15 +1129,21 @@ input ReservesRequestQuery @oneOf {
|
|
|
1123
1129
|
"""Get all the reserves on a hub for an underlying"""
|
|
1124
1130
|
hubToken: HubTokenInput
|
|
1125
1131
|
|
|
1132
|
+
"""Get all the reserves on a hub for an underlying by a hub id"""
|
|
1133
|
+
hubIdToken: HubIdTokenInput
|
|
1134
|
+
|
|
1126
1135
|
"""Get all the reserves on a list of chains"""
|
|
1127
1136
|
chainIds: [ChainId!]
|
|
1128
1137
|
|
|
1129
1138
|
"""Get all the reserves for a spoke for an underlying"""
|
|
1130
1139
|
spokeToken: SpokeTokenInput
|
|
1131
1140
|
|
|
1132
|
-
"""Get all
|
|
1141
|
+
"""Get all reserves on a hub"""
|
|
1133
1142
|
hub: HubInput
|
|
1134
1143
|
|
|
1144
|
+
"""Get all reserves with a hub id"""
|
|
1145
|
+
hubId: HubId
|
|
1146
|
+
|
|
1135
1147
|
"""Get all the reserves on based on user position id"""
|
|
1136
1148
|
userPositionId: UserPositionId
|
|
1137
1149
|
}
|
|
@@ -1605,6 +1617,16 @@ input UserBalancesByHub {
|
|
|
1605
1617
|
byReservesType: ReservesRequestFilter! = ALL
|
|
1606
1618
|
}
|
|
1607
1619
|
|
|
1620
|
+
input UserBalancesByHubId {
|
|
1621
|
+
"""The hub id"""
|
|
1622
|
+
hubId: HubId!
|
|
1623
|
+
|
|
1624
|
+
"""
|
|
1625
|
+
The type of reserve to use when determine the tokens to retrieve balances for
|
|
1626
|
+
"""
|
|
1627
|
+
byReservesType: ReservesRequestFilter! = ALL
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1608
1630
|
input UserBalancesBySpoke {
|
|
1609
1631
|
"""The spoke address"""
|
|
1610
1632
|
address: EvmAddress!
|
|
@@ -1649,6 +1671,9 @@ input UserBalancesRequestFilter @oneOf {
|
|
|
1649
1671
|
"""The balances for the tokens of hub assets on a given hub"""
|
|
1650
1672
|
hub: UserBalancesByHub
|
|
1651
1673
|
|
|
1674
|
+
"""The balances for the tokens of the hub assets on a given hub id"""
|
|
1675
|
+
hubId: UserBalancesByHubId
|
|
1676
|
+
|
|
1652
1677
|
"""The balances for the tokens of reserves attached to a spoke"""
|
|
1653
1678
|
spoke: UserBalancesBySpoke
|
|
1654
1679
|
|