git.delta.rocks / unique-network / refs/commits / bfcf3ca7e01c

difftreelog

chore replace u128 with CallContext

Grigoriy Simonov2022-09-13parent: #a94c6b6.patch.diff
in: master

19 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5794,6 +5794,7 @@
  "pallet-common",
  "pallet-evm 6.0.0-dev (git+https://github.com/uniquenetwork/frontier?rev=89a37c5a489f426cc7a42d7b94019974093a052d)",
  "pallet-evm-coder-substrate",
+ "pallet-evm-transaction-payment",
  "parity-scale-codec 3.1.5",
  "scale-info",
  "sp-core",
@@ -6409,7 +6410,7 @@
 [[package]]
 name = "pallet-template-transaction-payment"
 version = "3.0.0"
-source = "git+https://github.com/uniquenetwork/pallet-sponsoring?rev=a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3#a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3"
+source = "git+https://github.com/uniquenetwork/pallet-sponsoring?rev=9ee7d6e57e03a2575cbab79431774b56f170018e#9ee7d6e57e03a2575cbab79431774b56f170018e"
 dependencies = [
  "frame-benchmarking",
  "frame-support",
@@ -12577,7 +12578,7 @@
 [[package]]
 name = "up-sponsorship"
 version = "0.1.0"
-source = "git+https://github.com/uniquenetwork/pallet-sponsoring?rev=a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3#a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3"
+source = "git+https://github.com/uniquenetwork/pallet-sponsoring?rev=9ee7d6e57e03a2575cbab79431774b56f170018e#9ee7d6e57e03a2575cbab79431774b56f170018e"
 dependencies = [
  "impl-trait-for-tuples",
 ]
modifiedpallets/evm-contract-helpers/Cargo.tomldiffbeforeafterboth
--- a/pallets/evm-contract-helpers/Cargo.toml
+++ b/pallets/evm-contract-helpers/Cargo.toml
@@ -21,12 +21,13 @@
 # Unique
 pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
-up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }
 
 # Locals
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
 pallet-common = { default-features = false, path = '../../pallets/common' }
 pallet-evm-coder-substrate = { default-features = false, path = '../../pallets/evm-coder-substrate' }
+pallet-evm-transaction-payment = {  default-features = false, path = '../../pallets/evm-transaction-payment' }
 up-data-structs = { default-features = false, path = '../../primitives/data-structs', features = [
     'serde1',
 ] }
modifiedpallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth
--- a/pallets/evm-contract-helpers/src/eth.rs
+++ b/pallets/evm-contract-helpers/src/eth.rs
@@ -20,12 +20,13 @@
 use evm_coder::{
 	abi::AbiWriter, execution::Result, generate_stubgen, solidity_interface, types::*, ToLog,
 };
-use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder, dispatch_to_evm};
 use pallet_evm::{
 	ExitRevert, OnCreate, OnMethodCall, PrecompileResult, PrecompileFailure, PrecompileHandle,
 	account::CrossAccountId,
 };
-use sp_core::{H160, U256};
+use pallet_evm_coder_substrate::{SubstrateRecorder, WithRecorder, dispatch_to_evm};
+use pallet_evm_transaction_payment::CallContext;
+use sp_core::H160;
 use up_data_structs::SponsorshipState;
 use crate::{
 	AllowlistEnabled, Config, Owner, Pallet, SponsorBasket, SponsoringFeeLimit,
@@ -254,17 +255,15 @@
 		&mut self,
 		caller: caller,
 		contract_address: address,
-		fee_limit: uint128,
+		fee_limit: uint256,
 	) -> Result<void> {
 		<Pallet<T>>::ensure_owner(contract_address, caller).map_err(dispatch_to_evm::<T>)?;
 		<Pallet<T>>::set_sponsoring_fee_limit(contract_address, fee_limit.into());
 		Ok(())
 	}
 
