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

implement ics06 solomachine client #676

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
93e73c5
Add solo machine client state and consensus state along with header a…
DaviRain-Su Apr 20, 2023
f49f128
Add consensus state to solo machine client state
DaviRain-Su Apr 20, 2023
61021f6
Add Solo Machine consensus header type and decoding, encoding methods.
DaviRain-Su Apr 20, 2023
dbaf569
Update ICS06 solo machine to use `RawSol` prefix and add `DataType` e…
DaviRain-Su Apr 20, 2023
6097475
Reformatting and updating `ics06_solomachine` client to resolve bugs …
DaviRain-Su Apr 21, 2023
d2ab9fc
add types
DaviRain-Su Apr 21, 2023
a0eb598
refactor: use SoloMachineConsensusState in ics06_solomachine/client_s…
DaviRain-Su Apr 21, 2023
67918e8
refactor(client_state): add new methods to implement ClientState inte…
DaviRain-Su Apr 23, 2023
031c0fe
refactor: Clean up Cargo.toml dependencies and implement public_key a…
DaviRain-Su Apr 23, 2023
cf28e11
Refactor SoloMachine client_state and consensus_state implementations.
DaviRain-Su Apr 25, 2023
39e29c9
refactor: Refactor code in ics06_solomachine folder
DaviRain-Su Apr 25, 2023
c789909
Refactor ICS06 Solomachine client, consensus and packet handling
DaviRain-Su Apr 25, 2023
4a33419
Update Cargo.toml
DaviRain-Su May 9, 2023
a69a5cb
Merge branch 'main' into 06-solomachine
DaviRain-Su May 9, 2023
4e87748
refactor(ibc): Update dependencies and fix import errors in ics06_sol…
DaviRain-Su May 9, 2023
dd58a94
Add new IBC Proto version v0.29.0 from the new-proto-v0.29.0 branch.
DaviRain-Su May 10, 2023
0d64b86
Add 'cosmrs' v0.12.0, disable default feature, and point git to octop…
DaviRain-Su May 11, 2023
b37184a
Updated ibc_proto to v2 and added a boolean `is_frozen` to `ClientSta…
DaviRain-Su May 11, 2023
ea86c55
fix(ibc): Public Key type inconsistency in ICS06 SoloMachine
DaviRain-Su May 12, 2023
b431817
Add SoloMachineConsensusState to ClientState and implement get timest…
DaviRain-Su May 12, 2023
80acaa8
Add support for frozen client state (#123)
DaviRain-Su May 12, 2023
0c79b37
refactor: Cleaning up ICS06 Solo Machine commit state implementation …
DaviRain-Su May 12, 2023
a0da3ea
Adjust IBC client_state.rs file to handle ClientError and todo(daviri…
DaviRain-Su May 12, 2023
8517966
feat: Add proof.rs file and verify_signature function to ics06_soloma…
DaviRain-Su May 12, 2023
f5df4f7
Merge branch 'main' into 06-solomachine
DaviRain-Su May 12, 2023
53d761a
Update client_state.rs
DaviRain-Su May 12, 2023
f8ebe15
Update cosmos-rust branch to new-proto-v0.12.0-rc in Cargo.toml.
DaviRain-Su May 12, 2023
23c6ea6
Refactor solomachine client_state to remove unused variables and func…
DaviRain-Su May 12, 2023
6319252
Add misbehaviour and update_client file
DaviRain-Su May 15, 2023
c87f72e
refactor(ibc): replace `RawSolClientState` and `RawSolConsensusState`…
DaviRain-Su May 15, 2023
1238f2e
feat(ics06): add signature and public key errors
DaviRain-Su May 15, 2023
71bbb0d
Refactor debug and display implementations for ICS06 solomachine head…
DaviRain-Su May 15, 2023
868ce3a
Add validation and verification methods for client state and signatur…
DaviRain-Su May 15, 2023
85a1110
Refactor solomachine client state update, verify header signature and…
DaviRain-Su May 15, 2023
81cc8e3
feat: update error.rs and related types
DaviRain-Su May 15, 2023
63764b3
Add implementation for updating Solo Machine client state from header…
DaviRain-Su May 15, 2023
eba936f
Add verification of solomachine signatures and data in updating the c…
DaviRain-Su May 15, 2023
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
331 changes: 317 additions & 14 deletions ci/no-std-check/Cargo.lock

Large diffs are not rendered by default.

23 changes: 4 additions & 19 deletions crates/ibc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,7 @@ all-features = true

[features]
default = ["std"]
std = [
"ibc-proto/std",
"ics23/std",
"serde/std",
"serde_json/std",
"erased-serde/std",
"tracing/std",
"prost/std",
"bytes/std",
"subtle-encoding/std",
"sha2/std",
"displaydoc/std",
"num-traits/std",
"uint/std",
"primitive-types/std",
"tendermint/clock",
"tendermint/std",
]
std = ["ibc-proto/std", "ics23/std", "serde/std", "serde_json/std", "erased-serde/std", "tracing/std", "prost/std", "bytes/std", "subtle-encoding/std", "sha2/std", "displaydoc/std", "num-traits/std", "uint/std", "primitive-types/std", "tendermint/clock", "tendermint/std", "cosmrs/std"]
parity-scale-codec = ["dep:parity-scale-codec", "dep:scale-info"]
borsh = ["dep:borsh"]

Expand All @@ -49,7 +32,7 @@ mocks-no-std = ["cfg-if"]

[dependencies]
# Proto definitions for all IBC-related interfaces, e.g., connections or channels.
ibc-proto = { version = "0.29.0", default-features = false, features = ["parity-scale-codec", "borsh"] }
ibc-proto = {version = "0.29.0", default-features = false, features = ["parity-scale-codec", "borsh"], git = "https://github.com/octopus-network/ibc-proto-rs.git", branch = "new-proto-v0.29.0" }
ics23 = { version = "0.9.0", default-features = false, features = ["host-functions"] }
time = { version = ">=0.3.0, <0.3.22", default-features = false }
serde_derive = { version = "1.0.104", default-features = false, optional = true }
Expand All @@ -75,6 +58,8 @@ scale-info = { version = "2.1.2", default-features = false, features = ["derive"
borsh = {version = "0.10.0", default-features = false, optional = true }
parking_lot = { version = "0.12.1", default-features = false, optional = true }
cfg-if = { version = "1.0.0", optional = true }
cosmrs = { version = "0.12.0", default-feature = false, git = "https://github.com/octopus-network/cosmos-rust.git", branch = "new-proto-v0.12.0-rc" }
eyre = { version = "0.6", default-features = false }

[dependencies.tendermint]
version = "0.30"
Expand Down
Loading