Skip to content

Commit

Permalink
Merge branch 'main' into merge-and-upgrade-2
Browse files Browse the repository at this point in the history
  • Loading branch information
dorin-iancu committed Jul 11, 2024
2 parents 334161c + 385c1e9 commit 5194d5a
Show file tree
Hide file tree
Showing 311 changed files with 5,709 additions and 3,812 deletions.
412 changes: 90 additions & 322 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions contracts/adder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
path = "src/adder.rs"

[dependencies.multiversx-sc]
version = "0.50.4"
version = "0.51.1"

[dev-dependencies.multiversx-sc-scenario]
version = "0.50.4"
version = "0.51.1"
20 changes: 13 additions & 7 deletions contracts/adder/interact/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
[[bin]]
name = "basic-interact"
path = "src/basic_interact.rs"

[package]
name = "basic-interact"
version = "0.0.0"
authors = ["Ovidiu Stinga <[email protected]>"]
edition = "2021"
publish = false

[[bin]]
name = "basic-interact"
path = "src/basic_interact.rs"

[dependencies]
clap = { version = "4.4.7", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
toml = "0.8.6"

[dependencies.clap]
version = "4.4.7"
features = ["derive"]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.adder]
path = ".."

[dependencies.multiversx-sc-snippets]
version = "0.50.4"
version = "0.51.1"
12 changes: 6 additions & 6 deletions contracts/adder/interact/src/basic_interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ async fn main() {
match &cli.command {
Some(basic_interact_cli::InteractCliCommand::Add(args)) => {
basic_interact.add(args.value).await;
},
}
Some(basic_interact_cli::InteractCliCommand::Deploy) => {
basic_interact.deploy().await;
},
}
Some(basic_interact_cli::InteractCliCommand::Feed) => {
basic_interact.feed_contract_egld().await;
},
}
Some(basic_interact_cli::InteractCliCommand::MultiDeploy(args)) => {
basic_interact.multi_deploy(&args.count).await;
},
}
Some(basic_interact_cli::InteractCliCommand::Sum) => {
basic_interact.print_sum().await;
},
None => {},
}
None => {}
}
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/adder/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ publish = false
[dependencies.adder]
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.50.4"
[dependencies.multiversx-sc-meta-lib]
version = "0.51.1"
default-features = false
2 changes: 1 addition & 1 deletion contracts/adder/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
multiversx_sc_meta::cli_main::<adder::AbiProvider>();
multiversx_sc_meta_lib::cli_main::<adder::AbiProvider>();
}
32 changes: 16 additions & 16 deletions contracts/adder/wasm/Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/adder/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.50.4"
version = "0.51.1"

[workspace]
members = ["."]
6 changes: 3 additions & 3 deletions contracts/bonding-curve-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ publish = false
path = "src/bonding_curve_contract.rs"

[dependencies.multiversx-sc]
version = "0.50.4"
version = "0.51.1"

[dependencies.multiversx-sc-modules]
version = "0.50.4"
version = "0.51.1"

[dev-dependencies.multiversx-sc-scenario]
version = "0.50.4"
version = "0.51.1"
4 changes: 2 additions & 2 deletions contracts/bonding-curve-contract/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ publish = false
[dependencies.bonding-curve-contract]
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.50.4"
[dependencies.multiversx-sc-meta-lib]
version = "0.51.1"
default-features = false
2 changes: 1 addition & 1 deletion contracts/bonding-curve-contract/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
multiversx_sc_meta::cli_main::<bonding_curve_contract::AbiProvider>();
multiversx_sc_meta_lib::cli_main::<bonding_curve_contract::AbiProvider>();
}
5 changes: 2 additions & 3 deletions contracts/bonding-curve-contract/src/function_selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use crate::bonding_curve::{
use multiversx_sc::derive_imports::*;
use multiversx_sc::imports::*;

#[derive(
TopEncode, TopDecode, NestedEncode, NestedDecode, TypeAbi, PartialEq, Eq, Clone, Default,
)]
#[type_abi]
#[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, PartialEq, Eq, Clone, Default)]
pub enum FunctionSelector<M: ManagedTypeApi> {
Linear(LinearFunction<M>),
CustomExample(BigUint<M>),
Expand Down
36 changes: 18 additions & 18 deletions contracts/bonding-curve-contract/wasm/Cargo.lock

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

2 changes: 1 addition & 1 deletion contracts/bonding-curve-contract/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.50.4"
version = "0.51.1"

[workspace]
members = ["."]
6 changes: 3 additions & 3 deletions contracts/check-pause/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ path = "src/check_pause.rs"
num-bigint = "0.4.2"

[dev-dependencies.multiversx-sc-scenario]
version = "0.50.4"
version = "0.51.1"

[dependencies.multiversx-sc]
version = "0.50.4"
version = "0.51.1"

[dependencies.multiversx-sc-modules]
version = "0.50.4"
version = "0.51.1"
4 changes: 2 additions & 2 deletions contracts/check-pause/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ authors = ["Alin Cruceat <[email protected]>"]
[dependencies.check-pause]
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.50.4"
[dependencies.multiversx-sc-meta-lib]
version = "0.51.1"
default-features = false
2 changes: 1 addition & 1 deletion contracts/check-pause/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
multiversx_sc_meta::cli_main::<check_pause::AbiProvider>();
multiversx_sc_meta_lib::cli_main::<check_pause::AbiProvider>();
}
Loading

0 comments on commit 5194d5a

Please sign in to comment.