Skip to content

Commit

Permalink
undo upgrade mystery box
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Oct 2, 2023
1 parent 1c9fea0 commit 126234f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 44 deletions.
6 changes: 3 additions & 3 deletions contracts/mystery-box/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ publish = false
[lib]
path = "src/lib.rs"
[dependencies.multiversx-sc]
version = "0.43.3"
version = "0.41.3"

[dependencies.multiversx-sc-modules]
version = "0.43.3"
version = "0.41.3"
[dev-dependencies.multiversx-sc-scenario]
version = "0.43.3"
version = "0.41.3"
2 changes: 1 addition & 1 deletion contracts/mystery-box/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.43.3"
version = "0.41.3"
44 changes: 22 additions & 22 deletions contracts/mystery-box/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/mystery-box/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ panic = "abort"
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.43.3"
version = "0.41.3"
30 changes: 13 additions & 17 deletions contracts/mystery-box/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
// Total number of exported functions: 14

#![no_std]

// Configuration that works with rustc < 1.73.0.
// TODO: Recommended rustc version: 1.73.0 or newer.
#![feature(lang_items)]

multiversx_sc_wasm_adapter::allocator!();
Expand All @@ -21,20 +18,19 @@ multiversx_sc_wasm_adapter::panic_handler!();
multiversx_sc_wasm_adapter::endpoints! {
mystery_box
(
init => init
setupMysteryBox => setup_mystery_box
updateMysteryBoxUris => update_mystery_box_uris
createMysteryBox => create_mystery_box
openMysteryBox => open_mystery_box
getMysteryBoxTokenIdentifier => mystery_box_token_id
getGlobalCooldownEpoch => global_cooldown_epoch
getWinningRates => winning_rates
getMysteryBoxUris => mystery_box_uris
isAdmin => is_admin
addAdmin => add_admin
removeAdmin => remove_admin
getAdmins => admins
setupMysteryBox
updateMysteryBoxUris
createMysteryBox
openMysteryBox
getMysteryBoxTokenIdentifier
getGlobalCooldownEpoch
getWinningRates
getMysteryBoxUris
isAdmin
addAdmin
removeAdmin
getAdmins
)
}

multiversx_sc_wasm_adapter::async_callback_empty! {}
multiversx_sc_wasm_adapter::empty_callback! {}

0 comments on commit 126234f

Please sign in to comment.