Skip to content

Commit

Permalink
Update ICS protos to include misbehaviour messages
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Sep 13, 2023
1 parent cd54052 commit e2886f3
Show file tree
Hide file tree
Showing 7 changed files with 988 additions and 501 deletions.
4 changes: 2 additions & 2 deletions scripts/sync-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ mkdir -p src/prost

cd tools/proto-compiler

cargo build --locked
cargo build

# Run the proto-compiler twice,
# once for std version with --build-tonic set to true
# and once for no-std version with --build-tonic set to false

cargo run --locked -- compile \
cargo run -- compile \
--ics "$COSMOS_ICS_DIR/proto-include" \
--sdk "$COSMOS_SDK_DIR/proto-include" \
--ibc "$IBC_GO_DIR/proto-include" \
Expand Down
2 changes: 1 addition & 1 deletion src/COSMOS_ICS_COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1afe31f573c8dcde08a572572565d43a35eab642
c881a1aad37f2f8041c913468602edaf69fef9bf
626 changes: 607 additions & 19 deletions src/prost/google.protobuf.rs

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion src/prost/interchain_security.ccv.consumer.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Params {
/// TODO: Remove enabled flag and find a better way to setup e2e tests
/// TODO: Remove enabled flag and find a better way to setup integration tests
/// See: <https://github.com/cosmos/interchain-security/issues/339>
#[prost(bool, tag = "1")]
pub enabled: bool,
Expand Down Expand Up @@ -47,6 +47,18 @@ pub struct Params {
pub unbonding_period: ::core::option::Option<
super::super::super::super::google::protobuf::Duration,
>,
/// The threshold for the percentage of validators at the bottom of the set who
/// can opt out of running the consumer chain without being punished. For example, a
/// value of 0.05 means that the validators in the bottom 5% of the set can opt out
#[prost(string, tag = "10")]
pub soft_opt_out_threshold: ::prost::alloc::string::String,
/// Reward denoms. These are the denominations which are allowed to be sent to the provider as rewards.
#[prost(string, repeated, tag = "11")]
pub reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Provider-originated reward denoms. These are denoms coming from the provider
/// which are allowed to be used as rewards. e.g. "uatom"
#[prost(string, repeated, tag = "12")]
pub provider_reward_denoms: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// LastTransmissionBlockHeight is the last time validator holding
/// pools were transmitted to the provider chain
Expand Down Expand Up @@ -130,6 +142,9 @@ pub struct GenesisState {
pub last_transmission_block_height: ::core::option::Option<
LastTransmissionBlockHeight,
>,
/// flag indicating whether the consumer CCV module starts in pre-CCV state
#[prost(bool, tag = "13")]
pub pre_ccv: bool,
}
/// HeightValsetUpdateID defines the genesis information for the mapping
/// of each block height to a valset update id
Expand Down
Loading

0 comments on commit e2886f3

Please sign in to comment.