Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Pool @entity {
- id: ID!
- protocol: Protocol!
- lendingPool: Bytes
- lendingPoolCollateralManager: Bytes
- lendingPoolConfiguratorImpl: Bytes
- lendingPoolImpl: Bytes
- lendingPoolConfigurator: Bytes
- proxyPriceProvider: Bytes
- lendingRateOracle: Bytes
- configurationAdmin: Bytes
- ethereumAddress: Bytes
- emergencyAdmin: Bytes
- history: [PoolConfigurationHistoryItem!]! @derivedFrom(field: "pool")
- lastUpdateTimestamp: Int!
- reserves: [Reserve!]! @derivedFrom(field: "pool")
- depositHistory: [Deposit!]! @derivedFrom(field: "pool")
- redeemUnderlyingHistory: [RedeemUnderlying!]! @derivedFrom(field: "pool")
- borrowHistory: [Borrow!]! @derivedFrom(field: "pool")
- swapHistory: [Swap!]! @derivedFrom(field: "pool")
- usageAsCollateralHistory: [UsageAsCollateral!]! @derivedFrom(field: "pool")
- rebalanceStableBorrowRateHistory: [RebalanceStableBorrowRate!]! @derivedFrom(field: "pool")
- repayHistory: [Repay!]! @derivedFrom(field: "pool")
- flashLoanHistory: [FlashLoan!]! @derivedFrom(field: "pool")
- liquidationCallHistory: [LiquidationCall!]! @derivedFrom(field: "pool")
- originationFeeLiquidationHistory: [OriginationFeeLiquidation!]! @derivedFrom(field: "pool")
- active: Boolean!
- paused: Boolean!
- }
- #una riserva sarebbe un token
- type Reserve @entity {
- """
- Reserve address
- """
- id: ID!
- underlyingAsset: Bytes!
- pool: Pool!
- symbol: String!
- name: String!
- #uiColor: String! #TODO MOVE: move to the frontend
- #currencyType: CurrencyType! #TODO MOVE: move to the frontend
- decimals: Int!
- usageAsCollateralEnabled: Boolean! # defalt false
- borrowingEnabled: Boolean! # defalt false
- stableBorrowRateEnabled: Boolean! # defalt false
- isActive: Boolean! # defalt false
- isFrozen: Boolean! # defalt false
- price: PriceOracleAsset!
- reserveInterestRateStrategy: Bytes!
- optimalUtilisationRate: BigInt!
- variableRateSlope1: BigInt!
- variableRateSlope2: BigInt!
- stableRateSlope1: BigInt!
- stableRateSlope2: BigInt!
- baseVariableBorrowRate: BigInt!
- baseLTVasCollateral: BigInt!
- reserveLiquidationThreshold: BigInt!
- reserveLiquidationBonus: BigInt!
- utilizationRate: BigDecimal! # default: 0
- totalLiquidity: BigInt! # default: 0
- totalATokenSupply: BigInt!
- totalLiquidityAsCollateral: BigInt! # default: 0
- availableLiquidity: BigInt! # default: 0
- totalPrincipalStableDebt: BigInt! # default: 0
- totalScaledVariableDebt: BigInt! # default: 0
- totalCurrentVariableDebt: BigInt! # default: 0
- totalDeposits: BigInt! # default: 0
- liquidityRate: BigInt! # depositors interest
- averageStableRate: BigInt!
- variableBorrowRate: BigInt!
- stableBorrowRate: BigInt!
- liquidityIndex: BigInt!
- variableBorrowIndex: BigInt!
- aToken: AToken!
- vToken: VToken!
- sToken: SToken!
- reserveFactor: BigInt! #default 0
- lastUpdateTimestamp: Int!
- stableDebtLastUpdateTimestamp: Int!
- # incentives
- aEmissionPerSecond: BigInt!
- vEmissionPerSecond: BigInt!
- sEmissionPerSecond: BigInt!
- aTokenIncentivesIndex: BigInt!
- vTokenIncentivesIndex: BigInt!
- sTokenIncentivesIndex: BigInt!
- aIncentivesLastUpdateTimestamp: Int!
- vIncentivesLastUpdateTimestamp: Int!
- sIncentivesLastUpdateTimestamp: Int!
- lifetimeLiquidity: BigInt! # default: 0
- lifetimePrincipalStableDebt: BigInt! # default: 0
- lifetimeScaledVariableDebt: BigInt! # default: 0
- lifetimeCurrentVariableDebt: BigInt! # default: 0
- lifetimeRepayments: BigInt! # default: 0
- lifetimeWithdrawals: BigInt! # default: 0
- lifetimeBorrows: BigInt! # default: 0
- lifetimeLiquidated: BigInt! # default: 0
- lifetimeFlashLoans: BigInt! # default: 0
- lifetimeFlashLoanPremium: BigInt! # default: 0
- lifetimeDepositorsInterestEarned: BigInt!
- lifetimeReserveFactorAccrued: BigInt!
- # lifetimeStableDebFeeCollected: BigInt!
- # lifetimeVariableDebtFeeCollected: BigInt!
- userReserves: [UserReserve!]! @derivedFrom(field: "reserve")
- depositHistory: [Deposit!]! @derivedFrom(field: "reserve")
- redeemUnderlyingHistory: [RedeemUnderlying!]! @derivedFrom(field: "reserve")
- borrowHistory: [Borrow!]! @derivedFrom(field: "reserve")
- usageAsCollateralHistory: [UsageAsCollateral!]! @derivedFrom(field: "reserve")
- swapHistory: [Swap!]! @derivedFrom(field: "reserve")
- rebalanceStableBorrowRateHistory: [RebalanceStableBorrowRate!]! @derivedFrom(field: "reserve")
- repayHistory: [Repay!]! @derivedFrom(field: "reserve")
- flashLoanHistory: [FlashLoan!]! @derivedFrom(field: "reserve")
- liquidationCallHistory: [LiquidationCall!]! @derivedFrom(field: "collateralReserve")
- originationFeeLiquidationHistory: [OriginationFeeLiquidation!]!
- @derivedFrom(field: "collateralReserve")
- paramsHistory: [ReserveParamsHistoryItem!]! @derivedFrom(field: "reserve")
- configurationHistory: [ReserveConfigurationHistoryItem!]! @derivedFrom(field: "reserve")
- deposits: [Deposit!]! @derivedFrom(field: "reserve")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement