-
Notifications
You must be signed in to change notification settings - Fork 100
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
320a314
commit d1095ad
Showing
3 changed files
with
230 additions
and
29 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
contracts/feature-tests/payable-features/src/payable_features.rs
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
184 changes: 184 additions & 0 deletions
184
contracts/feature-tests/payable-features/src/payable_features_proxy.rs
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,184 @@ | ||
// 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 PayableFeaturesProxy; | ||
|
||
impl<Env, From, To, Gas> TxProxyTrait<Env, From, To, Gas> for PayableFeaturesProxy | ||
where | ||
Env: TxEnv, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
type TxProxyMethods = PayableFeaturesProxyMethods<Env, From, To, Gas>; | ||
|
||
fn proxy_methods(self, tx: Tx<Env, From, To, (), Gas, (), ()>) -> Self::TxProxyMethods { | ||
PayableFeaturesProxyMethods { wrapped_tx: tx } | ||
} | ||
} | ||
|
||
pub struct PayableFeaturesProxyMethods<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> PayableFeaturesProxyMethods<Env, From, (), Gas> | ||
where | ||
Env: TxEnv, | ||
Env::Api: VMApi, | ||
From: TxFrom<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
pub fn init( | ||
self, | ||
) -> TxTypedDeploy<Env, From, NotPayable, Gas, ()> { | ||
self.wrapped_tx | ||
.payment(NotPayable) | ||
.raw_deploy() | ||
.original_result() | ||
} | ||
} | ||
|
||
#[rustfmt::skip] | ||
impl<Env, From, To, Gas> PayableFeaturesProxyMethods<Env, From, To, Gas> | ||
where | ||
Env: TxEnv, | ||
Env::Api: VMApi, | ||
From: TxFrom<Env>, | ||
To: TxTo<Env>, | ||
Gas: TxGas<Env>, | ||
{ | ||
pub fn echo_call_value( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>>> { | ||
self.wrapped_tx | ||
.raw_call("echo_call_value") | ||
.original_result() | ||
} | ||
|
||
pub fn payment_multiple( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, ManagedVec<Env::Api, EsdtTokenPayment<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payment_multiple") | ||
.original_result() | ||
} | ||
|
||
pub fn payment_array_3( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue3<EsdtTokenPayment<Env::Api>, EsdtTokenPayment<Env::Api>, EsdtTokenPayment<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payment_array_3") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_any_1( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_any_1") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_any_2( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_any_2") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_any_3( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_any_3") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_any_4( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_any_4") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_egld_1( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_egld_1") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_egld_2( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_egld_2") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_egld_3( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_egld_3") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_egld_4( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_egld_4") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_token_1( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_token_1") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_token_2( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, TokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_token_2") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_token_3( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, EgldOrEsdtTokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_token_3") | ||
.original_result() | ||
} | ||
|
||
pub fn payable_token_4( | ||
self, | ||
) -> TxTypedCall<Env, From, To, (), Gas, MultiValue2<BigUint<Env::Api>, TokenIdentifier<Env::Api>>> { | ||
self.wrapped_tx | ||
.raw_call("payable_token_4") | ||
.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