From 5f9d7c91940c3f679bfa77f3cc8c6b30bf1f7ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Mon, 10 Jul 2023 16:09:07 +0300 Subject: [PATCH] Cargo.lock fix --- .../governance-v2/wasm/Cargo.lock | 66 +++++++++++++++++++ .../governance-v2/wasm/src/lib.rs | 20 +++--- 2 files changed, 78 insertions(+), 8 deletions(-) diff --git a/energy-integration/governance-v2/wasm/Cargo.lock b/energy-integration/governance-v2/wasm/Cargo.lock index 0dc45f8df..40bcf7baa 100644 --- a/energy-integration/governance-v2/wasm/Cargo.lock +++ b/energy-integration/governance-v2/wasm/Cargo.lock @@ -43,6 +43,13 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "common-types" +version = "0.0.0" +dependencies = [ + "multiversx-sc", +] + [[package]] name = "common_errors" version = "0.0.0" @@ -91,6 +98,24 @@ dependencies = [ "multiversx-sc", ] +[[package]] +name = "fees-collector" +version = "0.0.0" +dependencies = [ + "common-types", + "common_errors", + "energy-factory", + "energy-query", + "locking_module", + "multiversx-sc", + "multiversx-sc-modules", + "sc_whitelist_module", + "simple-lock", + "utils", + "week-timekeeping", + "weekly-rewards-splitting", +] + [[package]] name = "fixed-supply-token" version = "0.0.0" @@ -103,7 +128,10 @@ name = "governance-v2" version = "0.0.0" dependencies = [ "energy-query", + "fees-collector", "multiversx-sc", + "permissions_module", + "weekly-rewards-splitting", ] [[package]] @@ -150,6 +178,15 @@ version = "0.2.139" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +[[package]] +name = "locking_module" +version = "0.0.0" +dependencies = [ + "energy-factory", + "multiversx-sc", + "simple-lock", +] + [[package]] name = "math" version = "0.0.0" @@ -263,6 +300,15 @@ version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66" +[[package]] +name = "permissions_module" +version = "0.0.0" +dependencies = [ + "bitflags", + "common_errors", + "multiversx-sc", +] + [[package]] name = "proc-macro2" version = "1.0.50" @@ -366,6 +412,26 @@ dependencies = [ "winapi", ] +[[package]] +name = "week-timekeeping" +version = "0.0.0" +dependencies = [ + "common-types", + "multiversx-sc", +] + +[[package]] +name = "weekly-rewards-splitting" +version = "0.0.0" +dependencies = [ + "common-types", + "energy-query", + "math", + "multiversx-sc", + "unwrappable", + "week-timekeeping", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/energy-integration/governance-v2/wasm/src/lib.rs b/energy-integration/governance-v2/wasm/src/lib.rs index f1dc278b3..f8dfaa7d6 100644 --- a/energy-integration/governance-v2/wasm/src/lib.rs +++ b/energy-integration/governance-v2/wasm/src/lib.rs @@ -5,9 +5,9 @@ //////////////////////////////////////////////////// // Init: 1 -// Endpoints: 27 +// Endpoints: 31 // Async Callback (empty): 1 -// Total number of exported functions: 29 +// Total number of exported functions: 33 #![no_std] #![feature(alloc_error_handler, lang_items)] @@ -20,31 +20,35 @@ multiversx_sc_wasm_adapter::endpoints! { ( propose vote - queue - execute cancel + withdrawDeposit changeMinEnergyForProposal changeMinFeeForProposal changeQuorum changeVotingDelayInBlocks changeVotingPeriodInBlocks - changeLockTimeAfterVotingEndsInBlocks getMinEnergyForPropose getMinFeeForPropose getQuorum getVotingDelayInBlocks getVotingPeriodInBlocks - getLockTimeAfterVotingEndsInBlocks getFeeTokenId + getWithdrawPercentageDefeated + getProposals + getUserVotedProposals getProposalVotes - depositTokensForProposal - claimDepositedTokens getProposalStatus + getCurrentQuorum getProposer getProposalDescription getProposalActions + getFeesCollectorAddress setEnergyFactoryAddress getEnergyFactoryAddress + addAdmin + removeAdmin + updateOwnerOrAdmin + getPermissions ) }