-
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.
- Loading branch information
1 parent
3d20aac
commit e8d9f64
Showing
3 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
100 changes: 100 additions & 0 deletions
100
framework/scenario/tests/scenarios-self/multi-transfer-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,100 @@ | ||
{ | ||
"comment": "ESDT multi-transfer with EGLD, no SC", | ||
"steps": [ | ||
{ | ||
"step": "setState", | ||
"accounts": { | ||
"address:A": { | ||
"nonce": "0", | ||
"balance": "1000000000", | ||
"esdt": { | ||
"str:TOK-123456": "150", | ||
"str:OTHERTOK-123456": "500", | ||
"str:NFT-123456": { | ||
"instances": [ | ||
{ | ||
"nonce": "5", | ||
"balance": "20" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"address:B": { | ||
"nonce": "0", | ||
"balance": "0" | ||
} | ||
} | ||
}, | ||
{ | ||
"step": "transfer", | ||
"id": "multi-transfer", | ||
"tx": { | ||
"from": "address:A", | ||
"to": "address:B", | ||
"esdtValue": [ | ||
{ | ||
"tokenIdentifier": "str:TOK-123456", | ||
"value": "100" | ||
}, | ||
{ | ||
"tokenIdentifier": "str:OTHERTOK-123456", | ||
"value": "400" | ||
}, | ||
{ | ||
"tokenIdentifier": "str:EGLD-000000", | ||
"value": "500" | ||
}, | ||
{ | ||
"tokenIdentifier": "str:NFT-123456", | ||
"nonce": "5", | ||
"value": "10" | ||
} | ||
], | ||
"gasLimit": "0x100000000" | ||
} | ||
}, | ||
{ | ||
"step": "checkState", | ||
"comment": "check after tx 1", | ||
"accounts": { | ||
"address:A": { | ||
"nonce": "1", | ||
"balance": "999999500", | ||
"esdt": { | ||
"str:TOK-123456": "50", | ||
"str:OTHERTOK-123456": "100", | ||
"str:NFT-123456": { | ||
"instances": [ | ||
{ | ||
"nonce": "5", | ||
"balance": "10" | ||
} | ||
] | ||
} | ||
}, | ||
"storage": {}, | ||
"code": "" | ||
}, | ||
"address:B": { | ||
"nonce": "0", | ||
"balance": "500", | ||
"esdt": { | ||
"str:TOK-123456": "100", | ||
"str:OTHERTOK-123456": "400", | ||
"str:NFT-123456": { | ||
"instances": [ | ||
{ | ||
"nonce": "5", | ||
"balance": "10" | ||
} | ||
] | ||
} | ||
}, | ||
"storage": {}, | ||
"code": "" | ||
} | ||
} | ||
} | ||
] | ||
} |
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