Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common module cleanup #188

Merged
merged 7 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions chain-factory/wasm-chain-factory-full/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions chain-factory/wasm-chain-factory-view/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions chain-factory/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions common/bls-signature/Cargo.toml

This file was deleted.

82 changes: 0 additions & 82 deletions common/bls-signature/src/lib.rs

This file was deleted.

127 changes: 0 additions & 127 deletions common/proxies/src/enshrine_esdt_safe_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,45 +161,6 @@ where
.original_result()
}

pub fn set_min_valid_signers<
Arg0: ProxyArg<u32>,
>(
self,
new_value: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("setMinValidSigners")
.argument(&new_value)
.original_result()
}

pub fn add_signers<
Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>,
>(
self,
signers: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("addSigners")
.argument(&signers)
.original_result()
}

pub fn remove_signers<
Arg0: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>,
>(
self,
signers: Arg0,
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ()> {
self.wrapped_tx
.payment(NotPayable)
.raw_call("removeSigners")
.argument(&signers)
.original_result()
}

pub fn execute_operations<
Arg0: ProxyArg<ManagedBuffer<Env::Api>>,
Arg1: ProxyArg<transaction::Operation<Env::Api>>,
Expand Down Expand Up @@ -228,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
Loading
Loading