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

update contracts folder structure #2626

Merged
merged 4 commits into from
Jan 7, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/discord-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: discord-bot
sparse-checkout: bot/discord

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -32,7 +32,7 @@ jobs:
components: rustfmt

- name: Run rustfmt
run: cd discord-bot && cargo fmt -- --check
run: cd bot/discord && cargo fmt -- --check

clippy:
runs-on: ubuntu-latest
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: discord-bot
sparse-checkout: bot/discord

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -54,4 +54,4 @@ jobs:
run: sudo apt-get install protobuf-compiler

- name: Run clippy
run: cd discord-bot && cargo clippy -- -D warnings
run: cd bot/discord && cargo clippy -- -D warnings
Empty file added bot/_
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{

use super::{ToDiscordMessage, UNKNOWN_USER};

const RESOURCE_PRECISION : u128 = 1_000_000_000;
const RESOURCE_PRECISION: u128 = 1_000_000_000;
#[derive(CairoSerde, Clone)]
pub struct BattlePillage {
pub id: u32,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added contracts/game/ext/_
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ mod battle_systems {
caller_army = r_caller_army;

// slash army if battle was not concluded before they left
let leaver = starknet::get_caller_address();
let mut army: Army = world.read_model(army_id);
if army_left_early {
let troop_config = TroopConfigImpl::get(world);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions contracts/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions contracts/scripts/client.sh

This file was deleted.

Binary file removed contracts/season_pass/contracts/.DS_Store
Binary file not shown.
Empty file added contracts/season_pass/ext/_
Empty file.
Empty file.
32 changes: 0 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading