Skip to content

Commit 6d8f468

Browse files
committed
Merge branch 'feat/metamorpho'
2 parents 14da12c + 3eba332 commit 6d8f468

File tree

16 files changed

+2596
-76
lines changed

16 files changed

+2596
-76
lines changed

abi/meta-morpho.json

Lines changed: 1065 additions & 0 deletions
Large diffs are not rendered by default.

abi/morpho.json

Lines changed: 612 additions & 0 deletions
Large diffs are not rendered by default.

db/migrations/1726199667014-Data.js renamed to db/migrations/1726857088697-Data.js

Lines changed: 4 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema.graphql

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,8 +1867,7 @@ type OUSDStrategyDailyStat @entity {
18671867
name: String!
18681868
total: BigInt!
18691869
tvl: BigInt!
1870-
holdings: [OUSDStrategyHoldingDailyStat]
1871-
@derivedFrom(field: "strategyDailyStatId")
1870+
holdings: [OUSDStrategyHoldingDailyStat] @derivedFrom(field: "strategyDailyStatId")
18721871
}
18731872

18741873
type OUSDStrategyHoldingDailyStat @entity {
@@ -1887,6 +1886,20 @@ type OUSDCollateralDailyStat @entity {
18871886
price: BigInt!
18881887
value: BigInt!
18891888
}
1889+
1890+
type MorphoMarketState @entity {
1891+
id: ID!
1892+
chainId: Int!
1893+
timestamp: DateTime!
1894+
blockNumber: Int!
1895+
marketId: String!
1896+
totalSupplyAssets: BigInt!
1897+
totalSupplyShares: BigInt!
1898+
totalBorrowAssets: BigInt!
1899+
totalBorrowShares: BigInt!
1900+
lastUpdate: BigInt!
1901+
fee: BigInt!
1902+
}
18901903
type EventWOETHPriceUpdated @entity {
18911904
id: ID!
18921905
chainId: Int! @index

schema/ousd.graphql

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ type OUSDStrategyDailyStat @entity {
5858
name: String!
5959
total: BigInt!
6060
tvl: BigInt!
61-
holdings: [OUSDStrategyHoldingDailyStat]
62-
@derivedFrom(field: "strategyDailyStatId")
61+
holdings: [OUSDStrategyHoldingDailyStat] @derivedFrom(field: "strategyDailyStatId")
6362
}
6463

6564
type OUSDStrategyHoldingDailyStat @entity {
@@ -78,3 +77,17 @@ type OUSDCollateralDailyStat @entity {
7877
price: BigInt!
7978
value: BigInt!
8079
}
80+
81+
type MorphoMarketState @entity {
82+
id: ID!
83+
chainId: Int!
84+
timestamp: DateTime!
85+
blockNumber: Int!
86+
marketId: String!
87+
totalSupplyAssets: BigInt!
88+
totalSupplyShares: BigInt!
89+
totalBorrowAssets: BigInt!
90+
totalBorrowShares: BigInt!
91+
lastUpdate: BigInt!
92+
fee: BigInt!
93+
}

0 commit comments

Comments
 (0)