All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.casper.sdk.model.auction.AuctionState Maven / Gradle / Ivy

Go to download

SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.

The newest version!
package com.casper.sdk.model.auction;

import com.casper.sdk.model.bid.JsonBids;
import com.casper.sdk.model.era.JsonEraValidators;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.casper.sdk.model.block.JsonBlockData;
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 bids;

    /**
     * Block height
     */
    @JsonProperty("block_height")
    private long height;

    /**
     * @see JsonEraValidators
     */
    @JsonProperty("era_validators")
    private List eraValidators;

    /**
     * Global state hash
     */
    @JsonProperty("state_root_hash")
    private String stateRootHash;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy