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

io.provenance.explorer.model.GovernanceModels.kt Maven / Gradle / Ivy

The newest version!
package io.provenance.explorer.model

import com.fasterxml.jackson.databind.node.ObjectNode
import io.provenance.explorer.model.base.CoinStr

data class GovProposalDetail(
    val header: ProposalHeader,
    val timings: ProposalTimings
)

data class ProposalHeader(
    val proposalId: Long,
    val status: String,
    val proposer: GovAddress,
    val type: String,
    val title: String,
    val description: String,
    val details: List
)

data class GovAddress(
    val address: String,
    val validatorAddr: String?,
    val moniker: String?
)

data class ProposalTimings(
    val deposit: DepositPercentage,
    val voting: VotingDetails,
    val submitTime: String,
    val depositEndTime: String,
    val votingTime: GovTimeFrame
)

data class VotingDetails(
    val params: TallyParams,
    val tally: VotesTally
)

data class DepositPercentage(
    val initial: String,
    val current: String,
    val needed: String,
    val denom: String
)

data class GovTimeFrame(
    val startTime: String,
    val endTime: String
)

data class TallyParams(
    val totalEligibleAmount: CoinStr,
    val quorumThreshold: String,
    val passThreshold: String,
    val vetoThreshold: String
)

data class VotesTally(
    val yes: Tally,
    val no: Tally,
    val noWithVeto: Tally,
    val abstain: Tally,
    val total: Tally
)

data class Tally(
    val count: Int,
    val amount: CoinStr
)

data class DepositRecord(
    val voter: GovAddress,
    val type: String,
    val amount: CoinStr,
    val blockHeight: Int,
    val txHash: String,
    val txTimestamp: String
)

data class GovVotesDetail(
    val params: TallyParams,
    val tally: VotesTally,
    val votes: List
)

data class VoteRecord(
    val voter: GovAddress,
    val answer: Map,
    val blockHeight: Int,
    val txHash: String,
    val txTimestamp: String,
    val proposalId: Long,
    val proposalTitle: String,
    val proposalStatus: String,
    val justification: String?
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy