Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade contracts - v0.55 #136

Closed
wants to merge 2 commits into from
Closed
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
234 changes: 78 additions & 156 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.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
28 changes: 18 additions & 10 deletions contracts/adder/interactor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
[[bin]]
name = "basic-interactor"
path = "src/basic_interactor_main.rs"

[package]
name = "basic-interactor"
version = "0.0.0"
authors = ["MultiversX <[email protected]>"]
edition = "2021"
publish = false

[[bin]]
name = "basic-interactor"
path = "src/basic_interactor_main.rs"

[lib]
path = "src/basic_interactor.rs"

[dependencies]
toml = "0.8.6"

[dependencies.adder]
path = ".."

[dependencies.multiversx-sc-snippets]
version = "0.54.3"
version = "0.55.0"

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

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

[dependencies.tokio]
version = "1.24"

[features]
chain-simulator-tests = []
2 changes: 1 addition & 1 deletion contracts/adder/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
8 changes: 1 addition & 7 deletions contracts/adder/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "adder-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[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.54.3"
version = "0.55.0"

[dependencies.multiversx-sc-modules]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/bonding-curve-contract/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
8 changes: 1 addition & 7 deletions contracts/bonding-curve-contract/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "bonding-curve-contract-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[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.54.3"
version = "0.55.0"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dependencies.multiversx-sc-modules]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/check-pause/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ authors = ["Alin Cruceat <[email protected]>"]
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
8 changes: 1 addition & 7 deletions contracts/check-pause/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "check-pause-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[workspace]
members = ["."]
4 changes: 2 additions & 2 deletions contracts/crowdfunding-esdt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ publish = false
path = "src/crowdfunding_esdt.rs"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies]
num-bigint = "0.4.2"
num-traits = "0.2"
hex = "0.4"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/crowdfunding-esdt/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
8 changes: 1 addition & 7 deletions contracts/crowdfunding-esdt/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "crowdfunding-esdt-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

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

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/crypto-bubbles/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
4 changes: 2 additions & 2 deletions contracts/crypto-bubbles/src/crypto_bubbles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub trait CryptoBubbles {
#[payable("EGLD")]
#[endpoint(topUp)]
fn top_up(&self) {
let payment = self.call_value().egld_value();
let payment = self.call_value().egld();
let caller = self.blockchain().get_caller();
self.player_balance(&caller)
.update(|balance| *balance += &*payment);
Expand Down Expand Up @@ -63,7 +63,7 @@ pub trait CryptoBubbles {
#[payable("EGLD")]
#[endpoint(joinGame)]
fn join_game(&self, game_index: BigUint) {
let bet = self.call_value().egld_value();
let bet = self.call_value().egld();
let player = self.blockchain().get_caller();
self.top_up();
self.add_player_to_game_state_change(&game_index, &player, &bet)
Expand Down
8 changes: 1 addition & 7 deletions contracts/crypto-bubbles/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "crypto-bubbles-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[workspace]
members = ["."]
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/common/kitty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
path = "src/lib.rs"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dependencies.random]
version = "0.0.0"
Expand Down
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/common/random/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2021"
path = "src/lib.rs"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"
4 changes: 2 additions & 2 deletions contracts/crypto-kitties/kitty-auction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version = "0.0.0"
path = "../kitty-ownership"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/kitty-auction/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/kitty-auction/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub trait KittyAuction {
#[payable("EGLD")]
#[endpoint]
fn bid(&self, kitty_id: u32) {
let payment = self.call_value().egld_value();
let payment = self.call_value().egld();

require!(
self.is_up_for_auction(kitty_id),
Expand Down
8 changes: 1 addition & 7 deletions contracts/crypto-kitties/kitty-auction/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "kitty-auction-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[workspace]
members = ["."]
4 changes: 2 additions & 2 deletions contracts/crypto-kitties/kitty-genetic-alg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version = "0.0.0"
path = "../common/random"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/kitty-genetic-alg/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
8 changes: 1 addition & 7 deletions contracts/crypto-kitties/kitty-genetic-alg/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "kitty-genetic-alg-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[workspace]
members = ["."]
4 changes: 2 additions & 2 deletions contracts/crypto-kitties/kitty-ownership/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ version = "0.0.0"
path = "../kitty-genetic-alg"

[dependencies.multiversx-sc]
version = "0.54.3"
version = "0.55.0"

[dev-dependencies.multiversx-sc-scenario]
version = "0.54.3"
version = "0.55.0"
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/kitty-ownership/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta-lib]
version = "0.54.3"
version = "0.55.0"
default-features = false
2 changes: 1 addition & 1 deletion contracts/crypto-kitties/kitty-ownership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub trait KittyOwnership {
require!(self.is_valid_id(matron_id), "Invalid matron id!");
require!(self.is_valid_id(sire_id), "Invalid sire id!");

let payment = self.call_value().egld_value();
let payment = self.call_value().egld();
let auto_birth_fee = self.birth_fee().get();
let caller = self.blockchain().get_caller();

Expand Down
8 changes: 1 addition & 7 deletions contracts/crypto-kitties/kitty-ownership/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

# ##########################################
# ############## AUTO-GENERATED #############
# ##########################################

[package]
name = "kitty-ownership-wasm"
version = "0.0.0"
Expand All @@ -28,7 +22,7 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.54.3"
version = "0.55.0"

[workspace]
members = ["."]
Loading
Loading