diff --git a/crates/token/src/components/tests/introspection/test_src5.cairo b/crates/token/src/components/tests/introspection/test_src5.cairo index 75561ea9..df03c104 100644 --- a/crates/token/src/components/tests/introspection/test_src5.cairo +++ b/crates/token/src/components/tests/introspection/test_src5.cairo @@ -1,11 +1,11 @@ use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::components::introspection::src5::{src_5_model, SRC5Model, ISRC5, ISRC5_ID}; -use token::components::introspection::src5::src5_component::{InternalImpl}; -use token::components::tests::mocks::src5_mock::SRC5Mock; +use origami_token::components::introspection::src5::{src_5_model, SRC5Model, ISRC5, ISRC5_ID}; +use origami_token::components::introspection::src5::src5_component::{InternalImpl}; +use origami_token::components::tests::mocks::src5_mock::SRC5Mock; use starknet::storage::{StorageMemberAccessTrait}; -use token::tests::constants::{OTHER_ID}; +use origami_token::tests::constants::{OTHER_ID}; fn STATE() -> (IWorldDispatcher, SRC5Mock::ContractState) { diff --git a/crates/token/src/components/tests/mocks/erc20/erc20_allowance_mock.cairo b/crates/token/src/components/tests/mocks/erc20/erc20_allowance_mock.cairo index b83e7963..c31df26d 100644 --- a/crates/token/src/components/tests/mocks/erc20/erc20_allowance_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc20/erc20_allowance_mock.cairo @@ -1,6 +1,6 @@ #[dojo::contract] mod erc20_allowance_mock { - use token::components::token::erc20::erc20_allowance::erc20_allowance_component; + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; component!( path: erc20_allowance_component, storage: erc20_allowance, event: ERC20AllowanceEvent diff --git a/crates/token/src/components/tests/mocks/erc20/erc20_balance_mock.cairo b/crates/token/src/components/tests/mocks/erc20/erc20_balance_mock.cairo index 593a1ca3..e4e63b33 100644 --- a/crates/token/src/components/tests/mocks/erc20/erc20_balance_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc20/erc20_balance_mock.cairo @@ -34,8 +34,8 @@ trait IERC20BalanceMockInit { #[dojo::contract] mod erc20_balance_mock { use starknet::ContractAddress; - use token::components::token::erc20::erc20_allowance::erc20_allowance_component; - use token::components::token::erc20::erc20_balance::erc20_balance_component; + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component; component!( path: erc20_allowance_component, storage: erc20_allowance, event: ERC20AllowanceEvent diff --git a/crates/token/src/components/tests/mocks/erc20/erc20_bridgeable_mock.cairo b/crates/token/src/components/tests/mocks/erc20/erc20_bridgeable_mock.cairo index 5234ed8c..47a168b4 100644 --- a/crates/token/src/components/tests/mocks/erc20/erc20_bridgeable_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc20/erc20_bridgeable_mock.cairo @@ -17,14 +17,14 @@ mod erc20_bridgeable_mock { use starknet::ContractAddress; use starknet::{get_caller_address, get_contract_address}; - use token::components::security::initializable::initializable_component; - - use token::components::token::erc20::erc20_allowance::erc20_allowance_component; - use token::components::token::erc20::erc20_balance::erc20_balance_component; - use token::components::token::erc20::erc20_metadata::erc20_metadata_component; - use token::components::token::erc20::erc20_mintable::erc20_mintable_component; - use token::components::token::erc20::erc20_burnable::erc20_burnable_component; - use token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component; + use origami_token::components::security::initializable::initializable_component; + + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component; + use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component; + use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component; + use origami_token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component; component!(path: initializable_component, storage: initializable, event: InitializableEvent); diff --git a/crates/token/src/components/tests/mocks/erc20/erc20_metadata_mock.cairo b/crates/token/src/components/tests/mocks/erc20/erc20_metadata_mock.cairo index 096e2a34..e978dcff 100644 --- a/crates/token/src/components/tests/mocks/erc20/erc20_metadata_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc20/erc20_metadata_mock.cairo @@ -1,6 +1,6 @@ #[dojo::contract] mod erc20_metadata_mock { - use token::components::token::erc20::erc20_metadata::erc20_metadata_component; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component; component!(path: erc20_metadata_component, storage: erc20_metadata, event: ERC20MetadataEvent); diff --git a/crates/token/src/components/tests/mocks/erc20/erc20_mintable_burnable_mock.cairo b/crates/token/src/components/tests/mocks/erc20/erc20_mintable_burnable_mock.cairo index e2328294..e7c43e8b 100644 --- a/crates/token/src/components/tests/mocks/erc20/erc20_mintable_burnable_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc20/erc20_mintable_burnable_mock.cairo @@ -1,10 +1,10 @@ #[dojo::contract] mod erc20_mintable_burnable_mock { - use token::components::token::erc20::erc20_allowance::erc20_allowance_component; - use token::components::token::erc20::erc20_balance::erc20_balance_component; - use token::components::token::erc20::erc20_metadata::erc20_metadata_component; - use token::components::token::erc20::erc20_mintable::erc20_mintable_component; - use token::components::token::erc20::erc20_burnable::erc20_burnable_component; + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component; + use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component; + use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component; component!( path: erc20_allowance_component, storage: erc20_allowance, event: ERC20AllowanceEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_approval_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_approval_mock.cairo index 6f81ba19..2e15908f 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_approval_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_approval_mock.cairo @@ -1,7 +1,7 @@ #[dojo::contract] mod erc721_approval_mock { - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!( path: erc721_approval_component, storage: erc721_approval, event: ERC721ApprovalEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_balance_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_balance_mock.cairo index ad783167..253d3fee 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_balance_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_balance_mock.cairo @@ -42,10 +42,10 @@ trait IERC721BalanceMockInit { #[dojo::contract] mod erc721_balance_mock { use starknet::ContractAddress; - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_mintable::erc721_mintable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!( path: erc721_approval_component, storage: erc721_approval, event: ERC721ApprovalEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_enumerable_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_enumerable_mock.cairo index 5c663ffe..09ec9572 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_enumerable_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_enumerable_mock.cairo @@ -21,10 +21,10 @@ trait IERC721EnumerableMock { mod erc721_enumerable_mock { use starknet::ContractAddress; - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_enumerable::erc721_enumerable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_enumerable::erc721_enumerable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!( path: erc721_approval_component, storage: erc721_approval, event: ERC721ApprovalEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_metadata_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_metadata_mock.cairo index 11f47d6e..72e8524f 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_metadata_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_metadata_mock.cairo @@ -1,10 +1,10 @@ #[dojo::contract] mod erc721_metadata_mock { - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_metadata::erc721_metadata_component; - use token::components::token::erc721::erc721_mintable::erc721_mintable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component; + use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!( path: erc721_approval_component, storage: erc721_approval, event: ERC721ApprovalEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_mintable_burnable_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_mintable_burnable_mock.cairo index 199d9ca3..15585a5d 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_mintable_burnable_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_mintable_burnable_mock.cairo @@ -1,11 +1,11 @@ #[dojo::contract] mod erc721_mintable_burnable_mock { - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_metadata::erc721_metadata_component; - use token::components::token::erc721::erc721_mintable::erc721_mintable_component; - use token::components::token::erc721::erc721_burnable::erc721_burnable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component; + use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component; + use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!( path: erc721_approval_component, storage: erc721_approval, event: ERC721ApprovalEvent diff --git a/crates/token/src/components/tests/mocks/erc721/erc721_receiver_mock.cairo b/crates/token/src/components/tests/mocks/erc721/erc721_receiver_mock.cairo index 50ffb383..a9720a20 100644 --- a/crates/token/src/components/tests/mocks/erc721/erc721_receiver_mock.cairo +++ b/crates/token/src/components/tests/mocks/erc721/erc721_receiver_mock.cairo @@ -15,8 +15,8 @@ trait IERC721ReceiverMockInit { #[dojo::contract] mod erc721_receiver_mock { - use token::components::introspection::src5::src5_component; - use token::components::token::erc721::erc721_receiver::erc721_receiver_component; + use origami_token::components::introspection::src5::src5_component; + use origami_token::components::token::erc721::erc721_receiver::erc721_receiver_component; component!( path: erc721_receiver_component, storage: erc721_receiver, event: ERC721ReceiverEvent diff --git a/crates/token/src/components/tests/mocks/initializable_mock.cairo b/crates/token/src/components/tests/mocks/initializable_mock.cairo index c16d2a12..2acd35d9 100644 --- a/crates/token/src/components/tests/mocks/initializable_mock.cairo +++ b/crates/token/src/components/tests/mocks/initializable_mock.cairo @@ -1,6 +1,6 @@ #[dojo::contract] mod InitializableMock { - use token::components::security::initializable::initializable_component; + use origami_token::components::security::initializable::initializable_component; component!(path: initializable_component, storage: initializable, event: InitializableEvent); diff --git a/crates/token/src/components/tests/mocks/src5_mock.cairo b/crates/token/src/components/tests/mocks/src5_mock.cairo index bc6fc1b8..70357956 100644 --- a/crates/token/src/components/tests/mocks/src5_mock.cairo +++ b/crates/token/src/components/tests/mocks/src5_mock.cairo @@ -1,6 +1,6 @@ #[dojo::contract] mod SRC5Mock { - use token::components::introspection::src5::src5_component; + use origami_token::components::introspection::src5::src5_component; component!(path: src5_component, storage: src5, event: SRC5Event); diff --git a/crates/token/src/components/tests/security/test_initializable.cairo b/crates/token/src/components/tests/security/test_initializable.cairo index 1e70835b..ba980d0c 100644 --- a/crates/token/src/components/tests/security/test_initializable.cairo +++ b/crates/token/src/components/tests/security/test_initializable.cairo @@ -1,11 +1,11 @@ use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::components::security::initializable::{initializable_model, InitializableModel}; -use token::components::security::initializable::initializable_component::{ +use origami_token::components::security::initializable::{initializable_model, InitializableModel}; +use origami_token::components::security::initializable::initializable_component::{ InitializableImpl, InternalImpl }; -use token::components::tests::mocks::initializable_mock::InitializableMock; +use origami_token::components::tests::mocks::initializable_mock::InitializableMock; use starknet::storage::{StorageMemberAccessTrait}; fn STATE() -> (IWorldDispatcher, InitializableMock::ContractState) { diff --git a/crates/token/src/components/tests/token/erc20/test_erc20_allowance.cairo b/crates/token/src/components/tests/token/erc20/test_erc20_allowance.cairo index 188f01c4..ef1ac5f0 100644 --- a/crates/token/src/components/tests/token/erc20/test_erc20_allowance.cairo +++ b/crates/token/src/components/tests/token/erc20/test_erc20_allowance.cairo @@ -1,20 +1,20 @@ -use token::components::token::erc20::erc20_allowance::IERC20Allowance; +use origami_token::components::token::erc20::erc20_allowance::IERC20Allowance; use starknet::testing; use starknet::ContractAddress; use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE, SUPPLY}; -use token::tests::utils; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE, SUPPLY}; +use origami_token::tests::utils; -use token::components::token::erc20::erc20_allowance::{ +use origami_token::components::token::erc20::erc20_allowance::{ erc_20_allowance_model, ERC20AllowanceModel, }; -use token::components::token::erc20::erc20_allowance::erc20_allowance_component; -use token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ +use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; +use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ Approval, ERC20AllowanceImpl, InternalImpl }; -use token::components::tests::mocks::erc20::erc20_allowance_mock::erc20_allowance_mock; +use origami_token::components::tests::mocks::erc20::erc20_allowance_mock::erc20_allowance_mock; use starknet::storage::{StorageMemberAccessTrait}; use debug::PrintTrait; diff --git a/crates/token/src/components/tests/token/erc20/test_erc20_balance.cairo b/crates/token/src/components/tests/token/erc20/test_erc20_balance.cairo index 6f1ee33f..9b955a4a 100644 --- a/crates/token/src/components/tests/token/erc20/test_erc20_balance.cairo +++ b/crates/token/src/components/tests/token/erc20/test_erc20_balance.cairo @@ -2,25 +2,25 @@ use integer::BoundedInt; use starknet::ContractAddress; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ADMIN, ZERO, OWNER, OTHER, SPENDER, RECIPIENT, VALUE, SUPPLY}; +use origami_token::tests::constants::{ADMIN, ZERO, OWNER, OTHER, SPENDER, RECIPIENT, VALUE, SUPPLY}; -use token::tests::utils; +use origami_token::tests::utils; -use token::components::token::erc20::erc20_allowance::{ +use origami_token::components::token::erc20::erc20_allowance::{ erc_20_allowance_model, ERC20AllowanceModel, }; -use token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ +use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ Approval, ERC20AllowanceImpl, InternalImpl as ERC20AllowanceInternalImpl }; -use token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; -use token::components::token::erc20::erc20_balance::erc20_balance_component::{ +use origami_token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; +use origami_token::components::token::erc20::erc20_balance::erc20_balance_component::{ Transfer, ERC20BalanceImpl, ERC20BalanceCamelImpl, InternalImpl as ERC20BalanceInternalImpl }; -use token::components::tests::mocks::erc20::erc20_balance_mock::{ +use origami_token::components::tests::mocks::erc20::erc20_balance_mock::{ erc20_balance_mock, IERC20BalanceMockDispatcher, IERC20BalanceMockDispatcherTrait }; use starknet::storage::{StorageMemberAccessTrait}; -use token::components::tests::token::erc20::test_erc20_allowance::{ +use origami_token::components::tests::token::erc20::test_erc20_allowance::{ assert_event_approval, assert_only_event_approval }; diff --git a/crates/token/src/components/tests/token/erc20/test_erc20_bridgeable.cairo b/crates/token/src/components/tests/token/erc20/test_erc20_bridgeable.cairo index e42fe372..291c6502 100644 --- a/crates/token/src/components/tests/token/erc20/test_erc20_bridgeable.cairo +++ b/crates/token/src/components/tests/token/erc20/test_erc20_bridgeable.cairo @@ -4,30 +4,30 @@ use starknet::ContractAddress; use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, BRIDGE, DECIMALS, SUPPLY, VALUE}; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, BRIDGE, DECIMALS, SUPPLY, VALUE}; -use token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; -use token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ +use origami_token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; +use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ ERC20MetadataImpl, ERC20MetadataTotalSupplyImpl, InternalImpl as ERC20MetadataInternalImpl }; -use token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; -use token::components::token::erc20::erc20_balance::erc20_balance_component::{ +use origami_token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; +use origami_token::components::token::erc20::erc20_balance::erc20_balance_component::{ ERC20BalanceImpl, InternalImpl as ERC20BalanceInternalImpl }; -use token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; -use token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; +use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; +use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; -use token::components::token::erc20::erc20_bridgeable::{ +use origami_token::components::token::erc20::erc20_bridgeable::{ erc_20_bridgeable_model, ERC20BridgeableModel }; -use token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component::{ +use origami_token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component::{ ERC20BridgeableImpl }; -use token::components::tests::mocks::erc20::erc20_bridgeable_mock::erc20_bridgeable_mock; -use token::components::tests::mocks::erc20::erc20_bridgeable_mock::erc20_bridgeable_mock::{ +use origami_token::components::tests::mocks::erc20::erc20_bridgeable_mock::erc20_bridgeable_mock; +use origami_token::components::tests::mocks::erc20::erc20_bridgeable_mock::erc20_bridgeable_mock::{ ERC20InitializerImpl }; use starknet::storage::{StorageMemberAccessTrait}; diff --git a/crates/token/src/components/tests/token/erc20/test_erc20_metadata.cairo b/crates/token/src/components/tests/token/erc20/test_erc20_metadata.cairo index a7c5131a..2ba5054e 100644 --- a/crates/token/src/components/tests/token/erc20/test_erc20_metadata.cairo +++ b/crates/token/src/components/tests/token/erc20/test_erc20_metadata.cairo @@ -1,13 +1,13 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{DECIMALS}; +use origami_token::tests::constants::{DECIMALS}; -use token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; -use token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ +use origami_token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; +use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ ERC20MetadataImpl, ERC20MetadataTotalSupplyImpl, ERC20MetadataTotalSupplyCamelImpl, InternalImpl }; -use token::components::tests::mocks::erc20::erc20_metadata_mock::erc20_metadata_mock; +use origami_token::components::tests::mocks::erc20::erc20_metadata_mock::erc20_metadata_mock; use starknet::storage::{StorageMemberAccessTrait}; fn STATE() -> (IWorldDispatcher, erc20_metadata_mock::ContractState) { diff --git a/crates/token/src/components/tests/token/erc20/test_erc20_mintable_burnable.cairo b/crates/token/src/components/tests/token/erc20/test_erc20_mintable_burnable.cairo index ae50ab62..2c920277 100644 --- a/crates/token/src/components/tests/token/erc20/test_erc20_mintable_burnable.cairo +++ b/crates/token/src/components/tests/token/erc20/test_erc20_mintable_burnable.cairo @@ -1,22 +1,22 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE}; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE}; -use token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; -use token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ +use origami_token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; +use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ ERC20MetadataImpl, ERC20MetadataTotalSupplyImpl, InternalImpl as ERC20MetadataInternalImpl }; -use token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; -use token::components::token::erc20::erc20_balance::erc20_balance_component::{ +use origami_token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; +use origami_token::components::token::erc20::erc20_balance::erc20_balance_component::{ ERC20BalanceImpl, InternalImpl as ERC20BalanceInternalImpl }; -use token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; -use token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; +use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; +use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; -use token::components::tests::mocks::erc20::erc20_mintable_burnable_mock::erc20_mintable_burnable_mock; +use origami_token::components::tests::mocks::erc20::erc20_mintable_burnable_mock::erc20_mintable_burnable_mock; use starknet::storage::{StorageMemberAccessTrait}; fn STATE() -> (IWorldDispatcher, erc20_mintable_burnable_mock::ContractState) { diff --git a/crates/token/src/components/tests/token/erc721/test_erc721_approval.cairo b/crates/token/src/components/tests/token/erc721/test_erc721_approval.cairo index e6ce52de..9f07c7b4 100644 --- a/crates/token/src/components/tests/token/erc721/test_erc721_approval.cairo +++ b/crates/token/src/components/tests/token/erc721/test_erc721_approval.cairo @@ -1,28 +1,28 @@ -use token::components::token::erc721::erc721_approval::IERC721Approval; +use origami_token::components::token::erc721::erc721_approval::IERC721Approval; use starknet::testing; use starknet::ContractAddress; use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID}; -use token::tests::utils; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID}; +use origami_token::tests::utils; -use token::components::token::erc721::erc721_approval::{ +use origami_token::components::token::erc721::erc721_approval::{ erc_721_token_approval_model, ERC721TokenApprovalModel, erc_721_operator_approval_model, ERC721OperatorApprovalModel }; -use token::components::token::erc721::erc721_owner::{erc_721_owner_model, ERC721OwnerModel,}; -use token::components::token::erc721::erc721_approval::erc721_approval_component; -use token::components::token::erc721::erc721_approval::erc721_approval_component::{ +use origami_token::components::token::erc721::erc721_owner::{erc_721_owner_model, ERC721OwnerModel,}; +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component::{ Approval, ApprovalForAll, ERC721ApprovalImpl, InternalImpl as ERC721ApprovalInternalImpl }; -use token::components::token::erc721::erc721_owner::erc721_owner_component; -use token::components::token::erc721::erc721_owner::erc721_owner_component::{ +use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; +use origami_token::components::token::erc721::erc721_owner::erc721_owner_component::{ ERC721OwnerImpl, InternalImpl as ERC721OwnerInternalImpl }; -use token::components::tests::mocks::erc721::erc721_approval_mock::erc721_approval_mock; +use origami_token::components::tests::mocks::erc721::erc721_approval_mock::erc721_approval_mock; use starknet::storage::{StorageMemberAccessTrait}; use debug::PrintTrait; diff --git a/crates/token/src/components/tests/token/erc721/test_erc721_balance.cairo b/crates/token/src/components/tests/token/erc721/test_erc721_balance.cairo index 57aa338b..5c450df3 100644 --- a/crates/token/src/components/tests/token/erc721/test_erc721_balance.cairo +++ b/crates/token/src/components/tests/token/erc721/test_erc721_balance.cairo @@ -3,38 +3,38 @@ use starknet::ContractAddress; use starknet::testing; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ADMIN, ZERO, OWNER, OTHER, SPENDER, RECIPIENT, TOKEN_ID}; +use origami_token::tests::constants::{ADMIN, ZERO, OWNER, OTHER, SPENDER, RECIPIENT, TOKEN_ID}; -use token::tests::utils; +use origami_token::tests::utils; -use token::components::token::erc721::erc721_approval::{ +use origami_token::components::token::erc721::erc721_approval::{ erc_721_token_approval_model, ERC721TokenApprovalModel, }; -use token::components::token::erc721::erc721_approval::erc721_approval_component::{ +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component::{ Approval, ERC721ApprovalImpl, InternalImpl as ERC721ApprovalInternalImpl }; -use token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; -use token::components::token::erc721::erc721_balance::erc721_balance_component::{ +use origami_token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; +use origami_token::components::token::erc721::erc721_balance::erc721_balance_component::{ Transfer, ERC721BalanceImpl, ERC721BalanceCamelImpl, InternalImpl as ERC721BalanceInternalImpl }; -use token::components::token::erc721::erc721_owner::{erc_721_owner_model, ERC721OwnerModel,}; -use token::components::token::erc721::erc721_owner::erc721_owner_component::{ +use origami_token::components::token::erc721::erc721_owner::{erc_721_owner_model, ERC721OwnerModel,}; +use origami_token::components::token::erc721::erc721_owner::erc721_owner_component::{ ERC721OwnerImpl, ERC721OwnerCamelImpl, InternalImpl as ERC721OwnerInternalImpl }; -use token::components::tests::mocks::erc721::erc721_balance_mock::{ +use origami_token::components::tests::mocks::erc721::erc721_balance_mock::{ erc721_balance_mock, IERC721BalanceMockDispatcher, IERC721BalanceMockDispatcherTrait }; -use token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; +use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; use starknet::storage::{StorageMemberAccessTrait}; -use token::components::tests::token::erc721::test_erc721_approval::{ +use origami_token::components::tests::token::erc721::test_erc721_approval::{ assert_event_approval, assert_only_event_approval }; -use token::components::introspection::src5::{src_5_model, SRC5Model, ISRC5, ISRC5_ID}; -use token::components::introspection::src5::src5_component::{InternalImpl as SRC5InternalImpl}; -use token::components::tests::mocks::erc721::erc721_receiver_mock::{ +use origami_token::components::introspection::src5::{src_5_model, SRC5Model, ISRC5, ISRC5_ID}; +use origami_token::components::introspection::src5::src5_component::{InternalImpl as SRC5InternalImpl}; +use origami_token::components::tests::mocks::erc721::erc721_receiver_mock::{ erc721_receiver_mock, IERC721ReceiverMockDispatcher, IERC721ReceiverMockDispatcherTrait }; diff --git a/crates/token/src/components/tests/token/erc721/test_erc721_enumerable.cairo b/crates/token/src/components/tests/token/erc721/test_erc721_enumerable.cairo index 621a2b9e..afa5191d 100644 --- a/crates/token/src/components/tests/token/erc721/test_erc721_enumerable.cairo +++ b/crates/token/src/components/tests/token/erc721/test_erc721_enumerable.cairo @@ -3,23 +3,23 @@ use starknet::ContractAddress; use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE, TOKEN_ID, TOKEN_ID_2}; -use token::tests::utils; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, VALUE, TOKEN_ID, TOKEN_ID_2}; +use origami_token::tests::utils; -use token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel}; -use token::components::token::erc721::erc721_balance::erc721_balance_component::{ +use origami_token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel}; +use origami_token::components::token::erc721::erc721_balance::erc721_balance_component::{ Transfer, ERC721BalanceImpl, ERC721BalanceCamelImpl, InternalImpl as ERC721BalanceInternalImpl }; -use token::components::token::erc721::erc721_enumerable::{ +use origami_token::components::token::erc721::erc721_enumerable::{ erc_721_enumerable_index_model, ERC721EnumerableIndexModel, erc_721_enumerable_owner_index_model, ERC721EnumerableOwnerIndexModel, erc_721_enumerable_total_model, ERC721EnumerableTotalModel }; -use token::components::token::erc721::erc721_enumerable::erc721_enumerable_component::{ +use origami_token::components::token::erc721::erc721_enumerable::erc721_enumerable_component::{ ERC721EnumerableImpl, InternalImpl as ERC721EnumerableInternalImpl }; -use token::components::tests::mocks::erc721::erc721_enumerable_mock::{ +use origami_token::components::tests::mocks::erc721::erc721_enumerable_mock::{ erc721_enumerable_mock, IERC721EnumerableMockDispatcher, IERC721EnumerableMockDispatcherTrait }; diff --git a/crates/token/src/components/tests/token/erc721/test_erc721_metadata.cairo b/crates/token/src/components/tests/token/erc721/test_erc721_metadata.cairo index 01d892e9..c3c0bef2 100644 --- a/crates/token/src/components/tests/token/erc721/test_erc721_metadata.cairo +++ b/crates/token/src/components/tests/token/erc721/test_erc721_metadata.cairo @@ -1,15 +1,15 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{OWNER}; +use origami_token::tests::constants::{OWNER}; -use token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; -use token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ +use origami_token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; +use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ ERC721MetadataImpl, ERC721MetadataCamelImpl, InternalImpl }; -use token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; +use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; -use token::components::tests::mocks::erc721::erc721_metadata_mock::erc721_metadata_mock; +use origami_token::components::tests::mocks::erc721::erc721_metadata_mock::erc721_metadata_mock; use starknet::storage::{StorageMemberAccessTrait}; diff --git a/crates/token/src/components/tests/token/erc721/test_erc721_mintable_burnable.cairo b/crates/token/src/components/tests/token/erc721/test_erc721_mintable_burnable.cairo index a57344cf..cca0f92e 100644 --- a/crates/token/src/components/tests/token/erc721/test_erc721_mintable_burnable.cairo +++ b/crates/token/src/components/tests/token/erc721/test_erc721_mintable_burnable.cairo @@ -1,22 +1,22 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID}; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID}; -use token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; -use token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ +use origami_token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; +use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ ERC721MetadataImpl, ERC721MetadataCamelImpl, InternalImpl as ERC721MetadataInternalImpl }; -use token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; -use token::components::token::erc721::erc721_balance::erc721_balance_component::{ +use origami_token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; +use origami_token::components::token::erc721::erc721_balance::erc721_balance_component::{ ERC721BalanceImpl, InternalImpl as ERC721BalanceInternalImpl }; -use token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; -use token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; +use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; +use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; -use token::components::tests::mocks::erc721::erc721_mintable_burnable_mock::erc721_mintable_burnable_mock; +use origami_token::components::tests::mocks::erc721::erc721_mintable_burnable_mock::erc721_mintable_burnable_mock; use starknet::storage::{StorageMemberAccessTrait}; diff --git a/crates/token/src/components/token/erc20/erc20_balance.cairo b/crates/token/src/components/token/erc20/erc20_balance.cairo index 10adff56..dbdb5836 100644 --- a/crates/token/src/components/token/erc20/erc20_balance.cairo +++ b/crates/token/src/components/token/erc20/erc20_balance.cairo @@ -50,7 +50,7 @@ mod erc20_balance_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc20::erc20_allowance::erc20_allowance_component as erc20_allowance_comp; + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component as erc20_allowance_comp; use erc20_allowance_comp::InternalImpl as ERC20AllowanceInternal; #[storage] diff --git a/crates/token/src/components/token/erc20/erc20_bridgeable.cairo b/crates/token/src/components/token/erc20/erc20_bridgeable.cairo index 0029c0ed..34bd4928 100644 --- a/crates/token/src/components/token/erc20/erc20_bridgeable.cairo +++ b/crates/token/src/components/token/erc20/erc20_bridgeable.cairo @@ -37,10 +37,10 @@ mod erc20_bridgeable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; - use token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; - use token::components::token::erc20::erc20_mintable::erc20_mintable_component as erc20_mintable_comp; - use token::components::token::erc20::erc20_burnable::erc20_burnable_component as erc20_burnable_comp; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; + use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component as erc20_mintable_comp; + use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component as erc20_burnable_comp; use erc20_balance_comp::InternalImpl as ERC20BalanceInternal; use erc20_metadata_comp::InternalImpl as ERC20MetadataInternal; diff --git a/crates/token/src/components/token/erc20/erc20_burnable.cairo b/crates/token/src/components/token/erc20/erc20_burnable.cairo index b0e33805..8fe50cc4 100644 --- a/crates/token/src/components/token/erc20/erc20_burnable.cairo +++ b/crates/token/src/components/token/erc20/erc20_burnable.cairo @@ -9,8 +9,8 @@ mod erc20_burnable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; - use token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; use erc20_balance_comp::InternalImpl as ERC20BalanceInternal; use erc20_metadata_comp::InternalImpl as ERC20MetadataInternal; diff --git a/crates/token/src/components/token/erc20/erc20_mintable.cairo b/crates/token/src/components/token/erc20/erc20_mintable.cairo index 0103b56d..eb5427f1 100644 --- a/crates/token/src/components/token/erc20/erc20_mintable.cairo +++ b/crates/token/src/components/token/erc20/erc20_mintable.cairo @@ -9,8 +9,8 @@ mod erc20_mintable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; - use token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component as erc20_balance_comp; + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component as erc20_metadata_comp; use erc20_balance_comp::InternalImpl as ERC20BalanceInternal; use erc20_metadata_comp::InternalImpl as ERC20MetadataInternal; diff --git a/crates/token/src/components/token/erc721/erc721_approval.cairo b/crates/token/src/components/token/erc721/erc721_approval.cairo index 620bb17c..28aeab8a 100644 --- a/crates/token/src/components/token/erc721/erc721_approval.cairo +++ b/crates/token/src/components/token/erc721/erc721_approval.cairo @@ -63,8 +63,8 @@ mod erc721_approval_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; use erc721_balance_comp::InternalImpl as ERC721BalanceInternal; use erc721_owner_comp::InternalImpl as ERC721OwnerInternal; diff --git a/crates/token/src/components/token/erc721/erc721_balance.cairo b/crates/token/src/components/token/erc721/erc721_balance.cairo index dace2b40..7a4d0714 100644 --- a/crates/token/src/components/token/erc721/erc721_balance.cairo +++ b/crates/token/src/components/token/erc721/erc721_balance.cairo @@ -58,10 +58,10 @@ mod erc721_balance_component { use dojo::world::{ IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::introspection::src5::{ISRC5Dispatcher, ISRC5DispatcherTrait}; - use token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; - use token::components::token::erc721::interface::{ + use origami_token::components::introspection::src5::{ISRC5Dispatcher, ISRC5DispatcherTrait}; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::interface::{ IERC721_RECEIVER_ID, IERC721ReceiverDispatcher, IERC721ReceiverDispatcherTrait }; use erc721_approval_comp::InternalImpl as ERC721ApprovalInternal; diff --git a/crates/token/src/components/token/erc721/erc721_burnable.cairo b/crates/token/src/components/token/erc721/erc721_burnable.cairo index 5c74c5ca..b45aea90 100644 --- a/crates/token/src/components/token/erc721/erc721_burnable.cairo +++ b/crates/token/src/components/token/erc721/erc721_burnable.cairo @@ -9,9 +9,9 @@ mod erc721_burnable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; - use token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; use erc721_approval_comp::InternalImpl as ERC721ApprovalInternal; use erc721_balance_comp::InternalImpl as ERC721BalanceInternal; diff --git a/crates/token/src/components/token/erc721/erc721_enumerable.cairo b/crates/token/src/components/token/erc721/erc721_enumerable.cairo index 2e1d3bc0..f8a0130d 100644 --- a/crates/token/src/components/token/erc721/erc721_enumerable.cairo +++ b/crates/token/src/components/token/erc721/erc721_enumerable.cairo @@ -94,9 +94,9 @@ mod erc721_enumerable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; - use token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; use erc721_approval_comp::InternalImpl as ERC721ApprovalInternal; use erc721_balance_comp::InternalImpl as ERC721BalanceInternal; diff --git a/crates/token/src/components/token/erc721/erc721_metadata.cairo b/crates/token/src/components/token/erc721/erc721_metadata.cairo index fd3dcd4d..bb3c7d08 100644 --- a/crates/token/src/components/token/erc721/erc721_metadata.cairo +++ b/crates/token/src/components/token/erc721/erc721_metadata.cairo @@ -44,7 +44,7 @@ mod erc721_metadata_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; use erc721_owner_comp::InternalImpl as ERC721OwnerInternal; #[storage] diff --git a/crates/token/src/components/token/erc721/erc721_mintable.cairo b/crates/token/src/components/token/erc721/erc721_mintable.cairo index 13006e80..ec59cd8e 100644 --- a/crates/token/src/components/token/erc721/erc721_mintable.cairo +++ b/crates/token/src/components/token/erc721/erc721_mintable.cairo @@ -9,9 +9,9 @@ mod erc721_mintable_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; - use token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; - use token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component as erc721_approval_comp; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component as erc721_balance_comp; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component as erc721_owner_comp; use erc721_approval_comp::InternalImpl as ERC721ApprovalInternal; use erc721_balance_comp::InternalImpl as ERC721BalanceInternal; diff --git a/crates/token/src/components/token/erc721/erc721_receiver.cairo b/crates/token/src/components/token/erc721/erc721_receiver.cairo index 7dad9619..6646b8ab 100644 --- a/crates/token/src/components/token/erc721/erc721_receiver.cairo +++ b/crates/token/src/components/token/erc721/erc721_receiver.cairo @@ -38,10 +38,10 @@ mod erc721_receiver_component { IWorldProvider, IWorldProviderDispatcher, IWorldDispatcher, IWorldDispatcherTrait }; - use token::components::introspection::src5::src5_component as src5_comp; + use origami_token::components::introspection::src5::src5_component as src5_comp; use src5_comp::InternalImpl as SRC5Internal; - use token::components::token::erc721::interface::IERC721_RECEIVER_ID; + use origami_token::components::token::erc721::interface::IERC721_RECEIVER_ID; #[storage] diff --git a/crates/token/src/erc1155/erc1155.cairo b/crates/token/src/erc1155/erc1155.cairo index 678d6eec..972b5609 100644 --- a/crates/token/src/erc1155/erc1155.cairo +++ b/crates/token/src/erc1155/erc1155.cairo @@ -1,8 +1,8 @@ #[starknet::contract] mod ERC1155 { - use token::erc1155::models::{ERC1155Meta, ERC1155OperatorApproval, ERC1155Balance}; - use token::erc1155::interface; - use token::erc1155::interface::{IERC1155, IERC1155CamelOnly}; + use origami_token::erc1155::models::{ERC1155Meta, ERC1155OperatorApproval, ERC1155Balance}; + use origami_token::erc1155::interface; + use origami_token::erc1155::interface::{IERC1155, IERC1155CamelOnly}; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use starknet::ContractAddress; use starknet::{get_caller_address, get_contract_address}; diff --git a/crates/token/src/erc1155/tests.cairo b/crates/token/src/erc1155/tests.cairo index 96ebb97f..d9bc9d08 100644 --- a/crates/token/src/erc1155/tests.cairo +++ b/crates/token/src/erc1155/tests.cairo @@ -1,16 +1,16 @@ -use token::tests::utils; -use token::tests::constants::{ +use origami_token::tests::utils; +use origami_token::tests::constants::{ ZERO, OWNER, SPENDER, RECIPIENT, OPERATOR, OTHER, NAME, SYMBOL, URI, TOKEN_ID, TOKEN_AMOUNT, TOKEN_ID_2, TOKEN_AMOUNT_2 }; -use token::erc1155::ERC1155::ERC1155Impl; -use token::erc1155::ERC1155::ERC1155CamelOnlyImpl; -use token::erc1155::ERC1155::ERC1155MetadataImpl; -use token::erc1155::ERC1155::InternalImpl; -use token::erc1155::ERC1155::WorldInteractionsImpl; -use token::erc1155::ERC1155::{TransferSingle, TransferBatch, ApprovalForAll}; -use token::erc1155::ERC1155; +use origami_token::erc1155::ERC1155::ERC1155Impl; +use origami_token::erc1155::ERC1155::ERC1155CamelOnlyImpl; +use origami_token::erc1155::ERC1155::ERC1155MetadataImpl; +use origami_token::erc1155::ERC1155::InternalImpl; +use origami_token::erc1155::ERC1155::WorldInteractionsImpl; +use origami_token::erc1155::ERC1155::{TransferSingle, TransferBatch, ApprovalForAll}; +use origami_token::erc1155::ERC1155; use starknet::ContractAddress; use starknet::contract_address_const; use starknet::testing; @@ -18,7 +18,7 @@ use zeroable::Zeroable; use dojo::test_utils::spawn_test_world; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; -use token::erc1155::models::{ +use origami_token::erc1155::models::{ ERC1155Meta, erc_1155_meta, ERC1155OperatorApproval, erc_1155_operator_approval, ERC1155Balance, erc_1155_balance }; diff --git a/crates/token/src/erc20/erc20.cairo b/crates/token/src/erc20/erc20.cairo index d1a282b4..09b910c6 100644 --- a/crates/token/src/erc20/erc20.cairo +++ b/crates/token/src/erc20/erc20.cairo @@ -1,8 +1,8 @@ #[starknet::contract] mod ERC20 { - use token::erc20::models::{ERC20Allowance, ERC20Balance, ERC20Meta}; + use origami_token::erc20::models::{ERC20Allowance, ERC20Balance, ERC20Meta}; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; - use token::erc20::interface; + use origami_token::erc20::interface; use integer::BoundedInt; use starknet::ContractAddress; use starknet::{get_caller_address, get_contract_address}; diff --git a/crates/token/src/erc20/tests.cairo b/crates/token/src/erc20/tests.cairo index 663c9ac9..0f853d19 100644 --- a/crates/token/src/erc20/tests.cairo +++ b/crates/token/src/erc20/tests.cairo @@ -1,16 +1,16 @@ use integer::BoundedInt; use integer::u256; use integer::u256_from_felt252; -use token::tests::utils; -use token::tests::constants::{ +use origami_token::tests::utils; +use origami_token::tests::constants::{ ZERO, OWNER, SPENDER, RECIPIENT, NAME, SYMBOL, DECIMALS, SUPPLY, VALUE }; -use token::erc20::ERC20::Approval; -use token::erc20::ERC20::ERC20Impl; -use token::erc20::ERC20::ERC20MetadataImpl; -use token::erc20::ERC20::InternalImpl; -use token::erc20::ERC20::Transfer; -use token::erc20::ERC20; +use origami_token::erc20::ERC20::Approval; +use origami_token::erc20::ERC20::ERC20Impl; +use origami_token::erc20::ERC20::ERC20MetadataImpl; +use origami_token::erc20::ERC20::InternalImpl; +use origami_token::erc20::ERC20::Transfer; +use origami_token::erc20::ERC20; use starknet::ContractAddress; use starknet::contract_address_const; use starknet::testing; @@ -18,7 +18,7 @@ use zeroable::Zeroable; use dojo::test_utils::spawn_test_world; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; -use token::erc20::models::{ +use origami_token::erc20::models::{ ERC20Allowance, erc_20_allowance, ERC20Balance, erc_20_balance, ERC20Meta, erc_20_meta }; use starknet::storage::{StorageMemberAccessTrait}; diff --git a/crates/token/src/erc721/erc721.cairo b/crates/token/src/erc721/erc721.cairo index c392abaf..a405afec 100644 --- a/crates/token/src/erc721/erc721.cairo +++ b/crates/token/src/erc721/erc721.cairo @@ -1,9 +1,9 @@ #[starknet::contract] mod ERC721 { - use token::erc721::models::{ + use origami_token::erc721::models::{ ERC721Meta, ERC721OperatorApproval, ERC721Owner, ERC721Balance, ERC721TokenApproval }; - use token::erc721::interface; + use origami_token::erc721::interface; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use integer::BoundedInt; use starknet::ContractAddress; diff --git a/crates/token/src/erc721/tests.cairo b/crates/token/src/erc721/tests.cairo index ae67776a..825cc556 100644 --- a/crates/token/src/erc721/tests.cairo +++ b/crates/token/src/erc721/tests.cairo @@ -20,18 +20,18 @@ use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; // Internal imports -use token::tests::utils; -use token::tests::constants::{ +use origami_token::tests::utils; +use origami_token::tests::constants::{ ZERO, OWNER, SPENDER, RECIPIENT, OPERATOR, OTHER, NAME, SYMBOL, URI, TOKEN_ID }; -use token::erc721::ERC721::ERC721Impl; -use token::erc721::ERC721::ERC721CamelOnlyImpl; -use token::erc721::ERC721::ERC721MetadataImpl; -use token::erc721::ERC721::InternalImpl; -use token::erc721::ERC721::WorldInteractionsImpl; -use token::erc721::ERC721::{Approval, ApprovalForAll, Transfer}; -use token::erc721::ERC721; -use token::erc721::models::{ +use origami_token::erc721::ERC721::ERC721Impl; +use origami_token::erc721::ERC721::ERC721CamelOnlyImpl; +use origami_token::erc721::ERC721::ERC721MetadataImpl; +use origami_token::erc721::ERC721::InternalImpl; +use origami_token::erc721::ERC721::WorldInteractionsImpl; +use origami_token::erc721::ERC721::{Approval, ApprovalForAll, Transfer}; +use origami_token::erc721::ERC721; +use origami_token::erc721::models::{ ERC721Meta, erc_721_meta, ERC721OperatorApproval, erc_721_operator_approval, ERC721Owner, erc_721_owner, ERC721Balance, erc_721_balance, ERC721TokenApproval, erc_721_token_approval }; diff --git a/crates/token/src/presets/erc20/bridgeable.cairo b/crates/token/src/presets/erc20/bridgeable.cairo index 6858d9ad..6328ed5e 100644 --- a/crates/token/src/presets/erc20/bridgeable.cairo +++ b/crates/token/src/presets/erc20/bridgeable.cairo @@ -78,14 +78,14 @@ mod ERC20Bridgeable { use starknet::{get_caller_address, get_contract_address}; use zeroable::Zeroable; - use token::components::security::initializable::initializable_component; - - use token::components::token::erc20::erc20_metadata::erc20_metadata_component; - use token::components::token::erc20::erc20_balance::erc20_balance_component; - use token::components::token::erc20::erc20_allowance::erc20_allowance_component; - use token::components::token::erc20::erc20_mintable::erc20_mintable_component; - use token::components::token::erc20::erc20_burnable::erc20_burnable_component; - use token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component; + use origami_token::components::security::initializable::initializable_component; + + use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component; + use origami_token::components::token::erc20::erc20_balance::erc20_balance_component; + use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component; + use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component; + use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component; + use origami_token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component; component!(path: initializable_component, storage: initializable, event: InitializableEvent); diff --git a/crates/token/src/presets/erc20/tests_bridgeable.cairo b/crates/token/src/presets/erc20/tests_bridgeable.cairo index 69557319..2a0ac223 100644 --- a/crates/token/src/presets/erc20/tests_bridgeable.cairo +++ b/crates/token/src/presets/erc20/tests_bridgeable.cairo @@ -6,47 +6,47 @@ use zeroable::Zeroable; use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, BRIDGE, DECIMALS, SUPPLY, VALUE}; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, BRIDGE, DECIMALS, SUPPLY, VALUE}; -use token::tests::utils; +use origami_token::tests::utils; -use token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; -use token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ +use origami_token::components::token::erc20::erc20_metadata::{erc_20_metadata_model, ERC20MetadataModel,}; +use origami_token::components::token::erc20::erc20_metadata::erc20_metadata_component::{ ERC20MetadataImpl, ERC20MetadataTotalSupplyImpl, InternalImpl as ERC20MetadataInternalImpl }; -use token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; -use token::components::token::erc20::erc20_balance::erc20_balance_component::{ +use origami_token::components::token::erc20::erc20_balance::{erc_20_balance_model, ERC20BalanceModel,}; +use origami_token::components::token::erc20::erc20_balance::erc20_balance_component::{ Transfer, ERC20BalanceImpl, InternalImpl as ERC20BalanceInternalImpl }; -use token::components::token::erc20::erc20_allowance::{ +use origami_token::components::token::erc20::erc20_allowance::{ erc_20_allowance_model, ERC20AllowanceModel, }; -use token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ +use origami_token::components::token::erc20::erc20_allowance::erc20_allowance_component::{ Approval, ERC20AllowanceImpl, InternalImpl as ERC20AllownceInternalImpl, }; -use token::components::token::erc20::erc20_bridgeable::{ +use origami_token::components::token::erc20::erc20_bridgeable::{ erc_20_bridgeable_model, ERC20BridgeableModel }; -use token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component::{ +use origami_token::components::token::erc20::erc20_bridgeable::erc20_bridgeable_component::{ ERC20BridgeableImpl }; -use token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; -use token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; +use origami_token::components::token::erc20::erc20_mintable::erc20_mintable_component::InternalImpl as ERC20MintableInternalImpl; +use origami_token::components::token::erc20::erc20_burnable::erc20_burnable_component::InternalImpl as ERC20BurnableInternalImpl; -use token::presets::erc20::bridgeable::{ +use origami_token::presets::erc20::bridgeable::{ ERC20Bridgeable, IERC20BridgeablePresetDispatcher, IERC20BridgeablePresetDispatcherTrait }; -use token::presets::erc20::bridgeable::ERC20Bridgeable::{ERC20InitializerImpl}; +use origami_token::presets::erc20::bridgeable::ERC20Bridgeable::{ERC20InitializerImpl}; use starknet::storage::{StorageMemberAccessTrait}; -use token::components::tests::token::erc20::test_erc20_allowance::{ +use origami_token::components::tests::token::erc20::test_erc20_allowance::{ assert_event_approval, assert_only_event_approval }; -use token::components::tests::token::erc20::test_erc20_balance::{ +use origami_token::components::tests::token::erc20::test_erc20_balance::{ assert_event_transfer, assert_only_event_transfer }; diff --git a/crates/token/src/presets/erc721/enumerable_mintable_burnable.cairo b/crates/token/src/presets/erc721/enumerable_mintable_burnable.cairo index 1dd05213..8c1b2586 100644 --- a/crates/token/src/presets/erc721/enumerable_mintable_burnable.cairo +++ b/crates/token/src/presets/erc721/enumerable_mintable_burnable.cairo @@ -76,14 +76,14 @@ trait IERC721EnumMintBurn { mod ERC721EnumMintBurn { use starknet::ContractAddress; use starknet::{get_contract_address, get_caller_address}; - use token::components::security::initializable::initializable_component; - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_burnable::erc721_burnable_component; - use token::components::token::erc721::erc721_enumerable::erc721_enumerable_component; - use token::components::token::erc721::erc721_metadata::erc721_metadata_component; - use token::components::token::erc721::erc721_mintable::erc721_mintable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::security::initializable::initializable_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component; + use origami_token::components::token::erc721::erc721_enumerable::erc721_enumerable_component; + use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component; + use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!(path: initializable_component, storage: initializable, event: InitializableEvent); diff --git a/crates/token/src/presets/erc721/mintable_burnable.cairo b/crates/token/src/presets/erc721/mintable_burnable.cairo index 6c7ada8b..046e1c63 100644 --- a/crates/token/src/presets/erc721/mintable_burnable.cairo +++ b/crates/token/src/presets/erc721/mintable_burnable.cairo @@ -56,13 +56,13 @@ trait IERC721MintableBurnableMintBurn { mod ERC721MintableBurnable { use starknet::ContractAddress; use starknet::{get_caller_address, get_contract_address}; - use token::components::security::initializable::initializable_component; - use token::components::token::erc721::erc721_approval::erc721_approval_component; - use token::components::token::erc721::erc721_balance::erc721_balance_component; - use token::components::token::erc721::erc721_burnable::erc721_burnable_component; - use token::components::token::erc721::erc721_metadata::erc721_metadata_component; - use token::components::token::erc721::erc721_mintable::erc721_mintable_component; - use token::components::token::erc721::erc721_owner::erc721_owner_component; + use origami_token::components::security::initializable::initializable_component; + use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; + use origami_token::components::token::erc721::erc721_balance::erc721_balance_component; + use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component; + use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component; + use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component; + use origami_token::components::token::erc721::erc721_owner::erc721_owner_component; component!(path: initializable_component, storage: initializable, event: InitializableEvent); diff --git a/crates/token/src/presets/erc721/tests_enumerable_mintable_burnable.cairo b/crates/token/src/presets/erc721/tests_enumerable_mintable_burnable.cairo index 93e39dc6..e382c770 100644 --- a/crates/token/src/presets/erc721/tests_enumerable_mintable_burnable.cairo +++ b/crates/token/src/presets/erc721/tests_enumerable_mintable_burnable.cairo @@ -1,43 +1,43 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID, TOKEN_ID_2, TOKEN_ID_3}; +use origami_token::tests::constants::{ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID, TOKEN_ID_2, TOKEN_ID_3}; -use token::tests::utils; +use origami_token::tests::utils; -use token::components::token::erc721::erc721_approval::{ +use origami_token::components::token::erc721::erc721_approval::{ erc_721_token_approval_model, ERC721TokenApprovalModel, erc_721_operator_approval_model, ERC721OperatorApprovalModel }; -use token::components::token::erc721::erc721_approval::erc721_approval_component; -use token::components::token::erc721::erc721_approval::erc721_approval_component::{ +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component::{ Approval, ApprovalForAll, ERC721ApprovalImpl, InternalImpl as ERC721ApprovalInternalImpl }; -use token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; -use token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ +use origami_token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; +use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ ERC721MetadataImpl, ERC721MetadataCamelImpl, InternalImpl as ERC721MetadataInternalImpl }; -use token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; -use token::components::token::erc721::erc721_balance::erc721_balance_component::{ +use origami_token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; +use origami_token::components::token::erc721::erc721_balance::erc721_balance_component::{ ERC721BalanceImpl, InternalImpl as ERC721BalanceInternalImpl }; -use token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; -use token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; +use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; +use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; -use token::presets::erc721::enumerable_mintable_burnable::{ +use origami_token::presets::erc721::enumerable_mintable_burnable::{ ERC721EnumMintBurn, IERC721EnumMintBurnPresetDispatcher, IERC721EnumMintBurnPresetDispatcherTrait }; use starknet::storage::{StorageMemberAccessTrait}; -use token::components::tests::token::erc721::test_erc721_approval::{ +use origami_token::components::tests::token::erc721::test_erc721_approval::{ assert_event_approval, assert_only_event_approval }; -use token::components::tests::token::erc721::test_erc721_balance::{ +use origami_token::components::tests::token::erc721::test_erc721_balance::{ assert_event_transfer, assert_only_event_transfer }; diff --git a/crates/token/src/presets/erc721/tests_mintable_burnable.cairo b/crates/token/src/presets/erc721/tests_mintable_burnable.cairo index c609e7aa..8bbb069d 100644 --- a/crates/token/src/presets/erc721/tests_mintable_burnable.cairo +++ b/crates/token/src/presets/erc721/tests_mintable_burnable.cairo @@ -1,45 +1,45 @@ use integer::BoundedInt; use dojo::world::{IWorldDispatcher, IWorldDispatcherTrait}; use dojo::test_utils::spawn_test_world; -use token::tests::constants::{ +use origami_token::tests::constants::{ ZERO, OWNER, SPENDER, RECIPIENT, TOKEN_ID, TOKEN_ID_2, TOKEN_ID_3, VALUE }; -use token::tests::utils; +use origami_token::tests::utils; -use token::components::token::erc721::erc721_approval::{ +use origami_token::components::token::erc721::erc721_approval::{ erc_721_token_approval_model, ERC721TokenApprovalModel, erc_721_operator_approval_model, ERC721OperatorApprovalModel }; -use token::components::token::erc721::erc721_approval::erc721_approval_component; -use token::components::token::erc721::erc721_approval::erc721_approval_component::{ +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component; +use origami_token::components::token::erc721::erc721_approval::erc721_approval_component::{ Approval, ApprovalForAll, ERC721ApprovalImpl, InternalImpl as ERC721ApprovalInternalImpl }; -use token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; -use token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ +use origami_token::components::token::erc721::erc721_metadata::{erc_721_meta_model, ERC721MetaModel,}; +use origami_token::components::token::erc721::erc721_metadata::erc721_metadata_component::{ ERC721MetadataImpl, ERC721MetadataCamelImpl, InternalImpl as ERC721MetadataInternalImpl }; -use token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; -use token::components::token::erc721::erc721_balance::erc721_balance_component::{ +use origami_token::components::token::erc721::erc721_balance::{erc_721_balance_model, ERC721BalanceModel,}; +use origami_token::components::token::erc721::erc721_balance::erc721_balance_component::{ ERC721BalanceImpl, InternalImpl as ERC721BalanceInternalImpl }; -use token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; -use token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; +use origami_token::components::token::erc721::erc721_mintable::erc721_mintable_component::InternalImpl as ERC721MintableInternalImpl; +use origami_token::components::token::erc721::erc721_burnable::erc721_burnable_component::InternalImpl as ERC721BurnableInternalImpl; -use token::presets::erc721::mintable_burnable::{ +use origami_token::presets::erc721::mintable_burnable::{ ERC721MintableBurnable, IERC721MintableBurnablePresetDispatcher, IERC721MintableBurnablePresetDispatcherTrait }; -use token::presets::erc721::mintable_burnable::ERC721MintableBurnable::{ERC721InitializerImpl}; +use origami_token::presets::erc721::mintable_burnable::ERC721MintableBurnable::{ERC721InitializerImpl}; use starknet::storage::{StorageMemberAccessTrait}; -use token::components::tests::token::erc721::test_erc721_approval::{ +use origami_token::components::tests::token::erc721::test_erc721_approval::{ assert_event_approval, assert_only_event_approval }; -use token::components::tests::token::erc721::test_erc721_balance::{ +use origami_token::components::tests::token::erc721::test_erc721_balance::{ assert_event_transfer, assert_only_event_transfer }; diff --git a/crates/token/token/.gitignore b/crates/token/token/.gitignore new file mode 100644 index 00000000..f0d69614 --- /dev/null +++ b/crates/token/token/.gitignore @@ -0,0 +1,3 @@ +target +abis +manifests diff --git a/crates/token/token/Scarb.lock b/crates/token/token/Scarb.lock new file mode 100644 index 00000000..217c7d25 --- /dev/null +++ b/crates/token/token/Scarb.lock @@ -0,0 +1,22 @@ +# Code generated by scarb DO NOT EDIT. +version = 1 + +[[package]] +name = "dojo" +version = "0.4.4" +source = "git+https://github.com/dojoengine/dojo?tag=v0.4.4#8afd8c903d71083b8487a5b4a0cfc9360dee0772" +dependencies = [ + "dojo_plugin", +] + +[[package]] +name = "dojo_plugin" +version = "0.3.11" +source = "git+https://github.com/dojoengine/dojo?tag=v0.3.11#1e651b5d4d3b79b14a7d8aa29a92062fcb9e6659" + +[[package]] +name = "token" +version = "0.0.0" +dependencies = [ + "dojo", +] diff --git a/crates/token/token/Scarb.toml b/crates/token/token/Scarb.toml new file mode 100644 index 00000000..4f6033e3 --- /dev/null +++ b/crates/token/token/Scarb.toml @@ -0,0 +1,17 @@ +[package] +name = "token" +version = "0.0.0" +description = "Implementations of ERC standards for the Dojo framework." +homepage = "https://github.com/dojoengine/origami/tree/token" + +[dependencies] +dojo.workspace = true + +[lib] + +[[target.dojo]] + +[tool.dojo.world] +name = "token" +seed = "token" +namespace = { default = "origami_token" } diff --git a/crates/token/token/scripts/genInterface.js b/crates/token/token/scripts/genInterface.js new file mode 100755 index 00000000..d7a3e47d --- /dev/null +++ b/crates/token/token/scripts/genInterface.js @@ -0,0 +1,83 @@ +#!/usr/bin/env node + +// Generate a starknet::interface from a sozo artifact abi + +const fs = require("fs"); +const path = require("path"); + +// Check for the required arguments +if (process.argv.length !== 3) { + console.log("Usage: