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

Interactor ping pong #1829

Merged
merged 8 commits into from
Oct 25, 2024
Merged
12 changes: 12 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ members = [
"contracts/examples/proxy-pause/meta",
"contracts/examples/ping-pong-egld",
"contracts/examples/ping-pong-egld/meta",
"contracts/examples/ping-pong-egld/interactor",
"contracts/examples/ping-pong-egld/dapp",
"contracts/examples/rewards-distribution",
"contracts/examples/rewards-distribution/meta",
Expand Down
9 changes: 9 additions & 0 deletions contracts/examples/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
29 changes: 29 additions & 0 deletions contracts/examples/ping-pong-egld/interactor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "ping-pong-egld-interact"
version = "0.0.0"
authors = ["Ovidiu Stinga <ovidiu.stinga@multiversx.com>"]
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.53.2"
path = "../../../../framework/snippets"

[features]
chain-simulator-tests = []
5 changes: 5 additions & 0 deletions contracts/examples/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
Loading