Skip to content

Commit

Permalink
Merge branch 'master' into tm/adding-sails-concert
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Oct 25, 2024
2 parents dc51d8f + 4128388 commit c1f00ad
Show file tree
Hide file tree
Showing 33 changed files with 1,427 additions and 1,129 deletions.
69 changes: 35 additions & 34 deletions contracts/Cargo.lock

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

4 changes: 2 additions & 2 deletions contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ members = [
"rmrk/catalog",
"rmrk/resource",
"rmrk/state",
"syndote",
"syndote/player",
"syndote/wasm",
"syndote/player/wasm",
"tamagotchi",
"tamagotchi/state",
"tamagotchi-battle",
Expand Down
20 changes: 0 additions & 20 deletions contracts/syndote/Cargo.toml

This file was deleted.

16 changes: 0 additions & 16 deletions contracts/syndote/README.md

This file was deleted.

14 changes: 14 additions & 0 deletions contracts/syndote/app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "syndote-app"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
gstd = { workspace = true, features = ["debug"] }
sails-rs = { workspace = true, features = ["gtest"] }

[dev-dependencies]
gclient.workspace = true
syndote = { path = "../wasm" }
tokio = "1"
19 changes: 19 additions & 0 deletions contracts/syndote/app/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#![no_std]
#![allow(clippy::new_without_default)]

use sails_rs::prelude::*;
pub mod services;
use services::game::GameService;
pub struct Program(());

#[program]
impl Program {
pub async fn new(dns_id_and_name: Option<(ActorId, String)>) -> Self {
GameService::init(dns_id_and_name).await;
Self(())
}

pub fn syndote(&self) -> GameService {
GameService::new()
}
}
Loading

0 comments on commit c1f00ad

Please sign in to comment.