Skip to content

Commit

Permalink
fix: adapt tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneWallet committed Feb 11, 2025
1 parent 7d48b73 commit b80d207
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
6 changes: 3 additions & 3 deletions scripts/run_tutorials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ uv venv $ENV_NAME --python 3.11
source ${ENV_NAME}/bin/activate

# install project
uv pip install -r pyproject.toml
uv pip install .

# launch first scene tutorial
cd tutorials/first_scene
Expand All @@ -23,9 +23,9 @@ bash scripts/execute_pong_scene.sh

# launch queries tutorial
cd ../queries
bash scripts/execute_onedex_with_abi.sh
bash scripts/execute_xexchange_without_abi.sh
bash scripts/execute_onedex.sh

# remove env
cd ../..
deactivate
rm -rf ${ENV_NAME}
5 changes: 3 additions & 2 deletions tutorials/enhanced_first_scene/mxops_scenes/01_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ steps:
contract_id: "egld-ping-pong"
gas_limit: 40000000
arguments:
- "$PING_PONG_AMOUNT:int"
- "$PONG_WAIT_TIME:int"
- "$PING_PONG_AMOUNT"
- "$PONG_WAIT_TIME"
- null
upgradeable: true
readable: false
payable: false
Expand Down
2 changes: 2 additions & 0 deletions tutorials/first_scene/first_scene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ steps:
- type: ContractDeploy
sender: owner
wasm_path: "./contract/ping-pong/output/ping-pong.wasm"
abi_path: "./contract/ping-pong/output/ping-pong.abi.json"
contract_id: "egld-ping-pong"
gas_limit: 40000000
arguments:
- 500000000000000000
- 1
- null
upgradeable: true
readable: false
payable: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
allowed_networks:
- mainnet

allowed_scenario:
- .*

external_contracts:
onedex-swap:
address: erd1qqqqqqqqqqqqqpgqqz6vp9y50ep867vnr296mqf3dduh6guvmvlsu3sujc
Expand Down
4 changes: 0 additions & 4 deletions tutorials/queries/mxops_scenes/xexchange_without_abi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ steps:
contract: xexchange-wegld-usdc
endpoint: getReservesAndTotalSupply
print_results: true
results_types:
- type: BigUint
- type: BigUint
- type: BigUint
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ mxops execute \
-n mainnet \
-s temp \
-d \
mxops_scenes/onedex_with_abi.yaml
mxops_scenes/onedex.yaml

0 comments on commit b80d207

Please sign in to comment.