Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62693,15 +62693,8 @@ components:
extra details about the blockchain network.
example:
activationPeriod: 172800000
estimatedAnnualReward: 6.48
lockupPeriod: 172800000
properties:
estimatedAnnualReward:
deprecated: true
description: "The estimated annual reward rate for the blockchain, represented\
\ as a decimal percentage value."
example: 6.48
type: number
lockupPeriod:
description: "The duration of the lockup period for certain actions on the\
\ blockchain, measured in milliseconds."
Expand All @@ -62714,7 +62707,6 @@ components:
type: number
required:
- activationPeriod
- estimatedAnnualReward
- lockupPeriod
type: object
ChainInfoResponse:
Expand All @@ -62725,7 +62717,6 @@ components:
epochDuration: 172800000
additionalInfo:
activationPeriod: 172800000
estimatedAnnualReward: 6.48
lockupPeriod: 172800000
currentEpoch: 483
properties:
Expand Down Expand Up @@ -63104,6 +63095,12 @@ components:
validator type).
example: true
type: boolean
estimatedActivationTime:
description: "Estimated time the staked ETH will activate, derived from\
\ the beacon-chain deposit queue. Present only while the position is pending/activating;\
\ omitted once active."
example: 2024-01-15T14:30:00.000Z
type: string
required:
- isCompoundingValidator
type: object
Expand Down
1 change: 0 additions & 1 deletion docs/AdditionalInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Additional information related to the blockchain. This may include extra details

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**estimatedAnnualReward** | **BigDecimal** | The estimated annual reward rate for the blockchain, represented as a decimal percentage value. | |
|**lockupPeriod** | **BigDecimal** | The duration of the lockup period for certain actions on the blockchain, measured in milliseconds. | |
|**activationPeriod** | **BigDecimal** | The duration of the activation period for certain actions on the blockchain, measured in milliseconds. | |

Expand Down
1 change: 1 addition & 0 deletions docs/EthereumBlockchainData.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Additional fields per blockchain for Ethereum (ETH) - can be empty or missing if
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**isCompoundingValidator** | **Boolean** | Is the validator compounding (i.e it was created with compounding validator type). | |
|**estimatedActivationTime** | **String** | Estimated time the staked ETH will activate, derived from the beacon-chain deposit queue. Present only while the position is pending/activating; omitted once active. | [optional] |



