Skip to content

Commit

Permalink
bridged-tokens-wrapper: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Dec 12, 2024
1 parent ad82d8f commit 227e6da
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions bridged-tokens-wrapper/scenarios/blacklist_token.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,78 @@
"gas": "*",
"refund": "*"
}
},
{
"step": "checkState",
"accounts": {
"address:owner": {
"nonce": "4",
"balance": "0",
"storage": {}
},
"address:user": {
"nonce": "4",
"esdt": {
"str:USDC-aaaaaa": {
"balance": "200000000000000"
},
"str:USDC-bbbbbb": {
"balance": "500000000000000"
},
"str:USDC-cccccc": {
"balance": "400000000000000"
},
"str:WUSDC-abcdef": {
"balance": "900"
}
},
"storage": {}
},
"sc:bridged_tokens_wrapper": {
"nonce": "0",
"esdt": {
"str:WUSDC-abcdef": {
"balance": "1",
"roles": [
"ESDTRoleLocalMint",
"ESDTRoleLocalBurn"
]
},
"str:WUSDC-uvwxyz": {
"balance": "1",
"roles": [
"ESDTRoleLocalMint",
"ESDTRoleLocalBurn"
]
},
"str:USDC-aaaaaa": {
"balance": "300000000000000"
},
"str:USDC-cccccc": {
"balance": "100000000000000"
}
},
"storage": {
"str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.len": "2",
"str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.index|nested:str:USDC-aaaaaa": "1",
"str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.index|nested:str:USDC-cccccc": "2",
"str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.item|u32:1": "str:USDC-aaaaaa",
"str:chainSpecificTokenIds|nested:str:WUSDC-abcdef|str:.item|u32:2": "str:USDC-cccccc",
"str:chainSpecificToUniversalMapping|nested:str:USDC-cccccc": "str:WUSDC-abcdef",
"str:chainSpecificToUniversalMapping|nested:str:USDC-aaaaaa": "str:WUSDC-abcdef",
"str:universalBridgedTokenIds.len": "1",
"str:universalBridgedTokenIds.index|nested:str:WUSDC-abcdef": "1",
"str:universalBridgedTokenIds.item|u32:1": "str:WUSDC-abcdef",
"str:tokenLiquidity|nested:str:USDC-aaaaaa": "300000000000000",
"str:tokenLiquidity|nested:str:USDC-cccccc": "100000000000000",
"str:tokenDecimalsNum|nested:str:WUSDC-abcdef": "6",
"str:tokenDecimalsNum|nested:str:USDC-cccccc": "18",
"str:tokenDecimalsNum|nested:str:USDC-aaaaaa": "18"
},
"code": "file:../output/bridged-tokens-wrapper.wasm",
"owner": "address:owner"
}
}
}
]
}

0 comments on commit 227e6da

Please sign in to comment.