-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes: #459
- Loading branch information
Showing
31 changed files
with
454 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 42 additions & 41 deletions
83
service/src/main/kotlin/io/provenance/explorer/domain/models/explorer/ParamModels.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,72 @@ | ||
package io.provenance.explorer.domain.models.explorer | ||
|
||
import com.fasterxml.jackson.databind.JsonNode | ||
import io.provenance.explorer.JSON_NODE_FACTORY | ||
|
||
data class Params( | ||
val cosmos: CosmosParams, | ||
val prov: ProvParams, | ||
val cosmos: CosmosParams = CosmosParams(), | ||
val prov: ProvParams = ProvParams(), | ||
) | ||
|
||
data class CosmosParams( | ||
val auth: JsonNode, | ||
val bank: JsonNode, | ||
val dist: DistParams, | ||
val gov: GovParams, | ||
val mint: MintParams, | ||
val slashing: SlashingParams, | ||
val staking: JsonNode, | ||
val ibc: IBCParams, | ||
val wasm: JsonNode | ||
val auth: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val bank: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val dist: DistParams = DistParams(), | ||
val gov: GovParams = GovParams(), | ||
val mint: MintParams = MintParams(), | ||
val slashing: SlashingParams = SlashingParams(), | ||
val staking: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val ibc: IBCParams = IBCParams(), | ||
val wasm: JsonNode = JSON_NODE_FACTORY.objectNode() | ||
) | ||
|
||
data class DistParams( | ||
val community_tax: String, | ||
val base_proposer_reward: String, | ||
val bonus_proposer_reward: String, | ||
val withdraw_addr_enabled: Boolean, | ||
val community_tax: String = "", | ||
val base_proposer_reward: String = "", | ||
val bonus_proposer_reward: String = "", | ||
val withdraw_addr_enabled: Boolean = false, | ||
) | ||
|
||
data class GovParams( | ||
val voting: JsonNode, | ||
val tallying: TallyingParams, | ||
val deposit: JsonNode, | ||
val voting: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val tallying: TallyingParams = TallyingParams(), | ||
val deposit: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
) | ||
|
||
data class TallyingParams( | ||
val quorum: String, | ||
val threshold: String, | ||
val veto_threshold: String | ||
val quorum: String = "", | ||
val threshold: String = "", | ||
val veto_threshold: String = "" | ||
) | ||
|
||
data class MintParams( | ||
val mint_denom: String, | ||
val inflation_rate_change: String, | ||
val inflation_max: String, | ||
val inflation_min: String, | ||
val goal_bonded: String, | ||
val blocks_per_year: Long, | ||
val mint_denom: String = "", | ||
val inflation_rate_change: String = "", | ||
val inflation_max: String = "", | ||
val inflation_min: String = "", | ||
val goal_bonded: String = "", | ||
val blocks_per_year: Long = 0L, | ||
) | ||
|
||
data class SlashingParams( | ||
val signed_blocks_window: Long, | ||
val min_signed_per_window: String, | ||
val downtime_jail_duration: String, | ||
val slash_fraction_double_sign: String, | ||
val slash_fraction_downtime: String, | ||
val signed_blocks_window: Long = 0L, | ||
val min_signed_per_window: String = "", | ||
val downtime_jail_duration: String = "", | ||
val slash_fraction_double_sign: String = "", | ||
val slash_fraction_downtime: String = "", | ||
) | ||
|
||
data class IBCParams( | ||
val transfer: JsonNode, | ||
val client: JsonNode, | ||
val icaController: JsonNode?, | ||
val icaHost: JsonNode | ||
val transfer: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val client: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val icaController: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val icaHost: JsonNode = JSON_NODE_FACTORY.objectNode() | ||
) | ||
|
||
data class ProvParams( | ||
val attribute: JsonNode, | ||
val marker: JsonNode, | ||
val metadata: JsonNode, | ||
val name: JsonNode, | ||
val msgFees: JsonNode | ||
val attribute: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val marker: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val metadata: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val name: JsonNode = JSON_NODE_FACTORY.objectNode(), | ||
val msgFees: JsonNode = JSON_NODE_FACTORY.objectNode() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.