Skip to content

Commit

Permalink
Merge pull request #39 from cardano-foundation/feat/is-60-add-aiken-m…
Browse files Browse the repository at this point in the history
…ithril-client-state

feat: IS-60 Add Mithril ClientState to Cardano on-chain code
  • Loading branch information
dale-smartosc committed May 7, 2024
2 parents 73bd13c + 2d1a31d commit 72db35f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions cardano/lib/ibc/client/cardano-client/protos/mithril.pb.ak
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pub type MithrilClientState {
chain_id: ByteArray,
latest_height: Option<MithrilHeight>,
frozen_height: Option<MithrilHeight>,
current_epoch: Int,
trusting_period: Int,
protocol_parameters: Option<MithrilProtocolParameters>,
upgrade_path: List<ByteArray>,
}

pub type MithrilHeight {
mithril_height: Int,
}

pub type MithrilProtocolParameters {
k: Int,
m: Int,
phi_f: Int,
}

pub type AnyMithrilClientState {
type_url: ByteArray,
value: Option<MithrilClientState>,
}

pub fn marshal_for_any_client_state(
_amcs_opt: Option<AnyMithrilClientState>,
) -> ByteArray {
// TODO: add marshal logic
""
}

0 comments on commit 72db35f

Please sign in to comment.