-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82684b2
commit c7f9490
Showing
10 changed files
with
190 additions
and
843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
// Code generated by the multiversx-sc proxy generator. DO NOT EDIT. | ||
|
||
//////////////////////////////////////////////////// | ||
////////////////// AUTO-GENERATED ////////////////// | ||
//////////////////////////////////////////////////// | ||
|
||
#![allow(dead_code)] | ||
#![allow(clippy::all)] | ||
|
||
use multiversx_sc::proxy_imports::*; | ||
|
||
pub struct MockMultisigProxy; | ||
|
||
impl<Env, From, To, Gas> TxProxyTrait<Env, From, To, Gas> for MockMultisigProxy | ||
where | ||
Env: TxEnv, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
type TxProxyMethods = MockMultisigProxyMethods<Env, From, To, Gas>; | ||
|
||
fn proxy_methods(self, tx: Tx<Env, From, To, (), Gas, (), ()>) -> Self::TxProxyMethods { | ||
MockMultisigProxyMethods { wrapped_tx: tx } | ||
} | ||
} | ||
|
||
pub struct MockMultisigProxyMethods<Env, From, To, Gas> | ||
where | ||
Env: TxEnv, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
wrapped_tx: Tx<Env, From, To, (), Gas, (), ()>, | ||
} | ||
|
||
#[rustfmt::skip] | ||
impl<Env, From, Gas> MockMultisigProxyMethods<Env, From, (), Gas> | ||
where | ||
Env: TxEnv, | ||
Env::Api: VMApi, | ||
From: TxFrom<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
pub fn init< | ||
Arg0: ProxyArg<ManagedAddress<Env::Api>>, | ||
Arg1: ProxyArg<ManagedAddress<Env::Api>>, | ||
Arg2: ProxyArg<ManagedAddress<Env::Api>>, | ||
Arg3: ProxyArg<ManagedAddress<Env::Api>>, | ||
Arg4: ProxyArg<ManagedAddress<Env::Api>>, | ||
Arg5: ProxyArg<BigUint<Env::Api>>, | ||
Arg6: ProxyArg<BigUint<Env::Api>>, | ||
Arg7: ProxyArg<usize>, | ||
Arg8: ProxyArg<MultiValueEncoded<Env::Api, ManagedAddress<Env::Api>>>, | ||
>( | ||
self, | ||
esdt_safe_sc_address: Arg0, | ||
multi_transfer_sc_address: Arg1, | ||
proxy_sc_address: Arg2, | ||
bridged_tokens_wrapper_sc_address: Arg3, | ||
price_aggregator_sc_address: Arg4, | ||
_required_stake: Arg5, | ||
_slash_amount: Arg6, | ||
_quorum: Arg7, | ||
_board: Arg8, | ||
) -> TxTypedDeploy<Env, From, NotPayable, Gas, ()> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_deploy() | ||
.argument(&esdt_safe_sc_address) | ||
.argument(&multi_transfer_sc_address) | ||
.argument(&proxy_sc_address) | ||
.argument(&bridged_tokens_wrapper_sc_address) | ||
.argument(&price_aggregator_sc_address) | ||
.argument(&_required_stake) | ||
.argument(&_slash_amount) | ||
.argument(&_quorum) | ||
.argument(&_board) | ||
.original_result() | ||
} | ||
} | ||
|
||
#[rustfmt::skip] | ||
impl<Env, From, To, Gas> MockMultisigProxyMethods<Env, From, To, Gas> | ||
where | ||
Env: TxEnv, | ||
Env::Api: VMApi, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
pub fn upgrade( | ||
self, | ||
) -> TxTypedUpgrade<Env, From, To, NotPayable, Gas, ()> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_upgrade() | ||
.original_result() | ||
} | ||
} | ||
|
||
#[rustfmt::skip] | ||
impl<Env, From, To, Gas> MockMultisigProxyMethods<Env, From, To, Gas> | ||
where | ||
Env: TxEnv, | ||
Env::Api: VMApi, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
pub fn esdt_safe_address( | ||
self, | ||
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ManagedAddress<Env::Api>> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_call("getEsdtSafeAddress") | ||
.original_result() | ||
} | ||
|
||
pub fn multi_transfer_esdt_address( | ||
self, | ||
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ManagedAddress<Env::Api>> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_call("getMultiTransferEsdtAddress") | ||
.original_result() | ||
} | ||
|
||
pub fn proxy_address( | ||
self, | ||
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ManagedAddress<Env::Api>> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_call("getProxyAddress") | ||
.original_result() | ||
} | ||
|
||
pub fn bridged_tokens_wrapper_address( | ||
self, | ||
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ManagedAddress<Env::Api>> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_call("getBridgedTokensWrapperAddress") | ||
.original_result() | ||
} | ||
|
||
pub fn fee_estimator_address( | ||
self, | ||
) -> TxTypedCall<Env, From, To, NotPayable, Gas, ManagedAddress<Env::Api>> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_call("getFeeEstimatorAddress") | ||
.original_result() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.