Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitive packet trace #465

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
41887ef
Fix overflow
vmarkushin Dec 19, 2023
21c8bc3
Fix overflow
vmarkushin Dec 19, 2023
f69a537
Revert "subxt update (#462)"
vmarkushin Dec 19, 2023
8119174
Primitive packet trace
vmarkushin Dec 19, 2023
c066610
use a newer image for linters, remove '+nightly' in cargo fmt check
vmarkushin Dec 19, 2023
2254549
update lint.yml
vmarkushin Dec 19, 2023
cd422e0
revert lint.yml
vmarkushin Dec 20, 2023
60ac24d
Merge branch 'master' into vmarkushin/packets-query
vmarkushin Dec 20, 2023
a86a8d6
fix log target for parachain
vmarkushin Dec 20, 2023
8d46693
Merge remote-tracking branch 'origin/vmarkushin/packets-query' into v…
vmarkushin Dec 20, 2023
850cce2
add chain name to AnyError message
vmarkushin Dec 20, 2023
c037261
fix deps
vmarkushin Dec 21, 2023
b0a9957
update lockfile
vmarkushin Dec 21, 2023
d7ff1cc
Fix overflow (#464)
vmarkushin Dec 19, 2023
976bfc9
Cosmos fixes and improvements; metric handling fix (#474)
vmarkushin Feb 9, 2024
e258cc9
Update Cargo.lock
vmarkushin Feb 9, 2024
1c4a6bb
Update Cargo.lock
vmarkushin Feb 9, 2024
47d6ee0
subxt update (#462)
kkast Dec 19, 2023
d775eb6
subxt update (#466)
kkast Dec 27, 2023
212fe90
chore(ci): change trigger branch master -> main (#498)
rjonczy May 21, 2024
9d40863
feat(grandpa): expose migrate entry point (#499)
kienn6034 May 21, 2024
cb1d5f0
chore(ci): added release action (#500)
rjonczy May 22, 2024
9d39c9b
Merge branch 'main' into vmarkushin/packets-query
vmarkushin Aug 8, 2024
04f53c5
Merge branch 'master' into vmarkushin/packets-query
vmarkushin Aug 8, 2024
9315a7b
Revert some changes from `main`
vmarkushin Aug 8, 2024
5b37365
Allow config files to be specified anywhere in the command.
Sventimir Aug 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 42 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions contracts/pallet-ibc/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43" }
tendermint-proto = { git = "https://github.com/informalsystems/tendermint-rs", rev = "e81f7bf23d63ffbcd242381d1ce5e35da3515ff1", default-features = false }
hex = "0.4.3"

[dependencies.ibc]
path = "../../../ibc/modules"
Expand Down
8 changes: 8 additions & 0 deletions contracts/pallet-ibc/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ pub struct PacketInfo {
pub ack: Option<Vec<u8>>,
}

impl Display for PacketInfo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PacketInfo {{ height: {}, seq: {}, src_chan: {}/{}, dst_chan: {}/{}, data: {}, timeout_height: {}-{}, timeout_timestamp: {}, ack: {} }}",
self.height.unwrap_or(0), self.sequence, self.source_port, self.source_channel, self.destination_port, self.destination_channel,
String::from_utf8(self.data.clone()).unwrap_or_else(|_| hex::encode(&self.data)), self.timeout_height.revision_number, self.timeout_height.revision_height, self.timeout_timestamp, self.ack.clone().map(|ack| String::from_utf8(ack.clone()).unwrap_or_else(|_| hex::encode(&ack))).unwrap_or_default())
}
}

impl TryFrom<RawPacketInfo> for PacketInfo {
type Error = ();

Expand Down
2 changes: 1 addition & 1 deletion hyperspace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Seun Lanlege <[email protected]>", "David Salami <wizdave97@gmai

[dependencies]
tokio = { version = "1.32.0", features = ["macros", "sync", "time", "rt-multi-thread"] }
clap = { version = "3.2.22", features = ["derive"] }
clap = { version = "4.4.11", features = ["derive"] }
anyhow = "1.0.66"
hyperspace-core = { path = "./core" }
toml = "0.7.3"
Expand Down
3 changes: 2 additions & 1 deletion hyperspace/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ env_logger = "0.9.0"
hex = "0.4.3"
tokio = { version = "1.32.0", features = ["macros", "rt-multi-thread", "fs"] }
codec = { version = "3.0.0", package = "parity-scale-codec" }
clap = { version = "3.2.22", features = ["derive"] }
clap = { version = "4.4.11", features = ["derive"] }
toml = "0.7.3"
serde = "1.0.144"
thiserror = "1.0.31"
Expand Down Expand Up @@ -69,6 +69,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", branch = "polk
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.43", default-features = false }
prost = { version = "0.11", default-features = false }
serde_json = "1.0.74"
hyperspace-macros = { path = "../macros", package = "hyperspace-macros" }

[dev-dependencies]
derive_more = "0.99.17"
Expand Down
Loading
Loading