-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'rc/v3.0' into upgrade-0.50.5
- Loading branch information
Showing
31 changed files
with
4,281 additions
and
200 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[package] | ||
name = "farm-staking-proxy-v-13" | ||
version = "0.0.0" | ||
authors = ["MultiversX <[email protected]>"] | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
path = "src/lib.rs" | ||
|
||
[dependencies.multiversx-sc] | ||
version = "=0.50.5" | ||
features = ["esdt-token-payment-legacy-decode"] | ||
|
||
[dependencies.multiversx-sc-modules] | ||
version = "=0.50.5" | ||
|
||
[dependencies.token_merge_helper] | ||
path = "../../common/modules/token_merge_helper" | ||
|
||
[dependencies.common_structs] | ||
path = "../../common/common_structs" | ||
|
||
[dependencies.farm-staking] | ||
path = "../../farm-staking/farm-staking" | ||
|
||
[dependencies.pair] | ||
path = "../../dex/pair" | ||
|
||
[dependencies.farm-v-13] | ||
path = "../farm-v-13" | ||
|
||
[dev-dependencies.energy-factory] | ||
path = "../../locked-asset/energy-factory" | ||
|
||
[dev-dependencies.energy-query] | ||
path = "../../energy-integration/common-modules/energy-query" | ||
|
||
[dev-dependencies.simple-lock] | ||
path = "../../locked-asset/simple-lock" | ||
|
||
[dev-dependencies.farm_token] | ||
path = "../../common/modules/farm/farm_token" | ||
|
||
[dev-dependencies.locking_module] | ||
path = "../../common/modules/locking_module" | ||
|
||
[dev-dependencies.pausable] | ||
path = "../../common/modules/pausable" | ||
|
||
[dev-dependencies.sc_whitelist_module] | ||
path = "../../common/modules/sc_whitelist_module" | ||
|
||
[dev-dependencies] | ||
num-bigint = "0.4.2" | ||
num-traits = "0.2" | ||
hex = "0.4" | ||
|
||
[dev-dependencies.multiversx-sc-scenario] | ||
version = "=0.50.5" |
4 changes: 2 additions & 2 deletions
4
...farm-staking-proxy-legacy/meta/Cargo.toml → ...s/farm-staking-proxy-v-13/meta/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[package] | ||
name = "farm-staking-proxy-legacy-meta" | ||
name = "farm-staking-proxy-v-13-meta" | ||
version = "0.0.0" | ||
edition = "2021" | ||
publish = false | ||
authors = ["MultiversX <[email protected]>"] | ||
|
||
[dependencies.farm-staking-proxy-legacy] | ||
[dependencies.farm-staking-proxy-v-13] | ||
path = ".." | ||
|
||
[dependencies.multiversx-sc-meta] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
multiversx_sc_meta::cli_main::<farm_staking_proxy_v_13::AbiProvider>(); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
legacy-contracts/farm-staking-proxy-v-13/tests/constants/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// // Pair constants | ||
|
||
// pub const PAIR_WASM_PATH: &str = "pair/output/pair.wasm"; | ||
// pub const WEGLD_TOKEN_ID: &[u8] = b"WEGLD-abcdef"; | ||
// pub const RIDE_TOKEN_ID: &[u8] = b"RIDE-abcdef"; | ||
// pub const LP_TOKEN_ID: &[u8] = b"LPTOK-abcdef"; // also farming token ID for LP farm | ||
|
||
// pub const USER_TOTAL_WEGLD_TOKENS: u64 = 2_000_000_000; | ||
// pub const USER_TOTAL_RIDE_TOKENS: u64 = 2_000_000_000; | ||
// pub const USER_TOTAL_LP_TOKENS: u64 = 1_001_000_000; | ||
|
||
// pub const BLOCK_NONCE_FIRST_ADD_LIQ: u64 = 5; | ||
// pub const BLOCK_NONCE_SECOND_ADD_LIQ: u64 = 6; | ||
// pub const BLOCK_NONCE_AFTER_PAIR_SETUP: u64 = 100; | ||
|
||
// // LP farm constants | ||
|
||
// pub const FARM_WASM_PATH: &str = "farm/output/farm.wasm"; | ||
// pub const LP_FARM_TOKEN_ID: &[u8] = b"LPFARM-abcdef"; | ||
// pub const DIVISION_SAFETY_CONSTANT: u64 = 1_000_000_000_000; | ||
// pub const MIN_FARMING_EPOCHS: u8 = 2; | ||
// pub const PENALTY_PERCENT: u64 = 10; | ||
// pub const LP_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 5_000; | ||
|
||
// // Energy factory constants | ||
|
||
// pub const EPOCHS_IN_YEAR: u64 = 360; | ||
// pub static MEX_TOKEN_ID: &[u8] = b"MEX-123456"; | ||
// pub static LOCKED_TOKEN_ID: &[u8] = b"LOCKED-123456"; | ||
// pub static LEGACY_LOCKED_TOKEN_ID: &[u8] = b"LEGACY-123456"; | ||
// pub static LOCK_OPTIONS: &[u64] = &[EPOCHS_IN_YEAR, 5 * EPOCHS_IN_YEAR, 10 * EPOCHS_IN_YEAR]; // 1, 5 or 10 years | ||
// pub static PENALTY_PERCENTAGES: &[u64] = &[4_000, 6_000, 8_000]; | ||
|
||
// // Staking farm constants | ||
|
||
// pub const STAKING_FARM_WASM_PATH: &str = "farm-staking/output/farm-staking.wasm"; | ||
// pub const STAKING_REWARD_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
// pub const STAKING_TOKEN_ID: &[u8] = RIDE_TOKEN_ID; | ||
// pub const STAKING_FARM_TOKEN_ID: &[u8] = b"STKFARM-abcdef"; | ||
// pub const MAX_APR: u64 = 5_000; // 50% | ||
// pub const UNBOND_EPOCHS: u64 = 10; | ||
// pub const STAKING_FARM_PER_BLOCK_REWARD_AMOUNT: u64 = 1_000; | ||
// pub const REWARD_CAPACITY: u64 = 1_000_000_000_000; | ||
|
||
// // Proxy constants | ||
|
||
// pub const PROXY_WASM_PATH: &str = "farm-staking-proxy/output/farm-staking-proxy"; | ||
// pub const DUAL_YIELD_TOKEN_ID: &[u8] = b"DYIELD-abcdef"; |
Oops, something went wrong.