git.delta.rocks / unique-network / refs/commits / 60662ccc0c31

difftreelog

source

pallets/balances-adapter/src/lib.rs727 Bsourcehistory
1// #![doc = include_str!("../README.md")]2#![cfg_attr(not(feature = "std"), no_std)]3#![warn(missing_docs)]45extern crate alloc;6pub use pallet::*;78pub mod erc;910#[frame_support::pallet]11pub mod pallet {12	use alloc::string::String;13	use frame_support::traits::Get;14	use sp_core::U256;1516	#[pallet::config]17	pub trait Config: frame_system::Config + pallet_evm_coder_substrate::Config {18		type Currency: frame_support::traits::Currency<19			Self::AccountId,20			Balance = Self::CurrencyBalance,21		>;22		type CurrencyBalance: Into<U256> + TryFrom<U256>;2324		type Decimals: Get<u8>;25		type Name: Get<String>;26		type Symbol: Get<String>;27	}28	#[pallet::pallet]29	pub struct Pallet<T>(_);3031	#[pallet::call]32	impl<T: Config> Pallet<T> {}33}