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

Framework upgrade 0.45.1 #41

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
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.1"

[dev-dependencies.multiversx-sc-scenario]
version = "0.44.0"
version = "0.45.1"
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.1"
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.1"
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
35 changes: 21 additions & 14 deletions contracts/adder/wasm/Cargo.lock

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

11 changes: 9 additions & 2 deletions contracts/adder/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# 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"

[dependencies.adder]
path = ".."

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

[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.1"

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

[dev-dependencies.multiversx-sc-scenario]
version = "0.44.0"
version = "0.45.1"
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.1"
default-features = false
39 changes: 23 additions & 16 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.

11 changes: 9 additions & 2 deletions contracts/bonding-curve-contract/wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# Code generated by the multiversx-sc build system. DO NOT EDIT.

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

[package]
name = "bonding-curve-contract-wasm"
version = "0.0.0"
authors = ["Alin Cruceat <[email protected]>"]
edition = "2021"
publish = false

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

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

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

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

[workspace]
members = ["."]
2 changes: 1 addition & 1 deletion contracts/bonding-curve-contract/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 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 //////////////////
Expand Down
7 changes: 4 additions & 3 deletions contracts/check-pause/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ path = "src/check_pause.rs"
num-bigint = "0.4.2"

[dev-dependencies.multiversx-sc-scenario]
version = "0.44.0"
version = "0.45.1"

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

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