-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86b732f
commit e237f43
Showing
17 changed files
with
410 additions
and
44 deletions.
There are no files selected for viewing
Binary file modified
BIN
-6 Bytes
(100%)
test/features/composability/forwarder-raw/output/forwarder-raw-init-async-call.wasm
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
test/features/composability/forwarder-raw/output/forwarder-raw-init-sync-call.wasm
Binary file not shown.
Binary file modified
BIN
+505 Bytes
(100%)
test/features/composability/forwarder-raw/output/forwarder-raw.wasm
Binary file not shown.
Binary file modified
BIN
-246 Bytes
(99%)
test/features/composability/forwarder/output/forwarder.wasm
Binary file not shown.
Binary file modified
BIN
+1.08 KB
(110%)
test/features/composability/promises-features/output/promises-features.wasm
Binary file not shown.
Binary file modified
BIN
-21 Bytes
(100%)
test/features/composability/proxy-test-first/output/proxy-test-first.wasm
Binary file not shown.
Binary file modified
BIN
+10 Bytes
(100%)
test/features/composability/proxy-test-second/output/proxy-test-second.wasm
Binary file not shown.
Binary file modified
BIN
+335 Bytes
(110%)
test/features/composability/recursive-caller/output/recursive-caller.wasm
Binary file not shown.
122 changes: 122 additions & 0 deletions
122
.../features/composability/scenarios-promises/forwarder_call_sync_retrieve_egld_bt.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,122 @@ | ||
{ | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "0", | ||
"balance": "0" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "1000", | ||
"code": "file:../vault/output/vault.wasm" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "file:../promises-features/output/promises-features.wasm" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:a_user", | ||
"to": "sc:forwarder", | ||
"function": "forward_sync_retrieve_funds_bt", | ||
"arguments": [ | ||
"sc:vault", | ||
"str:EGLD", | ||
"0", | ||
"1000" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "0", | ||
"logs": [ | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:transferValueOnly", | ||
"topics": [ | ||
"0", | ||
"sc:vault" | ||
], | ||
"data": [ | ||
"str:ExecuteOnDestContext", | ||
"str:retrieve_funds", | ||
"str:EGLD", | ||
"0", | ||
"1000" | ||
] | ||
}, | ||
{ | ||
"address": "sc:vault", | ||
"endpoint": "str:retrieve_funds", | ||
"topics": [ | ||
"str:retrieve_funds", | ||
"str:EGLD", | ||
"0", | ||
"1000" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
}, | ||
{ | ||
"address": "sc:vault", | ||
"endpoint": "str:transferValueOnly", | ||
"topics": [ | ||
"1000", | ||
"sc:forwarder" | ||
], | ||
"data": [ | ||
"str:BackTransfer", | ||
"0" | ||
] | ||
}, | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:forward_sync_retrieve_funds_bt", | ||
"topics": [ | ||
"str:back_tranfers", | ||
"1000" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
} | ||
], | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
}, | ||
{ | ||
"step": "checkState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "*", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "file:../vault/output/vault.wasm" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "1000", | ||
"storage": "*", | ||
"code": "file:../promises-features/output/promises-features.wasm" | ||
} | ||
} | ||
} | ||
] | ||
} |
135 changes: 135 additions & 0 deletions
135
.../features/composability/scenarios-promises/forwarder_call_sync_retrieve_esdt_bt.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,135 @@ | ||
{ | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "0", | ||
"balance": "0" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"esdt": { | ||
"str:TEST-TOKENA": "1000" | ||
}, | ||
"code": "file:../vault/output/vault.wasm" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "file:../promises-features/output/promises-features.wasm" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:a_user", | ||
"to": "sc:forwarder", | ||
"function": "forward_sync_retrieve_funds_bt", | ||
"arguments": [ | ||
"sc:vault", | ||
"str:TEST-TOKENA", | ||
"0", | ||
"1000" | ||
], | ||
"gasLimit": "50,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "0", | ||
"logs": [ | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:transferValueOnly", | ||
"topics": [ | ||
"", | ||
"sc:vault" | ||
], | ||
"data": [ | ||
"str:ExecuteOnDestContext", | ||
"str:retrieve_funds", | ||
"str:TEST-TOKENA", | ||
"0", | ||
"1000" | ||
] | ||
}, | ||
{ | ||
"address": "sc:vault", | ||
"endpoint": "str:retrieve_funds", | ||
"topics": [ | ||
"str:retrieve_funds", | ||
"str:TEST-TOKENA", | ||
"0", | ||
"1000" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
}, | ||
{ | ||
"address": "sc:vault", | ||
"endpoint": "str:ESDTTransfer", | ||
"topics": [ | ||
"str:TEST-TOKENA", | ||
"0", | ||
"1000", | ||
"sc:forwarder" | ||
], | ||
"data": [ | ||
"str:BackTransfer", | ||
"str:ESDTTransfer", | ||
"str:TEST-TOKENA", | ||
"1000" | ||
] | ||
}, | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:forward_sync_retrieve_funds_bt", | ||
"topics": [ | ||
"str:back_tranfers", | ||
"0", | ||
"str:TEST-TOKENA", | ||
"0", | ||
"1000" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
} | ||
], | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
}, | ||
{ | ||
"step": "checkState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "*", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "file:../vault/output/vault.wasm" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"esdt": { | ||
"str:TEST-TOKENA": "1000" | ||
}, | ||
"storage": "*", | ||
"code": "file:../promises-features/output/promises-features.wasm" | ||
} | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.