1extern crate alloc;2use evm_coder::{generate_stubgen, solidity_interface, types::*};34use pallet_common::{CollectionHandle, erc::CollectionCall, erc::CommonEvmHandler};56use pallet_evm::PrecompileHandle;7use pallet_evm_coder_substrate::call;89use crate::{Config, RefungibleHandle};1011#[solidity_interface(12 name = "UniqueRFT",13 is(via("CollectionHandle<T>", common_mut, Collection),)14)]15impl<T: Config> RefungibleHandle<T> where T::AccountId: From<[u8; 32]> {}161718generate_stubgen!(gen_impl, UniqueRFTCall<()>, true);19generate_stubgen!(gen_iface, UniqueRFTCall<()>, false);2021impl<T: Config> CommonEvmHandler for RefungibleHandle<T>22where23 T::AccountId: From<[u8; 32]>,24{25 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueRefungible.raw");26 fn call(27 self,28 handle: &mut impl PrecompileHandle,29 ) -> Option<pallet_common::erc::PrecompileResult> {30 call::<T, UniqueRFTCall<T>, _, _>(handle, self)31 }32}