54 changes: 2 additions & 52 deletions src/main/java/com/fireblocks/sdk/model/AdditionalInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,13 @@
* blockchain network.
*/
@JsonPropertyOrder({
AdditionalInfo.JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD,
AdditionalInfo.JSON_PROPERTY_LOCKUP_PERIOD,
AdditionalInfo.JSON_PROPERTY_ACTIVATION_PERIOD
})
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.14.0")
public class AdditionalInfo {
public static final String JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD = "estimatedAnnualReward";
@jakarta.annotation.Nonnull private BigDecimal estimatedAnnualReward;

public static final String JSON_PROPERTY_LOCKUP_PERIOD = "lockupPeriod";
@jakarta.annotation.Nonnull private BigDecimal lockupPeriod;

Expand All @@ -48,45 +44,14 @@ public AdditionalInfo() {}

@JsonCreator
public AdditionalInfo(
@JsonProperty(value = JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD, required = true)
BigDecimal estimatedAnnualReward,
@JsonProperty(value = JSON_PROPERTY_LOCKUP_PERIOD, required = true)
BigDecimal lockupPeriod,
@JsonProperty(value = JSON_PROPERTY_ACTIVATION_PERIOD, required = true)
BigDecimal activationPeriod) {
this.estimatedAnnualReward = estimatedAnnualReward;
this.lockupPeriod = lockupPeriod;
this.activationPeriod = activationPeriod;
}

public AdditionalInfo estimatedAnnualReward(
@jakarta.annotation.Nonnull BigDecimal estimatedAnnualReward) {
this.estimatedAnnualReward = estimatedAnnualReward;
return this;
}

/**
* The estimated annual reward rate for the blockchain, represented as a decimal percentage
* value.
*
* @return estimatedAnnualReward
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getEstimatedAnnualReward() {
return estimatedAnnualReward;
}

@JsonProperty(JSON_PROPERTY_ESTIMATED_ANNUAL_REWARD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEstimatedAnnualReward(
@jakarta.annotation.Nonnull BigDecimal estimatedAnnualReward) {
this.estimatedAnnualReward = estimatedAnnualReward;
}

public AdditionalInfo lockupPeriod(@jakarta.annotation.Nonnull BigDecimal lockupPeriod) {
this.lockupPeriod = lockupPeriod;
return this;
Expand Down Expand Up @@ -146,23 +111,19 @@ public boolean equals(Object o) {
return false;
}
AdditionalInfo additionalInfo = (AdditionalInfo) o;
return Objects.equals(this.estimatedAnnualReward, additionalInfo.estimatedAnnualReward)
&& Objects.equals(this.lockupPeriod, additionalInfo.lockupPeriod)
return Objects.equals(this.lockupPeriod, additionalInfo.lockupPeriod)
&& Objects.equals(this.activationPeriod, additionalInfo.activationPeriod);
}

@Override
public int hashCode() {
return Objects.hash(estimatedAnnualReward, lockupPeriod, activationPeriod);
return Objects.hash(lockupPeriod, activationPeriod);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AdditionalInfo {\n");
sb.append(" estimatedAnnualReward: ")
.append(toIndentedString(estimatedAnnualReward))
.append("\n");
sb.append(" lockupPeriod: ").append(toIndentedString(lockupPeriod)).append("\n");
sb.append(" activationPeriod: ").append(toIndentedString(activationPeriod)).append("\n");
sb.append("}");
Expand Down Expand Up @@ -212,17 +173,6 @@ public String toUrlQueryString(String prefix) {

StringJoiner joiner = new StringJoiner("&");

// add `estimatedAnnualReward` to the URL query string
if (getEstimatedAnnualReward() != null) {
joiner.add(
String.format(
"%sestimatedAnnualReward%s=%s",
prefix,
suffix,
ApiClient.urlEncode(
ApiClient.valueToString(getEstimatedAnnualReward()))));
}

// add `lockupPeriod` to the URL query string
if (getLockupPeriod() != null) {
joiner.add(
Expand Down
55 changes: 52 additions & 3 deletions src/main/java/com/fireblocks/sdk/model/EthereumBlockchainData.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@
* Additional fields per blockchain for Ethereum (ETH) - can be empty or missing if not initialized
* or no specific data is available.
*/
@JsonPropertyOrder({EthereumBlockchainData.JSON_PROPERTY_IS_COMPOUNDING_VALIDATOR})
@JsonPropertyOrder({
EthereumBlockchainData.JSON_PROPERTY_IS_COMPOUNDING_VALIDATOR,
EthereumBlockchainData.JSON_PROPERTY_ESTIMATED_ACTIVATION_TIME
})
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.14.0")
public class EthereumBlockchainData {
public static final String JSON_PROPERTY_IS_COMPOUNDING_VALIDATOR = "isCompoundingValidator";
@jakarta.annotation.Nonnull private Boolean isCompoundingValidator;

public static final String JSON_PROPERTY_ESTIMATED_ACTIVATION_TIME = "estimatedActivationTime";
@jakarta.annotation.Nullable private String estimatedActivationTime;

public EthereumBlockchainData() {}

@JsonCreator
Expand Down Expand Up @@ -67,6 +73,32 @@ public void setIsCompoundingValidator(
this.isCompoundingValidator = isCompoundingValidator;
}

public EthereumBlockchainData estimatedActivationTime(
@jakarta.annotation.Nullable String estimatedActivationTime) {
this.estimatedActivationTime = estimatedActivationTime;
return this;
}

/**
* Estimated time the staked ETH will activate, derived from the beacon-chain deposit queue.
* Present only while the position is pending/activating; omitted once active.
*
* @return estimatedActivationTime
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ESTIMATED_ACTIVATION_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEstimatedActivationTime() {
return estimatedActivationTime;
}

@JsonProperty(JSON_PROPERTY_ESTIMATED_ACTIVATION_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEstimatedActivationTime(
@jakarta.annotation.Nullable String estimatedActivationTime) {
this.estimatedActivationTime = estimatedActivationTime;
}

/** Return true if this EthereumBlockchainData object is equal to o. */
@Override
public boolean equals(Object o) {
Expand All @@ -78,12 +110,15 @@ public boolean equals(Object o) {
}
EthereumBlockchainData ethereumBlockchainData = (EthereumBlockchainData) o;
return Objects.equals(
this.isCompoundingValidator, ethereumBlockchainData.isCompoundingValidator);
this.isCompoundingValidator, ethereumBlockchainData.isCompoundingValidator)
&& Objects.equals(
this.estimatedActivationTime,
ethereumBlockchainData.estimatedActivationTime);
}

@Override
public int hashCode() {
return Objects.hash(isCompoundingValidator);
return Objects.hash(isCompoundingValidator, estimatedActivationTime);
}

@Override
Expand All @@ -93,6 +128,9 @@ public String toString() {
sb.append(" isCompoundingValidator: ")
.append(toIndentedString(isCompoundingValidator))
.append("\n");
sb.append(" estimatedActivationTime: ")
.append(toIndentedString(estimatedActivationTime))
.append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -151,6 +189,17 @@ public String toUrlQueryString(String prefix) {
ApiClient.valueToString(getIsCompoundingValidator()))));
}

// add `estimatedActivationTime` to the URL query string
if (getEstimatedActivationTime() != null) {
joiner.add(
String.format(
"%sestimatedActivationTime%s=%s",
prefix,
suffix,
ApiClient.urlEncode(
ApiClient.valueToString(getEstimatedActivationTime()))));
}

return joiner.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ void testAdditionalInfo() {
// TODO: test AdditionalInfo
}

/** Test the property 'estimatedAnnualReward' */
@Test
void estimatedAnnualRewardTest() {
// TODO: test estimatedAnnualReward
}

/** Test the property 'lockupPeriod' */
@Test
void lockupPeriodTest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ void isCompoundingValidatorTest() {
// TODO: test isCompoundingValidator
}

/** Test the property 'estimatedActivationTime' */
@Test
void estimatedActivationTimeTest() {
// TODO: test estimatedActivationTime
}

/** Test the property 'totalWithdrawableAmount' */
@Test
void totalWithdrawableAmountTest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ void testEthereumBlockchainData() {
void isCompoundingValidatorTest() {
// TODO: test isCompoundingValidator
}

/** Test the property 'estimatedActivationTime' */
@Test
void estimatedActivationTimeTest() {
// TODO: test estimatedActivationTime
}
}
Loading