Skip to content

Commit

Permalink
Updating Protocol client models
Browse files Browse the repository at this point in the history
  • Loading branch information
jansoren committed May 5, 2024
1 parent b24121b commit c77ace3
Showing 1 changed file with 35 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

public record ProtocolItem(

@JsonProperty("symbol")
String symbol,

Expand Down Expand Up @@ -34,9 +35,6 @@ public record ProtocolItem(
@JsonProperty("twitter")
String twitter,

@JsonProperty("oracles")
List<Object> oracles,

@JsonProperty("logo")
String logo,

Expand Down Expand Up @@ -67,6 +65,9 @@ public record ProtocolItem(
@JsonProperty("url")
String url,

@JsonProperty("misrepresentedTokens")
boolean misrepresentedTokens,

@JsonProperty("tokenBreakdowns")
Object tokenBreakdowns,

Expand All @@ -88,39 +89,57 @@ public record ProtocolItem(
@JsonProperty("change_1d")
BigDecimal change1d,

@JsonProperty("pool2")
BigDecimal pool2,
@JsonProperty("oracles")
List<Object> oracles,

@JsonProperty("hallmarks")
List<List<Integer>> hallmarks,

@JsonProperty("parentProtocol")
String parentProtocol,

@JsonProperty("staking")
BigDecimal staking,

@JsonProperty("github")
List<String> github,

@JsonProperty("audit_links")
List<String> auditLinks,

@JsonProperty("methodology")
String methodology,

@JsonProperty("pool2")
BigDecimal pool2,

@JsonProperty("treasury")
String treasury,

@JsonProperty("audit_links")
List<String> auditLinks,
@JsonProperty("assetToken")
String assetToken,

@JsonProperty("parentProtocol")
String parentProtocol,
@JsonProperty("deadUrl")
boolean deadUrl,

@JsonProperty("rugged")
boolean rugged,

@JsonProperty("governanceID")
List<String> governanceID,

@JsonProperty("rugged")
boolean rugged,
@JsonProperty("deadFrom")
int deadFrom,

@JsonProperty("wrongLiquidity")
boolean wrongLiquidity,

@JsonProperty("deadUrl")
boolean deadUrl,

@JsonProperty("stablecoins")
List<String> stablecoins,

@JsonProperty("oraclesByChain")
Map<String, List<String>> oraclesByChain,

@JsonProperty("openSource")
boolean openSource,

Expand All @@ -130,10 +149,7 @@ public record ProtocolItem(
@JsonProperty("referralUrl")
String referralUrl,

@JsonProperty("assetToken")
String assetToken,

@JsonProperty("oraclesByChain")
Map<String, List<String>> oraclesByChain
@JsonProperty("tokensExcludedFromParent")
List<String> tokensExcludedFromParent
) {
}

0 comments on commit c77ace3

Please sign in to comment.