-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor everything into 3 packages
- Loading branch information
Showing
39 changed files
with
829 additions
and
425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "arcade_slot" | ||
name = "controller" | ||
version.workspace = true | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#[starknet::component] | ||
mod ControllableComponent { | ||
// Dojo imports | ||
|
||
use dojo::world::WorldStorage; | ||
|
||
// Internal imports | ||
|
||
use controller::store::{Store, StoreTrait}; | ||
use controller::models::account::{Account, AccountTrait, AccountAssert}; | ||
use controller::models::controller::{Controller, ControllerTrait, ControllerAssert}; | ||
use controller::models::member::{Member, MemberTrait, MemberAssert}; | ||
use controller::models::signer::{Signer, SignerTrait, SignerAssert}; | ||
use controller::models::team::{Team, TeamTrait, TeamAssert}; | ||
|
||
// Storage | ||
|
||
#[storage] | ||
struct Storage {} | ||
|
||
// Events | ||
|
||
#[event] | ||
#[derive(Drop, starknet::Event)] | ||
enum Event {} | ||
|
||
#[generate_trait] | ||
impl InternalImpl< | ||
TContractState, +HasComponent<TContractState> | ||
> of InternalTrait<TContractState> {} | ||
} |
File renamed without changes.
20 changes: 6 additions & 14 deletions
20
packages/slot/src/lib.cairo → packages/controller/src/lib.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,20 @@ | ||
mod constants; | ||
mod store; | ||
|
||
mod helpers { | ||
mod json; | ||
} | ||
|
||
mod types { | ||
mod method; | ||
mod role; | ||
mod tier; | ||
mod socials; | ||
mod service; | ||
mod status; | ||
mod metadata; | ||
} | ||
|
||
mod models { | ||
mod index; | ||
mod account; | ||
mod team; | ||
mod member; | ||
mod controller; | ||
mod member; | ||
mod signer; | ||
mod deployment; | ||
mod service; | ||
mod game; | ||
mod team; | ||
} | ||
|
||
mod components { | ||
mod controllable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.