Skip to content

Commit

Permalink
Removed unnecessary code from common module
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Baltariu <[email protected]>
  • Loading branch information
andreiblt1304 committed Nov 20, 2024
1 parent becc294 commit 8a826ad
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 808 deletions.
88 changes: 0 additions & 88 deletions common/proxies/src/enshrine_esdt_safe_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,94 +189,6 @@ where
.original_result()
}

pub fn set_max_tx_batch_size<
Arg0: ProxyArg<usize>,
>(
self,
new_max_tx_batch_size: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMaxTxBatchSize")
.argument(&new_max_tx_batch_size)
.original_result()
}

pub fn set_max_tx_batch_block_duration<
Arg0: ProxyArg<u64>,
>(
self,
new_max_tx_batch_block_duration: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMaxTxBatchBlockDuration")
.argument(&new_max_tx_batch_block_duration)
.original_result()
}

pub fn get_current_tx_batch(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getCurrentTxBatch")
.original_result()
}

pub fn get_first_batch_any_status(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getFirstBatchAnyStatus")
.original_result()
}

pub fn get_batch<
Arg0: ProxyArg<u64>,
>(
self,
batch_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getBatch")
.argument(&batch_id)
.original_result()
}

pub fn get_batch_status<
Arg0: ProxyArg<u64>,
>(
self,
batch_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, tx_batch_module::batch_status::BatchStatus<Env::Api>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getBatchStatus")
.argument(&batch_id)
.original_result()
}

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

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

pub fn set_max_bridged_amount<
Arg0: ProxyArg<TokenIdentifier<Env::Api>>,
Arg1: ProxyArg<BigUint<Env::Api>>,
Expand Down
88 changes: 0 additions & 88 deletions common/proxies/src/esdt_safe_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,94 +192,6 @@ where
.original_result()
}

pub fn set_max_tx_batch_size<
Arg0: ProxyArg<usize>,
>(
self,
new_max_tx_batch_size: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMaxTxBatchSize")
.argument(&new_max_tx_batch_size)
.original_result()
}

pub fn set_max_tx_batch_block_duration<
Arg0: ProxyArg<u64>,
>(
self,
new_max_tx_batch_block_duration: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMaxTxBatchBlockDuration")
.argument(&new_max_tx_batch_block_duration)
.original_result()
}

pub fn get_current_tx_batch(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getCurrentTxBatch")
.original_result()
}

pub fn get_first_batch_any_status(
self,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getFirstBatchAnyStatus")
.original_result()
}

pub fn get_batch<
Arg0: ProxyArg<u64>,
>(
self,
batch_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, OptionalValue<MultiValue2<u64, MultiValueEncoded<Env::Api, MultiValue7<u64, u64, ManagedAddress<Env::Api>, ManagedAddress<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>, ManagedVec<Env::Api, EsdtTokenData<Env::Api>>, Option<transaction::TransferData<Env::Api>>>>>>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getBatch")
.argument(&batch_id)
.original_result()
}

pub fn get_batch_status<
Arg0: ProxyArg<u64>,
>(
self,
batch_id: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, tx_batch_module::batch_status::BatchStatus<Env::Api>> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("getBatchStatus")
.argument(&batch_id)
.original_result()
}

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

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

pub fn set_max_bridged_amount<
Arg0: ProxyArg<TokenIdentifier<Env::Api>>,
Arg1: ProxyArg<BigUint<Env::Api>>,
Expand Down
16 changes: 0 additions & 16 deletions common/tx-batch-module/src/batch_status.rs

This file was deleted.

Loading

0 comments on commit 8a826ad

Please sign in to comment.