Skip to content

Commit

Permalink
Merge pull request #45 from multiversx/framework-upgrade-0.45.2
Browse files Browse the repository at this point in the history
Framework upgrade 0.45.2
  • Loading branch information
CostinCarabas authored Dec 20, 2023
2 parents a9a1b89 + ebfb4a7 commit 7e6df3d
Show file tree
Hide file tree
Showing 197 changed files with 2,366 additions and 2,098 deletions.
6 changes: 4 additions & 2 deletions contracts/adder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ publish = false

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

[dependencies.multiversx-sc]
version = "0.44.0"
version = "0.45.2"

[dev-dependencies.multiversx-sc-scenario]
version = "0.44.0"
version = "0.45.2"
7 changes: 5 additions & 2 deletions contracts/adder/interact/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ toml = "0.7.2"

[dependencies.clap]
version = "4.1.0"
features = ["derive", "cargo"]
features = [
"derive",
"cargo",
]

[dependencies.serde]
version = "1.0"
Expand All @@ -24,4 +27,4 @@ features = ["derive"]
path = ".."

[dependencies.multiversx-sc-snippets]
version = "0.44.0"
version = "0.45.2"
4 changes: 3 additions & 1 deletion contracts/adder/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name = "adder-meta"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies.adder]
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.44.0"
version = "0.45.2"
default-features = false
5 changes: 5 additions & 0 deletions contracts/adder/src/adder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ pub trait Adder {
self.sum().set(initial_value);
}

#[endpoint]
fn upgrade(&self, new_value: BigUint) {
self.sum().set(new_value);
}

/// Add desired amount to the storage variable.
#[payable("*")]
#[endpoint]
Expand Down
56 changes: 26 additions & 30 deletions contracts/adder/wasm/Cargo.lock

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

12 changes: 10 additions & 2 deletions contracts/adder/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

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

[package]
name = "adder-wasm"
version = "0.0.0"
authors = ["Andrei Marinica <[email protected]>"]
edition = "2021"
publish = false

[lib]
crate-type = ["cdylib"]

[profile.release]
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"
overflow-checks = false

[dependencies.adder]
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.44.0"
version = "0.45.2"

[workspace]
members = ["."]
7 changes: 4 additions & 3 deletions contracts/adder/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Code generated by the multiversx-sc multi-contract system. DO NOT EDIT.
// Code generated by the multiversx-sc build system. DO NOT EDIT.

////////////////////////////////////////////////////
////////////////// AUTO-GENERATED //////////////////
////////////////////////////////////////////////////

// Init: 1
// Endpoints: 2
// Endpoints: 3
// Async Callback (empty): 1
// Total number of exported functions: 4
// Total number of exported functions: 5

#![no_std]

Expand All @@ -23,6 +23,7 @@ multiversx_sc_wasm_adapter::endpoints! {
(
init => init
getSum => sum
upgrade => upgrade
add => add
)
}
Expand Down
8 changes: 5 additions & 3 deletions contracts/bonding-curve-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ publish = false

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

[dependencies.multiversx-sc]
version = "0.44.0"
version = "0.45.2"

[dependencies.multiversx-sc-modules]
version = "0.44.0"
version = "0.45.2"

[dev-dependencies.multiversx-sc-scenario]
version = "0.44.0"
version = "0.45.2"
4 changes: 3 additions & 1 deletion contracts/bonding-curve-contract/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ version = "0.0.0"
authors = ["Alin Cruceat <[email protected]>"]
edition = "2021"
publish = false

[dependencies.bonding-curve-contract]
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.44.0"
version = "0.45.2"
default-features = false
Loading

0 comments on commit 7e6df3d

Please sign in to comment.