Skip to content

Commit cd87b43

Browse files
committed
Add multicall and prediction-market integration coverage; drop unused test deps
- tests/integration_multicall.rs (#926): batch validation, pause gating and admin surface on the real contract; pins that well-formed batches aimed at distinct targets reach the cross-contract boundary for aggregate and try_aggregate_calls (ink! 5's off-chain engine cannot execute real invocations, so deeper atomicity assertions need e2e infra - documented) - tests/integration_prediction_market.rs (#927): full create -> stake -> settle -> claim lifecycle for both admin-resolved markets and oracle-settled markets with exact payout math (3960 net on equal/unequal pools), balance deltas, loser/reputation and double-claim rejections - make propchain_multicall / propchain_prediction_market modules public, give multicall an rlib target so it links into the suite - remove never-referenced compliance_registry and fractional dev-deps of tests/ (#928, #929) to stop building them for no coverage - silence clippy::clone_on_copy firing inside ink! generated storage code
1 parent aeecc2d commit cd87b43

36 files changed

Lines changed: 387 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/analytics/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23
#![allow(unexpected_cfgs)]
34
#![allow(clippy::new_without_default)]

contracts/bridge/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23
#![allow(unexpected_cfgs)]
34
#![allow(

contracts/compliance_registry/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std, no_main)]
23
#![allow(
34
clippy::needless_borrows_for_generic_args,

contracts/crowdfunding/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std, no_main)]
23
#![allow(
34
clippy::arithmetic_side_effects,

contracts/database/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23
#![allow(unexpected_cfgs)]
34
#![allow(clippy::new_without_default)]

contracts/dex/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23
#![allow(unexpected_cfgs)]
34
#![allow(

contracts/factory/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23

34
use ink::prelude::string::String;

contracts/fees/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std)]
23
#![allow(unexpected_cfgs)]
34

contracts/fractional/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
12
#![cfg_attr(not(feature = "std"), no_std, no_main)]
23
#![allow(
34
clippy::needless_borrows_for_generic_args,

0 commit comments

Comments
 (0)