1234567891011121314151617extern crate alloc;18use evm_coder::{generate_stubgen, solidity_interface, types::*};1920use pallet_common::{CollectionHandle, erc::CollectionCall, erc::CommonEvmHandler};2122use pallet_evm::PrecompileHandle;23use pallet_evm_coder_substrate::call;2425use crate::{Config, RefungibleHandle};2627#[solidity_interface(28 name = "UniqueRFT",29 is(via("CollectionHandle<T>", common_mut, Collection),)30)]31impl<T: Config> RefungibleHandle<T> where T::AccountId: From<[u8; 32]> {}323334generate_stubgen!(gen_impl, UniqueRFTCall<()>, true);35generate_stubgen!(gen_iface, UniqueRFTCall<()>, false);3637impl<T: Config> CommonEvmHandler for RefungibleHandle<T>38where39 T::AccountId: From<[u8; 32]>,40{41 const CODE: &'static [u8] = include_bytes!("./stubs/UniqueRefungible.raw");42 fn call(43 self,44 handle: &mut impl PrecompileHandle,45 ) -> Option<pallet_common::erc::PrecompileResult> {46 call::<T, UniqueRFTCall<T>, _, _>(handle, self)47 }48}