diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Arbitrum.java b/src/main/java/no/jansoren/defillama/model/protocols/Arbitrum.java deleted file mode 100644 index 95f04f1..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Arbitrum.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Arbitrum( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/ArbitrumBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/ArbitrumBorrowed.java deleted file mode 100644 index 36b69e9..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/ArbitrumBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record ArbitrumBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Avalanche.java b/src/main/java/no/jansoren/defillama/model/protocols/Avalanche.java deleted file mode 100644 index 935801a..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Avalanche.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Avalanche( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/AvalancheBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/AvalancheBorrowed.java deleted file mode 100644 index 1020816..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/AvalancheBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record AvalancheBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Base.java b/src/main/java/no/jansoren/defillama/model/protocols/Base.java deleted file mode 100644 index 75d46d3..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Base.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Base( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/BaseBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/BaseBorrowed.java deleted file mode 100644 index c2f6ec5..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/BaseBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record BaseBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Borrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/Borrowed.java deleted file mode 100644 index 4a073b0..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Borrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Borrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/ChainTvls.java b/src/main/java/no/jansoren/defillama/model/protocols/ChainTvls.java index d50a9a4..b474dc7 100644 --- a/src/main/java/no/jansoren/defillama/model/protocols/ChainTvls.java +++ b/src/main/java/no/jansoren/defillama/model/protocols/ChainTvls.java @@ -2,75 +2,17 @@ import com.fasterxml.jackson.annotation.JsonProperty; -public record ChainTvls( - - @JsonProperty("Fantom") - Fantom fantom, - - @JsonProperty("Arbitrum") - Arbitrum arbitrum, - - @JsonProperty("Harmony") - Harmony harmony, - - @JsonProperty("Avalanche-borrowed") - AvalancheBorrowed avalancheBorrowed, - - @JsonProperty("pool2") - Pool2 pool2, - - @JsonProperty("Metis") - Metis metis, - - @JsonProperty("Avalanche") - Avalanche avalanche, - - @JsonProperty("Ethereum-staking") - EthereumStaking ethereumStaking, - - @JsonProperty("Base") - Base base, - - @JsonProperty("Base-borrowed") - BaseBorrowed baseBorrowed, +import java.util.List; - @JsonProperty("Optimism") - Optimism optimism, - - @JsonProperty("Optimism-borrowed") - OptimismBorrowed optimismBorrowed, - - @JsonProperty("staking") - Staking staking, - - @JsonProperty("Arbitrum-borrowed") - ArbitrumBorrowed arbitrumBorrowed, - - @JsonProperty("Harmony-borrowed") - HarmonyBorrowed harmonyBorrowed, - - @JsonProperty("Fantom-borrowed") - FantomBorrowed fantomBorrowed, - - @JsonProperty("Ethereum") - Ethereum ethereum, - - @JsonProperty("Ethereum-pool2") - EthereumPool2 ethereumPool2, - - @JsonProperty("Metis-borrowed") - MetisBorrowed metisBorrowed, - - @JsonProperty("Ethereum-borrowed") - EthereumBorrowed ethereumBorrowed, +public record ChainTvls( - @JsonProperty("Polygon") - Polygon polygon, + @JsonProperty("tvl") + List tvl, - @JsonProperty("Polygon-borrowed") - PolygonBorrowed polygonBorrowed, + @JsonProperty("tokens") + Object tokens, - @JsonProperty("borrowed") - Borrowed borrowed + @JsonProperty("tokensInUsd") + Object tokensInUsd ) { } \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/CurrentChainTvls.java b/src/main/java/no/jansoren/defillama/model/protocols/CurrentChainTvls.java deleted file mode 100644 index 38453b8..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/CurrentChainTvls.java +++ /dev/null @@ -1,76 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public record CurrentChainTvls( - - @JsonProperty("Fantom") - Object fantom, - - @JsonProperty("Arbitrum") - Object arbitrum, - - @JsonProperty("Harmony") - Integer harmony, - - @JsonProperty("Avalanche-borrowed") - Object avalancheBorrowed, - - @JsonProperty("pool2") - Object pool2, - - @JsonProperty("Metis") - Object metis, - - @JsonProperty("Avalanche") - Object avalanche, - - @JsonProperty("Ethereum-staking") - Object ethereumStaking, - - @JsonProperty("Base") - Object base, - - @JsonProperty("Base-borrowed") - Object baseBorrowed, - - @JsonProperty("Optimism") - Object optimism, - - @JsonProperty("Optimism-borrowed") - Object optimismBorrowed, - - @JsonProperty("staking") - Object staking, - - @JsonProperty("Arbitrum-borrowed") - Object arbitrumBorrowed, - - @JsonProperty("Harmony-borrowed") - Object harmonyBorrowed, - - @JsonProperty("Fantom-borrowed") - Object fantomBorrowed, - - @JsonProperty("Ethereum") - Object ethereum, - - @JsonProperty("Ethereum-pool2") - Object ethereumPool2, - - @JsonProperty("Metis-borrowed") - Object metisBorrowed, - - @JsonProperty("Ethereum-borrowed") - Object ethereumBorrowed, - - @JsonProperty("Polygon") - Object polygon, - - @JsonProperty("Polygon-borrowed") - Object polygonBorrowed, - - @JsonProperty("borrowed") - Object borrowed -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Ethereum.java b/src/main/java/no/jansoren/defillama/model/protocols/Ethereum.java deleted file mode 100644 index f04b6b7..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Ethereum.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Ethereum( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/EthereumBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/EthereumBorrowed.java deleted file mode 100644 index 1894470..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/EthereumBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record EthereumBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/EthereumPool2.java b/src/main/java/no/jansoren/defillama/model/protocols/EthereumPool2.java deleted file mode 100644 index 49a0b40..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/EthereumPool2.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record EthereumPool2( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/EthereumStaking.java b/src/main/java/no/jansoren/defillama/model/protocols/EthereumStaking.java deleted file mode 100644 index a5d2a4b..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/EthereumStaking.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record EthereumStaking( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Fantom.java b/src/main/java/no/jansoren/defillama/model/protocols/Fantom.java deleted file mode 100644 index 4b73c81..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Fantom.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Fantom( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/FantomBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/FantomBorrowed.java deleted file mode 100644 index c0c34dc..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/FantomBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record FantomBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Harmony.java b/src/main/java/no/jansoren/defillama/model/protocols/Harmony.java deleted file mode 100644 index 12de7e7..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Harmony.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Harmony( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/HarmonyBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/HarmonyBorrowed.java deleted file mode 100644 index cbe2fa5..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/HarmonyBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record HarmonyBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Metis.java b/src/main/java/no/jansoren/defillama/model/protocols/Metis.java deleted file mode 100644 index 41b6c15..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Metis.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Metis( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/MetisBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/MetisBorrowed.java deleted file mode 100644 index b6a24a9..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/MetisBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record MetisBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Optimism.java b/src/main/java/no/jansoren/defillama/model/protocols/Optimism.java deleted file mode 100644 index 9cd1207..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Optimism.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Optimism( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/OptimismBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/OptimismBorrowed.java deleted file mode 100644 index 9364646..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/OptimismBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record OptimismBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Polygon.java b/src/main/java/no/jansoren/defillama/model/protocols/Polygon.java deleted file mode 100644 index 9b80a8c..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Polygon.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Polygon( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/PolygonBorrowed.java b/src/main/java/no/jansoren/defillama/model/protocols/PolygonBorrowed.java deleted file mode 100644 index 307f4bb..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/PolygonBorrowed.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record PolygonBorrowed( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Pool2.java b/src/main/java/no/jansoren/defillama/model/protocols/Pool2.java deleted file mode 100644 index 865479a..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Pool2.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Pool2( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Protocol.java b/src/main/java/no/jansoren/defillama/model/protocols/Protocol.java index 91da04c..4cdfcb3 100644 --- a/src/main/java/no/jansoren/defillama/model/protocols/Protocol.java +++ b/src/main/java/no/jansoren/defillama/model/protocols/Protocol.java @@ -1,83 +1,85 @@ package no.jansoren.defillama.model.protocols; import java.util.List; +import java.util.Map; + import com.fasterxml.jackson.annotation.JsonProperty; public record Protocol( - @JsonProperty("symbol") - String symbol, + @JsonProperty("symbol") + String symbol, - @JsonProperty("currentChainTvls") - CurrentChainTvls currentChainTvls, + @JsonProperty("currentChainTvls") + Map currentChainTvls, - @JsonProperty("gecko_id") - String geckoId, + @JsonProperty("gecko_id") + String geckoId, - @JsonProperty("chains") - List chains, + @JsonProperty("chains") + List chains, - @JsonProperty("description") - String description, + @JsonProperty("description") + String description, - @JsonProperty("isParentProtocol") - Boolean isParentProtocol, + @JsonProperty("isParentProtocol") + Boolean isParentProtocol, - @JsonProperty("governanceID") - List governanceID, + @JsonProperty("governanceID") + List governanceID, - @JsonProperty("cmcId") - String cmcId, + @JsonProperty("cmcId") + String cmcId, - @JsonProperty("twitter") - String twitter, + @JsonProperty("twitter") + String twitter, - @JsonProperty("hallmarks") - List> hallmarks, + @JsonProperty("hallmarks") + List> hallmarks, - @JsonProperty("raises") - List raises, + @JsonProperty("raises") + List raises, - @JsonProperty("logo") - String logo, + @JsonProperty("logo") + String logo, - @JsonProperty("tokens") - List tokens, + @JsonProperty("tokens") + List tokens, - @JsonProperty("id") - String id, + @JsonProperty("id") + String id, - @JsonProperty("github") - List github, + @JsonProperty("github") + List github, - @JsonProperty("tokensInUsd") - List tokensInUsd, + @JsonProperty("tokensInUsd") + List tokensInUsd, - @JsonProperty("tvl") - List tvl, + @JsonProperty("tvl") + List tvl, - @JsonProperty("url") - String url, + @JsonProperty("url") + String url, - @JsonProperty("treasury") - String treasury, + @JsonProperty("treasury") + String treasury, - @JsonProperty("wrongLiquidity") - Boolean wrongLiquidity, + @JsonProperty("wrongLiquidity") + Boolean wrongLiquidity, - @JsonProperty("mcap") - Object mcap, + @JsonProperty("mcap") + Object mcap, - @JsonProperty("otherProtocols") - List otherProtocols, + @JsonProperty("otherProtocols") + List otherProtocols, - @JsonProperty("name") - String name, + @JsonProperty("name") + String name, - @JsonProperty("chainTvls") - ChainTvls chainTvls, + @JsonProperty("chainTvls") + Map chainTvls, - @JsonProperty("metrics") - Object metrics + @JsonProperty("metrics") + Object metrics ) { } \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Staking.java b/src/main/java/no/jansoren/defillama/model/protocols/Staking.java deleted file mode 100644 index a021f7d..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Staking.java +++ /dev/null @@ -1,17 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import java.util.List; -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Staking( - - @JsonProperty("tokens") - Object tokens, - - @JsonProperty("tvl") - List tvl, - - @JsonProperty("tokensInUsd") - Object tokensInUsd -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/Tokens.java b/src/main/java/no/jansoren/defillama/model/protocols/Tokens.java deleted file mode 100644 index 7b1ccd3..0000000 --- a/src/main/java/no/jansoren/defillama/model/protocols/Tokens.java +++ /dev/null @@ -1,274 +0,0 @@ -package no.jansoren.defillama.model.protocols; - -import com.fasterxml.jackson.annotation.JsonProperty; - -public record Tokens( - - @JsonProperty("LINK.E") - Object lINKE, - - @JsonProperty("USDT") - Object uSDT, - - @JsonProperty("USDC.E") - Object uSDCE, - - @JsonProperty("AGEUR") - Integer aGEUR, - - @JsonProperty("M.USDC") - Object mUSDC, - - @JsonProperty("BTC.B") - Object bTCB, - - @JsonProperty("USDP") - Integer uSDP, - - @JsonProperty("GHO") - Object gHO, - - @JsonProperty("MIMATIC") - Object mIMATIC, - - @JsonProperty("SUSD") - Object sUSD, - - @JsonProperty("M.DAI") - Object mDAI, - - @JsonProperty("GUSD") - Object gUSD, - - @JsonProperty("MATICX") - Object mATICX, - - @JsonProperty("DAI.E") - Object dAIE, - - @JsonProperty("SDAI") - Object sDAI, - - @JsonProperty("WFTM") - Object wFTM, - - @JsonProperty("ZRX") - Object zRX, - - @JsonProperty("FRAX") - Object fRAX, - - @JsonProperty("GHST") - Object gHST, - - @JsonProperty("1INCH") - Object jsonMember1INCH, - - @JsonProperty("WSTETH") - Object wSTETH, - - @JsonProperty("ARB") - Object aRB, - - @JsonProperty("WMATIC") - Object wMATIC, - - @JsonProperty("G-UNI") - Object gUNI, - - @JsonProperty("MAI") - Object mAI, - - @JsonProperty("TUSD") - Object tUSD, - - @JsonProperty("AMPL") - Object aMPL, - - @JsonProperty("USDT.E") - Object uSDTE, - - @JsonProperty("LUSD") - Object lUSD, - - @JsonProperty("USDC") - Object uSDC, - - @JsonProperty("M.USDT") - Object mUSDT, - - @JsonProperty("JEUR") - Object jEUR, - - @JsonProperty("METIS") - Object mETIS, - - @JsonProperty("DPI") - Object dPI, - - @JsonProperty("ENJ") - Object eNJ, - - @JsonProperty("STETH") - Object sTETH, - - @JsonProperty("KNC") - Object kNC, - - @JsonProperty("AAVE.E") - Object aAVEE, - - @JsonProperty("RETH") - Object rETH, - - @JsonProperty("STMATIC") - Object sTMATIC, - - @JsonProperty("CVX") - Object cVX, - - @JsonProperty("CRV") - Object cRV, - - @JsonProperty("SUSHI") - Object sUSHI, - - @JsonProperty("ENS") - Object eNS, - - @JsonProperty("LEND") - Object lEND, - - @JsonProperty("SAVAX") - Object sAVAX, - - @JsonProperty("RPL") - Object rPL, - - @JsonProperty("AAVE") - Object aAVE, - - @JsonProperty("UNI") - Object uNI, - - @JsonProperty("EURS") - Integer eURS, - - @JsonProperty("WBTC") - Object wBTC, - - @JsonProperty("LDO") - Object lDO, - - @JsonProperty("LINK") - Object lINK, - - @JsonProperty("SNX") - Object sNX, - - @JsonProperty("YFI") - Object yFI, - - @JsonProperty("SETH") - Object sETH, - - @JsonProperty("OP") - Object oP, - - @JsonProperty("MANA") - Object mANA, - - @JsonProperty("WETH") - Object wETH, - - @JsonProperty("WAVAX") - Object wAVAX, - - @JsonProperty("FEI") - Integer fEI, - - @JsonProperty("DAI") - Object dAI, - - @JsonProperty("BAL") - Object bAL, - - @JsonProperty("WBTC.E") - Object wBTCE, - - @JsonProperty("WETH.E") - Object wETHE, - - @JsonProperty("USDBC") - Object uSDBC, - - @JsonProperty("BAT") - Object bAT, - - @JsonProperty("MKR") - Object mKR, - - @JsonProperty("CBETH") - Object cBETH, - - @JsonProperty("UST") - Integer uST, - - @JsonProperty("XSUSHI") - Object xSUSHI, - - @JsonProperty("REN") - Object rEN, - - @JsonProperty("BUSD") - Object bUSD, - - @JsonProperty("RAI") - Object rAI, - - @JsonProperty("1USDT") - Object jsonMember1USDT, - - @JsonProperty("1DAI") - Object jsonMember1DAI, - - @JsonProperty("1USDC") - Object jsonMember1USDC, - - @JsonProperty("BTC") - Object bTC, - - @JsonProperty("1ETH") - Object jsonMember1ETH, - - @JsonProperty("1AAVE") - Object jsonMember1AAVE, - - @JsonProperty("1WBTC") - Object jsonMember1WBTC, - - @JsonProperty("FUSDT") - Object fUSDT, - - @JsonProperty("ETH") - Object eTH, - - @JsonProperty("RENFIL") - Object rENFIL, - - @JsonProperty("AVAX") - Object aVAX, - - @JsonProperty("FTM") - Object fTM, - - @JsonProperty("KNCL") - Object kNCL, - - @JsonProperty("WONE") - Integer wONE, - - @JsonProperty("UNKNOWN (0x1985365e9f78359a9B6AD760e32412f4a445E862)") - Integer uNKNOWN0x1985365e9f78359a9B6AD760e32412f4a445E862 -) { -} \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/TokensInUsdItem.java b/src/main/java/no/jansoren/defillama/model/protocols/TokensInUsdItem.java index 672d2bc..d8fb07f 100644 --- a/src/main/java/no/jansoren/defillama/model/protocols/TokensInUsdItem.java +++ b/src/main/java/no/jansoren/defillama/model/protocols/TokensInUsdItem.java @@ -2,12 +2,15 @@ import com.fasterxml.jackson.annotation.JsonProperty; +import java.math.BigDecimal; +import java.util.Map; + public record TokensInUsdItem( @JsonProperty("date") Integer date, @JsonProperty("tokens") - Tokens tokens + Map tokens ) { } \ No newline at end of file diff --git a/src/main/java/no/jansoren/defillama/model/protocols/TokensItem.java b/src/main/java/no/jansoren/defillama/model/protocols/TokensItem.java index ed89eaa..5154eaa 100644 --- a/src/main/java/no/jansoren/defillama/model/protocols/TokensItem.java +++ b/src/main/java/no/jansoren/defillama/model/protocols/TokensItem.java @@ -2,12 +2,15 @@ import com.fasterxml.jackson.annotation.JsonProperty; +import java.math.BigDecimal; +import java.util.Map; + public record TokensItem( @JsonProperty("date") Integer date, @JsonProperty("tokens") - Tokens tokens + Map tokens ) { } \ No newline at end of file