From aaa53a13abca3a051cebaef4e1f42b0565dace53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Mon, 21 Oct 2024 15:54:30 +0300 Subject: [PATCH] Add proxies --- common/sc-proxies/src/multisig_proxy.rs | 36 +++++++++++++++++++++++++ multisig/wasm/src/lib.rs | 6 +++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/common/sc-proxies/src/multisig_proxy.rs b/common/sc-proxies/src/multisig_proxy.rs index 7cdea458..61553d4d 100644 --- a/common/sc-proxies/src/multisig_proxy.rs +++ b/common/sc-proxies/src/multisig_proxy.rs @@ -702,6 +702,24 @@ where .original_result() } + pub fn pause_all_child_contracts( + self, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("pauseAllChildContracts") + .original_result() + } + + pub fn unpause_all_child_contracts( + self, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("unpauseAllChildContracts") + .original_result() + } + pub fn pause_esdt_safe( self, ) -> TxTypedCall { @@ -756,6 +774,24 @@ where .original_result() } + pub fn pause_multi_transfer_esdt( + self, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("pauseMultiTransferEsdt") + .original_result() + } + + pub fn unpause_multi_transfer_esdt( + self, + ) -> TxTypedCall { + self.wrapped_tx + .payment(NotPayable) + .raw_call("unpauseMultiTransferEsdt") + .original_result() + } + /// Minimum number of signatures needed to perform any action. pub fn quorum( self, diff --git a/multisig/wasm/src/lib.rs b/multisig/wasm/src/lib.rs index 1d3a3101..b67a4b57 100644 --- a/multisig/wasm/src/lib.rs +++ b/multisig/wasm/src/lib.rs @@ -6,9 +6,9 @@ // Init: 1 // Upgrade: 1 -// Endpoints: 79 +// Endpoints: 81 // Async Callback (empty): 1 -// Total number of exported functions: 82 +// Total number of exported functions: 84 #![no_std] @@ -57,6 +57,8 @@ multiversx_sc_wasm_adapter::endpoints! { multiTransferEsdtSetMaxRefundTxBatchSize => multi_transfer_esdt_set_max_refund_tx_batch_size multiTransferEsdtSetMaxRefundTxBatchBlockDuration => multi_transfer_esdt_set_max_refund_tx_batch_block_duration multiTransferEsdtSetWrappingContractAddress => multi_transfer_esdt_set_wrapping_contract_address + pauseAllChildContracts => pause_all_child_contracts + unpauseAllChildContracts => unpause_all_child_contracts pauseEsdtSafe => pause_esdt_safe unpauseEsdtSafe => unpause_esdt_safe pauseBridgeProxy => pause_bridge_proxy