Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion contracts/analytics/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::new_without_default)]
Expand All @@ -6,7 +7,7 @@ use ink::prelude::string::String;
use ink::prelude::vec::Vec;

#[ink::contract]
mod propchain_analytics {
pub mod propchain_analytics {
use super::*;

/// Market metrics representing aggregated property data.
Expand Down
1 change: 1 addition & 0 deletions contracts/bridge/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(
Expand Down
1 change: 1 addition & 0 deletions contracts/compliance_registry/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::needless_borrows_for_generic_args,
Expand Down
1 change: 1 addition & 0 deletions contracts/crowdfunding/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::arithmetic_side_effects,
Expand Down
3 changes: 2 additions & 1 deletion contracts/database/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::new_without_default)]
Expand Down Expand Up @@ -30,7 +31,7 @@ use ink::prelude::vec::Vec;
use ink::storage::Mapping;

#[ink::contract]
mod propchain_database {
pub mod propchain_database {
use super::*;

// Data types extracted to types.rs (Issue #101)
Expand Down
1 change: 1 addition & 0 deletions contracts/dex/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(
Expand Down
1 change: 1 addition & 0 deletions contracts/factory/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]

use ink::prelude::string::String;
Expand Down
3 changes: 2 additions & 1 deletion contracts/fees/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]

Expand All @@ -16,7 +17,7 @@ use propchain_traits::{DynamicFeeProvider, FeeOperation};
// every test after every include isn't worth the structural churn, so
// suppress the lint here.
#[allow(clippy::items_after_test_module)]
mod propchain_fees {
pub mod propchain_fees {
use super::*;

/// Basis points denominator (10000 = 100%)
Expand Down
1 change: 1 addition & 0 deletions contracts/fractional/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::needless_borrows_for_generic_args,
Expand Down
1 change: 1 addition & 0 deletions contracts/gdpr/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::needless_borrows_for_generic_args,
Expand Down
1 change: 1 addition & 0 deletions contracts/governance/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::too_many_arguments,
Expand Down
1 change: 1 addition & 0 deletions contracts/hello-world/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(target_family = "wasm", no_std)]
use soroban_sdk::{contract, contractimpl, contracttype, symbol_short, Env, Symbol};

Expand Down
1 change: 1 addition & 0 deletions contracts/identity/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::needless_borrows_for_generic_args)]
Expand Down
1 change: 1 addition & 0 deletions contracts/insurance/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::arithmetic_side_effects,
Expand Down
1 change: 1 addition & 0 deletions contracts/ipfs-metadata/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]

Expand Down
1 change: 1 addition & 0 deletions contracts/lending/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::arithmetic_side_effects,
Expand Down
1 change: 1 addition & 0 deletions contracts/lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::needless_borrows_for_generic_args)]
Expand Down
1 change: 1 addition & 0 deletions contracts/metadata/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::new_without_default)]
Expand Down
1 change: 1 addition & 0 deletions contracts/mock-oracle/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::arithmetic_side_effects,
Expand Down
1 change: 1 addition & 0 deletions contracts/monitoring/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]

#[ink::contract]
Expand Down
1 change: 1 addition & 0 deletions contracts/multicall/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]

//! # PropChain Multicall Contract
Expand Down
1 change: 1 addition & 0 deletions contracts/oracle/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::arithmetic_side_effects,
Expand Down
1 change: 1 addition & 0 deletions contracts/prediction-market/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::new_without_default,
Expand Down
1 change: 1 addition & 0 deletions contracts/property-management/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]

Expand Down
1 change: 1 addition & 0 deletions contracts/proxy/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]

// Minimal stub for propchain-proxy. The original transparent-proxy-with-upgrade-governance
Expand Down
1 change: 1 addition & 0 deletions contracts/sanctions/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
clippy::needless_borrows_for_generic_args,
Expand Down
1 change: 1 addition & 0 deletions contracts/staking/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std, no_main)]
#![allow(
unused_imports,
Expand Down
1 change: 1 addition & 0 deletions contracts/third-party/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(unexpected_cfgs)]
#![allow(clippy::new_without_default)]
Expand Down
1 change: 1 addition & 0 deletions contracts/traits/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]

// =========================================================================
Expand Down
1 change: 1 addition & 0 deletions contracts/version-registry/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::clone_on_copy)] // fires inside ink! generated storage code
#![cfg_attr(not(feature = "std"), no_std)]

use ink::storage::Mapping;
Expand Down
28 changes: 28 additions & 0 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ propchain-bridge = { path = "../contracts/bridge", default-features = false }
oracle = { path = "../contracts/oracle", default-features = false }
propchain-insurance = { path = "../contracts/insurance", default-features = false }

# Issue #922 / #923 / #924 / #925: contracts under integration test
propchain-fees = { path = "../contracts/fees", default-features = false }
propchain-analytics = { path = "../contracts/analytics", default-features = false }
propchain-database = { path = "../contracts/database", default-features = false }
propchain-identity = { path = "../contracts/identity", default-features = false }

# Async runtime
tokio = { version = "1.0", features = ["full"], optional = true }

Expand Down Expand Up @@ -62,6 +68,10 @@ std = [
"staking/std",
"propchain-bridge/std",
"propchain-insurance/std",
"propchain-fees/std",
"propchain-analytics/std",
"propchain-database/std",
"propchain-identity/std",
"serde/std",
"serde_json/std",
"tokio",
Expand All @@ -72,3 +82,21 @@ disabled_test = []




# Issues #922-#925: explicit integration-test targets (the package root is
# the tests/ directory itself, so cargo cannot auto-discover test files)
[[test]]
name = "integration_database"
path = "integration_database.rs"

[[test]]
name = "integration_fees"
path = "integration_fees.rs"

[[test]]
name = "integration_analytics"
path = "integration_analytics.rs"

[[test]]
name = "integration_identity"
path = "integration_identity.rs"
Loading
Loading