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

tech.figure.eventstream.stream.NewBlockResult.kt Maven / Gradle / Ivy

package tech.figure.eventstream.stream

import com.squareup.moshi.JsonClass
import tech.figure.eventstream.stream.models.Block
import tech.figure.eventstream.stream.models.BlockResultsResponseResultEvents
import tech.figure.eventstream.stream.models.ConsensusParamsBlock
import tech.figure.eventstream.stream.models.ConsensusParamsEvidence
import tech.figure.eventstream.stream.models.ConsensusParamsValidator

/**
 * Response wrapper data class.
 */
@JsonClass(generateAdapter = true)
data class NewBlockResult(
    val query: String?,
    val data: NewBlockEventResultData,
    val events: Map>?,
)

/**
 * Response wrapper data class.
 */
@JsonClass(generateAdapter = true)
data class NewBlockEventResultData(
    val type: String,
    val value: NewBlockEventResultValue
)

/**
 * Response wrapper data class.
 */
@JsonClass(generateAdapter = true)
data class NewBlockEventResultBeginBlock(
    val events: List
)

/**
 * Response wrapper data class.
 */
@JsonClass(generateAdapter = true)
data class NewBlockEventResultValue(
    val block: Block,
    val result_begin_block: NewBlockEventResultBeginBlock,
    val result_end_block: NewBlockEventResultEndBlock?,
)

@JsonClass(generateAdapter = true)
data class ConsensusParamsUpdates(
    val block: ConsensusParamsBlock?,
    val evidence: ConsensusParamsEvidence?,
    val validator: ConsensusParamsValidator?,
)

@JsonClass(generateAdapter = true)
data class NewBlockEventResultEndBlock(
    val consensus_param_updates: ConsensusParamsBlock?,
    val events: List,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy