Skip to content

Commit

Permalink
Add proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Oct 21, 2024
1 parent 981881e commit aaa53a1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
36 changes: 36 additions & 0 deletions common/sc-proxies/src/multisig_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,24 @@ where
.original_result()
}

pub fn pause_all_child_contracts(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("pauseAllChildContracts")
.original_result()
}

pub fn unpause_all_child_contracts(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("unpauseAllChildContracts")
.original_result()
}

pub fn pause_esdt_safe(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
Expand Down Expand Up @@ -756,6 +774,24 @@ where
.original_result()
}

pub fn pause_multi_transfer_esdt(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("pauseMultiTransferEsdt")
.original_result()
}

pub fn unpause_multi_transfer_esdt(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("unpauseMultiTransferEsdt")
.original_result()
}

/// Minimum number of signatures needed to perform any action.
pub fn quorum(
self,
Expand Down
6 changes: 4 additions & 2 deletions multisig/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aaa53a1

Please sign in to comment.