-
Notifications
You must be signed in to change notification settings - Fork 79
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
imp(ibc-testkit): revamp mock testing framework #1109
Commits on Feb 7, 2024
-
imp(testkit): Mock IBC context with
basecoin-store
types (#1068)* non empty default CommitmentPrefix * update ibc mock client types * fix tests for updated mock types * generalize MockContextConfig::into * rm clone from MockContext * add with_{client,consensus}_state * add blocks_since in utils.rs * client takes host timestamp by default * refactor relayer context test * fix few tests * add ibc-query and basecoin-store deps * add basecoin-store in mock ibc context * refactor for updated mock ibc context * imp timeout test * public git commit as dep source * fix spelling * update MockClient types * fix failing tests * rm unused utils and deps * fix cargo doc lint * use ibc host paths in mock context * rm redundant curly brackets --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1c3ba50 - Browse repository at this point
Copy the full SHA 1c3ba50View commit details
Commits on Feb 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3d11dfc - Browse repository at this point
Copy the full SHA 3d11dfcView commit details
Commits on Mar 8, 2024
-
imp(ibc-testkit): generalize
Host
forMockContext
(#1107)* fix semantic conflict * happy clippy * fix next_consensus_state impl * update prev_consensus_state impl * use self.block_time over const * use constant timestamp over dynamic now * add new host impls * changes to ibc-testkit * rm deprecated methods * refactor tests * public fields for tm block params * forged client header update test * add todo comment * minor refactor * refactor tests * builder type for light client state * minor refactor * refactor tests * code opt * rename host structs * renamings * refactor tendermint host * mv year_2023 to utils * refactor the new tests * test malicious adjacent header update * fix tests * add changelog * rm unused chain_revision_number * add doc string for year_2023 * rename to query_latest_block
Configuration menu - View commit details
-
Copy full SHA for 74203fb - Browse repository at this point
Copy the full SHA 74203fbView commit details
Commits on Mar 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb6ca8b - Browse repository at this point
Copy the full SHA cb6ca8bView commit details
Commits on Mar 29, 2024
-
feat(ibc-testkit): revamp
MockContext
with chain capabilities (#1135)* imp: impl ctxs on MockIbcStore * fix: set update_meta whenever build light client * imp: generate_client_state should take latest_height * imp: remove unnecessary latest_client_states method * refactor: migrate host relevant fields/methods * fix: get back validate_self_client * imp: bring context types up under src * rm default for CommitmentPrefix * rm default height and timestamp impl for TestBlock * default MockStore * AnyClient and AnyConsensus state in MockIbcStore * at least one consensus state when bootstrapping light client * revision number in MockIbcStore * advance height in MockIbcStore * sync host and ibc store advance in conext * add host params to build host * update host trait * convenient type generics for host associated types * update MockHost * return existing block header with correct timestamp * update TendermintHost * update MockGenericContext impl * update mock context building * add implied trait bounds * refactor method * rm redundant imports and impl * call advance_block on context * update MockContext tests * rm ClientStateCommon * use HostParams to build a host * rm using max_history_size * update few tests * ignore failing tests * clippy::use_self * clippy::flat_map_option * clippy::cloned_instead_of_copied * clippy::redundant_clone * clippy::redundant_type_annotations * clippy::as_underscore * disable slow testcase * prune old host consensus state * prune host consensus history in fixture * enable ignored test * return client_id in fixture * fix and enable failing test * avoid Arc and Mutex * fix doc build * refactor host trait and impls * into over Self::from * fix msrv * explicit relative or global path for pub use * clippy::map_identity * clippy::inconsistent_struct_constructor * clippy::std_instead_of_core * use commitment_root for block generation * rename consensus_states to host_consensus_states * use basecoin proof specs * update tests * imp: add history() under TestHost * chore: add docstring for some of methods under TestHost * update TestHost trait * update MockHost and TendermintHost * add MockGenericContext::generate_genesis_block * update MockContextConfig * update tests * update remaining tests * rm comments and rename test * rm HostParams --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5bdab7c - Browse repository at this point
Copy the full SHA 5bdab7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b9173d - Browse repository at this point
Copy the full SHA 2b9173dView commit details
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 05ea5fa - Browse repository at this point
Copy the full SHA 05ea5faView commit details
Commits on Apr 5, 2024
-
imp(ibc-testkit): Tendermint proof verifications via integration test (…
…#1146) * test tmclient proof verification * use ClientStateConfig directly * rm MockClientConfig * use basecoin store proofspec as default * update tests * use merkle storage in MockContext * fix ProofSpecs size * refactor MockIbcStore to perform begin_block and end_block * simpler proof verification test * use ValidationContext::commitment_prefix() * nits * refactor host related trait method * tendermint host client integration test with proof verification * rm raw test * use typed relayer * add todo for channel integration test * core over std * be semantically correct * add comment for TypedRelayer * integration test for all pairs * fix semantic bug * renames * add channel management * channel creation in RelayerContext * add channel creation in integration test * add test for channel close * query client_id from connection and channel * ibc_store_mut * utils functions for packet relay * add packet relay integration test * add comments * optimize integration utils functions * serde feature for integration tests * rm redundant chain_id * sync clock only on a * add comment * imp: place router under MockGenericContext * nit: add docstring for router * nits * rm redundant lint filters * imp: ditch RelayerContext * nit: simplify build_client_update_datagram * refactor integration tests * add doc strings for TypedRelayerOps * doc strings for RelayerContext * mv client_update_ping_pong to tests dir * rename main_store to multi_store * update TestHost trait * update mock and tendermint hosts * update relayer functions * nits * renames and comments * add comments for return values in relayer ops * imp: simplify into_header --------- Co-authored-by: Farhad Shabani <farhad.shabani@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2acb2fa - Browse repository at this point
Copy the full SHA 2acb2faView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9e5b53c - Browse repository at this point
Copy the full SHA 9e5b53cView commit details -
apply suggestions from code review
Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c49a2c2 - Browse repository at this point
Copy the full SHA c49a2c2View commit details
Commits on Apr 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dedd5f6 - Browse repository at this point
Copy the full SHA dedd5f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36eccc0 - Browse repository at this point
Copy the full SHA 36eccc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4757bdb - Browse repository at this point
Copy the full SHA 4757bdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06963b9 - Browse repository at this point
Copy the full SHA 06963b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6f9622 - Browse repository at this point
Copy the full SHA b6f9622View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccaafa1 - Browse repository at this point
Copy the full SHA ccaafa1View commit details
Commits on Apr 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4804754 - Browse repository at this point
Copy the full SHA 4804754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13ec2f0 - Browse repository at this point
Copy the full SHA 13ec2f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 934288a - Browse repository at this point
Copy the full SHA 934288aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c80b62 - Browse repository at this point
Copy the full SHA 0c80b62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b6dc16 - Browse repository at this point
Copy the full SHA 1b6dc16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d1f38c - Browse repository at this point
Copy the full SHA 4d1f38cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17706dd - Browse repository at this point
Copy the full SHA 17706ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1367864 - Browse repository at this point
Copy the full SHA 1367864View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ada623 - Browse repository at this point
Copy the full SHA 0ada623View commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 443a2de - Browse repository at this point
Copy the full SHA 443a2deView commit details
Commits on Apr 27, 2024
-
Merge branch 'main' into feat/refactor-testkit
Signed-off-by: Rano | Ranadeep <ranadeep@informal.systems>
Configuration menu - View commit details
-
Copy full SHA for 91dd2ca - Browse repository at this point
Copy the full SHA 91dd2caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 142f8f0 - Browse repository at this point
Copy the full SHA 142f8f0View commit details
Commits on Apr 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 03552ce - Browse repository at this point
Copy the full SHA 03552ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 950c43c - Browse repository at this point
Copy the full SHA 950c43cView commit details
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b391663 - Browse repository at this point
Copy the full SHA b391663View commit details -
Configuration menu - View commit details
-
Copy full SHA for d77cd52 - Browse repository at this point
Copy the full SHA d77cd52View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc0626b - Browse repository at this point
Copy the full SHA fc0626bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07e8db1 - Browse repository at this point
Copy the full SHA 07e8db1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b18b732 - Browse repository at this point
Copy the full SHA b18b732View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8e65c6 - Browse repository at this point
Copy the full SHA d8e65c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d47a2a - Browse repository at this point
Copy the full SHA 8d47a2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20dd42c - Browse repository at this point
Copy the full SHA 20dd42cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b0d3943 - Browse repository at this point
Copy the full SHA b0d3943View commit details -
Configuration menu - View commit details
-
Copy full SHA for e092359 - Browse repository at this point
Copy the full SHA e092359View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cb831b - Browse repository at this point
Copy the full SHA 5cb831bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0deecd3 - Browse repository at this point
Copy the full SHA 0deecd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5900434 - Browse repository at this point
Copy the full SHA 5900434View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8db190 - Browse repository at this point
Copy the full SHA b8db190View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8fe3d4 - Browse repository at this point
Copy the full SHA d8fe3d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7172d - Browse repository at this point
Copy the full SHA 6e7172dView commit details
Commits on May 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5af3f13 - Browse repository at this point
Copy the full SHA 5af3f13View commit details -
Configuration menu - View commit details
-
Copy full SHA for c264ae8 - Browse repository at this point
Copy the full SHA c264ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7704550 - Browse repository at this point
Copy the full SHA 7704550View commit details -
docs: ADR-009 to revamp testing framework (#1157)
* draft adr 009 * update adr-009 * apply suggestions from pr review Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com> * use numbers list for sub-proposal titles Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com> * links to validation and execute context Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com> * apply suggestion from pr review * add links to impls * update comment * markdown format * update adr * use TestContext * update comment * apply suggestions from code review Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com> * markdown format * update method names * fix cargo doc error --------- Signed-off-by: Rano | Ranadeep <ranadip.bswas@gmail.com> Co-authored-by: Sean Chen <seanchen11235@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e42acc9 - Browse repository at this point
Copy the full SHA e42acc9View commit details