AuctionState.java
package com.syntifi.casper.sdk.model.auction;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.syntifi.casper.sdk.model.bid.JsonBids;
import com.syntifi.casper.sdk.model.block.JsonBlockData;
import com.syntifi.casper.sdk.model.era.JsonEraValidators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
/**
* Data structure summarizing auction contract data
*
* @author Alexandre Carvalho
* @author Andre Bertolace
* @see JsonBlockData
* @since 0.0.1
*/
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AuctionState {
/**
* All bids contained within a vector
*
* @see JsonBids
*/
private List<JsonBids> bids;
/**
* Block height
*/
@JsonProperty("block_height")
private long height;
/**
* @see JsonEraValidators
*/
@JsonProperty("era_validators")
private List<JsonEraValidators> eraValidators;
/**
* Global state hash
*/
@JsonProperty("state_root_hash")
private String stateRootHash;
}