-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into merge-master
- Loading branch information
Showing
11 changed files
with
301 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
45 changes: 45 additions & 0 deletions
45
...acts/feature-tests/composability/scenarios/promises_call_transfer_callback_egld.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,45 @@ | ||
{ | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "0", | ||
"balance": "1000" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../vault/output/vault.mxsc.json" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../promises-features/output/promises-features.mxsc.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:a_user", | ||
"to": "sc:forwarder", | ||
"egldValue": "1000", | ||
"function": "forward_payment_callback", | ||
"arguments": [ | ||
"sc:vault" | ||
], | ||
"gasLimit": "60,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "10", | ||
"message": "str:tokenize failed", | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
} | ||
] | ||
} |
145 changes: 145 additions & 0 deletions
145
...acts/feature-tests/composability/scenarios/promises_call_transfer_callback_esdt.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,145 @@ | ||
{ | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"esdt": { | ||
"str:FWD-TOKEN": "1000" | ||
} | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../vault/output/vault.mxsc.json" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"code": "mxsc:../promises-features/output/promises-features.mxsc.json" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "scCall", | ||
"id": "1", | ||
"tx": { | ||
"from": "address:a_user", | ||
"to": "sc:forwarder", | ||
"esdtValue": [ | ||
{ | ||
"tokenIdentifier": "str:FWD-TOKEN", | ||
"value": "1000" | ||
} | ||
], | ||
"function": "forward_payment_callback", | ||
"arguments": [ | ||
"sc:vault" | ||
], | ||
"gasLimit": "60,000,000", | ||
"gasPrice": "0" | ||
}, | ||
"expect": { | ||
"out": [], | ||
"status": "0", | ||
"logs": [ | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:ESDTTransfer", | ||
"topics": [ | ||
"str:FWD-TOKEN", | ||
"", | ||
"1000", | ||
"sc:vault" | ||
], | ||
"data": [ | ||
"str:AsyncCall", | ||
"str:ESDTTransfer", | ||
"str:FWD-TOKEN", | ||
"1000" | ||
] | ||
}, | ||
{ | ||
"address": "sc:vault", | ||
"endpoint": "str:transferValueOnly", | ||
"topics": [ | ||
"", | ||
"sc:forwarder" | ||
], | ||
"data": [ | ||
"str:AsyncCallback", | ||
"str:transfer_callback", | ||
"0x00" | ||
] | ||
}, | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:transfer_callback", | ||
"topics": [ | ||
"str:callback_result", | ||
"0x00" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
}, | ||
{ | ||
"address": "sc:forwarder", | ||
"endpoint": "str:transfer_callback", | ||
"topics": [ | ||
"str:retrieve_funds_callback", | ||
"str:EGLD", | ||
"", | ||
"" | ||
], | ||
"data": [ | ||
"" | ||
] | ||
} | ||
], | ||
"gas": "*", | ||
"refund": "*" | ||
} | ||
}, | ||
{ | ||
"step": "checkState", | ||
"accounts": { | ||
"address:a_user": { | ||
"nonce": "*", | ||
"balance": "0", | ||
"storage": {}, | ||
"code": "" | ||
}, | ||
"sc:vault": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"esdt": { | ||
"str:FWD-TOKEN": "1000" | ||
}, | ||
"storage": { | ||
"str:call_counts|nested:str:accept_funds": "0" | ||
}, | ||
"code": "mxsc:../vault/output/vault.mxsc.json" | ||
}, | ||
"sc:forwarder": { | ||
"nonce": "0", | ||
"balance": "0", | ||
"storage": { | ||
"str:callback_data.len": "1", | ||
"str:callback_data.item|u32:1": [ | ||
"nested:str:transfer_callback", | ||
"nested:str:EGLD", | ||
"u64:0", | ||
"u32:0", | ||
"u32:0" | ||
] | ||
|
||
}, | ||
"code": "mxsc:../promises-features/output/promises-features.mxsc.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
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
Oops, something went wrong.