-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ping pong interactor - add tests for chain simulator
- Loading branch information
1 parent
a521a9a
commit 5b4d37b
Showing
15 changed files
with
1,066 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Pem files are used for interactions, but shouldn't be committed | ||
*.pem | ||
*.json | ||
!ping-pong-owner.pem | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
5 changes: 5 additions & 0 deletions
5
contracts/examples/ping-pong-egld/interactor/ping-pong-owner.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY for erd1wm9awlfz4ntp07e4402fd5vd8c69qahxl9ru205n8jq84hme384sda26ca----- | ||
MDdhNTNlOGRiYzQ4N2RhNjIyYjQ1YTgwMzcxODQ1MGE3NWYyNDY3NTQ5MWY4OWM3 | ||
ZmNiYmU4NGRmYmRlYWFiZTc2Y2JkNzdkMjJhY2Q2MTdmYjM1YWJkNDk2ZDE4ZDNl | ||
MzQ1MDc2ZTZmOTQ3YzUzZTkzM2M4MDdhZGY3OTg5ZWI= | ||
-----END PRIVATE KEY for erd1wm9awlfz4ntp07e4402fd5vd8c69qahxl9ru205n8jq84hme384sda26ca----- |
Oops, something went wrong.