Skip to content

Commit

Permalink
Merge pull request #130 from multiversx/ping-pong-changes
Browse files Browse the repository at this point in the history
ping-pong - framework alignment
  • Loading branch information
BiancaIalangi authored Nov 21, 2024
2 parents 74b44bd + a39f5b0 commit 4ee4755
Show file tree
Hide file tree
Showing 17 changed files with 1,121 additions and 28 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ members = [
"contracts/paymaster/interactor",
"contracts/ping-pong-egld",
"contracts/ping-pong-egld/meta",
"contracts/ping-pong-egld/interactor",
"contracts/proxy-deployer",
"contracts/proxy-deployer/meta",
"contracts/proxy-pause",
Expand All @@ -81,5 +82,5 @@ members = [
"contracts/token-release",
"contracts/token-release/meta",
"contracts/mvx-game-sc",
"contracts/mvx-game-sc/meta"
"contracts/mvx-game-sc/meta",
]
9 changes: 9 additions & 0 deletions contracts/ping-pong-egld/interactor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Pem files are used for interactions, but shouldn't be committed
*.pem
*.json

# Temporary storage of deployed contract address, so we can preserve the context between executions.
state.toml

# Trace file of interactor tooling
interactor_trace.scen.json
31 changes: 31 additions & 0 deletions contracts/ping-pong-egld/interactor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "ping-pong-egld-interact"
version = "0.0.0"
authors = ["MultiversX <[email protected]>"]
edition = "2021"
publish = false

[[bin]]
name = "ping-pong-egld-interact"
path = "src/interact_main.rs"

[lib]
path = "src/interact.rs"

[dependencies]
clap = { version = "4.4.7", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
toml = "0.8.6"
tokio = { version = "1.24" }

[dependencies.ping-pong-egld]
path = ".."

[dependencies.multiversx-sc-snippets]
version = "0.54.3"

[dependencies.multiversx-sc]
version = "0.54.3"

[features]
chain-simulator-tests = []
5 changes: 5 additions & 0 deletions contracts/ping-pong-egld/interactor/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chain_type = 'simulator'
gateway_uri = 'http://localhost:8085'

# chain_type = 'real'
# gateway_uri = 'https://devnet-gateway.multiversx.com'
Loading

0 comments on commit 4ee4755

Please sign in to comment.