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

Updating ping to sails #506

Merged
merged 2 commits into from
Nov 6, 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
201 changes: 60 additions & 141 deletions contracts/Cargo.lock

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

3 changes: 1 addition & 2 deletions contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ members = [
"oracle/state",
"oracle/randomness",
"oracle/randomness/state",
"ping",
"ping/state",
"ping-pong",
"rmrk",
"rmrk/catalog",
"rmrk/resource",
Expand Down
2 changes: 2 additions & 0 deletions contracts/ping-pong/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.binpath
22 changes: 22 additions & 0 deletions contracts/ping-pong/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "ping-pong"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
ping-pong-app = { path = "app" }

[build-dependencies]
ping-pong-app = { path = "app" }
sails-rs = { workspace = true, features = ["wasm-builder"] }
sails-idl-gen.workspace = true

[dev-dependencies]
ping-pong = { path = ".", features = ["wasm-binary"] }
ping-pong-client = { path = "client" }
sails-rs = { workspace = true, features = ["gtest"] }
tokio = { workspace = true, features = ["rt", "macros"] }

[features]
wasm-binary = []
9 changes: 9 additions & 0 deletions contracts/ping-pong/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## The **ping-pong** program

The program workspace includes the following packages:
- `ping-pong` is the package allowing to build WASM binary for the program and IDL file for it.
The package also includes integration tests for the program in the `tests` sub-folder
- `ping-pong-app` is the package containing business logic for the program represented by the `PingPongService` structure.
- `ping-pong-client` is the package containing the client for the program allowing to interact with it from another program, tests, or
off-chain client.

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

[dependencies]
sails-rs.workspace = true
Loading