Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ FIX ] Cleanup #30

Merged
merged 3 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 0 additions & 55 deletions .devcontainer/devcontainer 2.json-e

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/ci-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ name: ci-contracts

on:
push:
branches: [main]
branches: [master]
paths:
- "src/**"
pull_request:
branches: [main]
branches: [master]
paths:
- "src/**"

defaults:
run:
working-directory: contracts

env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.80.1
Expand Down
21 changes: 0 additions & 21 deletions README 2.md-e

This file was deleted.

59 changes: 0 additions & 59 deletions Scarb 2.toml-e

This file was deleted.

17 changes: 0 additions & 17 deletions dojo_release 2.toml

This file was deleted.

1 change: 0 additions & 1 deletion pixelaw 2

This file was deleted.

78 changes: 0 additions & 78 deletions scripts/init_auth 2.sh

This file was deleted.

1 change: 0 additions & 1 deletion src/constants.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ const NEEDED_YES_PX: u32 = 1;
// for additional rules
const DISASTER_SIZE: u32 = 5;


6 changes: 3 additions & 3 deletions src/lib.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ mod constants;
mod systems {
mod actions;
mod apps;
mod guilds;
mod propose;
mod utils;
mod voting;
mod guilds;
}

mod models {
mod allowed_app;
mod allowed_color;
mod board;
mod game;
mod guilds;
mod player;
mod proposal;
mod guilds;
}

#[cfg(test)]
mod tests {
mod test_add_color;
mod test_create_world;
mod test_extend_game_end;
mod test_reset_to_white;
mod test_guild;
mod test_reset_to_white;
mod utils;
}
2 changes: 1 addition & 1 deletion src/models/guilds.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use starknet::ContractAddress;
use dojo::world::IWorldDispatcher;
use starknet::ContractAddress;

#[derive(Copy, Drop, Serde)]
#[dojo::model(namespace: "pixelaw", nomapping: true)]
Expand Down
4 changes: 2 additions & 2 deletions src/models/player.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use starknet::{get_block_timestamp, ContractAddress};
struct Player {
#[key]
address: ContractAddress,
// #[key] // the game_id as a key for the player should be added as players could be playing different games at once
// game_id: usize,
// #[key] // the game_id as a key for the player should be added as players could be playing
// different games at once game_id: usize,
// name: felt252,
max_px: u32,
num_owns: u32,
Expand Down
1 change: 1 addition & 0 deletions src/models/proposal.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,4 @@ struct PixelRecoveryRate {
// }
// }


Loading
Loading