-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(voyager): dump failing messages when submitting a batch
- Loading branch information
Showing
7 changed files
with
160 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub mod abci; | ||
pub mod coin; | ||
pub mod query; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod gas_info; |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use macros::model; | ||
|
||
#[model(proto(raw(protos::cosmos::base::abci::v1beta1::GasInfo), from, into))] | ||
pub struct GasInfo { | ||
pub gas_wanted: u64, | ||
pub gas_used: u64, | ||
} | ||
|
||
impl From<protos::cosmos::base::abci::v1beta1::GasInfo> for GasInfo { | ||
fn from(value: protos::cosmos::base::abci::v1beta1::GasInfo) -> Self { | ||
Self { | ||
gas_wanted: value.gas_wanted, | ||
gas_used: value.gas_used, | ||
} | ||
} | ||
} | ||
|
||
impl From<GasInfo> for protos::cosmos::base::abci::v1beta1::GasInfo { | ||
fn from(value: GasInfo) -> Self { | ||
Self { | ||
gas_wanted: value.gas_wanted, | ||
gas_used: value.gas_used, | ||
} | ||
} | ||
} |
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