-	fn get_sponsoring_fee_limit(&self, contract_address: address) -> Result<uint128> {
-		Ok(<SponsoringFeeLimit<T>>::get(contract_address)
-			.try_into()
-			.map_err(|_| "fee limit > u128::MAX")?)
+	fn get_sponsoring_fee_limit(&self, contract_address: address) -> Result<uint256> {
+		Ok(<SponsoringFeeLimit<T>>::get(contract_address))
 	}
 
 	/// Is specified user present in contract allow list
@@ -380,13 +379,13 @@
 
 /// Bridge to pallet-sponsoring
 pub struct HelpersContractSponsoring<T: Config>(PhantomData<*const T>);
-impl<T: Config> SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>), u128>
+impl<T: Config> SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>), CallContext>
 	for HelpersContractSponsoring<T>
 {
 	fn get_sponsor(
 		who: &T::CrossAccountId,
 		call: &(H160, Vec<u8>),
-		fee_limit: &u128,
+		call_context: &CallContext,
 	) -> Option<T::CrossAccountId> {
 		let (contract_address, _) = call;
 		let mode = <Pallet<T>>::sponsoring_mode(*contract_address);
@@ -417,7 +416,7 @@
 
 		let sponsored_fee_limit = <SponsoringFeeLimit<T>>::get(contract_address);
 
-		if *fee_limit > sponsored_fee_limit {
+		if call_context.max_fee > sponsored_fee_limit {
 			return None;
 		}
 
modifiedpallets/evm-contract-helpers/src/lib.rsdiffbeforeafterboth
--- a/pallets/evm-contract-helpers/src/lib.rs
+++ b/pallets/evm-contract-helpers/src/lib.rs
@@ -30,7 +30,7 @@
 	use crate::eth::ContractHelpersEvents;
 	use frame_support::pallet_prelude::*;
 	use pallet_evm_coder_substrate::DispatchResult;
-	use sp_core::H160;
+	use sp_core::{H160, U256};
 	use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
 	use up_data_structs::SponsorshipState;
 	use evm_coder::ToLog;
@@ -50,7 +50,7 @@
 		type DefaultSponsoringRateLimit: Get<Self::BlockNumber>;
 		/// In case of enabled sponsoring, but no sponsoring fee limit set,
 		/// this value will be used implicitly
-		type DefaultSponsoringFeeLimit: Get<u128>;
+		type DefaultSponsoringFeeLimit: Get<U256>;
 	}
 
 	#[pallet::error]
@@ -124,7 +124,7 @@
 	pub(super) type SponsoringFeeLimit<T: Config> = StorageMap<
 		Hasher = Twox128,
 		Key = H160,
-		Value = u128,
+		Value = U256,
 		QueryKind = ValueQuery,
 		OnEmpty = T::DefaultSponsoringFeeLimit,
 	>;
@@ -366,7 +366,7 @@
 		}
 
 		/// Set maximum for gas limit of transaction
-		pub fn set_sponsoring_fee_limit(contract: H160, fee_limit: u128) {
+		pub fn set_sponsoring_fee_limit(contract: H160, fee_limit: U256) {
 			<SponsoringFeeLimit<T>>::insert(contract, fee_limit);
 		}
 
modifiedpallets/evm-contract-helpers/src/stubs/ContractHelpers.rawdiffbeforeafterboth

binary blob — no preview

modifiedpallets/evm-contract-helpers/src/stubs/ContractHelpers.soldiffbeforeafterboth
--- a/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
+++ b/pallets/evm-contract-helpers/src/stubs/ContractHelpers.sol
@@ -32,7 +32,7 @@
 }
 
 /// @title Magic contract, which allows users to reconfigure other contracts
-/// @dev the ERC-165 identifier for this interface is 0xd77fab70
+/// @dev the ERC-165 identifier for this interface is 0x172cb4fb
 contract ContractHelpers is Dummy, ERC165, ContractHelpersEvents {
 	/// Get user, which deployed specified contract
 	/// @dev May return zero address in case if contract is deployed
@@ -203,9 +203,9 @@
 		dummy = 0;
 	}
 
-	/// @dev EVM selector for this function is: 0x1c362eb4,
-	///  or in textual repr: setSponsoringFeeLimit(address,uint128)
-	function setSponsoringFeeLimit(address contractAddress, uint128 feeLimit)
+	/// @dev EVM selector for this function is: 0x03aed665,
+	///  or in textual repr: setSponsoringFeeLimit(address,uint256)
+	function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)
 		public
 	{
 		require(false, stub_error);
@@ -219,7 +219,7 @@
 	function getSponsoringFeeLimit(address contractAddress)
 		public
 		view
-		returns (uint128)
+		returns (uint256)
 	{
 		require(false, stub_error);
 		contractAddress;
modifiedpallets/evm-transaction-payment/Cargo.tomldiffbeforeafterboth
--- a/pallets/evm-transaction-payment/Cargo.toml
+++ b/pallets/evm-transaction-payment/Cargo.toml
@@ -17,7 +17,7 @@
 pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 fp-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
-up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev = "a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev = "9ee7d6e57e03a2575cbab79431774b56f170018e" }
 fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 
 [dependencies.codec]
modifiedpallets/evm-transaction-payment/src/lib.rsdiffbeforeafterboth
--- a/pallets/evm-transaction-payment/src/lib.rs
+++ b/pallets/evm-transaction-payment/src/lib.rs
@@ -22,7 +22,7 @@
 use fp_evm::WithdrawReason;
 use frame_support::traits::IsSubType;
 pub use pallet::*;
-use pallet_evm::{account::CrossAccountId, EnsureAddressOrigin, FeeCalculator};
+use pallet_evm::{account::CrossAccountId, EnsureAddressOrigin};
 use sp_core::{H160, U256};
 use sp_runtime::{TransactionOutcome, DispatchError};
 use up_sponsorship::SponsorshipHandler;
@@ -33,10 +33,20 @@
 
 	use sp_std::vec::Vec;
 
+	/// Contains call data
+	pub struct CallContext {
+		/// Max fee for transaction - gasLimit * gasPrice
+		pub max_fee: U256,
+	}
+
 	#[pallet::config]
 	pub trait Config: frame_system::Config + pallet_evm::account::Config {
 		/// Loosly-coupled handlers for evm call sponsoring
-		type EvmSponsorshipHandler: SponsorshipHandler<Self::CrossAccountId, (H160, Vec<u8>), u128>;
+		type EvmSponsorshipHandler: SponsorshipHandler<
+			Self::CrossAccountId,
+			(H160, Vec<u8>),
+			CallContext,
+		>;
 	}
 
 	#[pallet::pallet]
@@ -55,10 +65,11 @@
 		match reason {
 			WithdrawReason::Call { target, input } => {
 				let origin_sub = T::CrossAccountId::from_eth(origin);
+				let call_context = CallContext { max_fee };
 				T::EvmSponsorshipHandler::get_sponsor(
 					&origin_sub,
 					&(*target, input.clone()),
-					&max_fee.as_u128(),
+					&call_context,
 				)
 			}
 			_ => None,
@@ -68,12 +79,12 @@
 
 /// Implements sponsoring for evm calls performed from pallet-evm (via api.tx.ethereum.transact/api.tx.evm.call)
 pub struct BridgeSponsorshipHandler<T>(PhantomData<T>);
-impl<T, C> SponsorshipHandler<T::AccountId, C, u128> for BridgeSponsorshipHandler<T>
+impl<T, C> SponsorshipHandler<T::AccountId, C, ()> for BridgeSponsorshipHandler<T>
 where
 	T: Config + pallet_evm::Config,
 	C: IsSubType<pallet_evm::Call<T>>,
 {
-	fn get_sponsor(who: &T::AccountId, call: &C, _fee_limit: &u128) -> Option<T::AccountId> {
+	fn get_sponsor(who: &T::AccountId, call: &C, _call_context: &()) -> Option<T::AccountId> {
 		match call.is_sub_type()? {
 			pallet_evm::Call::call {
 				source,
@@ -90,6 +101,7 @@
 				.ok()?;
 				let who = T::CrossAccountId::from_sub(who.clone());
 				let max_fee = max_fee_per_gas.saturating_mul((*gas_limit).into());
+				let call_context = CallContext { max_fee };
 				// Effects from EvmSponsorshipHandler are applied by pallet_evm::runner
 				// TODO: Should we implement simulation mode (test, but do not apply effects) in `up-sponsorship`?
 				let sponsor = frame_support::storage::with_transaction(|| {
@@ -97,7 +109,7 @@
 						T::EvmSponsorshipHandler::get_sponsor(
 							&who,
 							&(*target, input.clone()),
-							&max_fee.try_into().unwrap(),
+							&call_context,
 						),
 					))
 				})
modifiedpallets/scheduler/Cargo.tomldiffbeforeafterboth
--- a/pallets/scheduler/Cargo.toml
+++ b/pallets/scheduler/Cargo.toml
@@ -24,7 +24,7 @@
 sp-core = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.27' }
 frame-benchmarking = { default-features = false, optional = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.27" }
 
-up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { version = "0.1.0", default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }
 log = { version = "0.4.14", default-features = false }
 
 [dev-dependencies]
modifiedruntime/common/config/sponsoring.rsdiffbeforeafterboth
--- a/runtime/common/config/sponsoring.rs
+++ b/runtime/common/config/sponsoring.rs
@@ -14,16 +14,17 @@
 // You should have received a copy of the GNU General Public License
 // along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
 
-use frame_support::parameter_types;
 use crate::{
 	runtime_common::{sponsoring::UniqueSponsorshipHandler},
 	Runtime,
 };
-use up_common::{types::BlockNumber, constants::*};
+use frame_support::parameter_types;
+use sp_core::U256;
+use up_common::{constants::*, types::BlockNumber};
 
 parameter_types! {
 	pub const DefaultSponsoringRateLimit: BlockNumber = 1 * DAYS;
-	pub const DefaultSponsoringFeeLimit: u128 = u128::MAX;
+	pub const DefaultSponsoringFeeLimit: U256 = U256::MAX;
 }
 
 type SponsorshipHandler = (
modifiedruntime/common/ethereum/sponsoring.rsdiffbeforeafterboth
--- a/runtime/common/ethereum/sponsoring.rs
+++ b/runtime/common/ethereum/sponsoring.rs
@@ -16,27 +16,31 @@
 
 //! Implements EVM sponsoring logic via TransactionValidityHack
 
+use core::{convert::TryInto, marker::PhantomData};
 use evm_coder::{Call, abi::AbiReader};
 use pallet_common::{CollectionHandle, eth::map_eth_to_id};
+use pallet_evm::account::CrossAccountId;
+use pallet_evm_transaction_payment::CallContext;
+use pallet_nonfungible::{
+	Config as NonfungibleConfig,
+	erc::{
+		UniqueNFTCall, ERC721UniqueExtensionsCall, ERC721MintableCall, ERC721Call,
+		TokenPropertiesCall,
+	},
+};
+use pallet_fungible::{
+	Config as FungibleConfig,
+	erc::{UniqueFungibleCall, ERC20Call},
+};
+use pallet_refungible::Config as RefungibleConfig;
+use pallet_unique::Config as UniqueConfig;
 use sp_core::H160;
 use sp_std::prelude::*;
+use up_data_structs::{CollectionMode, CreateItemData, CreateNftData, TokenId};
 use up_sponsorship::SponsorshipHandler;
-use core::marker::PhantomData;
-use core::convert::TryInto;
-use pallet_evm::account::CrossAccountId;
-use up_data_structs::{TokenId, CreateItemData, CreateNftData, CollectionMode};
-use pallet_unique::Config as UniqueConfig;
 
 use crate::{Runtime, runtime_common::sponsoring::*};
 
-use pallet_nonfungible::erc::{
-	UniqueNFTCall, ERC721UniqueExtensionsCall, ERC721MintableCall, ERC721Call, TokenPropertiesCall,
-};
-use pallet_fungible::erc::{UniqueFungibleCall, ERC20Call};
-use pallet_fungible::Config as FungibleConfig;
-use pallet_nonfungible::Config as NonfungibleConfig;
-use pallet_refungible::Config as RefungibleConfig;
-
 pub type EvmSponsorshipHandler = (
 	UniqueEthSponsorshipHandler<Runtime>,
 	pallet_evm_contract_helpers::HelpersContractSponsoring<Runtime>,
@@ -44,12 +48,13 @@
 
 pub struct UniqueEthSponsorshipHandler<T: UniqueConfig>(PhantomData<*const T>);
 impl<T: UniqueConfig + FungibleConfig + NonfungibleConfig + RefungibleConfig>
-	SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>), u128> for UniqueEthSponsorshipHandler<T>
+	SponsorshipHandler<T::CrossAccountId, (H160, Vec<u8>), CallContext>
+	for UniqueEthSponsorshipHandler<T>
 {
 	fn get_sponsor(
 		who: &T::CrossAccountId,
 		call: &(H160, Vec<u8>),
-		_fee_limit: &u128,
+		_fee_limit: &CallContext,
 	) -> Option<T::CrossAccountId> {
 		let collection_id = map_eth_to_id(&call.0)?;
 		let collection = <CollectionHandle<T>>::new(collection_id)?;
modifiedruntime/common/sponsoring.rsdiffbeforeafterboth
--- a/runtime/common/sponsoring.rs
+++ b/runtime/common/sponsoring.rs
@@ -224,12 +224,12 @@
 }
 
 pub struct UniqueSponsorshipHandler<T>(PhantomData<T>);
-impl<T, C> SponsorshipHandler<T::AccountId, C, u128> for UniqueSponsorshipHandler<T>
+impl<T, C> SponsorshipHandler<T::AccountId, C, ()> for UniqueSponsorshipHandler<T>
 where
 	T: Config,
 	C: IsSubType<UniqueCall<T>>,
 {
-	fn get_sponsor(who: &T::AccountId, call: &C, _fee_limit: &u128) -> Option<T::AccountId> {
+	fn get_sponsor(who: &T::AccountId, call: &C, _call_context: &()) -> Option<T::AccountId> {
 		match IsSubType::<UniqueCall<T>>::is_sub_type(call)? {
 			UniqueCall::set_token_properties {
 				collection_id,
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
--- a/runtime/opal/Cargo.toml
+++ b/runtime/opal/Cargo.toml
@@ -431,7 +431,7 @@
 pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
 pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
 # pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
-pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
+pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
 pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
 pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }
 pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }
@@ -442,7 +442,7 @@
 fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
-up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }
 
 ################################################################################
 # Build Dependencies
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
before · runtime/quartz/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.27'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-common/runtime-benchmarks',32    'pallet-structure/runtime-benchmarks',33    'pallet-fungible/runtime-benchmarks',34    'pallet-refungible/runtime-benchmarks',35    'pallet-nonfungible/runtime-benchmarks',36    'pallet-proxy-rmrk-core/runtime-benchmarks',37    'pallet-proxy-rmrk-equip/runtime-benchmarks',38    'pallet-unique/runtime-benchmarks',39    'pallet-inflation/runtime-benchmarks',40    'pallet-unique-scheduler/runtime-benchmarks',41    'pallet-xcm/runtime-benchmarks',42    'sp-runtime/runtime-benchmarks',43    'xcm-builder/runtime-benchmarks',44]45try-runtime = [46    'frame-try-runtime',47    'frame-executive/try-runtime',48    'frame-system/try-runtime',49]50std = [51    'codec/std',52    'cumulus-pallet-aura-ext/std',53    'cumulus-pallet-parachain-system/std',54    'cumulus-pallet-xcm/std',55    'cumulus-pallet-xcmp-queue/std',56    'cumulus-primitives-core/std',57    'cumulus-primitives-utility/std',58    'frame-try-runtime/std',59    'frame-executive/std',60    'frame-support/std',61    'frame-system/std',62    'frame-system-rpc-runtime-api/std',63    'pallet-aura/std',64    'pallet-balances/std',65    # 'pallet-contracts/std',66    # 'pallet-contracts-primitives/std',67    # 'pallet-contracts-rpc-runtime-api/std',68    # 'pallet-contract-helpers/std',69    'pallet-randomness-collective-flip/std',70    'pallet-sudo/std',71    'pallet-timestamp/std',72    'pallet-transaction-payment/std',73    'pallet-transaction-payment-rpc-runtime-api/std',74    'pallet-treasury/std',75    # 'pallet-vesting/std',76    'pallet-evm/std',77    'pallet-evm-migration/std',78    'pallet-evm-contract-helpers/std',79    'pallet-evm-transaction-payment/std',80    'pallet-evm-coder-substrate/std',81    'pallet-ethereum/std',82    'pallet-base-fee/std',83    'fp-rpc/std',84    'up-rpc/std',85    'app-promotion-rpc/std',86    'fp-evm-mapping/std',87    'fp-self-contained/std',88    'parachain-info/std',89    'serde',90    'pallet-inflation/std',91    'pallet-configuration/std',92    'pallet-common/std',93    'pallet-structure/std',94    'pallet-fungible/std',95    'pallet-refungible/std',96    'pallet-nonfungible/std',97    'pallet-proxy-rmrk-core/std',98    'pallet-proxy-rmrk-equip/std',99    'pallet-unique/std',100    'pallet-unique-scheduler/std',101    'pallet-charge-transaction/std',102    'up-data-structs/std',103    'sp-api/std',104    'sp-block-builder/std',105    "sp-consensus-aura/std",106    'sp-core/std',107    'sp-inherents/std',108    'sp-io/std',109    'sp-offchain/std',110    'sp-runtime/std',111    'sp-session/std',112    'sp-std/std',113    'sp-transaction-pool/std',114    'sp-version/std',115    'xcm/std',116    'xcm-builder/std',117    'xcm-executor/std',118    'up-common/std',119120    "orml-vesting/std",121]122limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']123quartz-runtime = []124125refungible = []126scheduler = []127rmrk = []128129################################################################################130# Substrate Dependencies131132[dependencies.codec]133default-features = false134features = ['derive']135package = 'parity-scale-codec'136version = '3.1.2'137138[dependencies.frame-benchmarking]139default-features = false140git = "https://github.com/paritytech/substrate"141optional = true142branch = "polkadot-v0.9.27"143144[dependencies.frame-try-runtime]145default-features = false146git = "https://github.com/paritytech/substrate"147optional = true148branch = "polkadot-v0.9.27"149150[dependencies.frame-executive]151default-features = false152git = "https://github.com/paritytech/substrate"153branch = "polkadot-v0.9.27"154155[dependencies.frame-support]156default-features = false157git = "https://github.com/paritytech/substrate"158branch = "polkadot-v0.9.27"159160[dependencies.frame-system]161default-features = false162git = "https://github.com/paritytech/substrate"163branch = "polkadot-v0.9.27"164165[dependencies.frame-system-benchmarking]166default-features = false167git = "https://github.com/paritytech/substrate"168optional = true169branch = "polkadot-v0.9.27"170171[dependencies.frame-system-rpc-runtime-api]172default-features = false173git = "https://github.com/paritytech/substrate"174branch = "polkadot-v0.9.27"175176[dependencies.hex-literal]177optional = true178version = '0.3.3'179180[dependencies.serde]181default-features = false182features = ['derive']183optional = true184version = '1.0.130'185186[dependencies.pallet-aura]187default-features = false188git = "https://github.com/paritytech/substrate"189branch = "polkadot-v0.9.27"190191[dependencies.pallet-balances]192default-features = false193git = "https://github.com/paritytech/substrate"194branch = "polkadot-v0.9.27"195196# Contracts specific packages197# [dependencies.pallet-contracts]198# git = 'https://github.com/paritytech/substrate'199# default-features = false200# branch = 'master'201# version = '4.0.0-dev'202203# [dependencies.pallet-contracts-primitives]204# git = 'https://github.com/paritytech/substrate'205# default-features = false206# branch = 'master'207# version = '4.0.0-dev'208209# [dependencies.pallet-contracts-rpc-runtime-api]210# git = 'https://github.com/paritytech/substrate'211# default-features = false212# branch = 'master'213# version = '4.0.0-dev'214215[dependencies.pallet-randomness-collective-flip]216default-features = false217git = "https://github.com/paritytech/substrate"218branch = "polkadot-v0.9.27"219220[dependencies.pallet-sudo]221default-features = false222git = "https://github.com/paritytech/substrate"223branch = "polkadot-v0.9.27"224225[dependencies.pallet-timestamp]226default-features = false227git = "https://github.com/paritytech/substrate"228branch = "polkadot-v0.9.27"229230[dependencies.pallet-transaction-payment]231default-features = false232git = "https://github.com/paritytech/substrate"233branch = "polkadot-v0.9.27"234235[dependencies.pallet-transaction-payment-rpc-runtime-api]236default-features = false237git = "https://github.com/paritytech/substrate"238branch = "polkadot-v0.9.27"239240[dependencies.pallet-treasury]241default-features = false242git = "https://github.com/paritytech/substrate"243branch = "polkadot-v0.9.27"244245# [dependencies.pallet-vesting]246# default-features = false247# git = 'https://github.com/paritytech/substrate'248# branch = 'master'249250[dependencies.sp-arithmetic]251default-features = false252git = "https://github.com/paritytech/substrate"253branch = "polkadot-v0.9.27"254255[dependencies.sp-api]256default-features = false257git = "https://github.com/paritytech/substrate"258branch = "polkadot-v0.9.27"259260[dependencies.sp-block-builder]261default-features = false262git = "https://github.com/paritytech/substrate"263branch = "polkadot-v0.9.27"264265[dependencies.sp-core]266default-features = false267git = "https://github.com/paritytech/substrate"268branch = "polkadot-v0.9.27"269270[dependencies.sp-consensus-aura]271default-features = false272git = "https://github.com/paritytech/substrate"273branch = "polkadot-v0.9.27"274275[dependencies.sp-inherents]276default-features = false277git = "https://github.com/paritytech/substrate"278branch = "polkadot-v0.9.27"279280[dependencies.sp-io]281default-features = false282git = "https://github.com/paritytech/substrate"283branch = "polkadot-v0.9.27"284285[dependencies.sp-offchain]286default-features = false287git = "https://github.com/paritytech/substrate"288branch = "polkadot-v0.9.27"289290[dependencies.sp-runtime]291default-features = false292git = "https://github.com/paritytech/substrate"293branch = "polkadot-v0.9.27"294295[dependencies.sp-session]296default-features = false297git = "https://github.com/paritytech/substrate"298branch = "polkadot-v0.9.27"299300[dependencies.sp-std]301default-features = false302git = "https://github.com/paritytech/substrate"303branch = "polkadot-v0.9.27"304305[dependencies.sp-transaction-pool]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.27"309310[dependencies.sp-version]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.27"314315[dependencies.smallvec]316version = '1.6.1'317318################################################################################319# Cumulus dependencies320321[dependencies.parachain-info]322default-features = false323git = "https://github.com/paritytech/cumulus"324branch = "polkadot-v0.9.27"325326[dependencies.cumulus-pallet-aura-ext]327git = "https://github.com/paritytech/cumulus"328branch = "polkadot-v0.9.27"329default-features = false330331[dependencies.cumulus-pallet-parachain-system]332git = "https://github.com/paritytech/cumulus"333branch = "polkadot-v0.9.27"334default-features = false335336[dependencies.cumulus-primitives-core]337git = "https://github.com/paritytech/cumulus"338branch = "polkadot-v0.9.27"339default-features = false340341[dependencies.cumulus-pallet-xcm]342git = "https://github.com/paritytech/cumulus"343branch = "polkadot-v0.9.27"344default-features = false345346[dependencies.cumulus-pallet-dmp-queue]347git = "https://github.com/paritytech/cumulus"348branch = "polkadot-v0.9.27"349default-features = false350351[dependencies.cumulus-pallet-xcmp-queue]352git = "https://github.com/paritytech/cumulus"353branch = "polkadot-v0.9.27"354default-features = false355356[dependencies.cumulus-primitives-utility]357git = "https://github.com/paritytech/cumulus"358branch = "polkadot-v0.9.27"359default-features = false360361[dependencies.cumulus-primitives-timestamp]362git = "https://github.com/paritytech/cumulus"363branch = "polkadot-v0.9.27"364default-features = false365366################################################################################367# Polkadot dependencies368369[dependencies.polkadot-parachain]370git = "https://github.com/paritytech/polkadot"371branch = "release-v0.9.27"372default-features = false373374[dependencies.xcm]375git = "https://github.com/paritytech/polkadot"376branch = "release-v0.9.27"377default-features = false378379[dependencies.xcm-builder]380git = "https://github.com/paritytech/polkadot"381branch = "release-v0.9.27"382default-features = false383384[dependencies.xcm-executor]385git = "https://github.com/paritytech/polkadot"386branch = "release-v0.9.27"387default-features = false388389[dependencies.pallet-xcm]390git = "https://github.com/paritytech/polkadot"391branch = "release-v0.9.27"392default-features = false393394[dependencies.orml-vesting]395git = "https://github.com/open-web3-stack/open-runtime-module-library"396branch = "polkadot-v0.9.27"397version = "0.4.1-dev"398default-features = false399400################################################################################401# RMRK dependencies402403# todo git404[dependencies.rmrk-rpc]405default-features = false406path = "../../primitives/rmrk-rpc"407408################################################################################409# local dependencies410411[dependencies]412log = { version = "0.4.16", default-features = false }413up-common = { path = "../../primitives/common", default-features = false }414scale-info = { version = "2.0.1", default-features = false, features = [415    "derive",416] }417derivative = "2.2.0"418pallet-unique = { path = '../../pallets/unique', default-features = false }419up-rpc = { path = "../../primitives/rpc", default-features = false }420app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false}421fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }422pallet-inflation = { path = '../../pallets/inflation', default-features = false }423pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }424up-data-structs = { path = '../../primitives/data-structs', default-features = false }425pallet-configuration = { default-features = false, path = "../../pallets/configuration" }426pallet-common = { default-features = false, path = "../../pallets/common" }427pallet-structure = { default-features = false, path = "../../pallets/structure" }428pallet-fungible = { default-features = false, path = "../../pallets/fungible" }429pallet-refungible = { default-features = false, path = "../../pallets/refungible" }430pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }431pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }432pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }433pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }434# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }435pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }436pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }437pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }438pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }439pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }440pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }441pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }442pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }443fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }444fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }445evm-coder = { default-features = false, path = '../../crates/evm-coder' }446up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }447448################################################################################449# Build Dependencies450451[build-dependencies.substrate-wasm-builder]452git = "https://github.com/paritytech/substrate"453branch = "polkadot-v0.9.27"
after · runtime/quartz/Cargo.toml
1################################################################################2# Package34[package]5authors = ['Unique Network <support@uniquenetwork.io>']6build = 'build.rs'7description = 'Quartz Runtime'8edition = '2021'9homepage = 'https://unique.network'10license = 'GPLv3'11name = 'quartz-runtime'12repository = 'https://github.com/UniqueNetwork/unique-chain'13version = '0.9.27'1415[package.metadata.docs.rs]16targets = ['x86_64-unknown-linux-gnu']1718[features]19default = ['std', 'quartz-runtime']20runtime-benchmarks = [21    'hex-literal',22    'frame-benchmarking',23    'frame-support/runtime-benchmarks',24    'frame-system-benchmarking',25    'frame-system/runtime-benchmarks',26    'pallet-ethereum/runtime-benchmarks',27    'pallet-evm-migration/runtime-benchmarks',28    'pallet-evm-coder-substrate/runtime-benchmarks',29    'pallet-balances/runtime-benchmarks',30    'pallet-timestamp/runtime-benchmarks',31    'pallet-common/runtime-benchmarks',32    'pallet-structure/runtime-benchmarks',33    'pallet-fungible/runtime-benchmarks',34    'pallet-refungible/runtime-benchmarks',35    'pallet-nonfungible/runtime-benchmarks',36    'pallet-proxy-rmrk-core/runtime-benchmarks',37    'pallet-proxy-rmrk-equip/runtime-benchmarks',38    'pallet-unique/runtime-benchmarks',39    'pallet-inflation/runtime-benchmarks',40    'pallet-unique-scheduler/runtime-benchmarks',41    'pallet-xcm/runtime-benchmarks',42    'sp-runtime/runtime-benchmarks',43    'xcm-builder/runtime-benchmarks',44]45try-runtime = [46    'frame-try-runtime',47    'frame-executive/try-runtime',48    'frame-system/try-runtime',49]50std = [51    'codec/std',52    'cumulus-pallet-aura-ext/std',53    'cumulus-pallet-parachain-system/std',54    'cumulus-pallet-xcm/std',55    'cumulus-pallet-xcmp-queue/std',56    'cumulus-primitives-core/std',57    'cumulus-primitives-utility/std',58    'frame-try-runtime/std',59    'frame-executive/std',60    'frame-support/std',61    'frame-system/std',62    'frame-system-rpc-runtime-api/std',63    'pallet-aura/std',64    'pallet-balances/std',65    # 'pallet-contracts/std',66    # 'pallet-contracts-primitives/std',67    # 'pallet-contracts-rpc-runtime-api/std',68    # 'pallet-contract-helpers/std',69    'pallet-randomness-collective-flip/std',70    'pallet-sudo/std',71    'pallet-timestamp/std',72    'pallet-transaction-payment/std',73    'pallet-transaction-payment-rpc-runtime-api/std',74    'pallet-treasury/std',75    # 'pallet-vesting/std',76    'pallet-evm/std',77    'pallet-evm-migration/std',78    'pallet-evm-contract-helpers/std',79    'pallet-evm-transaction-payment/std',80    'pallet-evm-coder-substrate/std',81    'pallet-ethereum/std',82    'pallet-base-fee/std',83    'fp-rpc/std',84    'up-rpc/std',85    'app-promotion-rpc/std',86    'fp-evm-mapping/std',87    'fp-self-contained/std',88    'parachain-info/std',89    'serde',90    'pallet-inflation/std',91    'pallet-configuration/std',92    'pallet-common/std',93    'pallet-structure/std',94    'pallet-fungible/std',95    'pallet-refungible/std',96    'pallet-nonfungible/std',97    'pallet-proxy-rmrk-core/std',98    'pallet-proxy-rmrk-equip/std',99    'pallet-unique/std',100    'pallet-unique-scheduler/std',101    'pallet-charge-transaction/std',102    'up-data-structs/std',103    'sp-api/std',104    'sp-block-builder/std',105    "sp-consensus-aura/std",106    'sp-core/std',107    'sp-inherents/std',108    'sp-io/std',109    'sp-offchain/std',110    'sp-runtime/std',111    'sp-session/std',112    'sp-std/std',113    'sp-transaction-pool/std',114    'sp-version/std',115    'xcm/std',116    'xcm-builder/std',117    'xcm-executor/std',118    'up-common/std',119120    "orml-vesting/std",121]122limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']123quartz-runtime = []124125refungible = []126scheduler = []127rmrk = []128129################################################################################130# Substrate Dependencies131132[dependencies.codec]133default-features = false134features = ['derive']135package = 'parity-scale-codec'136version = '3.1.2'137138[dependencies.frame-benchmarking]139default-features = false140git = "https://github.com/paritytech/substrate"141optional = true142branch = "polkadot-v0.9.27"143144[dependencies.frame-try-runtime]145default-features = false146git = "https://github.com/paritytech/substrate"147optional = true148branch = "polkadot-v0.9.27"149150[dependencies.frame-executive]151default-features = false152git = "https://github.com/paritytech/substrate"153branch = "polkadot-v0.9.27"154155[dependencies.frame-support]156default-features = false157git = "https://github.com/paritytech/substrate"158branch = "polkadot-v0.9.27"159160[dependencies.frame-system]161default-features = false162git = "https://github.com/paritytech/substrate"163branch = "polkadot-v0.9.27"164165[dependencies.frame-system-benchmarking]166default-features = false167git = "https://github.com/paritytech/substrate"168optional = true169branch = "polkadot-v0.9.27"170171[dependencies.frame-system-rpc-runtime-api]172default-features = false173git = "https://github.com/paritytech/substrate"174branch = "polkadot-v0.9.27"175176[dependencies.hex-literal]177optional = true178version = '0.3.3'179180[dependencies.serde]181default-features = false182features = ['derive']183optional = true184version = '1.0.130'185186[dependencies.pallet-aura]187default-features = false188git = "https://github.com/paritytech/substrate"189branch = "polkadot-v0.9.27"190191[dependencies.pallet-balances]192default-features = false193git = "https://github.com/paritytech/substrate"194branch = "polkadot-v0.9.27"195196# Contracts specific packages197# [dependencies.pallet-contracts]198# git = 'https://github.com/paritytech/substrate'199# default-features = false200# branch = 'master'201# version = '4.0.0-dev'202203# [dependencies.pallet-contracts-primitives]204# git = 'https://github.com/paritytech/substrate'205# default-features = false206# branch = 'master'207# version = '4.0.0-dev'208209# [dependencies.pallet-contracts-rpc-runtime-api]210# git = 'https://github.com/paritytech/substrate'211# default-features = false212# branch = 'master'213# version = '4.0.0-dev'214215[dependencies.pallet-randomness-collective-flip]216default-features = false217git = "https://github.com/paritytech/substrate"218branch = "polkadot-v0.9.27"219220[dependencies.pallet-sudo]221default-features = false222git = "https://github.com/paritytech/substrate"223branch = "polkadot-v0.9.27"224225[dependencies.pallet-timestamp]226default-features = false227git = "https://github.com/paritytech/substrate"228branch = "polkadot-v0.9.27"229230[dependencies.pallet-transaction-payment]231default-features = false232git = "https://github.com/paritytech/substrate"233branch = "polkadot-v0.9.27"234235[dependencies.pallet-transaction-payment-rpc-runtime-api]236default-features = false237git = "https://github.com/paritytech/substrate"238branch = "polkadot-v0.9.27"239240[dependencies.pallet-treasury]241default-features = false242git = "https://github.com/paritytech/substrate"243branch = "polkadot-v0.9.27"244245# [dependencies.pallet-vesting]246# default-features = false247# git = 'https://github.com/paritytech/substrate'248# branch = 'master'249250[dependencies.sp-arithmetic]251default-features = false252git = "https://github.com/paritytech/substrate"253branch = "polkadot-v0.9.27"254255[dependencies.sp-api]256default-features = false257git = "https://github.com/paritytech/substrate"258branch = "polkadot-v0.9.27"259260[dependencies.sp-block-builder]261default-features = false262git = "https://github.com/paritytech/substrate"263branch = "polkadot-v0.9.27"264265[dependencies.sp-core]266default-features = false267git = "https://github.com/paritytech/substrate"268branch = "polkadot-v0.9.27"269270[dependencies.sp-consensus-aura]271default-features = false272git = "https://github.com/paritytech/substrate"273branch = "polkadot-v0.9.27"274275[dependencies.sp-inherents]276default-features = false277git = "https://github.com/paritytech/substrate"278branch = "polkadot-v0.9.27"279280[dependencies.sp-io]281default-features = false282git = "https://github.com/paritytech/substrate"283branch = "polkadot-v0.9.27"284285[dependencies.sp-offchain]286default-features = false287git = "https://github.com/paritytech/substrate"288branch = "polkadot-v0.9.27"289290[dependencies.sp-runtime]291default-features = false292git = "https://github.com/paritytech/substrate"293branch = "polkadot-v0.9.27"294295[dependencies.sp-session]296default-features = false297git = "https://github.com/paritytech/substrate"298branch = "polkadot-v0.9.27"299300[dependencies.sp-std]301default-features = false302git = "https://github.com/paritytech/substrate"303branch = "polkadot-v0.9.27"304305[dependencies.sp-transaction-pool]306default-features = false307git = "https://github.com/paritytech/substrate"308branch = "polkadot-v0.9.27"309310[dependencies.sp-version]311default-features = false312git = "https://github.com/paritytech/substrate"313branch = "polkadot-v0.9.27"314315[dependencies.smallvec]316version = '1.6.1'317318################################################################################319# Cumulus dependencies320321[dependencies.parachain-info]322default-features = false323git = "https://github.com/paritytech/cumulus"324branch = "polkadot-v0.9.27"325326[dependencies.cumulus-pallet-aura-ext]327git = "https://github.com/paritytech/cumulus"328branch = "polkadot-v0.9.27"329default-features = false330331[dependencies.cumulus-pallet-parachain-system]332git = "https://github.com/paritytech/cumulus"333branch = "polkadot-v0.9.27"334default-features = false335336[dependencies.cumulus-primitives-core]337git = "https://github.com/paritytech/cumulus"338branch = "polkadot-v0.9.27"339default-features = false340341[dependencies.cumulus-pallet-xcm]342git = "https://github.com/paritytech/cumulus"343branch = "polkadot-v0.9.27"344default-features = false345346[dependencies.cumulus-pallet-dmp-queue]347git = "https://github.com/paritytech/cumulus"348branch = "polkadot-v0.9.27"349default-features = false350351[dependencies.cumulus-pallet-xcmp-queue]352git = "https://github.com/paritytech/cumulus"353branch = "polkadot-v0.9.27"354default-features = false355356[dependencies.cumulus-primitives-utility]357git = "https://github.com/paritytech/cumulus"358branch = "polkadot-v0.9.27"359default-features = false360361[dependencies.cumulus-primitives-timestamp]362git = "https://github.com/paritytech/cumulus"363branch = "polkadot-v0.9.27"364default-features = false365366################################################################################367# Polkadot dependencies368369[dependencies.polkadot-parachain]370git = "https://github.com/paritytech/polkadot"371branch = "release-v0.9.27"372default-features = false373374[dependencies.xcm]375git = "https://github.com/paritytech/polkadot"376branch = "release-v0.9.27"377default-features = false378379[dependencies.xcm-builder]380git = "https://github.com/paritytech/polkadot"381branch = "release-v0.9.27"382default-features = false383384[dependencies.xcm-executor]385git = "https://github.com/paritytech/polkadot"386branch = "release-v0.9.27"387default-features = false388389[dependencies.pallet-xcm]390git = "https://github.com/paritytech/polkadot"391branch = "release-v0.9.27"392default-features = false393394[dependencies.orml-vesting]395git = "https://github.com/open-web3-stack/open-runtime-module-library"396branch = "polkadot-v0.9.27"397version = "0.4.1-dev"398default-features = false399400################################################################################401# RMRK dependencies402403# todo git404[dependencies.rmrk-rpc]405default-features = false406path = "../../primitives/rmrk-rpc"407408################################################################################409# local dependencies410411[dependencies]412log = { version = "0.4.16", default-features = false }413up-common = { path = "../../primitives/common", default-features = false }414scale-info = { version = "2.0.1", default-features = false, features = [415    "derive",416] }417derivative = "2.2.0"418pallet-unique = { path = '../../pallets/unique', default-features = false }419up-rpc = { path = "../../primitives/rpc", default-features = false }420app-promotion-rpc = { path = "../../primitives/app_promotion_rpc", default-features = false}421fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }422pallet-inflation = { path = '../../pallets/inflation', default-features = false }423pallet-app-promotion = { path = '../../pallets/app-promotion', default-features = false }424up-data-structs = { path = '../../primitives/data-structs', default-features = false }425pallet-configuration = { default-features = false, path = "../../pallets/configuration" }426pallet-common = { default-features = false, path = "../../pallets/common" }427pallet-structure = { default-features = false, path = "../../pallets/structure" }428pallet-fungible = { default-features = false, path = "../../pallets/fungible" }429pallet-refungible = { default-features = false, path = "../../pallets/refungible" }430pallet-nonfungible = { default-features = false, path = "../../pallets/nonfungible" }431pallet-proxy-rmrk-core = { default-features = false, path = "../../pallets/proxy-rmrk-core", package = "pallet-rmrk-core" }432pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }433pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }434# pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }435pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }436pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }437pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }438pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }439pallet-evm-coder-substrate = { default-features = false, path = "../../pallets/evm-coder-substrate" }440pallet-evm = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }441pallet-ethereum = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }442pallet-base-fee = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }443fp-rpc = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }444fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }445evm-coder = { default-features = false, path = '../../crates/evm-coder' }446up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }447448################################################################################449# Build Dependencies450451[build-dependencies.substrate-wasm-builder]452git = "https://github.com/paritytech/substrate"453branch = "polkadot-v0.9.27"
modifiedruntime/tests/Cargo.tomldiffbeforeafterboth
--- a/runtime/tests/Cargo.toml
+++ b/runtime/tests/Cargo.toml
@@ -43,4 +43,4 @@
 scale-info = "*"
 
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
-up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
--- a/runtime/unique/Cargo.toml
+++ b/runtime/unique/Cargo.toml
@@ -425,7 +425,7 @@
 pallet-proxy-rmrk-equip = { default-features = false, path = "../../pallets/proxy-rmrk-equip", package = "pallet-rmrk-equip" }
 pallet-unique-scheduler = { path = '../../pallets/scheduler', default-features = false }
 # pallet-contract-helpers = { path = '../pallets/contract-helpers', default-features = false, version = '0.1.0' }
-pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
+pallet-charge-transaction = { git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e", package = "pallet-template-transaction-payment", default-features = false, version = "3.0.0" }
 pallet-evm-migration = { path = '../../pallets/evm-migration', default-features = false }
 pallet-evm-contract-helpers = { path = '../../pallets/evm-contract-helpers', default-features = false }
 pallet-evm-transaction-payment = { path = '../../pallets/evm-transaction-payment', default-features = false }
@@ -437,7 +437,7 @@
 fp-self-contained = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 fp-evm-mapping = { default-features = false, git = "https://github.com/uniquenetwork/frontier", rev = "89a37c5a489f426cc7a42d7b94019974093a052d" }
 evm-coder = { default-features = false, path = '../../crates/evm-coder' }
-up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="a8ec4bf8d5ded662d96da6d8fb211b0bbf6617b3" }
+up-sponsorship = { default-features = false, git = "https://github.com/uniquenetwork/pallet-sponsoring", rev="9ee7d6e57e03a2575cbab79431774b56f170018e" }
 
 ################################################################################
 # Build Dependencies
modifiedtests/src/eth/api/ContractHelpers.soldiffbeforeafterboth
--- a/tests/src/eth/api/ContractHelpers.sol
+++ b/tests/src/eth/api/ContractHelpers.sol
@@ -23,7 +23,7 @@
 }
 
 /// @title Magic contract, which allows users to reconfigure other contracts
-/// @dev the ERC-165 identifier for this interface is 0xd77fab70
+/// @dev the ERC-165 identifier for this interface is 0x172cb4fb
 interface ContractHelpers is Dummy, ERC165, ContractHelpersEvents {
 	/// Get user, which deployed specified contract
 	/// @dev May return zero address in case if contract is deployed
@@ -131,9 +131,9 @@
 	function setSponsoringRateLimit(address contractAddress, uint32 rateLimit)
 		external;
 
-	/// @dev EVM selector for this function is: 0x1c362eb4,
-	///  or in textual repr: setSponsoringFeeLimit(address,uint128)
-	function setSponsoringFeeLimit(address contractAddress, uint128 feeLimit)
+	/// @dev EVM selector for this function is: 0x03aed665,
+	///  or in textual repr: setSponsoringFeeLimit(address,uint256)
+	function setSponsoringFeeLimit(address contractAddress, uint256 feeLimit)
 		external;
 
 	/// @dev EVM selector for this function is: 0xc3fdc9ee,
@@ -141,7 +141,7 @@
 	function getSponsoringFeeLimit(address contractAddress)
 		external
 		view
-		returns (uint128);
+		returns (uint256);
 
 	/// Is specified user present in contract allow list
 	/// @dev Contract owner always implicitly included
modifiedtests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth
--- a/tests/src/eth/contractSponsoring.test.ts
+++ b/tests/src/eth/contractSponsoring.test.ts
@@ -558,7 +558,7 @@
     const owner = await createEthAccountWithBalance(api, web3, privateKeyWrapper);
     const flipper = await deployFlipper(web3, owner);
     const helpers = contractHelpers(web3, owner);
-    expect(await helpers.methods.getSponsoringFeeLimit(flipper.options.address).call()).to.be.equals('340282366920938463463374607431768211455');
+    expect(await helpers.methods.getSponsoringFeeLimit(flipper.options.address).call()).to.be.equals('115792089237316195423570985008687907853269984665640564039457584007913129639935');
   });
 
   itWeb3('Set fee limit', async ({api, web3, privateKeyWrapper}) => {
modifiedtests/src/eth/util/contractHelpersAbi.jsondiffbeforeafterboth
--- a/tests/src/eth/util/contractHelpersAbi.json
+++ b/tests/src/eth/util/contractHelpersAbi.json
@@ -135,7 +135,7 @@
       }
     ],
     "name": "getSponsoringFeeLimit",
-    "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }],
+    "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
     "stateMutability": "view",
     "type": "function"
   },
@@ -225,7 +225,7 @@
         "name": "contractAddress",
         "type": "address"
       },
-      { "internalType": "uint128", "name": "feeLimit", "type": "uint128" }
+      { "internalType": "uint256", "name": "feeLimit", "type": "uint256" }
     ],
     "name": "setSponsoringFeeLimit",
     "outputs": [],