Skip to content

Commit

Permalink
Merge pull request #1082 from multiversx/rc/v0.42
Browse files Browse the repository at this point in the history
Release candidate v0.42
  • Loading branch information
andrei-marinica committed Jul 14, 2023
2 parents c7ad475 + 82958a6 commit e4680f2
Show file tree
Hide file tree
Showing 967 changed files with 28,992 additions and 21,652 deletions.
12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ members = [

"contracts/examples/adder",
"contracts/examples/adder/meta",
"contracts/examples/adder/interact",
"contracts/examples/esdt-transfer-with-fee",
"contracts/examples/esdt-transfer-with-fee/meta",
"contracts/examples/bonding-curve-contract",
Expand Down Expand Up @@ -78,7 +79,7 @@ members = [
"contracts/examples/lottery-esdt/meta",
"contracts/examples/multisig",
"contracts/examples/multisig/meta",
"contracts/examples/multisig/interact-rs",
"contracts/examples/multisig/interact",
"contracts/examples/nft-minter",
"contracts/examples/nft-minter/meta",
"contracts/examples/nft-storage-prepay",
Expand All @@ -104,9 +105,11 @@ members = [
"contracts/feature-tests/alloc-features/meta",
"contracts/feature-tests/basic-features",
"contracts/feature-tests/basic-features/meta",
"contracts/feature-tests/basic-features/interact",
"contracts/feature-tests/big-float-features",
"contracts/feature-tests/big-float-features/meta",
"contracts/feature-tests/composability",
"contracts/feature-tests/composability/interact",
"contracts/feature-tests/composability/esdt-contract-pair",
"contracts/feature-tests/composability/esdt-contract-pair/first-contract",
"contracts/feature-tests/composability/esdt-contract-pair/first-contract/meta",
Expand All @@ -118,6 +121,8 @@ members = [
"contracts/feature-tests/composability/execute-on-dest-esdt-issue-callback/child/meta",
"contracts/feature-tests/composability/forwarder",
"contracts/feature-tests/composability/forwarder/meta",
"contracts/feature-tests/composability/forwarder-queue",
"contracts/feature-tests/composability/forwarder-queue/meta",
"contracts/feature-tests/composability/forwarder-raw",
"contracts/feature-tests/composability/forwarder-raw/meta",
"contracts/feature-tests/composability/local-esdt-and-nft",
Expand Down Expand Up @@ -152,8 +157,8 @@ members = [
"contracts/feature-tests/esdt-system-sc-mock/meta",
"contracts/feature-tests/formatted-message-features",
"contracts/feature-tests/formatted-message-features/meta",
"contracts/feature-tests/legacy-examples/crypto-bubbles-legacy",
"contracts/feature-tests/legacy-examples/crypto-bubbles-legacy/meta",
"contracts/feature-tests/managed-map-features",
"contracts/feature-tests/managed-map-features/meta",
"contracts/feature-tests/multi-contract-features",
"contracts/feature-tests/multi-contract-features/meta",
"contracts/feature-tests/panic-message-features",
Expand All @@ -167,4 +172,3 @@ members = [
"contracts/feature-tests/use-module",
"contracts/feature-tests/use-module/meta",
]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn large_storage_go() {
world().run("scenarios/large_storage.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ fn world() -> ScenarioWorld {

#[test]
fn large_storage_rs() {
multiversx_sc_scenario::run_rs("scenarios/large_storage.scen.json", world());
world().run("scenarios/large_storage.scen.json");
}
16 changes: 8 additions & 8 deletions contracts/benchmarks/large-storage/wasm/Cargo.lock

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

7 changes: 4 additions & 3 deletions contracts/benchmarks/large-storage/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ multiversx_sc_wasm_adapter::panic_handler!();
multiversx_sc_wasm_adapter::endpoints! {
large_storage
(
saveStructure
savedStructure
init => init
saveStructure => save_structure
savedStructure => structure
)
}

multiversx_sc_wasm_adapter::empty_callback! {}
multiversx_sc_wasm_adapter::async_callback_empty! {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn linked_list_repeat_go() {
multiversx_sc_scenario::run_go("scenarios/linked_list_repeat.scen.json");
world().run("scenarios/linked_list_repeat.scen.json");
}

#[test]
fn linked_list_repeat_struct_go() {
multiversx_sc_scenario::run_go("scenarios/linked_list_repeat_struct.scen.json");
world().run("scenarios/linked_list_repeat_struct.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn world() -> ScenarioWorld {

#[test]
fn linked_list_repeat_rs() {
multiversx_sc_scenario::run_rs("scenarios/linked_list_repeat.scen.json", world());
world().run("scenarios/linked_list_repeat.scen.json");
}

#[test]
fn linked_list_repeat_struct_rs() {
multiversx_sc_scenario::run_rs("scenarios/linked_list_repeat_struct.scen.json", world());
world().run("scenarios/linked_list_repeat_struct.scen.json");
}
16 changes: 8 additions & 8 deletions contracts/benchmarks/mappers/linked-list-repeat/wasm/Cargo.lock

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

19 changes: 10 additions & 9 deletions contracts/benchmarks/mappers/linked-list-repeat/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ multiversx_sc_wasm_adapter::panic_handler!();
multiversx_sc_wasm_adapter::endpoints! {
linked_list_repeat
(
add
count
remove
bench
add_struct
count_struct
remove_struct
bench_struct
init => init
add => add
count => count
remove => remove
bench => bench
add_struct => add_struct
count_struct => count_struct
remove_struct => remove_struct
bench_struct => bench_struct
)
}

multiversx_sc_wasm_adapter::empty_callback! {}
multiversx_sc_wasm_adapter::async_callback_empty! {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn map_repeat_go() {
multiversx_sc_scenario::run_go("scenarios/map_repeat.scen.json");
world().run("scenarios/map_repeat.scen.json");
}

#[test]
fn map_repeat_struct_go() {
multiversx_sc_scenario::run_go("scenarios/map_repeat_struct.scen.json");
world().run("scenarios/map_repeat_struct.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn world() -> ScenarioWorld {

#[test]
fn map_repeat_rs() {
multiversx_sc_scenario::run_rs("scenarios/map_repeat.scen.json", world());
world().run("scenarios/map_repeat.scen.json");
}

#[test]
fn map_repeat_struct_rs() {
multiversx_sc_scenario::run_rs("scenarios/map_repeat_struct.scen.json", world());
world().run("scenarios/map_repeat_struct.scen.json");
}
16 changes: 8 additions & 8 deletions contracts/benchmarks/mappers/map-repeat/wasm/Cargo.lock

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

15 changes: 8 additions & 7 deletions contracts/benchmarks/mappers/map-repeat/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ multiversx_sc_wasm_adapter::panic_handler!();
multiversx_sc_wasm_adapter::endpoints! {
map_repeat
(
add
count
remove
add_struct
count_struct
remove_struct
init => init
add => add
count => count
remove => remove
add_struct => add_struct
count_struct => count_struct
remove_struct => remove_struct
)
}

multiversx_sc_wasm_adapter::empty_callback! {}
multiversx_sc_wasm_adapter::async_callback_empty! {}
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
use multiversx_sc_scenario::*;

fn world() -> ScenarioWorld {
ScenarioWorld::vm_go()
}

#[test]
fn queue_repeat_go() {
multiversx_sc_scenario::run_go("scenarios/queue_repeat.scen.json");
world().run("scenarios/queue_repeat.scen.json");
}

#[test]
fn queue_repeat_struct_go() {
multiversx_sc_scenario::run_go("scenarios/queue_repeat_struct.scen.json");
world().run("scenarios/queue_repeat_struct.scen.json");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fn world() -> ScenarioWorld {

#[test]
fn queue_repeat_rs() {
multiversx_sc_scenario::run_rs("scenarios/queue_repeat.scen.json", world());
world().run("scenarios/queue_repeat.scen.json");
}

#[test]
fn queue_repeat_struct_rs() {
multiversx_sc_scenario::run_rs("scenarios/queue_repeat_struct.scen.json", world());
world().run("scenarios/queue_repeat_struct.scen.json");
}
Loading

0 comments on commit e4680f2

Please sign in to comment.