Skip to content

Commit

Permalink
Runtime APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
JuaniRios committed Jul 22, 2024
1 parent a899c98 commit cf7e74c
Show file tree
Hide file tree
Showing 26 changed files with 1,930 additions and 168 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions integration-tests/src/tests/ct_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ fn create_settled_project() -> (ProjectId, Vec<AccountId>) {
let project_id = inst.create_finished_project(
default_project_metadata(ISSUER.into()),
ISSUER.into(),
None,
default_evaluations(),
default_bids(),
default_community_contributions(),
Expand Down Expand Up @@ -221,6 +222,7 @@ fn create_project_with_unsettled_participation(participation_type: Participation
let project_id = inst.create_finished_project(
default_project_metadata(ISSUER.into()),
ISSUER.into(),
None,
default_evaluations(),
default_bids(),
default_community_contributions(),
Expand Down
9 changes: 7 additions & 2 deletions integration-tests/src/tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ fn evaluation_round_completed() {
let evaluations = excel_evaluators();

PolimecNet::execute_with(|| {
inst.create_auctioning_project(project, issuer, evaluations);
inst.create_auctioning_project(project, issuer, None, evaluations);
});
}

Expand All @@ -296,7 +296,7 @@ fn auction_round_completed() {
let bids = excel_bidders();

PolimecNet::execute_with(|| {
let project_id = inst.create_community_contributing_project(project, issuer, evaluations, bids);
let project_id = inst.create_community_contributing_project(project, issuer, None, evaluations, bids);
let excel_wap_fixed = FixedU128::from_float(10.202357561f64);
let excel_wap_usd = excel_wap_fixed.saturating_mul_int(USD_UNIT);

Expand Down Expand Up @@ -334,6 +334,7 @@ fn community_round_completed() {
let _ = inst.create_remainder_contributing_project(
excel_project(),
ISSUER.into(),
None,
excel_evaluators(),
excel_bidders(),
excel_contributions(),
Expand All @@ -360,6 +361,7 @@ fn remainder_round_completed() {
inst.create_finished_project(
excel_project(),
ISSUER.into(),
None,
excel_evaluators(),
excel_bidders(),
excel_contributions(),
Expand Down Expand Up @@ -393,6 +395,7 @@ fn funds_raised() {
let project_id = inst.create_finished_project(
excel_project(),
ISSUER.into(),
None,
excel_evaluators(),
excel_bidders(),
excel_contributions(),
Expand Down Expand Up @@ -424,6 +427,7 @@ fn ct_minted() {
let project_id = inst.create_finished_project(
excel_project(),
ISSUER.into(),
None,
excel_evaluators(),
excel_bidders(),
excel_contributions(),
Expand Down Expand Up @@ -452,6 +456,7 @@ fn ct_migrated() {
let project_id = inst.create_finished_project(
excel_project(),
ISSUER.into(),
None,
excel_evaluators(),
excel_bidders(),
excel_contributions(),
Expand Down
1 change: 1 addition & 0 deletions integration-tests/src/tests/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ fn pallet_funding_works() {
let _project_id = inst.create_finished_project(
default_project_metadata(ISSUER.into()),
ISSUER.into(),
None,
default_evaluations(),
default_bids(),
default_community_contributions(),
Expand Down
1 change: 1 addition & 0 deletions pallets/funding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pallet-xcm.workspace = true
polkadot-parachain-primitives.workspace = true
polimec-common-test-utils = { workspace = true, optional = true }
frame-benchmarking = { workspace = true, optional = true }
sp-api.workspace = true

# Used in the instantiator.
itertools.workspace = true
Expand Down
Loading

0 comments on commit cf7e74c

Please sign in to comment.