Skip to content

Commit

Permalink
fix: unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed May 17, 2024
1 parent 02d547b commit e9c80c8
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
2 changes: 0 additions & 2 deletions src/interface/resolver.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use starknet::ContractAddress;

#[starknet::interface]
trait IResolver<TContractState> {
fn resolve(
Expand Down
7 changes: 0 additions & 7 deletions src/naming/asserts.cairo
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
use core::traits::TryInto;
use core::array::SpanTrait;
use naming::{
interface::{
naming::{INaming, INamingDispatcher, INamingDispatcherTrait},
resolver::{IResolver, IResolverDispatcher, IResolverDispatcherTrait},
pricing::{IPricing, IPricingDispatcher, IPricingDispatcherTrait},
referral::{IReferral, IReferralDispatcher, IReferralDispatcherTrait},
},
naming::main::{
Naming,
Naming::{
Expand All @@ -25,7 +19,6 @@ use starknet::{
use openzeppelin::token::erc20::interface::{
IERC20Camel, IERC20CamelDispatcher, IERC20CamelDispatcherTrait
};
use integer::{u256_safe_divmod, u256_as_non_zero};
use naming::naming::utils::UtilsTrait;

#[generate_trait]
Expand Down
4 changes: 1 addition & 3 deletions src/naming/internal.cairo
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use naming::{
interface::{
naming::{INaming, INamingDispatcher, INamingDispatcherTrait},
resolver::{IResolver, IResolverDispatcher, IResolverDispatcherTrait},
pricing::{IPricing, IPricingDispatcher, IPricingDispatcherTrait},
referral::{IReferral, IReferralDispatcher, IReferralDispatcherTrait},
},
naming::main::{
Expand All @@ -18,7 +16,7 @@ use naming::{
use identity::interface::identity::{IIdentity, IIdentityDispatcher, IIdentityDispatcherTrait};
use starknet::{
contract_address::ContractAddressZeroable, ContractAddress, get_caller_address,
get_contract_address, get_block_timestamp
get_contract_address
};
use openzeppelin::token::erc20::interface::{
IERC20Camel, IERC20CamelDispatcher, IERC20CamelDispatcherTrait
Expand Down
5 changes: 0 additions & 5 deletions src/naming/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mod Naming {
use array::{ArrayTrait, SpanTrait};
use zeroable::Zeroable;
use starknet::class_hash::ClassHash;
use integer::{u256_safe_divmod, u256_as_non_zero};
use core::pedersen;
use hash::LegacyHash;
use ecdsa::check_ecdsa_signature;
Expand All @@ -17,14 +16,10 @@ mod Naming {
naming::{asserts::AssertionsTrait, internal::InternalTrait, utils::UtilsTrait},
interface::{
naming::{INaming, INamingDispatcher, INamingDispatcherTrait},
resolver::{IResolver, IResolverDispatcher, IResolverDispatcherTrait},
pricing::{IPricing, IPricingDispatcher, IPricingDispatcherTrait},
referral::{IReferral, IReferralDispatcher, IReferralDispatcherTrait},
auto_renewal::{IAutoRenewal, IAutoRenewalDispatcher, IAutoRenewalDispatcherTrait}
}
};
use clone::Clone;
use array::ArrayTCloneImpl;
use identity::interface::identity::{IIdentity, IIdentityDispatcher, IIdentityDispatcherTrait};
use openzeppelin::token::erc20::interface::{
IERC20Camel, IERC20CamelDispatcher, IERC20CamelDispatcherTrait
Expand Down
2 changes: 1 addition & 1 deletion src/naming/utils.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::array::SpanTrait;
use naming::{naming::main::{Naming, Naming::_hash_to_domainContractMemberStateTrait}};
use integer::{u256_safe_divmod, u256_as_non_zero};
use wadray::{Wad, WAD_SCALE};
use wadray::Wad;

#[generate_trait]
impl UtilsImpl of UtilsTrait {
Expand Down

0 comments on commit e9c80c8

Please sign in to comment.