Skip to content

Commit

Permalink
Merge pull request #321 from ElrondNetwork/governance-extend-1
Browse files Browse the repository at this point in the history
Governance extend 1
  • Loading branch information
catalinnnn authored Mar 9, 2022
2 parents 32a4ad9 + cb914cb commit 0802059
Show file tree
Hide file tree
Showing 78 changed files with 418 additions and 231 deletions.
2 changes: 1 addition & 1 deletion common/common_errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ edition = "2018"
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

2 changes: 1 addition & 1 deletion common/common_structs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ edition = "2018"
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

2 changes: 1 addition & 1 deletion common/modules/farm/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ path = "../../../common_errors"
path = "../../token_send"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/farm/contexts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ path = "../../token_merge"
path = "../config"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/farm/events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ path = "../../../common_structs"
path = "../contexts"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/farm/farm_token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ path = "../config"
path = "../../token_send"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/farm/migration_from_v1_2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ path = "../../token_send"
path = "../rewards"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/farm/rewards/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ path = "../farm_token"
path = "../../token_send"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/token_merge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ path = "../../common_structs"
path = "../../common_errors"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
2 changes: 1 addition & 1 deletion common/modules/token_send/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ path = "../../common_structs"
path = "../../common_errors"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ edition = "2018"
publish = false

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

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

[dev-dependencies]
num-bigint = "0.4.2"
Expand Down
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies]
hex-literal = "0.3.1"
Expand All @@ -30,7 +30,7 @@ path = "../../../common/modules/token_merge"
path = "../../../common/common_structs"

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

[dev-dependencies]
num-bigint = "0.4.2"
Expand Down
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking-proxy/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [ "you",]
path = ".."

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking-proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pub mod lp_farm_token;
pub mod result_types;

pub type StakeResult<Api> = EsdtTokenPayment<Api>;
pub type ClaimDualYieldResult<Api> = ManagedMultiResultVec<Api, EsdtTokenPayment<Api>>;
pub type UnstakeResult<Api> = ManagedMultiResultVec<Api, EsdtTokenPayment<Api>>;
pub type ClaimDualYieldResult<Api> = MultiValueEncoded<Api, EsdtTokenPayment<Api>>;
pub type UnstakeResult<Api> = MultiValueEncoded<Api, EsdtTokenPayment<Api>>;

#[elrond_wasm::contract]
pub trait FarmStakingProxy:
Expand Down
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking-proxy/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ panic = "abort"
path = ".."

[dependencies.elrond-wasm-node]
version = "0.28.0"
version = "0.29"
features = [ "vm-validate-token-identifier" ]

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29"
features = [ "wasm-output-mode",]
5 changes: 2 additions & 3 deletions dex/farm-staking-contracts/farm-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ path = "../../../common/common_structs"
path = "../../../common/common_errors"

[dependencies.elrond-wasm]
version = "0.28.0"
features = ["cb_closure_managed_deser"]
version = "0.29"

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

[dev-dependencies]
num-bigint = "0.4.2"
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ publish = false
path = ".."

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/farm-staking/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ default-features = false
path = ".."

[dependencies.elrond-wasm-node]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29"
features = ["wasm-output-mode"]
6 changes: 3 additions & 3 deletions dex/farm-staking-contracts/metabonding-staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ publish = false
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29.0"

[dependencies.elrond-wasm-modules]
version = "0.28.0"
version = "0.29.0"

[dependencies.factory]
path = "../../../locked-asset/factory"

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

[dev-dependencies]
num-bigint = "0.4.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [ "you",]
path = ".."

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29.0"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29.0"
4 changes: 2 additions & 2 deletions dex/farm-staking-contracts/metabonding-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ pub trait MetabondingStaking: locked_asset_token::LockedAssetTokenModule {
}

#[view(getSnapshot)]
fn get_snapshot(&self) -> ManagedMultiResultVec<SnapshotEntry<Self::Api>> {
let mut result = ManagedMultiResultVec::new();
fn get_snapshot(&self) -> MultiValueEncoded<SnapshotEntry<Self::Api>> {
let mut result = MultiValueEncoded::new();

for user_address in self.user_list().iter() {
let entry: StakingEntry<Self::Api> = self.staking_entry_for_user(&user_address).get();
Expand Down
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.28.0"
version = "0.29.0"

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29.0"
features = [ "wasm-output-mode",]
5 changes: 2 additions & 3 deletions dex/farm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ path = "../../common/common_structs"
path = "../../common/common_errors"

[dependencies.elrond-wasm]
version = "0.28.0"
features = ["cb_closure_managed_deser"]
version = "0.29"

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

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/farm/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ default-features = false
path = ".."

[dependencies.elrond-wasm-node]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29"
features = ["wasm-output-mode"]
4 changes: 2 additions & 2 deletions dex/farm_v1_2_mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ publish = false
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

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

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/farm_v1_2_mock/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ default-features = false
path = ".."

[dependencies.elrond-wasm-node]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29"
features = ["wasm-output-mode"]
5 changes: 2 additions & 3 deletions dex/farm_with_lock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ path = "../../common/common_structs"
path = "../../common/common_errors"

[dependencies.elrond-wasm]
version = "0.28.0"
features = ["cb_closure_managed_deser"]
version = "0.29"

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

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"
4 changes: 2 additions & 2 deletions dex/farm_with_lock/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ default-features = false
path = ".."

[dependencies.elrond-wasm-node]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-output]
version = "0.28.0"
version = "0.29"
features = ["wasm-output-mode"]
4 changes: 2 additions & 2 deletions dex/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ edition = "2018"
path = "src/lib.rs"

[dependencies.elrond-wasm]
version = "0.28.0"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28.0"
version = "0.29"

[dependencies.config]
path = "../../common/modules/farm/config"
Expand Down
7 changes: 5 additions & 2 deletions dex/governance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ publish = false
path = "src/contract.rs"

[dependencies.elrond-wasm]
version = "0.28"
version = "0.29"

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

[dev-dependencies]
num-bigint = "0.4.2"

[dev-dependencies.pair-mock]
path = "../../pair-mock"
4 changes: 2 additions & 2 deletions dex/governance/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [ "you",]
path = ".."

[dependencies.elrond-wasm]
version = "0.28"
version = "0.29"

[dependencies.elrond-wasm-debug]
version = "0.28"
version = "0.29"
Loading

0 comments on commit 0802059

Please sign in to comment.