Skip to content

Commit

Permalink
Merge pull request #936 from multiversx/legacy-contracts-only-with-si…
Browse files Browse the repository at this point in the history
…gnatures

legacy contracts only with signatures
  • Loading branch information
psorinionut authored Aug 3, 2024
2 parents 656c8d8 + b7fedab commit df928d2
Show file tree
Hide file tree
Showing 78 changed files with 16,038 additions and 131 deletions.
99 changes: 92 additions & 7 deletions Cargo.lock

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

18 changes: 14 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,24 @@ members = [

"legacy-contracts/simple-lock-legacy",
"legacy-contracts/simple-lock-legacy/meta",
"legacy-contracts/farm-staking-proxy-v-13",
"legacy-contracts/farm-staking-proxy-v-13/meta",
"legacy-contracts/farm-v-13",
"legacy-contracts/farm-v-13/meta",
"legacy-contracts/farm-staking-proxy-v13",
"legacy-contracts/farm-staking-proxy-v13/meta",
"legacy-contracts/farm-v12",
"legacy-contracts/farm-v12/meta",
"legacy-contracts/farm-v13",
"legacy-contracts/farm-v13/meta",
"legacy-contracts/farm-v13-locked-rewards",
"legacy-contracts/farm-v13-locked-rewards/meta",
"legacy-contracts/farm-v13-custom-rewards",
"legacy-contracts/farm-v13-custom-rewards/meta",
"legacy-contracts/proxy-dex-legacy",
"legacy-contracts/proxy-dex-legacy/meta",
"legacy-contracts/factory-legacy",
"legacy-contracts/factory-legacy/meta",
"legacy-contracts/price-discovery-v1",
"legacy-contracts/price-discovery-v1/meta",
"legacy-contracts/price-discovery-v2",
"legacy-contracts/price-discovery-v2/meta",

"locked-asset/",
"locked-asset/distribution",
Expand Down
3 changes: 0 additions & 3 deletions legacy-contracts/farm-staking-proxy-v-13/meta/src/main.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "farm-staking-proxy-v-13"
name = "farm-staking-proxy-v13"
version = "0.0.0"
authors = ["MultiversX <[email protected]>"]
edition = "2021"
Expand Down Expand Up @@ -27,8 +27,8 @@ path = "../../farm-staking/farm-staking"
[dependencies.pair]
path = "../../dex/pair"

[dependencies.farm-v-13]
path = "../farm-v-13"
[dependencies.farm-v13-locked-rewards]
path = "../farm-v13-locked-rewards"

[dev-dependencies.energy-factory]
path = "../../locked-asset/energy-factory"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "farm-staking-proxy-v-13-meta"
name = "farm-staking-proxy-v13-meta"
version = "0.0.0"
edition = "2021"
publish = false
authors = ["MultiversX <[email protected]>"]

[dependencies.farm-staking-proxy-v-13]
[dependencies.farm-staking-proxy-v13]
path = ".."

[dependencies.multiversx-sc-meta]
Expand Down
3 changes: 3 additions & 0 deletions legacy-contracts/farm-staking-proxy-v13/meta/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
multiversx_sc_meta::cli_main::<farm_staking_proxy_v13::AbiProvider>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub trait ExternalContractsInteractionsModule:
fn staking_farm_proxy_obj(&self, sc_address: ManagedAddress) -> farm_staking::Proxy<Self::Api>;

#[proxy]
fn lp_farm_proxy_obj(&self, sc_address: ManagedAddress) -> farm_v_13::Proxy<Self::Api>;
fn lp_farm_proxy_obj(&self, sc_address: ManagedAddress) -> farm_v13_locked_rewards::Proxy<Self::Api>;

#[proxy]
fn pair_proxy_obj(&self, sc_address: ManagedAddress) -> pair::Proxy<Self::Api>;
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ##########################################

[package]
name = "farm-staking-proxy-v-13-wasm"
name = "farm-staking-proxy-v13-wasm"
version = "0.0.0"
edition = "2021"
publish = false
Expand All @@ -24,7 +24,7 @@ overflow-checks = false
[profile.dev]
panic = "abort"

[dependencies.farm-staking-proxy-v-13]
[dependencies.farm-staking-proxy-v13]
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ multiversx_sc_wasm_adapter::allocator!();
multiversx_sc_wasm_adapter::panic_handler!();

multiversx_sc_wasm_adapter::endpoints! {
farm_staking_proxy_v_13
farm_staking_proxy_v13
(
init => init
upgrade => upgrade
Expand Down
3 changes: 0 additions & 3 deletions legacy-contracts/farm-v-13/meta/src/main.rs

This file was deleted.

62 changes: 0 additions & 62 deletions legacy-contracts/farm-v-13/src/lib.rs

This file was deleted.

30 changes: 0 additions & 30 deletions legacy-contracts/farm-v-13/wasm/src/lib.rs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "farm-v-13"
name = "farm-v12"
version = "0.0.0"
authors = ["you"]
edition = "2021"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "farm-v-13-meta"
name = "farm-v12-meta"
version = "0.0.0"
edition = "2021"
publish = false

[dependencies.farm-v-13]
[dependencies.farm-v12]
path = ".."

[dependencies.multiversx-sc-meta]
Expand Down
Loading

0 comments on commit df928d2

Please sign in to comment.