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

[DO NOT MERGE]Added upgrade function in wrapper #240

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
15 changes: 15 additions & 0 deletions .github/workflows/on_pull_request_build_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: On pull request, build contracts

on:
pull_request:

permissions:
contents: write

jobs:
build:
uses: multiversx/mx-sc-actions/.github/workflows/[email protected]
with:
image_tag: v4.2.1
package_whole_project_src: true
skip_preliminary_checks: true
6 changes: 3 additions & 3 deletions bridged-tokens-wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ path = "src/lib.rs"
path = "../common/transaction"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-modules]
version = "0.32.0"
version = "=0.32.0"
2 changes: 1 addition & 1 deletion bridged-tokens-wrapper/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ publish = false
path = ".."

[dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
3 changes: 3 additions & 0 deletions bridged-tokens-wrapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pub trait BridgedTokensWrapper: elrond_wasm_modules::pause::PauseModule {
self.set_paused(true);
}

#[upgrade]
fn upgrade(&self) {}

#[only_owner]
#[endpoint(addWrappedToken)]
fn add_wrapped_token(&self, universal_bridged_token_ids: TokenIdentifier, num_decimals: u32) {
Expand Down
4 changes: 2 additions & 2 deletions bridged-tokens-wrapper/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ panic = "abort"
path = ".."

[dependencies.elrond-wasm-node]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-output]
version = "0.32.0"
version = "=0.32.0"
features = ["wasm-output-mode"]

[workspace]
Expand Down
2 changes: 1 addition & 1 deletion common/eth-address/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2018"
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions common/fee-estimator-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [ "dorin-iancu <[email protected]>",]
edition = "2018"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions common/max-bridged-amount-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = [ "dorin-iancu <[email protected]>",]
edition = "2018"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions common/token-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
path = "../fee-estimator-module"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
2 changes: 1 addition & 1 deletion common/transaction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ path = "src/lib.rs"
path = "../eth-address"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions common/tx-batch-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ authors = [ "dorin-iancu <[email protected]>",]
edition = "2018"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.transaction]
path = "../transaction"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
6 changes: 3 additions & 3 deletions esdt-safe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ path = "../common/tx-batch-module"
path = "../common/max-bridged-amount-module"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-modules]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions esdt-safe/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
path = ".."

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions esdt-safe/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ panic = "abort"
path = ".."

[dependencies.elrond-wasm-node]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-output]
version = "0.32.0"
version = "=0.32.0"
features = ["wasm-output-mode"]
4 changes: 2 additions & 2 deletions multi-transfer-esdt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ path = "../common/max-bridged-amount-module"
path = "../bridged-tokens-wrapper"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions multi-transfer-esdt/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ publish = false
path = ".."

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions multi-transfer-esdt/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ panic = "abort"
path = ".."

[dependencies.elrond-wasm-node]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-output]
version = "0.32.0"
version = "=0.32.0"
features = ["wasm-output-mode"]
6 changes: 3 additions & 3 deletions multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ path = "../esdt-safe"
path = "../multi-transfer-esdt"

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-modules]
version = "0.32.0"
version = "=0.32.0"

[dev-dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions multisig/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
path = ".."

[dependencies.elrond-wasm]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-debug]
version = "0.32.0"
version = "=0.32.0"
4 changes: 2 additions & 2 deletions multisig/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ panic = "abort"
path = ".."

[dependencies.elrond-wasm-node]
version = "0.32.0"
version = "=0.32.0"

[dependencies.elrond-wasm-output]
version = "0.32.0"
version = "=0.32.0"
features = ["wasm-output-mode"]

[workspace]
Expand Down