From 8fbec7fcf3443bd6ea107cb375baa2a6367c101b Mon Sep 17 00:00:00 2001 From: Andrei Marinica Date: Thu, 30 Sep 2021 14:09:54 +0300 Subject: [PATCH] mandos json fmt --- .../str-repeat/mandos/str_repeat.scen.json | 9 +- .../deploy_erc20_and_crowdfunding.scen.json | 243 ++++++------ ...fund_with_insufficient_allowance.scen.json | 16 +- .../fund_with_sufficient_allowance.scen.json | 38 +- .../mandos/fund_without_allowance.scen.json | 14 +- .../crowdfunding-claim-failed.scen.json | 370 +++++++++--------- .../crowdfunding-claim-successful.scen.json | 350 ++++++++--------- .../crowdfunding-claim-too-early.scen.json | 80 ++-- .../crowdfunding-fund-too-late.scen.json | 170 ++++---- .../mandos/crowdfunding-fund.scen.json | 140 +++---- .../mandos/crowdfunding-init.scen.json | 116 +++--- .../egld-crowdfunding-claim-failed.scen.json | 268 ++++++------- ...ld-crowdfunding-claim-successful.scen.json | 270 ++++++------- ...gld-crowdfunding-claim-too-early.scen.json | 80 ++-- .../egld-crowdfunding-fund-too-late.scen.json | 152 +++---- .../mandos/egld-crowdfunding-fund.scen.json | 116 +++--- .../mandos/egld-crowdfunding-init.scen.json | 116 +++--- .../kitty-auction/mandos/bid_first.scen.json | 6 +- .../mandos/bid_second_max.scen.json | 6 +- .../mandos/bid_second_ok.scen.json | 6 +- .../mandos/bid_second_too_low.scen.json | 6 +- .../mandos/bid_siring_auction.scen.json | 6 +- ...reate_and_auction_gen_zero_kitty.scen.json | 6 +- .../create_sale_auction_not_owner.scen.json | 1 - .../mandos/create_sale_auction_ok.scen.json | 2 - .../create_siring_auction_not_owner.scen.json | 1 - .../mandos/create_siring_auction_ok.scen.json | 2 - .../mandos/end_auction_no_bids.scen.json | 5 +- ...end_auction_second_bid_max_early.scen.json | 5 +- .../end_auction_second_bid_ok_early.scen.json | 6 +- .../end_auction_second_bid_ok_late.scen.json | 5 +- .../mandos/end_siring_auction.scen.json | 5 +- .../mandos/generate-kitty-genes.scen.json | 4 +- .../mandos/approve_siring.scen.json | 4 - .../kitty-ownership/mandos/breed_ok.scen.json | 5 +- .../mandos/give_birth.scen.json | 7 +- .../kitty-ownership/mandos/query.scen.json | 61 ++- .../mandos/setup_accounts.scen.json | 3 - .../mandos/auction_batch.scen.json | 4 - .../auction_single_token_egld.scen.json | 5 - .../mandos/bid_first_egld.scen.json | 4 - .../mandos/bid_second_egld.scen.json | 4 - .../mandos/bid_third_egld.scen.json | 4 - .../mandos/end_auction.scen.json | 6 - .../mandos/setup_accounts.step.json | 3 - .../batch_transfer_both_types.scen.json | 9 - .../batch_transfer_both_types_to_sc.scen.json | 9 - .../mandos/batch_transfer_fungible.scen.json | 8 - .../batch_transfer_fungible_to_sc.scen.json | 8 - .../batch_transfer_non_fungible.scen.json | 10 - ...atch_transfer_non_fungible_to_sc.scen.json | 10 - .../erc1155/mandos/burn_fungible.scen.json | 2 - .../mandos/burn_non_fungible.scen.json | 3 - ...te_one_fungible_one_non_fungible.scen.json | 10 +- .../mandos/create_token_fungible.scen.json | 6 +- .../create_token_non_fungible.scen.json | 7 +- ..._both_fungible_different_creator.scen.json | 8 +- ...okens_both_fungible_same_creator.scen.json | 9 +- ...s_both_non_fungible_same_creator.scen.json | 11 +- .../erc1155/mandos/mint_fungible.scen.json | 2 - .../mandos/mint_non_fungible.scen.json | 3 - .../erc1155/mandos/mint_not_creator.scen.json | 2 - ...sfer_fungible_not_enough_balance.scen.json | 4 +- .../mandos/transfer_fungible_ok.scen.json | 3 - .../transfer_fungible_ok_to_sc.scen.json | 3 - .../mandos/transfer_non_fungible_ok.scen.json | 4 - .../transfer_non_fungible_ok_to_sc.scen.json | 4 - .../mandos/allowance_CallerCaller.scen.json | 4 +- .../mandos/allowance_CallerOther.scen.json | 4 +- .../mandos/allowance_OtherCaller.scen.json | 4 +- .../mandos/allowance_OtherEqOther.scen.json | 4 +- .../mandos/allowance_OtherNEqOther.scen.json | 4 +- .../mandos/approve_SwitchCaller.scen.json | 4 +- .../mandos/balanceOf_NonCaller.scen.json | 4 +- .../erc20/mandos/totalSupply_Zero.scen.json | 4 +- .../nft-approve-non-existent-token.scen.json | 1 - .../nft-approve-non-owned-token.scen.json | 1 - .../erc721/mandos/nft-approve-ok.scen.json | 1 - .../examples/erc721/mandos/nft-init.scen.json | 3 +- ...int-more-tokens-caller-not-owner.scen.json | 1 - ...t-mint-more-tokens-receiver-acc1.scen.json | 1 - ...-mint-more-tokens-receiver-owner.scen.json | 1 - .../mandos/nft-revoke-non-approved.scen.json | 1 - .../erc721/mandos/nft-revoke-ok.scen.json | 1 - .../nft-transfer-approved-token.scen.json | 1 - .../nft-transfer-non-existent-token.scen.json | 1 - ...fer-not-owned-not-approved-token.scen.json | 1 - .../erc721/mandos/nft-transfer-ok.scen.json | 1 - ...nft-transfer-token-after-revoked.scen.json | 1 - ...-not-owner-no-approval-to-caller.scen.json | 5 +- ...n-not-owner-no-approval-to-other.scen.json | 5 +- .../mandos/nft-transfer-token-ok.scen.json | 1 - .../buy-ticket-second-lottery.scen.json | 2 - .../mandos/determine-winner-early.scen.json | 4 +- .../multisig/mandos/changeQuorum.scen.json | 12 +- .../mandos/changeQuorum_tooBig.scen.json | 12 +- .../multisig/mandos/deployAdder_err.scen.json | 16 +- .../mandos/deployAdder_then_call.scen.json | 48 ++- .../multisig/mandos/deployFactorial.scen.json | 21 +- .../multisig/mandos/remove_everyone.scen.json | 12 +- .../multisig/mandos/steps/add_bm.steps.json | 44 ++- .../multisig/mandos/steps/add_prop.steps.json | 36 +- .../mandos/steps/rem_alice.steps.json | 16 +- .../steps/sign_unsign_bad_action.steps.json | 16 +- .../nft-minter/mandos/create_nft.scen.json | 11 +- ...ng-pong-call-pong-all-after-pong.scen.json | 6 +- ...pong-call-pong-all-interrupted-1.scen.json | 6 +- ...pong-call-pong-all-interrupted-2.scen.json | 10 +- .../mandos/ping-pong-call-pong-all.scen.json | 2 +- .../mandos/ping-pong-call-pong-all.steps.json | 6 +- ...g-pong-call-pong-before-deadline.scen.json | 2 +- .../ping-pong-call-pong-twice.scen.json | 2 +- ...ping-pong-call-pong-without-ping.scen.json | 2 +- .../mandos/ping-pong-call-pong.scen.json | 2 +- .../mandos/ping-pong-init.scen.json | 150 +++---- .../mandos/big_int_to_i64.scen.json | 21 +- .../mandos/big_num_conversions.scen.json | 38 +- .../mandos/big_uint_sqrt.scen.json | 10 +- .../mandos/big_uint_to_u64.scen.json | 12 +- .../mandos/block_info.scen.json | 41 +- .../mandos/count_ones.scen.json | 4 +- .../mandos/crypto_elliptic_curves.scen.json | 230 ++++++----- .../mandos/crypto_verify_funcs.scen.json | 16 +- .../mandos/echo_big_int_top.scen.json | 4 +- .../basic-features/mandos/echo_i64.scen.json | 4 +- .../mandos/echo_managed_bytes.scen.json | 8 +- .../mandos/echo_managed_vec.scen.json | 22 +- .../mandos/echo_ser_ex_1.scen.json | 41 +- .../echo_tuple_into_multiresult.scen.json | 2 +- .../mandos/echo_varags_tuples.scen.json | 3 +- .../mandos/echo_varargs_u32.scen.json | 1 - .../basic-features/mandos/events.scen.json | 1 - .../mandos/get_caller.scen.json | 8 +- .../get_cumulated_validator_rewards.scen.json | 12 +- .../mandos/managed_buffer_concat_1.scen.json | 16 +- .../mandos/managed_buffer_concat_2.scen.json | 16 +- .../mandos/managed_buffer_eq.scen.json | 20 +- .../mandos/managed_buffer_overwrite.scen.json | 4 +- .../mandos/managed_buffer_slice_1.scen.json | 16 +- .../mandos/managed_buffer_slice_2.scen.json | 16 +- .../mandos/managed_vec_address_push.scen.json | 8 +- .../mandos/managed_vec_biguint_push.scen.json | 16 +- .../mandos/sc_properties.scen.json | 20 +- .../mandos/storage_addr.scen.json | 4 +- .../mandos/storage_big_int.scen.json | 8 +- .../mandos/storage_big_uint.scen.json | 8 +- .../mandos/storage_bool.scen.json | 8 +- .../mandos/storage_clear.scen.json | 4 +- .../mandos/storage_i64.scen.json | 8 +- .../mandos/storage_map1.scen.json | 8 +- .../mandos/storage_map2.scen.json | 8 +- .../mandos/storage_map3.scen.json | 8 +- .../mandos/storage_mapper_vec.scen.json | 37 +- .../mandos/storage_opt_addr.scen.json | 22 +- .../mandos/storage_u64.scen.json | 8 +- .../mandos/storage_usize.scen.json | 8 +- .../mandos/storage_vec_u8.scen.json | 8 +- ...nd_retrieve_multi_transfer_funds.scen.json | 6 +- ...ll_async_retrieve_multi_transfer.scen.json | 1 - .../forw_raw_sync_echo_caller.scen.json | 1 - ...rwarder_call_async_retrieve_esdt.scen.json | 2 +- ...orwarder_call_async_retrieve_nft.scen.json | 2 +- ..._call_sync_accept_then_read_egld.scen.json | 2 +- ..._call_sync_accept_then_read_esdt.scen.json | 2 +- ...r_call_sync_accept_then_read_nft.scen.json | 2 +- ...orwarder_call_sync_retrieve_egld.scen.json | 2 +- ...orwarder_call_sync_retrieve_esdt.scen.json | 2 +- ...forwarder_call_sync_retrieve_nft.scen.json | 2 +- ...der_call_transf_exec_accept_egld.scen.json | 2 +- ...ll_transf_exec_accept_egld_twice.scen.json | 2 +- ...der_call_transf_exec_accept_esdt.scen.json | 2 +- ...ll_transf_exec_accept_esdt_twice.scen.json | 2 +- ...rder_call_transf_exec_accept_nft.scen.json | 2 +- ...transf_exec_accept_return_values.scen.json | 2 +- ...all_transf_exec_accept_sft_twice.scen.json | 2 +- .../forwarder_contract_change_owner.scen.json | 13 +- .../forwarder_contract_deploy.scen.json | 2 +- .../forwarder_contract_upgrade.scen.json | 2 +- .../mandos/forwarder_nft_create.scen.json | 5 +- .../forwarder_nft_create_and_send.scen.json | 78 ++-- .../mandos/payable_any_1.scen.json | 15 +- .../mandos/payable_any_2.scen.json | 15 +- .../mandos/payable_any_3.scen.json | 15 +- .../mandos/payable_any_4.scen.json | 15 +- .../mandos/payable_egld_1.scen.json | 10 +- .../mandos/payable_egld_2.scen.json | 10 +- .../mandos/payable_egld_3.scen.json | 10 +- .../mandos/payable_egld_4.scen.json | 10 +- .../mandos/payable_token_1.scen.json | 5 +- .../mandos/payable_token_2.scen.json | 5 +- .../mandos/payable_token_3.scen.json | 5 +- .../mandos/payable_token_4.scen.json | 5 +- .../cancel_defeated_proposal.scen.json | 4 - .../change_configuration.scen.json | 8 - .../invalid_proposals.scen.json | 4 - .../withdraw_governance_tokens.scen.json | 3 - .../mandos/use_module_pause.scen.json | 12 +- .../builtin-func-esdt-transfer.scen.json | 4 +- mandos-fmt.sh | 17 + 199 files changed, 2406 insertions(+), 2023 deletions(-) create mode 100755 mandos-fmt.sh diff --git a/contracts/benchmarks/str-repeat/mandos/str_repeat.scen.json b/contracts/benchmarks/str-repeat/mandos/str_repeat.scen.json index da6374b11f..2a23bba70a 100644 --- a/contracts/benchmarks/str-repeat/mandos/str_repeat.scen.json +++ b/contracts/benchmarks/str-repeat/mandos/str_repeat.scen.json @@ -47,7 +47,8 @@ "value": "0", "function": "repeat", "arguments": [ - "str:abc", "3" + "str:abc", + "3" ], "gasLimit": "4,000,000", "gasPrice": "0" @@ -69,7 +70,8 @@ "value": "0", "function": "repeat", "arguments": [ - "str:abc", "0" + "str:abc", + "0" ], "gasLimit": "3,000,000", "gasPrice": "0" @@ -105,7 +107,8 @@ "value": "0", "function": "repeat", "arguments": [ - "", "1000" + "", + "1000" ], "gasLimit": "4,000,000", "gasPrice": "0" diff --git a/contracts/examples/crowdfunding-erc20/mandos/deploy_erc20_and_crowdfunding.scen.json b/contracts/examples/crowdfunding-erc20/mandos/deploy_erc20_and_crowdfunding.scen.json index 8b8fca3cd2..7859899395 100644 --- a/contracts/examples/crowdfunding-erc20/mandos/deploy_erc20_and_crowdfunding.scen.json +++ b/contracts/examples/crowdfunding-erc20/mandos/deploy_erc20_and_crowdfunding.scen.json @@ -1,131 +1,130 @@ { "name": "deploy erc20 and give its address to the crowdfunding contract", "steps": [ - { - "step": "setState", - "accounts": { - "address:erc20_owner": { - "nonce": "0", - "balance": "0", - "storage": {} - }, - "address:crowdfunding_owner": { - "nonce": "0", - "balance": "0", - "storage": {} - } - }, - "newAddresses": [ - { - "creatorAddress": "address:erc20_owner", - "creatorNonce": "0", - "newAddress": "sc:erc20" - }, - { - "creatorAddress": "address:crowdfunding_owner", - "creatorNonce": "0", - "newAddress": "sc:crowdfunding" - } - ] - }, - { - "step": "scDeploy", - "txId": "deploy", - "tx": { - "from": "address:erc20_owner", - "contractCode": "file:../../erc20/output/erc20.wasm", - "value": "0", - "arguments": [ - "1,000,000,000" - ], - "gasLimit": "50,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:erc20_owner": { - "nonce": "1", - "balance": "0", - "storage": {} - }, - "address:crowdfunding_owner": { - "nonce": "0", - "balance": "0", - "storage": {} - }, - "sc:erc20": { - "nonce": "0", - "balance": "0", - "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:totalSupply": "1,000,000,000" + { + "step": "setState", + "accounts": { + "address:erc20_owner": { + "nonce": "0", + "balance": "0", + "storage": {} + }, + "address:crowdfunding_owner": { + "nonce": "0", + "balance": "0", + "storage": {} + } }, - "code": "file:../../erc20/output/erc20.wasm" - } - } - }, - { - "step": "scDeploy", - "txId": "deploy", - "tx": { - "from": "address:crowdfunding_owner", - "contractCode": "file:../output/crowdfunding-erc20.wasm", - "value": "0", - "arguments": [ - "1,000,000", - "123,456", - "sc:erc20" - ], - "gasLimit": "50,000,000", - "gasPrice": "0" + "newAddresses": [ + { + "creatorAddress": "address:erc20_owner", + "creatorNonce": "0", + "newAddress": "sc:erc20" + }, + { + "creatorAddress": "address:crowdfunding_owner", + "creatorNonce": "0", + "newAddress": "sc:crowdfunding" + } + ] }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:erc20_owner": { - "nonce": "1", - "balance": "0", - "storage": {} - }, - "address:crowdfunding_owner": { - "nonce": "1", - "balance": "0", - "storage": {} - }, - "sc:erc20": { - "nonce": "0", - "balance": "0", - "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:totalSupply": "1,000,000,000" + { + "step": "scDeploy", + "txId": "deploy", + "tx": { + "from": "address:erc20_owner", + "contractCode": "file:../../erc20/output/erc20.wasm", + "value": "0", + "arguments": [ + "1,000,000,000" + ], + "gasLimit": "50,000,000", + "gasPrice": "0" }, - "code": "file:../../erc20/output/erc20.wasm" - }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "1,000,000", - "str:deadline": "123,456", - "str:erc20ContractAddress": "sc:erc20" + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:erc20_owner": { + "nonce": "1", + "balance": "0", + "storage": {} + }, + "address:crowdfunding_owner": { + "nonce": "0", + "balance": "0", + "storage": {} + }, + "sc:erc20": { + "nonce": "0", + "balance": "0", + "storage": { + "str:balance|address:erc20_owner": "1,000,000,000", + "str:totalSupply": "1,000,000,000" + }, + "code": "file:../../erc20/output/erc20.wasm" + } + } + }, + { + "step": "scDeploy", + "txId": "deploy", + "tx": { + "from": "address:crowdfunding_owner", + "contractCode": "file:../output/crowdfunding-erc20.wasm", + "value": "0", + "arguments": [ + "1,000,000", + "123,456", + "sc:erc20" + ], + "gasLimit": "50,000,000", + "gasPrice": "0" }, - "code": "file:../output/crowdfunding-erc20.wasm" - } + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:erc20_owner": { + "nonce": "1", + "balance": "0", + "storage": {} + }, + "address:crowdfunding_owner": { + "nonce": "1", + "balance": "0", + "storage": {} + }, + "sc:erc20": { + "nonce": "0", + "balance": "0", + "storage": { + "str:balance|address:erc20_owner": "1,000,000,000", + "str:totalSupply": "1,000,000,000" + }, + "code": "file:../../erc20/output/erc20.wasm" + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "1,000,000", + "str:deadline": "123,456", + "str:erc20ContractAddress": "sc:erc20" + }, + "code": "file:../output/crowdfunding-erc20.wasm" + } + } } - } ] - } - \ No newline at end of file +} diff --git a/contracts/examples/crowdfunding-erc20/mandos/fund_with_insufficient_allowance.scen.json b/contracts/examples/crowdfunding-erc20/mandos/fund_with_insufficient_allowance.scen.json index 90d1fdcaf7..6edb9131f0 100644 --- a/contracts/examples/crowdfunding-erc20/mandos/fund_with_insufficient_allowance.scen.json +++ b/contracts/examples/crowdfunding-erc20/mandos/fund_with_insufficient_allowance.scen.json @@ -79,11 +79,11 @@ "nonce": "0", "balance": "0", "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:balance|address:acc1": "600,000", - "str:allowance|address:erc20_owner|address:acc1": "400,000", - "str:allowance|address:acc1|sc:crowdfunding": "400,000", - "str:totalSupply": "1,000,000,000" + "str:balance|address:erc20_owner": "1,000,000,000", + "str:balance|address:acc1": "600,000", + "str:allowance|address:erc20_owner|address:acc1": "400,000", + "str:allowance|address:acc1|sc:crowdfunding": "400,000", + "str:totalSupply": "1,000,000,000" }, "code": "file:../../erc20/output/erc20.wasm" }, @@ -91,9 +91,9 @@ "nonce": "0", "balance": "0", "storage": { - "str:target": "1,000,000", - "str:deadline": "123,456", - "str:erc20ContractAddress": "sc:erc20" + "str:target": "1,000,000", + "str:deadline": "123,456", + "str:erc20ContractAddress": "sc:erc20" }, "code": "file:../output/crowdfunding-erc20.wasm" } diff --git a/contracts/examples/crowdfunding-erc20/mandos/fund_with_sufficient_allowance.scen.json b/contracts/examples/crowdfunding-erc20/mandos/fund_with_sufficient_allowance.scen.json index f22471df19..9b461c1ee1 100644 --- a/contracts/examples/crowdfunding-erc20/mandos/fund_with_sufficient_allowance.scen.json +++ b/contracts/examples/crowdfunding-erc20/mandos/fund_with_sufficient_allowance.scen.json @@ -58,11 +58,11 @@ "nonce": "0", "balance": "0", "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:balance|address:acc1": "600,000", - "str:allowance|address:erc20_owner|address:acc1": "400,000", - "str:allowance|address:acc1|sc:crowdfunding": "500,000", - "str:totalSupply": "1,000,000,000" + "str:balance|address:erc20_owner": "1,000,000,000", + "str:balance|address:acc1": "600,000", + "str:allowance|address:erc20_owner|address:acc1": "400,000", + "str:allowance|address:acc1|sc:crowdfunding": "500,000", + "str:totalSupply": "1,000,000,000" }, "code": "file:../../erc20/output/erc20.wasm" }, @@ -70,9 +70,9 @@ "nonce": "0", "balance": "0", "storage": { - "str:target": "1,000,000", - "str:deadline": "123,456", - "str:erc20ContractAddress": "sc:erc20" + "str:target": "1,000,000", + "str:deadline": "123,456", + "str:erc20ContractAddress": "sc:erc20" }, "code": "file:../output/crowdfunding-erc20.wasm" } @@ -126,12 +126,12 @@ "nonce": "0", "balance": "0", "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:balance|address:acc1": "100,000", - "str:balance|sc:crowdfunding": "500,000", - "str:allowance|address:erc20_owner|address:acc1": "400,000", - "str:allowance|address:acc1|sc:crowdfunding": "0", - "str:totalSupply": "1,000,000,000" + "str:balance|address:erc20_owner": "1,000,000,000", + "str:balance|address:acc1": "100,000", + "str:balance|sc:crowdfunding": "500,000", + "str:allowance|address:erc20_owner|address:acc1": "400,000", + "str:allowance|address:acc1|sc:crowdfunding": "0", + "str:totalSupply": "1,000,000,000" }, "code": "file:../../erc20/output/erc20.wasm" }, @@ -139,11 +139,11 @@ "nonce": "0", "balance": "0", "storage": { - "str:target": "1,000,000", - "str:deadline": "123,456", - "str:erc20ContractAddress": "sc:erc20", - "str:deposit|address:acc1": "500,000", - "str:erc20Balance": "500,000" + "str:target": "1,000,000", + "str:deadline": "123,456", + "str:erc20ContractAddress": "sc:erc20", + "str:deposit|address:acc1": "500,000", + "str:erc20Balance": "500,000" }, "code": "file:../output/crowdfunding-erc20.wasm" } diff --git a/contracts/examples/crowdfunding-erc20/mandos/fund_without_allowance.scen.json b/contracts/examples/crowdfunding-erc20/mandos/fund_without_allowance.scen.json index be58fba743..461d7f33f4 100644 --- a/contracts/examples/crowdfunding-erc20/mandos/fund_without_allowance.scen.json +++ b/contracts/examples/crowdfunding-erc20/mandos/fund_without_allowance.scen.json @@ -57,10 +57,10 @@ "nonce": "0", "balance": "0", "storage": { - "str:balance|address:erc20_owner": "1,000,000,000", - "str:balance|address:acc1": "600,000", - "str:allowance|address:erc20_owner|address:acc1": "400,000", - "str:totalSupply": "1,000,000,000" + "str:balance|address:erc20_owner": "1,000,000,000", + "str:balance|address:acc1": "600,000", + "str:allowance|address:erc20_owner|address:acc1": "400,000", + "str:totalSupply": "1,000,000,000" }, "code": "file:../../erc20/output/erc20.wasm" }, @@ -68,9 +68,9 @@ "nonce": "0", "balance": "0", "storage": { - "str:target": "1,000,000", - "str:deadline": "123,456", - "str:erc20ContractAddress": "sc:erc20" + "str:target": "1,000,000", + "str:deadline": "123,456", + "str:erc20ContractAddress": "sc:erc20" }, "code": "file:../output/crowdfunding-erc20.wasm" } diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-failed.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-failed.scen.json index f6007c2eec..ad3e539bc0 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-failed.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-failed.scen.json @@ -1,195 +1,195 @@ { - "name": "claiming successful crowdfunding", - "gasSchedule": "dummy", - "steps": [ - { - "step": "externalSteps", - "path": "crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor2": { - "nonce": "0", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "1,000,000,000,000" - } - } - } - }, - { - "step": "scCall", - "txId": "fund-2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "0", - "esdt": { - "tokenIdentifier": "str:CROWD-123456", - "value": "200,000,000,000" + "name": "claiming successful crowdfunding", + "gasSchedule": "dummy", + "steps": [ + { + "step": "externalSteps", + "path": "crowdfunding-fund.scen.json" }, - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "setState", + "accounts": { + "address:donor2": { + "nonce": "0", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "1,000,000,000,000" + } + } + } }, - "address:donor1": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "150,000,000,000" - } + { + "step": "scCall", + "txId": "fund-2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "0", + "esdt": { + "tokenIdentifier": "str:CROWD-123456", + "value": "200,000,000,000" + }, + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "800,000,000,000" - } + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "150,000,000,000" + } + }, + "address:donor2": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "800,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "200,000,000,000" + }, + "esdt": { + "str:CROWD-123456": "450,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "200,000,000,000" - }, - "esdt": { - "str:CROWD-123456": "450,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" - } - } - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "claim-donor1", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "logs": [ - { - "address": "sc:crowdfunding", - "endpoint": "str:ESDTTransfer", - "topics": [ - "str:CROWD-123456", - "", - "250,000,000,000", - "address:donor1" - ], - "data": "" - } - ], - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-donor2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "logs": [ - { - "address": "sc:crowdfunding", - "endpoint": "str:ESDTTransfer", - "topics": [ - "str:CROWD-123456", - "", - "200,000,000,000", - "address:donor2" - ], - "data": "" - } - ], - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "address:donor1": { - "nonce": "2", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "400,000,000,000" - } + { + "step": "scCall", + "txId": "claim-donor1", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "logs": [ + { + "address": "sc:crowdfunding", + "endpoint": "str:ESDTTransfer", + "topics": [ + "str:CROWD-123456", + "", + "250,000,000,000", + "address:donor1" + ], + "data": "" + } + ], + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "2", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "1,000,000,000,000" - } + { + "step": "scCall", + "txId": "claim-donor2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "logs": [ + { + "address": "sc:crowdfunding", + "endpoint": "str:ESDTTransfer", + "topics": [ + "str:CROWD-123456", + "", + "200,000,000,000", + "address:donor2" + ], + "data": "" + } + ], + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "0", - "str:deposit|address:donor2": "0" - }, - "esdt": { - "str:CROWD-123456": "0" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "2", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "400,000,000,000" + } + }, + "address:donor2": { + "nonce": "2", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "1,000,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "0", + "str:deposit|address:donor2": "0" + }, + "esdt": { + "str:CROWD-123456": "0" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-successful.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-successful.scen.json index 1b69d7af51..e7155638a1 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-successful.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-successful.scen.json @@ -1,185 +1,185 @@ { - "name": "claiming successful crowdfunding", - "steps": [ - { - "step": "externalSteps", - "path": "crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor2": { - "nonce": "0", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "1,000,000,000,000" - } - } - } - }, - { - "step": "scCall", - "txId": "fund-2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "0", - "esdt": { - "tokenIdentifier": "str:CROWD-123456", - "value": "250,000,000,000" + "name": "claiming successful crowdfunding", + "steps": [ + { + "step": "externalSteps", + "path": "crowdfunding-fund.scen.json" }, - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "setState", + "accounts": { + "address:donor2": { + "nonce": "0", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "1,000,000,000,000" + } + } + } }, - "address:donor1": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "150,000,000,000" - } + { + "step": "scCall", + "txId": "fund-2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "0", + "esdt": { + "tokenIdentifier": "str:CROWD-123456", + "value": "250,000,000,000" + }, + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "750,000,000,000" - } + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "150,000,000,000" + } + }, + "address:donor2": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "750,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "250,000,000,000" + }, + "esdt": { + "str:CROWD-123456": "500,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "250,000,000,000" - }, - "esdt": { - "str:CROWD-123456": "500,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" - } - } - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "claim-donor", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "message": "str:only owner can claim successful funding", - "status": "4", - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-owner", - "tx": { - "from": "address:my_address", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "logs": [ - { - "address": "sc:crowdfunding", - "endpoint": "str:ESDTTransfer", - "topics": [ - "str:CROWD-123456", - "", - "500,000,000,000", - "address:my_address" - ], - "data": "" - } - ], - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "2", - "balance": "1,000,000", - "storage": {}, - "esdt": { - "str:CROWD-123456": "500,000,000,000" - } + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "address:donor1": { - "nonce": "2", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "150,000,000,000" - } + { + "step": "scCall", + "txId": "claim-donor", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:only owner can claim successful funding", + "status": "4", + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "750,000,000,000" - } + { + "step": "scCall", + "txId": "claim-owner", + "tx": { + "from": "address:my_address", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "logs": [ + { + "address": "sc:crowdfunding", + "endpoint": "str:ESDTTransfer", + "topics": [ + "str:CROWD-123456", + "", + "500,000,000,000", + "address:my_address" + ], + "data": "" + } + ], + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "250,000,000,000" - }, - "esdt": { - "str:CROWD-123456": "0" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "2", + "balance": "1,000,000", + "storage": {}, + "esdt": { + "str:CROWD-123456": "500,000,000,000" + } + }, + "address:donor1": { + "nonce": "2", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "150,000,000,000" + } + }, + "address:donor2": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "750,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "250,000,000,000" + }, + "esdt": { + "str:CROWD-123456": "0" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-too-early.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-too-early.scen.json index 04fae42770..bc46c57a20 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-too-early.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-claim-too-early.scen.json @@ -1,47 +1,47 @@ { "name": "trying to claim too early", "steps": [ - { - "step": "externalSteps", - "path": "crowdfunding-fund.scen.json" - }, - { - "step": "scCall", - "txId": "claim-too-early-donor", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" + { + "step": "externalSteps", + "path": "crowdfunding-fund.scen.json" }, - "expect": { - "message": "str:cannot claim before deadline", - "status": "4", - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-too-early-owner", - "tx": { - "from": "address:my_address", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" + { + "step": "scCall", + "txId": "claim-too-early-donor", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:cannot claim before deadline", + "status": "4", + "gas": "*", + "refund": "*" + } }, - "expect": { - "message": "str:cannot claim before deadline", - "status": "4", - "gas": "*", - "refund": "*" + { + "step": "scCall", + "txId": "claim-too-early-owner", + "tx": { + "from": "address:my_address", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:cannot claim before deadline", + "status": "4", + "gas": "*", + "refund": "*" + } } - } ] - } +} diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund-too-late.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund-too-late.scen.json index cb4dc39284..48dd172496 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund-too-late.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund-too-late.scen.json @@ -1,91 +1,91 @@ { - "name": "trying to fund one block too late", - "steps": [ - { - "step": "externalSteps", - "path": "crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "fund-too-late", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "esdt": { - "tokenIdentifier": "str:CROWD-123456", - "value": "10,000,000,000" + "name": "trying to fund one block too late", + "steps": [ + { + "step": "externalSteps", + "path": "crowdfunding-fund.scen.json" }, - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "4", - "message": "str:cannot fund after deadline", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "address:donor1": { - "nonce": "*", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "150,000,000,000" - } + { + "step": "scCall", + "txId": "fund-too-late", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "esdt": { + "tokenIdentifier": "str:CROWD-123456", + "value": "10,000,000,000" + }, + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "4", + "message": "str:cannot fund after deadline", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "250,000,000,000" - }, - "esdt": { - "str:CROWD-123456": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "*", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "150,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "250,000,000,000" + }, + "esdt": { + "str:CROWD-123456": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } + }, + { + "step": "scCall", + "txId": "check-status", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "status", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "out": [ + "2" + ], + "status": "0", + "gas": "*", + "refund": "*" + } } - } - }, - { - "step": "scCall", - "txId": "check-status", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "status", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "out": [ - "2" - ], - "status": "0", - "gas": "*", - "refund": "*" - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund.scen.json index 4b13117b82..98f88c4ae3 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-fund.scen.json @@ -1,76 +1,76 @@ { - "name": "crowdfunding funding", - "steps": [ - { - "step": "externalSteps", - "path": "crowdfunding-init.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor1": { - "nonce": "0", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "400,000,000,000" - } - } - } - }, - { - "step": "scCall", - "txId": "fund-1", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "esdt": { - "tokenIdentifier": "str:CROWD-123456", - "value": "250,000,000,000" + "name": "crowdfunding funding", + "steps": [ + { + "step": "externalSteps", + "path": "crowdfunding-init.scen.json" }, - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "setState", + "accounts": { + "address:donor1": { + "nonce": "0", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "400,000,000,000" + } + } + } }, - "address:donor1": { - "nonce": "1", - "balance": "0", - "storage": {}, - "esdt": { - "str:CROWD-123456": "150,000,000,000" - } + { + "step": "scCall", + "txId": "fund-1", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "esdt": { + "tokenIdentifier": "str:CROWD-123456", + "value": "250,000,000,000" + }, + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456", - "str:deposit|address:donor1": "250,000,000,000" - }, - "esdt": { - "str:CROWD-123456": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "0", + "storage": {}, + "esdt": { + "str:CROWD-123456": "150,000,000,000" + } + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456", + "str:deposit|address:donor1": "250,000,000,000" + }, + "esdt": { + "str:CROWD-123456": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-init.scen.json b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-init.scen.json index b89eaec451..f5470f8ffc 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-init.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/crowdfunding-init.scen.json @@ -1,63 +1,63 @@ { - "name": "crowdfunding deployment test", - "steps": [ - { - "step": "setState", - "accounts": { - "address:my_address": { - "nonce": "0", - "balance": "1,000,000", - "storage": {} - } - }, - "newAddresses": [ + "name": "crowdfunding deployment test", + "steps": [ { - "creatorAddress": "address:my_address", - "creatorNonce": "0", - "newAddress": "sc:crowdfunding" - } - ] - }, - { - "step": "scDeploy", - "txId": "deploy", - "tx": { - "from": "address:my_address", - "contractCode": "file:../output/crowdfunding-esdt.wasm", - "value": "0", - "arguments": [ - "500,000,000,000", - "123,000", - "str:CROWD-123456" - ], - "gasLimit": "5,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "step": "setState", + "accounts": { + "address:my_address": { + "nonce": "0", + "balance": "1,000,000", + "storage": {} + } + }, + "newAddresses": [ + { + "creatorAddress": "address:my_address", + "creatorNonce": "0", + "newAddress": "sc:crowdfunding" + } + ] }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:CROWD-123456" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "scDeploy", + "txId": "deploy", + "tx": { + "from": "address:my_address", + "contractCode": "file:../output/crowdfunding-esdt.wasm", + "value": "0", + "arguments": [ + "500,000,000,000", + "123,000", + "str:CROWD-123456" + ], + "gasLimit": "5,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:CROWD-123456" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-failed.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-failed.scen.json index 3fd3a7db98..ed7cb63dd7 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-failed.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-failed.scen.json @@ -1,143 +1,143 @@ { - "name": "claiming successful crowdfunding", - "steps": [ - { - "step": "externalSteps", - "path": "egld-crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor2": { - "nonce": "0", - "balance": "1,000,000,000,000", - "storage": {} - } - } - }, - { - "step": "scCall", - "txId": "fund-2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "200,000,000,000", - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "name": "claiming successful crowdfunding", + "steps": [ + { + "step": "externalSteps", + "path": "egld-crowdfunding-fund.scen.json" }, - "address:donor1": { - "nonce": "1", - "balance": "150,000,000,000", - "storage": {} + { + "step": "setState", + "accounts": { + "address:donor2": { + "nonce": "0", + "balance": "1,000,000,000,000", + "storage": {} + } + } }, - "address:donor2": { - "nonce": "1", - "balance": "800,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "fund-2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "200,000,000,000", + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "450,000,000,000", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "200,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" - } - } - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "claim-donor1", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-donor2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "150,000,000,000", + "storage": {} + }, + "address:donor2": { + "nonce": "1", + "balance": "800,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "450,000,000,000", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "200,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } + }, + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "address:donor1": { - "nonce": "2", - "balance": "400,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "claim-donor1", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "2", - "balance": "1,000,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "claim-donor2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "0", - "str:deposit|address:donor2": "0" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "2", + "balance": "400,000,000,000", + "storage": {} + }, + "address:donor2": { + "nonce": "2", + "balance": "1,000,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "0", + "str:deposit|address:donor2": "0" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-successful.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-successful.scen.json index 5256f97657..027d3a1f5f 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-successful.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-successful.scen.json @@ -1,144 +1,144 @@ { - "name": "claiming successful crowdfunding", - "steps": [ - { - "step": "externalSteps", - "path": "egld-crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor2": { - "nonce": "0", - "balance": "1,000,000,000,000", - "storage": {} - } - } - }, - { - "step": "scCall", - "txId": "fund-2", - "tx": { - "from": "address:donor2", - "to": "sc:crowdfunding", - "value": "250,000,000,000", - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "name": "claiming successful crowdfunding", + "steps": [ + { + "step": "externalSteps", + "path": "egld-crowdfunding-fund.scen.json" }, - "address:donor1": { - "nonce": "1", - "balance": "150,000,000,000", - "storage": {} + { + "step": "setState", + "accounts": { + "address:donor2": { + "nonce": "0", + "balance": "1,000,000,000,000", + "storage": {} + } + } }, - "address:donor2": { - "nonce": "1", - "balance": "750,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "fund-2", + "tx": { + "from": "address:donor2", + "to": "sc:crowdfunding", + "value": "250,000,000,000", + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "500,000,000,000", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" - } - } - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "claim-donor", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "message": "str:only owner can claim successful funding", - "status": "4", - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-owner", - "tx": { - "from": "address:my_address", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "2", - "balance": "500,001,000,000", - "storage": {} + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "150,000,000,000", + "storage": {} + }, + "address:donor2": { + "nonce": "1", + "balance": "750,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "500,000,000,000", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } + }, + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "address:donor1": { - "nonce": "2", - "balance": "150,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "claim-donor", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:only owner can claim successful funding", + "status": "4", + "gas": "*", + "refund": "*" + } }, - "address:donor2": { - "nonce": "1", - "balance": "750,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "claim-owner", + "tx": { + "from": "address:my_address", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "250,000,000,000", - "str:deposit|address:donor2": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "2", + "balance": "500,001,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "2", + "balance": "150,000,000,000", + "storage": {} + }, + "address:donor2": { + "nonce": "1", + "balance": "750,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "250,000,000,000", + "str:deposit|address:donor2": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-too-early.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-too-early.scen.json index 541a238155..60e9721b3a 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-too-early.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-claim-too-early.scen.json @@ -1,47 +1,47 @@ { "name": "trying to claim too early", "steps": [ - { - "step": "externalSteps", - "path": "egld-crowdfunding-fund.scen.json" - }, - { - "step": "scCall", - "txId": "claim-too-early-donor", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" + { + "step": "externalSteps", + "path": "egld-crowdfunding-fund.scen.json" }, - "expect": { - "message": "str:cannot claim before deadline", - "status": "4", - "gas": "*", - "refund": "*" - } - }, - { - "step": "scCall", - "txId": "claim-too-early-owner", - "tx": { - "from": "address:my_address", - "to": "sc:crowdfunding", - "value": "0", - "function": "claim", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" + { + "step": "scCall", + "txId": "claim-too-early-donor", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:cannot claim before deadline", + "status": "4", + "gas": "*", + "refund": "*" + } }, - "expect": { - "message": "str:cannot claim before deadline", - "status": "4", - "gas": "*", - "refund": "*" + { + "step": "scCall", + "txId": "claim-too-early-owner", + "tx": { + "from": "address:my_address", + "to": "sc:crowdfunding", + "value": "0", + "function": "claim", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "message": "str:cannot claim before deadline", + "status": "4", + "gas": "*", + "refund": "*" + } } - } ] - } +} diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund-too-late.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund-too-late.scen.json index 05c21bd505..3ccd7dd135 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund-too-late.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund-too-late.scen.json @@ -1,81 +1,81 @@ { - "name": "trying to fund one block too late", - "steps": [ - { - "step": "externalSteps", - "path": "egld-crowdfunding-fund.scen.json" - }, - { - "step": "setState", - "currentBlockInfo": { - "blockTimestamp": "123,001" - } - }, - { - "step": "scCall", - "txId": "fund-too-late", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "10,000,000,000", - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "4", - "message": "str:cannot fund after deadline", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "name": "trying to fund one block too late", + "steps": [ + { + "step": "externalSteps", + "path": "egld-crowdfunding-fund.scen.json" }, - "address:donor1": { - "nonce": "*", - "balance": "150,000,000,000", - "storage": {} + { + "step": "setState", + "currentBlockInfo": { + "blockTimestamp": "123,001" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "250,000,000,000", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "scCall", + "txId": "fund-too-late", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "10,000,000,000", + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "4", + "message": "str:cannot fund after deadline", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "*", + "balance": "150,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "250,000,000,000", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } + }, + { + "step": "scCall", + "txId": "check-status", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "0", + "function": "status", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "out": [ + "2" + ], + "status": "0", + "gas": "*", + "refund": "*" + } } - } - }, - { - "step": "scCall", - "txId": "check-status", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "0", - "function": "status", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "out": [ - "2" - ], - "status": "0", - "gas": "*", - "refund": "*" - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund.scen.json index 89842b2879..a98de53622 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-fund.scen.json @@ -1,63 +1,63 @@ { - "name": "crowdfunding funding", - "steps": [ - { - "step": "externalSteps", - "path": "egld-crowdfunding-init.scen.json" - }, - { - "step": "setState", - "accounts": { - "address:donor1": { - "nonce": "0", - "balance": "400,000,000,000", - "storage": {} - } - } - }, - { - "step": "scCall", - "txId": "fund-1", - "tx": { - "from": "address:donor1", - "to": "sc:crowdfunding", - "value": "250,000,000,000", - "function": "fund", - "arguments": [], - "gasLimit": "100,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "name": "crowdfunding funding", + "steps": [ + { + "step": "externalSteps", + "path": "egld-crowdfunding-init.scen.json" + }, + { + "step": "setState", + "accounts": { + "address:donor1": { + "nonce": "0", + "balance": "400,000,000,000", + "storage": {} + } + } }, - "address:donor1": { - "nonce": "1", - "balance": "150,000,000,000", - "storage": {} + { + "step": "scCall", + "txId": "fund-1", + "tx": { + "from": "address:donor1", + "to": "sc:crowdfunding", + "value": "250,000,000,000", + "function": "fund", + "arguments": [], + "gasLimit": "100,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "", + "gas": "*", + "refund": "*" + } }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "250,000,000,000", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD", - "str:deposit|address:donor1": "250,000,000,000" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:donor1": { + "nonce": "1", + "balance": "150,000,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "250,000,000,000", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD", + "str:deposit|address:donor1": "250,000,000,000" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-init.scen.json b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-init.scen.json index 52f72bb350..a7e395a2be 100644 --- a/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-init.scen.json +++ b/contracts/examples/crowdfunding-esdt/mandos/egld-crowdfunding-init.scen.json @@ -1,63 +1,63 @@ { - "name": "crowdfunding deployment test", - "steps": [ - { - "step": "setState", - "accounts": { - "address:my_address": { - "nonce": "0", - "balance": "1,000,000", - "storage": {} - } - }, - "newAddresses": [ + "name": "crowdfunding deployment test", + "steps": [ { - "creatorAddress": "address:my_address", - "creatorNonce": "0", - "newAddress": "sc:crowdfunding" - } - ] - }, - { - "step": "scDeploy", - "txId": "deploy", - "tx": { - "from": "address:my_address", - "contractCode": "file:../output/crowdfunding-esdt.wasm", - "value": "0", - "arguments": [ - "500,000,000,000", - "123,000", - "str:EGLD" - ], - "gasLimit": "5,000,000", - "gasPrice": "0" - }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} + "step": "setState", + "accounts": { + "address:my_address": { + "nonce": "0", + "balance": "1,000,000", + "storage": {} + } + }, + "newAddresses": [ + { + "creatorAddress": "address:my_address", + "creatorNonce": "0", + "newAddress": "sc:crowdfunding" + } + ] }, - "sc:crowdfunding": { - "nonce": "0", - "balance": "0", - "storage": { - "str:target": "500,000,000,000", - "str:deadline": "123,000", - "str:tokenIdentifier": "str:EGLD" - }, - "code": "file:../output/crowdfunding-esdt.wasm" + { + "step": "scDeploy", + "txId": "deploy", + "tx": { + "from": "address:my_address", + "contractCode": "file:../output/crowdfunding-esdt.wasm", + "value": "0", + "arguments": [ + "500,000,000,000", + "123,000", + "str:EGLD" + ], + "gasLimit": "5,000,000", + "gasPrice": "0" + }, + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "sc:crowdfunding": { + "nonce": "0", + "balance": "0", + "storage": { + "str:target": "500,000,000,000", + "str:deadline": "123,000", + "str:tokenIdentifier": "str:EGLD" + }, + "code": "file:../output/crowdfunding-esdt.wasm" + } + } } - } - } - ] + ] } diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_first.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_first.scen.json index 89ab8430c7..c1d0a6dc74 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_first.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_first.scen.json @@ -24,7 +24,9 @@ "to": "sc:kitty_auction_contract", "value": "200", "function": "bid", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -56,7 +58,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -70,7 +71,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:1|u8:200|address:bidder1" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_max.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_max.scen.json index 56d9f70faf..51f7b9a912 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_max.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_max.scen.json @@ -24,7 +24,9 @@ "to": "sc:kitty_auction_contract", "value": "500", "function": "bid", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -61,7 +63,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -75,7 +76,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:2|u16:500|address:bidder2" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_ok.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_ok.scen.json index 0730d07521..4f4fd0445a 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_ok.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_ok.scen.json @@ -24,7 +24,9 @@ "to": "sc:kitty_auction_contract", "value": "250", "function": "bid", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -61,7 +63,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -75,7 +76,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:1|u8:250|address:bidder2" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_too_low.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_too_low.scen.json index 95fc21bee9..45b79523d9 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_too_low.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_second_too_low.scen.json @@ -24,7 +24,9 @@ "to": "sc:kitty_auction_contract", "value": "150", "function": "bid", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -61,7 +63,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -75,7 +76,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:1|u8:200|address:bidder1" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_siring_auction.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_siring_auction.scen.json index af5a3acdd9..8e20a1e7e1 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_siring_auction.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/bid_siring_auction.scen.json @@ -14,7 +14,9 @@ "to": "sc:kitty_auction_contract", "value": "5000", "function": "bid", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -51,7 +53,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -65,7 +66,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:1|u32:2|u16:1000|u32:2|u16:5000|u64:200000|address:bidder2|u32:2|u16:5000|address:bidder1" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_and_auction_gen_zero_kitty.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_and_auction_gen_zero_kitty.scen.json index 806fc277c3..76aefe2237 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_and_auction_gen_zero_kitty.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_and_auction_gen_zero_kitty.scen.json @@ -26,7 +26,9 @@ "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "message": "", "status": "0", "logs": "*", @@ -50,7 +52,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -64,7 +65,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:0|u64:0|u64:0|u64:0|u64:0" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_not_owner.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_not_owner.scen.json index dfefdef919..9194e7a3bb 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_not_owner.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_not_owner.scen.json @@ -62,7 +62,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|address:bidder2": "1", "str:owner|u32:1": "address:bidder2" }, diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_ok.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_ok.scen.json index 7847708038..ed85757889 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_ok.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_sale_auction_ok.scen.json @@ -63,7 +63,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -77,7 +76,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:2|u16:1000|u32:2|u16:5000|u64:200000|address:bidder2|u32:0|u64:0|u64:0|u64:0|u64:0" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_not_owner.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_not_owner.scen.json index 83607cc99e..6b79d730ea 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_not_owner.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_not_owner.scen.json @@ -62,7 +62,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|address:bidder2": "1", "str:owner|u32:1": "address:bidder2" }, diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_ok.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_ok.scen.json index 3250d08a3c..9693bd0f0f 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_ok.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/create_siring_auction_ok.scen.json @@ -63,7 +63,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -77,7 +76,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:1|u32:2|u16:1000|u32:2|u16:5000|u64:200000|address:bidder2|u32:0|u64:0|u64:0|u64:0|u64:0" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_no_bids.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_no_bids.scen.json index e9f3fdf544..af6dbc7bb2 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_no_bids.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_no_bids.scen.json @@ -20,7 +20,9 @@ "to": "sc:kitty_auction_contract", "value": "0", "function": "endAuction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -47,7 +49,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_max_early.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_max_early.scen.json index 15160629cc..6cc0aeb3c7 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_max_early.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_max_early.scen.json @@ -14,7 +14,9 @@ "to": "sc:kitty_auction_contract", "value": "0", "function": "endAuction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -52,7 +54,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|address:bidder2": "1", "str:owner|u32:1": "address:bidder2" }, diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_early.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_early.scen.json index f8d7022896..70ad6e3249 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_early.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_early.scen.json @@ -14,7 +14,9 @@ "to": "sc:kitty_auction_contract", "value": "0", "function": "endAuction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -51,7 +53,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|sc:kitty_auction_contract": "1", "str:owner|u32:1": "sc:kitty_auction_contract" }, @@ -65,7 +66,6 @@ "str:genZeroKittyStartingPrice": "100", "str:genZeroKittyEndingPrice": "500", "str:genZeroKittyAuctionDuration": "100,000", - "str:auction|u32:1": "u8:0|u32:1|u8:100|u32:2|u16:500|u64:223456|sc:kitty_auction_contract|u32:1|u8:250|address:bidder2" }, "code": "file:../output/kitty-auction.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_late.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_late.scen.json index e5ac57d2ad..b6f510efd9 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_late.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_auction_second_bid_ok_late.scen.json @@ -20,7 +20,9 @@ "to": "sc:kitty_auction_contract", "value": "0", "function": "endAuction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -58,7 +60,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|address:bidder2": "1", "str:owner|u32:1": "address:bidder2" }, diff --git a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_siring_auction.scen.json b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_siring_auction.scen.json index 87cd362124..df70dedb11 100644 --- a/contracts/examples/crypto-kitties/kitty-auction/mandos/end_siring_auction.scen.json +++ b/contracts/examples/crypto-kitties/kitty-auction/mandos/end_siring_auction.scen.json @@ -14,7 +14,9 @@ "to": "sc:kitty_auction_contract", "value": "0", "function": "endAuction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, @@ -52,7 +54,6 @@ "str:totalKitties": "2", "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:1|u8:2|u8:3|u8:4|u8:5|u8:6|u8:7|u64:123456|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:nrOwnedKitties|address:bidder2": "1", "str:owner|u32:1": "address:bidder2", "str:sireAllowedAddress|u32:1": "address:bidder1" diff --git a/contracts/examples/crypto-kitties/kitty-genetic-alg/mandos/generate-kitty-genes.scen.json b/contracts/examples/crypto-kitties/kitty-genetic-alg/mandos/generate-kitty-genes.scen.json index 336629c573..f6bf5cd4de 100644 --- a/contracts/examples/crypto-kitties/kitty-genetic-alg/mandos/generate-kitty-genes.scen.json +++ b/contracts/examples/crypto-kitties/kitty-genetic-alg/mandos/generate-kitty-genes.scen.json @@ -30,7 +30,9 @@ "gasPrice": "0" }, "expect": { - "out": ["u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u8:127"], + "out": [ + "u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u8:127" + ], "status": "0", "gas": "*", "refund": "*" diff --git a/contracts/examples/crypto-kitties/kitty-ownership/mandos/approve_siring.scen.json b/contracts/examples/crypto-kitties/kitty-ownership/mandos/approve_siring.scen.json index 17e47fac1a..dc9249b26d 100644 --- a/contracts/examples/crypto-kitties/kitty-ownership/mandos/approve_siring.scen.json +++ b/contracts/examples/crypto-kitties/kitty-ownership/mandos/approve_siring.scen.json @@ -39,17 +39,13 @@ "str:kittyAuctionContractAddress": "sc:kitty_auction_contract", "str:birthFee": "10", "str:totalKitties": "3", - "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:2": "u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:owner|u32:1": "address:acc1", "str:owner|u32:2": "address:acc2", - "str:nrOwnedKitties|address:acc1": "1", "str:nrOwnedKitties|address:acc2": "1", - "str:sireAllowedAddress|u32:1": "address:acc2" }, "code": "file:../output/kitty-ownership.wasm" diff --git a/contracts/examples/crypto-kitties/kitty-ownership/mandos/breed_ok.scen.json b/contracts/examples/crypto-kitties/kitty-ownership/mandos/breed_ok.scen.json index 5dbf47ca59..ce54259d7a 100644 --- a/contracts/examples/crypto-kitties/kitty-ownership/mandos/breed_ok.scen.json +++ b/contracts/examples/crypto-kitties/kitty-ownership/mandos/breed_ok.scen.json @@ -3,7 +3,7 @@ "gasSchedule": "dummy", "steps": [ { - "step" :"externalSteps", + "step": "externalSteps", "path": "approve_siring.scen.json" }, { @@ -54,14 +54,11 @@ "str:kittyAuctionContractAddress": "sc:kitty_auction_contract", "str:birthFee": "10", "str:totalKitties": "3", - "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:100,060|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:2": "u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u64:0|u64:100,060|u32:0|u32:0|u32:1|u16:0|u16:0", - "str:owner|u32:1": "address:acc1", "str:owner|u32:2": "address:acc2", - "str:nrOwnedKitties|address:acc1": "1", "str:nrOwnedKitties|address:acc2": "1" }, diff --git a/contracts/examples/crypto-kitties/kitty-ownership/mandos/give_birth.scen.json b/contracts/examples/crypto-kitties/kitty-ownership/mandos/give_birth.scen.json index ed50ce76b7..af31210030 100644 --- a/contracts/examples/crypto-kitties/kitty-ownership/mandos/give_birth.scen.json +++ b/contracts/examples/crypto-kitties/kitty-ownership/mandos/give_birth.scen.json @@ -28,7 +28,9 @@ "gasPrice": "0" }, "expect": { - "out": ["u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u8:127"], + "out": [ + "u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u8:127" + ], "message": "", "status": "0", "logs": "*", @@ -67,16 +69,13 @@ "str:kittyAuctionContractAddress": "sc:kitty_auction_contract", "str:birthFee": "10", "str:totalKitties": "4", - "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:100,060|u32:0|u32:0|u32:0|u16:1|u16:0", "str:kitty|u32:2": "u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u64:0|u64:100,060|u32:0|u32:0|u32:0|u16:1|u16:0", "str:kitty|u32:3": "u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u8:127|u64:150,000|u64:0|u32:2|u32:1|u32:0|u16:0|u16:1", - "str:owner|u32:1": "address:acc1", "str:owner|u32:2": "address:acc2", "str:owner|u32:3": "address:acc2", - "str:nrOwnedKitties|address:acc1": "1", "str:nrOwnedKitties|address:acc2": "2" }, diff --git a/contracts/examples/crypto-kitties/kitty-ownership/mandos/query.scen.json b/contracts/examples/crypto-kitties/kitty-ownership/mandos/query.scen.json index 7fc3bba072..6d84c7c2f1 100644 --- a/contracts/examples/crypto-kitties/kitty-ownership/mandos/query.scen.json +++ b/contracts/examples/crypto-kitties/kitty-ownership/mandos/query.scen.json @@ -19,7 +19,9 @@ "gasPrice": "0" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "message": "", "status": "0", "gas": "*", @@ -34,12 +36,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "balanceOf", - "arguments": ["address:acc1"], + "arguments": [ + "address:acc1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "message": "", "status": "0", "gas": "*", @@ -54,12 +60,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "ownerOf", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["address:acc2"], + "out": [ + "address:acc2" + ], "message": "", "status": "0", "gas": "*", @@ -74,12 +84,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "tokensOfOwner", - "arguments": ["address:acc1"], + "arguments": [ + "address:acc1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["u32:1"], + "out": [ + "u32:1" + ], "message": "", "status": "0", "gas": "*", @@ -94,12 +108,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "getKittyById", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0"], + "out": [ + "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0" + ], "message": "", "status": "0", "gas": "*", @@ -114,12 +132,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "isReadyToBreed", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["0x1"], + "out": [ + "0x1" + ], "message": "", "status": "0", "gas": "*", @@ -134,12 +156,16 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "isPregnant", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["0x"], + "out": [ + "0x" + ], "message": "", "status": "0", "gas": "*", @@ -154,12 +180,17 @@ "to": "sc:kitty_ownership_contract", "value": "0", "function": "canBreedWith", - "arguments": ["1", "2"], + "arguments": [ + "1", + "2" + ], "gasLimit": "100,000,000", "gasPrice": "0" }, "expect": { - "out": ["0x"], + "out": [ + "0x" + ], "message": "", "status": "0", "gas": "*", diff --git a/contracts/examples/crypto-kitties/kitty-ownership/mandos/setup_accounts.scen.json b/contracts/examples/crypto-kitties/kitty-ownership/mandos/setup_accounts.scen.json index 057ef0b959..3b71b0a9f4 100644 --- a/contracts/examples/crypto-kitties/kitty-ownership/mandos/setup_accounts.scen.json +++ b/contracts/examples/crypto-kitties/kitty-ownership/mandos/setup_accounts.scen.json @@ -40,14 +40,11 @@ "str:kittyAuctionContractAddress": "sc:kitty_auction_contract", "str:birthFee": "10", "str:totalKitties": "3", - "str:kitty|u32:0": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:1": "u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u8:0|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", "str:kitty|u32:2": "u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u8:255|u64:0|u64:0|u32:0|u32:0|u32:0|u16:0|u16:0", - "str:owner|u32:1": "address:acc1", "str:owner|u32:2": "address:acc2", - "str:nrOwnedKitties|address:acc1": "1", "str:nrOwnedKitties|address:acc2": "1" }, diff --git a/contracts/examples/erc1155-marketplace/mandos/auction_batch.scen.json b/contracts/examples/erc1155-marketplace/mandos/auction_batch.scen.json index 870d0e8c6c..f593cfca54 100644 --- a/contracts/examples/erc1155-marketplace/mandos/auction_batch.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/auction_batch.scen.json @@ -71,20 +71,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "3", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "2", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:3": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/auction_single_token_egld.scen.json b/contracts/examples/erc1155-marketplace/mandos/auction_single_token_egld.scen.json index ccc75284e1..3b559fdc11 100644 --- a/contracts/examples/erc1155-marketplace/mandos/auction_single_token_egld.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/auction_single_token_egld.scen.json @@ -71,21 +71,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "1", - - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/bid_first_egld.scen.json b/contracts/examples/erc1155-marketplace/mandos/bid_first_egld.scen.json index 468ae361d2..3a1ad45e02 100644 --- a/contracts/examples/erc1155-marketplace/mandos/bid_first_egld.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/bid_first_egld.scen.json @@ -67,20 +67,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/bid_second_egld.scen.json b/contracts/examples/erc1155-marketplace/mandos/bid_second_egld.scen.json index 0a2e5aa7d9..dbe37b89be 100644 --- a/contracts/examples/erc1155-marketplace/mandos/bid_second_egld.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/bid_second_egld.scen.json @@ -67,20 +67,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/bid_third_egld.scen.json b/contracts/examples/erc1155-marketplace/mandos/bid_third_egld.scen.json index f441482fb9..8921be8d53 100644 --- a/contracts/examples/erc1155-marketplace/mandos/bid_third_egld.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/bid_third_egld.scen.json @@ -67,20 +67,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "sc:marketplace_contract", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/end_auction.scen.json b/contracts/examples/erc1155-marketplace/mandos/end_auction.scen.json index aa4ab51df9..bcf4d31af1 100644 --- a/contracts/examples/erc1155-marketplace/mandos/end_auction.scen.json +++ b/contracts/examples/erc1155-marketplace/mandos/end_auction.scen.json @@ -68,25 +68,20 @@ "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:marketplace_contract|str:.mapped|biguint:1": "0", "str:balanceOf|address:user1|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:user1", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:marketplace_contract|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:marketplace_contract|str:.value|u32:1": "1", "str:balanceOf|sc:marketplace_contract|str:.node_id|biguint:1": "1", "str:balanceOf|sc:marketplace_contract|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", @@ -101,7 +96,6 @@ "str:tokenOwnershipContractAddress": "sc:ownership_contract", "str:percentageCut": "10", "str:claimableFunds|str:.mapped|nested:str:EGLD": "50", - "str:claimableFunds|str:.node_links|u32:1": "u32:0|u32:0", "str:claimableFunds|str:.value|u32:1": "str:EGLD", "str:claimableFunds|str:.node_id|nested:str:EGLD": "1", diff --git a/contracts/examples/erc1155-marketplace/mandos/setup_accounts.step.json b/contracts/examples/erc1155-marketplace/mandos/setup_accounts.step.json index 3894165e20..66189c6e72 100644 --- a/contracts/examples/erc1155-marketplace/mandos/setup_accounts.step.json +++ b/contracts/examples/erc1155-marketplace/mandos/setup_accounts.step.json @@ -38,15 +38,12 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "5", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/batch_transfer_both_types.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_both_types.scen.json index 9939a39213..f8a3712427 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_both_types.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_both_types.scen.json @@ -55,38 +55,29 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "600", "str:balanceOf|address:user1|str:.mapped|biguint:1": "400", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "2", "str:balanceOf|address:user1|str:.mapped|biguint:2": "1", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:2|biguint:1": "address:creator", "str:tokenOwner|biguint:2|biguint:2": "address:user1", "str:tokenOwner|biguint:2|biguint:3": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", - "str:balanceOf|address:user1|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:user1|str:.value|u32:2": "2", "str:balanceOf|address:user1|str:.node_id|biguint:2": "2", - "str:balanceOf|address:user1|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/batch_transfer_both_types_to_sc.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_both_types_to_sc.scen.json index 061fe24e23..fc4e78a5ff 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_both_types_to_sc.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_both_types_to_sc.scen.json @@ -72,38 +72,29 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "600", "str:balanceOf|sc:user_mock|str:.mapped|biguint:1": "400", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "2", "str:balanceOf|sc:user_mock|str:.mapped|biguint:2": "1", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:2|biguint:1": "address:creator", "str:tokenOwner|biguint:2|biguint:2": "sc:user_mock", "str:tokenOwner|biguint:2|biguint:3": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|sc:user_mock|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|sc:user_mock|str:.value|u32:1": "1", "str:balanceOf|sc:user_mock|str:.node_id|biguint:1": "1", - "str:balanceOf|sc:user_mock|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|sc:user_mock|str:.value|u32:2": "2", "str:balanceOf|sc:user_mock|str:.node_id|biguint:2": "2", - "str:balanceOf|sc:user_mock|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/batch_transfer_fungible.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_fungible.scen.json index 77ea4ed2f1..0200462d25 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_fungible.scen.json @@ -55,33 +55,25 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "600", "str:balanceOf|address:user1|str:.mapped|biguint:1": "400", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "true", "str:tokenTypeUri|biguint:2": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:2": "22", "str:balanceOf|address:user1|str:.mapped|biguint:2": "20", - "str:lastValidTypeId": "2", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", - "str:balanceOf|address:user1|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:user1|str:.value|u32:2": "2", "str:balanceOf|address:user1|str:.node_id|biguint:2": "2", - "str:balanceOf|address:user1|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/batch_transfer_fungible_to_sc.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_fungible_to_sc.scen.json index 60532946ee..d31ca266e9 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_fungible_to_sc.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_fungible_to_sc.scen.json @@ -72,33 +72,25 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "600", "str:balanceOf|sc:user_mock|str:.mapped|biguint:1": "400", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "true", "str:tokenTypeUri|biguint:2": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:2": "22", "str:balanceOf|sc:user_mock|str:.mapped|biguint:2": "20", - "str:lastValidTypeId": "2", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|sc:user_mock|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|sc:user_mock|str:.value|u32:1": "1", "str:balanceOf|sc:user_mock|str:.node_id|biguint:1": "1", - "str:balanceOf|sc:user_mock|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|sc:user_mock|str:.value|u32:2": "2", "str:balanceOf|sc:user_mock|str:.node_id|biguint:2": "2", - "str:balanceOf|sc:user_mock|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/batch_transfer_non_fungible.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_non_fungible.scen.json index 30a8381587..1a212263d3 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_non_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_non_fungible.scen.json @@ -56,44 +56,34 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "3", "str:balanceOf|address:user1|str:.mapped|biguint:1": "2", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "1", "str:balanceOf|address:user1|str:.mapped|biguint:2": "2", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:1|biguint:1": "address:user1", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:user1", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:tokenOwner|biguint:2|biguint:1": "address:user1", "str:tokenOwner|biguint:2|biguint:2": "address:creator", "str:tokenOwner|biguint:2|biguint:3": "address:user1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", - "str:balanceOf|address:user1|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:user1|str:.value|u32:2": "2", "str:balanceOf|address:user1|str:.node_id|biguint:2": "2", - "str:balanceOf|address:user1|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/batch_transfer_non_fungible_to_sc.scen.json b/contracts/examples/erc1155/mandos/batch_transfer_non_fungible_to_sc.scen.json index b11d55a83b..aedd52dd49 100644 --- a/contracts/examples/erc1155/mandos/batch_transfer_non_fungible_to_sc.scen.json +++ b/contracts/examples/erc1155/mandos/batch_transfer_non_fungible_to_sc.scen.json @@ -73,44 +73,34 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "3", "str:balanceOf|sc:user_mock|str:.mapped|biguint:1": "2", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "1", "str:balanceOf|sc:user_mock|str:.mapped|biguint:2": "2", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:1|biguint:1": "sc:user_mock", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "sc:user_mock", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:tokenOwner|biguint:2|biguint:1": "sc:user_mock", "str:tokenOwner|biguint:2|biguint:2": "address:creator", "str:tokenOwner|biguint:2|biguint:3": "sc:user_mock", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2", - "str:balanceOf|sc:user_mock|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|sc:user_mock|str:.value|u32:1": "1", "str:balanceOf|sc:user_mock|str:.node_id|biguint:1": "1", - "str:balanceOf|sc:user_mock|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|sc:user_mock|str:.value|u32:2": "2", "str:balanceOf|sc:user_mock|str:.node_id|biguint:2": "2", - "str:balanceOf|sc:user_mock|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/burn_fungible.scen.json b/contracts/examples/erc1155/mandos/burn_fungible.scen.json index 8188ed039a..394726c092 100644 --- a/contracts/examples/erc1155/mandos/burn_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/burn_fungible.scen.json @@ -51,9 +51,7 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "600", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/burn_non_fungible.scen.json b/contracts/examples/erc1155/mandos/burn_non_fungible.scen.json index 5bcb81137a..1a790145ab 100644 --- a/contracts/examples/erc1155/mandos/burn_non_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/burn_non_fungible.scen.json @@ -52,15 +52,12 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "5", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/create_one_fungible_one_non_fungible.scen.json b/contracts/examples/erc1155/mandos/create_one_fungible_one_non_fungible.scen.json index 4c268002e1..428b96e310 100644 --- a/contracts/examples/erc1155/mandos/create_one_fungible_one_non_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/create_one_fungible_one_non_fungible.scen.json @@ -23,7 +23,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "0", "message": "", "logs": [], @@ -52,27 +54,21 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "3", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:2|biguint:1": "address:creator", "str:tokenOwner|biguint:2|biguint:2": "address:creator", "str:tokenOwner|biguint:2|biguint:3": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/create_token_fungible.scen.json b/contracts/examples/erc1155/mandos/create_token_fungible.scen.json index 9fa50e4ca7..4d891c7e8b 100644 --- a/contracts/examples/erc1155/mandos/create_token_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/create_token_fungible.scen.json @@ -33,7 +33,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "0", "message": "", "logs": [], @@ -62,9 +64,7 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/create_token_non_fungible.scen.json b/contracts/examples/erc1155/mandos/create_token_non_fungible.scen.json index 88ff6e1eed..a3d64e16ce 100644 --- a/contracts/examples/erc1155/mandos/create_token_non_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/create_token_non_fungible.scen.json @@ -33,7 +33,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "0", "message": "", "logs": [], @@ -63,15 +65,12 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "5", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_different_creator.scen.json b/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_different_creator.scen.json index 235b694175..c8827759cf 100644 --- a/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_different_creator.scen.json +++ b/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_different_creator.scen.json @@ -33,7 +33,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "0", "message": "", "logs": [], @@ -67,19 +69,15 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:tokenTypeCreator|biguint:2": "address:second_creator", "str:isFungible|biguint:2": "true", "str:tokenTypeUri|biguint:2": "str:https://other-token-cdn-domain/{id}.json", "str:balanceOf|address:second_creator|str:.mapped|biguint:2": "42", - "str:lastValidTypeId": "2", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|address:second_creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:second_creator|str:.value|u32:1": "2", "str:balanceOf|address:second_creator|str:.node_id|biguint:2": "1", diff --git a/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_same_creator.scen.json b/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_same_creator.scen.json index 04f6ff30a5..d707ae97e7 100644 --- a/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_same_creator.scen.json +++ b/contracts/examples/erc1155/mandos/create_two_tokens_both_fungible_same_creator.scen.json @@ -23,7 +23,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "0", "message": "", "logs": [], @@ -52,22 +54,17 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "true", "str:tokenTypeUri|biguint:2": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:2": "42", - "str:lastValidTypeId": "2", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/create_two_tokens_both_non_fungible_same_creator.scen.json b/contracts/examples/erc1155/mandos/create_two_tokens_both_non_fungible_same_creator.scen.json index 79ca75c25d..875eca6fbf 100644 --- a/contracts/examples/erc1155/mandos/create_two_tokens_both_non_fungible_same_creator.scen.json +++ b/contracts/examples/erc1155/mandos/create_two_tokens_both_non_fungible_same_creator.scen.json @@ -23,7 +23,9 @@ "gasPrice": "0x00" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "0", "message": "", "logs": [], @@ -53,33 +55,26 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "5", - "str:tokenTypeCreator|biguint:2": "address:creator", "str:isFungible|biguint:2": "false", "str:tokenTypeUri|biguint:2": "str:https://second-token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:2": "3", "str:balanceOf|address:creator|str:.mapped|biguint:2": "3", - "str:lastValidTypeId": "2", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:creator", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:tokenOwner|biguint:2|biguint:1": "address:creator", "str:tokenOwner|biguint:2|biguint:2": "address:creator", "str:tokenOwner|biguint:2|biguint:3": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:2", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", - "str:balanceOf|address:creator|str:.node_links|u32:2": "u32:1|u32:0", "str:balanceOf|address:creator|str:.value|u32:2": "2", "str:balanceOf|address:creator|str:.node_id|biguint:2": "2", - "str:balanceOf|address:creator|str:.info": "u32:2|u32:1|u32:2|u32:2" }, "code": "file:../output/erc1155.wasm" diff --git a/contracts/examples/erc1155/mandos/mint_fungible.scen.json b/contracts/examples/erc1155/mandos/mint_fungible.scen.json index 9258b83e7d..3175aac6ca 100644 --- a/contracts/examples/erc1155/mandos/mint_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/mint_fungible.scen.json @@ -51,9 +51,7 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1500", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/mint_non_fungible.scen.json b/contracts/examples/erc1155/mandos/mint_non_fungible.scen.json index 7832df2bc3..2cc08bf05d 100644 --- a/contracts/examples/erc1155/mandos/mint_non_fungible.scen.json +++ b/contracts/examples/erc1155/mandos/mint_non_fungible.scen.json @@ -52,9 +52,7 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:lastValidTokenIdForType|biguint:1": "8", "str:balanceOf|address:creator|str:.mapped|biguint:1": "8", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:creator", @@ -63,7 +61,6 @@ "str:tokenOwner|biguint:1|biguint:6": "address:creator", "str:tokenOwner|biguint:1|biguint:7": "address:creator", "str:tokenOwner|biguint:1|biguint:8": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/mint_not_creator.scen.json b/contracts/examples/erc1155/mandos/mint_not_creator.scen.json index d7b9fb8499..fe61d348db 100644 --- a/contracts/examples/erc1155/mandos/mint_not_creator.scen.json +++ b/contracts/examples/erc1155/mandos/mint_not_creator.scen.json @@ -51,9 +51,7 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/transfer_fungible_not_enough_balance.scen.json b/contracts/examples/erc1155/mandos/transfer_fungible_not_enough_balance.scen.json index f13e54b290..c61c329003 100644 --- a/contracts/examples/erc1155/mandos/transfer_fungible_not_enough_balance.scen.json +++ b/contracts/examples/erc1155/mandos/transfer_fungible_not_enough_balance.scen.json @@ -54,9 +54,7 @@ "str:isFungible|biguint:1": "true", "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "1000", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", @@ -67,4 +65,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/erc1155/mandos/transfer_fungible_ok.scen.json b/contracts/examples/erc1155/mandos/transfer_fungible_ok.scen.json index d4a4ac4a4f..605206d868 100644 --- a/contracts/examples/erc1155/mandos/transfer_fungible_ok.scen.json +++ b/contracts/examples/erc1155/mandos/transfer_fungible_ok.scen.json @@ -55,14 +55,11 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "700", "str:balanceOf|address:user1|str:.mapped|biguint:1": "300", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/transfer_fungible_ok_to_sc.scen.json b/contracts/examples/erc1155/mandos/transfer_fungible_ok_to_sc.scen.json index 306c8187db..82884de307 100644 --- a/contracts/examples/erc1155/mandos/transfer_fungible_ok_to_sc.scen.json +++ b/contracts/examples/erc1155/mandos/transfer_fungible_ok_to_sc.scen.json @@ -72,14 +72,11 @@ "str:tokenTypeUri|biguint:1": "str:https://token-cdn-domain/{id}.json", "str:balanceOf|address:creator|str:.mapped|biguint:1": "700", "str:balanceOf|sc:user_mock|str:.mapped|biguint:1": "300", - "str:lastValidTypeId": "1", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:user_mock|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:user_mock|str:.value|u32:1": "1", "str:balanceOf|sc:user_mock|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/transfer_non_fungible_ok.scen.json b/contracts/examples/erc1155/mandos/transfer_non_fungible_ok.scen.json index 69edcaa28a..3a59cdc82e 100644 --- a/contracts/examples/erc1155/mandos/transfer_non_fungible_ok.scen.json +++ b/contracts/examples/erc1155/mandos/transfer_non_fungible_ok.scen.json @@ -56,20 +56,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|address:user1|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "address:user1", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|address:user1|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:user1|str:.value|u32:1": "1", "str:balanceOf|address:user1|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc1155/mandos/transfer_non_fungible_ok_to_sc.scen.json b/contracts/examples/erc1155/mandos/transfer_non_fungible_ok_to_sc.scen.json index 32aa5e8cac..9f972e63b9 100644 --- a/contracts/examples/erc1155/mandos/transfer_non_fungible_ok_to_sc.scen.json +++ b/contracts/examples/erc1155/mandos/transfer_non_fungible_ok_to_sc.scen.json @@ -73,20 +73,16 @@ "str:lastValidTokenIdForType|biguint:1": "5", "str:balanceOf|address:creator|str:.mapped|biguint:1": "4", "str:balanceOf|sc:user_mock|str:.mapped|biguint:1": "1", - "str:lastValidTypeId": "1", - "str:tokenOwner|biguint:1|biguint:1": "address:creator", "str:tokenOwner|biguint:1|biguint:2": "address:creator", "str:tokenOwner|biguint:1|biguint:3": "sc:user_mock", "str:tokenOwner|biguint:1|biguint:4": "address:creator", "str:tokenOwner|biguint:1|biguint:5": "address:creator", - "str:balanceOf|address:creator|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|address:creator|str:.value|u32:1": "1", "str:balanceOf|address:creator|str:.node_id|biguint:1": "1", "str:balanceOf|address:creator|str:.info": "u32:1|u32:1|u32:1|u32:1", - "str:balanceOf|sc:user_mock|str:.node_links|u32:1": "u32:0|u32:0", "str:balanceOf|sc:user_mock|str:.value|u32:1": "1", "str:balanceOf|sc:user_mock|str:.node_id|biguint:1": "1", diff --git a/contracts/examples/erc20/mandos/allowance_CallerCaller.scen.json b/contracts/examples/erc20/mandos/allowance_CallerCaller.scen.json index fc86ea5c24..7624031f80 100644 --- a/contracts/examples/erc20/mandos/allowance_CallerCaller.scen.json +++ b/contracts/examples/erc20/mandos/allowance_CallerCaller.scen.json @@ -38,7 +38,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/allowance_CallerOther.scen.json b/contracts/examples/erc20/mandos/allowance_CallerOther.scen.json index b0cef80e82..3c06cf41b8 100644 --- a/contracts/examples/erc20/mandos/allowance_CallerOther.scen.json +++ b/contracts/examples/erc20/mandos/allowance_CallerOther.scen.json @@ -38,7 +38,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/allowance_OtherCaller.scen.json b/contracts/examples/erc20/mandos/allowance_OtherCaller.scen.json index 7a6dd3383e..34ad3f26b5 100644 --- a/contracts/examples/erc20/mandos/allowance_OtherCaller.scen.json +++ b/contracts/examples/erc20/mandos/allowance_OtherCaller.scen.json @@ -38,7 +38,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/allowance_OtherEqOther.scen.json b/contracts/examples/erc20/mandos/allowance_OtherEqOther.scen.json index 96f675a411..81c1121071 100644 --- a/contracts/examples/erc20/mandos/allowance_OtherEqOther.scen.json +++ b/contracts/examples/erc20/mandos/allowance_OtherEqOther.scen.json @@ -38,7 +38,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/allowance_OtherNEqOther.scen.json b/contracts/examples/erc20/mandos/allowance_OtherNEqOther.scen.json index fd71b141df..5a22932a3b 100644 --- a/contracts/examples/erc20/mandos/allowance_OtherNEqOther.scen.json +++ b/contracts/examples/erc20/mandos/allowance_OtherNEqOther.scen.json @@ -38,7 +38,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/approve_SwitchCaller.scen.json b/contracts/examples/erc20/mandos/approve_SwitchCaller.scen.json index 5b618ff384..0b9ff3c538 100644 --- a/contracts/examples/erc20/mandos/approve_SwitchCaller.scen.json +++ b/contracts/examples/erc20/mandos/approve_SwitchCaller.scen.json @@ -44,7 +44,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/balanceOf_NonCaller.scen.json b/contracts/examples/erc20/mandos/balanceOf_NonCaller.scen.json index 415bc9141a..0932eae7d7 100644 --- a/contracts/examples/erc20/mandos/balanceOf_NonCaller.scen.json +++ b/contracts/examples/erc20/mandos/balanceOf_NonCaller.scen.json @@ -37,7 +37,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc20/mandos/totalSupply_Zero.scen.json b/contracts/examples/erc20/mandos/totalSupply_Zero.scen.json index 112391e618..bb691ed860 100644 --- a/contracts/examples/erc20/mandos/totalSupply_Zero.scen.json +++ b/contracts/examples/erc20/mandos/totalSupply_Zero.scen.json @@ -32,7 +32,9 @@ "gasPrice": "0x01" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/erc721/mandos/nft-approve-non-existent-token.scen.json b/contracts/examples/erc721/mandos/nft-approve-non-existent-token.scen.json index 6dcf7138ee..bb2fe52c97 100644 --- a/contracts/examples/erc721/mandos/nft-approve-non-existent-token.scen.json +++ b/contracts/examples/erc721/mandos/nft-approve-non-existent-token.scen.json @@ -39,7 +39,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-approve-non-owned-token.scen.json b/contracts/examples/erc721/mandos/nft-approve-non-owned-token.scen.json index 5cacec6e70..b7d32b5e68 100644 --- a/contracts/examples/erc721/mandos/nft-approve-non-owned-token.scen.json +++ b/contracts/examples/erc721/mandos/nft-approve-non-owned-token.scen.json @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-approve-ok.scen.json b/contracts/examples/erc721/mandos/nft-approve-ok.scen.json index f3d89613da..4ac39ce663 100644 --- a/contracts/examples/erc721/mandos/nft-approve-ok.scen.json +++ b/contracts/examples/erc721/mandos/nft-approve-ok.scen.json @@ -38,7 +38,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-init.scen.json b/contracts/examples/erc721/mandos/nft-init.scen.json index 297aa94bec..358d818092 100644 --- a/contracts/examples/erc721/mandos/nft-init.scen.json +++ b/contracts/examples/erc721/mandos/nft-init.scen.json @@ -2,7 +2,7 @@ "name": "deploy nft", "steps": [ { - "step" : "setState", + "step": "setState", "accounts": { "address:contract_owner": { "nonce": "0", @@ -49,7 +49,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-mint-more-tokens-caller-not-owner.scen.json b/contracts/examples/erc721/mandos/nft-mint-more-tokens-caller-not-owner.scen.json index 5ccc89bde0..fc1ea6ef6f 100644 --- a/contracts/examples/erc721/mandos/nft-mint-more-tokens-caller-not-owner.scen.json +++ b/contracts/examples/erc721/mandos/nft-mint-more-tokens-caller-not-owner.scen.json @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-acc1.scen.json b/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-acc1.scen.json index 28a40a5b22..ba7d1c035d 100644 --- a/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-acc1.scen.json +++ b/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-acc1.scen.json @@ -38,7 +38,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "5", "str:tokenCount|address:contract_owner": "3", "str:tokenCount|address:acc1": "2", diff --git a/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-owner.scen.json b/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-owner.scen.json index 672b69c0d8..f14def4d6c 100644 --- a/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-owner.scen.json +++ b/contracts/examples/erc721/mandos/nft-mint-more-tokens-receiver-owner.scen.json @@ -38,7 +38,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "5", "str:tokenCount|address:contract_owner": "5", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-revoke-non-approved.scen.json b/contracts/examples/erc721/mandos/nft-revoke-non-approved.scen.json index beea9780d5..f8322efb9d 100644 --- a/contracts/examples/erc721/mandos/nft-revoke-non-approved.scen.json +++ b/contracts/examples/erc721/mandos/nft-revoke-non-approved.scen.json @@ -37,7 +37,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-revoke-ok.scen.json b/contracts/examples/erc721/mandos/nft-revoke-ok.scen.json index f9d8384d4a..e7325602eb 100644 --- a/contracts/examples/erc721/mandos/nft-revoke-ok.scen.json +++ b/contracts/examples/erc721/mandos/nft-revoke-ok.scen.json @@ -37,7 +37,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-approved-token.scen.json b/contracts/examples/erc721/mandos/nft-transfer-approved-token.scen.json index d2b2e1b63c..c063fef8e7 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-approved-token.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-approved-token.scen.json @@ -53,7 +53,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "2", "str:tokenCount|address:acc2": "1", diff --git a/contracts/examples/erc721/mandos/nft-transfer-non-existent-token.scen.json b/contracts/examples/erc721/mandos/nft-transfer-non-existent-token.scen.json index 97170291ad..0dd4595cf6 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-non-existent-token.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-non-existent-token.scen.json @@ -39,7 +39,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-not-owned-not-approved-token.scen.json b/contracts/examples/erc721/mandos/nft-transfer-not-owned-not-approved-token.scen.json index cf9c425c4d..b241047206 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-not-owned-not-approved-token.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-not-owned-not-approved-token.scen.json @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-ok.scen.json b/contracts/examples/erc721/mandos/nft-transfer-ok.scen.json index 0bc435ccf8..9eefdff78f 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-ok.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-ok.scen.json @@ -38,7 +38,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "2", "str:tokenCount|address:acc1": "1", diff --git a/contracts/examples/erc721/mandos/nft-transfer-token-after-revoked.scen.json b/contracts/examples/erc721/mandos/nft-transfer-token-after-revoked.scen.json index 103d86074c..b776f3b79f 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-token-after-revoked.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-token-after-revoked.scen.json @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-caller.scen.json b/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-caller.scen.json index 57201d734f..5b30e757fa 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-caller.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-caller.scen.json @@ -9,7 +9,7 @@ "step": "setState", "accounts": { "address:acc1": { - "nonce" : "0", + "nonce": "0", "balance": "0", "storage": {} } @@ -46,7 +46,7 @@ "storage": {} }, "address:acc1": { - "nonce" : "1", + "nonce": "1", "balance": "0", "storage": {} }, @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-other.scen.json b/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-other.scen.json index 024833c871..f7f235416e 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-other.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-token-not-owner-no-approval-to-other.scen.json @@ -9,7 +9,7 @@ "step": "setState", "accounts": { "address:acc1": { - "nonce" : "0", + "nonce": "0", "balance": "0", "storage": {} } @@ -46,7 +46,7 @@ "storage": {} }, "address:acc1": { - "nonce" : "1", + "nonce": "1", "balance": "0", "storage": {} }, @@ -54,7 +54,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "3", "str:tokenOwner|u64:0": "address:contract_owner", diff --git a/contracts/examples/erc721/mandos/nft-transfer-token-ok.scen.json b/contracts/examples/erc721/mandos/nft-transfer-token-ok.scen.json index 4c798666cb..c23dd0ffcf 100644 --- a/contracts/examples/erc721/mandos/nft-transfer-token-ok.scen.json +++ b/contracts/examples/erc721/mandos/nft-transfer-token-ok.scen.json @@ -38,7 +38,6 @@ "nonce": "0", "balance": "0", "storage": { - "str:totalMinted": "3", "str:tokenCount|address:contract_owner": "2", "str:tokenCount|address:acc1": "1", diff --git a/contracts/examples/lottery-erc20/mandos/buy-ticket-second-lottery.scen.json b/contracts/examples/lottery-erc20/mandos/buy-ticket-second-lottery.scen.json index 6ba28507bf..3009235f63 100644 --- a/contracts/examples/lottery-erc20/mandos/buy-ticket-second-lottery.scen.json +++ b/contracts/examples/lottery-erc20/mandos/buy-ticket-second-lottery.scen.json @@ -71,11 +71,9 @@ "balance": "0", "storage": { "str:lotteryInfo|u32:12|str:lottery_name": "u32:1|u8:100|u32:2|u64:123,456|0xffffffff|u32:1|u8:100|u32:0|u32:0|u32:0|u32:0", - "str:lotteryInfo|u32:12|str:lottery_$$$$": "u32:2|u16:500|u32:4|u64:234,567|0xffffffff|u32:1|u8:100|u32:0|u32:1|u32:2|u16:500|u32:0", "str:ticketHolder|u32:12|str:lottery_$$$$|0x00000000": "address:acc1", "str:numberOfEntriesForUser|u32:12|str:lottery_$$$$|address:acc1": "1", - "str:erc20ContractAddress": "sc:erc20" }, "code": "file:../output/lottery-erc20.wasm" diff --git a/contracts/examples/lottery-erc20/mandos/determine-winner-early.scen.json b/contracts/examples/lottery-erc20/mandos/determine-winner-early.scen.json index d30e4e8be9..61b2e23b1d 100644 --- a/contracts/examples/lottery-erc20/mandos/determine-winner-early.scen.json +++ b/contracts/examples/lottery-erc20/mandos/determine-winner-early.scen.json @@ -28,7 +28,9 @@ }, "expect": { "status": "0", - "out": [ "1" ], + "out": [ + "1" + ], "gas": "*", "refund": "*" } diff --git a/contracts/examples/multisig/mandos/changeQuorum.scen.json b/contracts/examples/multisig/mandos/changeQuorum.scen.json index c4b92bd601..c75aa42dbd 100644 --- a/contracts/examples/multisig/mandos/changeQuorum.scen.json +++ b/contracts/examples/multisig/mandos/changeQuorum.scen.json @@ -24,7 +24,9 @@ "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "", "logs": [], "gas": "*", @@ -39,7 +41,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -85,7 +89,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/changeQuorum_tooBig.scen.json b/contracts/examples/multisig/mandos/changeQuorum_tooBig.scen.json index 3c39e59b4c..8604bba52f 100644 --- a/contracts/examples/multisig/mandos/changeQuorum_tooBig.scen.json +++ b/contracts/examples/multisig/mandos/changeQuorum_tooBig.scen.json @@ -24,7 +24,9 @@ "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "", "logs": [], "gas": "*", @@ -39,7 +41,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -59,7 +63,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/deployAdder_err.scen.json b/contracts/examples/multisig/mandos/deployAdder_err.scen.json index 723ff1a6de..2aa45871e9 100644 --- a/contracts/examples/multisig/mandos/deployAdder_err.scen.json +++ b/contracts/examples/multisig/mandos/deployAdder_err.scen.json @@ -37,7 +37,9 @@ "gasPrice": "0" }, "expect": { - "out": ["3"], + "out": [ + "3" + ], "status": "", "logs": [], "gas": "*", @@ -52,7 +54,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -72,7 +76,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -102,7 +108,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "70,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/deployAdder_then_call.scen.json b/contracts/examples/multisig/mandos/deployAdder_then_call.scen.json index f4c63c90df..17452533f2 100644 --- a/contracts/examples/multisig/mandos/deployAdder_then_call.scen.json +++ b/contracts/examples/multisig/mandos/deployAdder_then_call.scen.json @@ -37,7 +37,9 @@ "gasPrice": "0" }, "expect": { - "out": ["3"], + "out": [ + "3" + ], "status": "", "logs": [], "gas": "*", @@ -95,7 +97,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -115,7 +119,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -145,7 +151,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "90,000,000", "gasPrice": "0" }, @@ -191,7 +199,9 @@ "gasPrice": "0" }, "expect": { - "out": ["4"], + "out": [ + "4" + ], "status": "", "logs": [], "gas": "*", @@ -206,7 +216,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["4"], + "arguments": [ + "4" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -226,7 +238,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["4"], + "arguments": [ + "4" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -246,7 +260,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["4"], + "arguments": [ + "4" + ], "gasLimit": "70,000,000", "gasPrice": "0" }, @@ -267,12 +283,16 @@ "to": "sc:multisig", "value": "0", "function": "getActionData", - "arguments": ["4"], + "arguments": [ + "4" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "" ], + "out": [ + "" + ], "status": "", "logs": [], "gas": "*", @@ -288,12 +308,16 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["4"], + "arguments": [ + "4" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "" ], + "out": [ + "" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/examples/multisig/mandos/deployFactorial.scen.json b/contracts/examples/multisig/mandos/deployFactorial.scen.json index 77e98126f6..33192f4d8b 100644 --- a/contracts/examples/multisig/mandos/deployFactorial.scen.json +++ b/contracts/examples/multisig/mandos/deployFactorial.scen.json @@ -36,7 +36,9 @@ "gasPrice": "0" }, "expect": { - "out": ["3"], + "out": [ + "3" + ], "status": "", "logs": [], "gas": "*", @@ -91,7 +93,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -111,7 +115,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -141,12 +147,16 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "sc:factorial" ], + "out": [ + "sc:factorial" + ], "status": "", "logs": [], "gas": "*", @@ -180,7 +190,6 @@ "str:num_proposers": "1", "str:quorum": "2", "str:action_data.len": "3" - }, "code": "file:../output/multisig.wasm" }, diff --git a/contracts/examples/multisig/mandos/remove_everyone.scen.json b/contracts/examples/multisig/mandos/remove_everyone.scen.json index df6f2edf83..5b4224e255 100644 --- a/contracts/examples/multisig/mandos/remove_everyone.scen.json +++ b/contracts/examples/multisig/mandos/remove_everyone.scen.json @@ -42,7 +42,9 @@ "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "", "logs": [], "gas": "*", @@ -57,7 +59,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -77,7 +81,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/steps/add_bm.steps.json b/contracts/examples/multisig/mandos/steps/add_bm.steps.json index 7eb82bd9b8..a7b6ecc507 100644 --- a/contracts/examples/multisig/mandos/steps/add_bm.steps.json +++ b/contracts/examples/multisig/mandos/steps/add_bm.steps.json @@ -17,7 +17,9 @@ "gasPrice": "0" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "", "logs": [], "gas": "*", @@ -32,7 +34,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -54,7 +58,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -74,7 +80,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -96,12 +104,16 @@ "to": "sc:multisig", "value": "0", "function": "getActionValidSignerCount", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "1" ], + "out": [ + "1" + ], "status": "", "logs": [], "gas": "*", @@ -116,7 +128,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -137,7 +151,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -157,7 +173,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -179,7 +197,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSignerCount", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -201,7 +221,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["2"], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/steps/add_prop.steps.json b/contracts/examples/multisig/mandos/steps/add_prop.steps.json index 21746804ce..92bd38300c 100644 --- a/contracts/examples/multisig/mandos/steps/add_prop.steps.json +++ b/contracts/examples/multisig/mandos/steps/add_prop.steps.json @@ -17,7 +17,9 @@ "gasPrice": "0" }, "expect": { - "out": ["1"], + "out": [ + "1" + ], "status": "", "logs": [], "gas": "*", @@ -32,7 +34,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -55,7 +59,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -75,7 +81,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -97,7 +105,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -118,7 +128,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -138,7 +150,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSigners", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -160,7 +174,9 @@ "to": "sc:multisig", "value": "0", "function": "getActionSignerCount", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -182,7 +198,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/steps/rem_alice.steps.json b/contracts/examples/multisig/mandos/steps/rem_alice.steps.json index d90a0d2607..78c74cd853 100644 --- a/contracts/examples/multisig/mandos/steps/rem_alice.steps.json +++ b/contracts/examples/multisig/mandos/steps/rem_alice.steps.json @@ -17,7 +17,9 @@ "gasPrice": "0" }, "expect": { - "out": ["3"], + "out": [ + "3" + ], "status": "", "logs": [], "gas": "*", @@ -32,7 +34,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -52,7 +56,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -72,7 +78,9 @@ "to": "sc:multisig", "value": "0", "function": "performAction", - "arguments": ["3"], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/multisig/mandos/steps/sign_unsign_bad_action.steps.json b/contracts/examples/multisig/mandos/steps/sign_unsign_bad_action.steps.json index eb64dac2bb..6f4e3dfc60 100644 --- a/contracts/examples/multisig/mandos/steps/sign_unsign_bad_action.steps.json +++ b/contracts/examples/multisig/mandos/steps/sign_unsign_bad_action.steps.json @@ -9,7 +9,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -30,7 +32,9 @@ "to": "sc:multisig", "value": "0", "function": "unsign", - "arguments": ["1"], + "arguments": [ + "1" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -51,7 +55,9 @@ "to": "sc:multisig", "value": "0", "function": "sign", - "arguments": ["1000"], + "arguments": [ + "1000" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -72,7 +78,9 @@ "to": "sc:multisig", "value": "0", "function": "unsign", - "arguments": ["1000"], + "arguments": [ + "1000" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/examples/nft-minter/mandos/create_nft.scen.json b/contracts/examples/nft-minter/mandos/create_nft.scen.json index 0b3dca5cca..dfd1a166c2 100644 --- a/contracts/examples/nft-minter/mandos/create_nft.scen.json +++ b/contracts/examples/nft-minter/mandos/create_nft.scen.json @@ -29,7 +29,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "1", "1" ], + "out": [ + "1", + "1" + ], "status": "0", "message": "", "gas": "*", @@ -62,7 +65,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "2", "2" ], + "out": [ + "2", + "2" + ], "status": "0", "message": "", "gas": "*", @@ -113,7 +119,6 @@ "2-nonce": "u64:2", "3-amount": "biguint:500" } - }, "code": "file:../output/nft-minter.wasm", "owner": "address:owner" diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-after-pong.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-after-pong.scen.json index 8ddd7349b6..87dd1e8745 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-after-pong.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-after-pong.scen.json @@ -24,7 +24,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:completed" ], + "out": [ + "str:completed" + ], "status": "0", "message": "", "gas": "*", @@ -66,4 +68,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-1.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-1.scen.json index 8e4e7df587..44b18874e1 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-1.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-1.scen.json @@ -26,7 +26,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:interrupted" ], + "out": [ + "str:interrupted" + ], "status": "0", "message": "", "gas": "*", @@ -77,4 +79,4 @@ "path": "ping-pong-call-pong-all.steps.json" } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-2.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-2.scen.json index 94ff02f105..bb484f3075 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-2.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all-interrupted-2.scen.json @@ -26,7 +26,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:interrupted" ], + "out": [ + "str:interrupted" + ], "status": "0", "message": "", "gas": "*", @@ -85,7 +87,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:completed" ], + "out": [ + "str:completed" + ], "status": "0", "message": "", "gas": "*", @@ -135,4 +139,4 @@ "path": "ping-pong-call-pong-all.steps.json" } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.scen.json index 6bde1c6f59..58cbe3ccfb 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.scen.json @@ -17,4 +17,4 @@ "path": "ping-pong-call-pong-all.steps.json" } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.steps.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.steps.json index 17f91045c5..18081d8de5 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.steps.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-all.steps.json @@ -15,7 +15,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:completed" ], + "out": [ + "str:completed" + ], "status": "0", "message": "", "gas": "*", @@ -60,4 +62,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-before-deadline.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-before-deadline.scen.json index 18ce69f72c..961ccae2b5 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-before-deadline.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-before-deadline.scen.json @@ -65,4 +65,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-twice.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-twice.scen.json index f4a21ac375..4f5be57efd 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-twice.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-twice.scen.json @@ -59,4 +59,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-without-ping.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-without-ping.scen.json index 0a7cd723fb..788c05ab5e 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-without-ping.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong-without-ping.scen.json @@ -61,4 +61,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong.scen.json index 6faa596d62..d7e83a5f82 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-call-pong.scen.json @@ -65,4 +65,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/examples/ping-pong-egld/mandos/ping-pong-init.scen.json b/contracts/examples/ping-pong-egld/mandos/ping-pong-init.scen.json index 49a29304e6..6b4e7a235a 100644 --- a/contracts/examples/ping-pong-egld/mandos/ping-pong-init.scen.json +++ b/contracts/examples/ping-pong-egld/mandos/ping-pong-init.scen.json @@ -2,83 +2,83 @@ "name": "ping-pong deployment test", "gasSchedule": "v3", "steps": [ - { - "step": "setState", - "accounts": { - "address:my_address": { - "nonce": "0", - "balance": "1,000,000", - "storage": {} - }, - "address:participant1": { - "nonce": "0", - "balance": "1,800,000,000,000", - "storage": {} - }, - "address:participant2": { - "nonce": "0", - "balance": "2,500,000,000,000", - "storage": {} - } - }, - "newAddresses": [ - { - "creatorAddress": "address:my_address", - "creatorNonce": "0", - "newAddress": "sc:ping-pong" - } - ] - }, - { - "step": "scDeploy", - "txId": "deploy", - "tx": { - "from": "address:my_address", - "contractCode": "file:../output/ping-pong-egld.wasm", - "value": "0", - "arguments": [ - "500,000,000,000", - "123,000", - "1|u64:780" - ], - "gasLimit": "10,000,000", - "gasPrice": "0" + { + "step": "setState", + "accounts": { + "address:my_address": { + "nonce": "0", + "balance": "1,000,000", + "storage": {} + }, + "address:participant1": { + "nonce": "0", + "balance": "1,800,000,000,000", + "storage": {} + }, + "address:participant2": { + "nonce": "0", + "balance": "2,500,000,000,000", + "storage": {} + } + }, + "newAddresses": [ + { + "creatorAddress": "address:my_address", + "creatorNonce": "0", + "newAddress": "sc:ping-pong" + } + ] }, - "expect": { - "status": "0", - "gas": "*", - "refund": "*" - } - }, - { - "step": "checkState", - "accounts": { - "address:my_address": { - "nonce": "1", - "balance": "1,000,000", - "storage": {} - }, - "address:participant1": { - "nonce": "0", - "balance": "1,800,000,000,000", - "storage": {} - }, - "address:participant2": { - "nonce": "0", - "balance": "2,500,000,000,000", - "storage": {} - }, - "sc:ping-pong": { - "nonce": "0", - "balance": "0", - "storage": { - "str:pingAmount": "500,000,000,000", - "str:activationTimestamp": "780", - "str:deadline": "123,780" + { + "step": "scDeploy", + "txId": "deploy", + "tx": { + "from": "address:my_address", + "contractCode": "file:../output/ping-pong-egld.wasm", + "value": "0", + "arguments": [ + "500,000,000,000", + "123,000", + "1|u64:780" + ], + "gasLimit": "10,000,000", + "gasPrice": "0" }, - "code": "file:../output/ping-pong-egld.wasm" - } + "expect": { + "status": "0", + "gas": "*", + "refund": "*" + } + }, + { + "step": "checkState", + "accounts": { + "address:my_address": { + "nonce": "1", + "balance": "1,000,000", + "storage": {} + }, + "address:participant1": { + "nonce": "0", + "balance": "1,800,000,000,000", + "storage": {} + }, + "address:participant2": { + "nonce": "0", + "balance": "2,500,000,000,000", + "storage": {} + }, + "sc:ping-pong": { + "nonce": "0", + "balance": "0", + "storage": { + "str:pingAmount": "500,000,000,000", + "str:activationTimestamp": "780", + "str:deadline": "123,780" + }, + "code": "file:../output/ping-pong-egld.wasm" + } + } } - } ] } diff --git a/contracts/feature-tests/basic-features/mandos/big_int_to_i64.scen.json b/contracts/feature-tests/basic-features/mandos/big_int_to_i64.scen.json index 490cca4f6f..8f258c8731 100644 --- a/contracts/feature-tests/basic-features/mandos/big_int_to_i64.scen.json +++ b/contracts/feature-tests/basic-features/mandos/big_int_to_i64.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "0" ] + "out": [ + "0" + ] } }, { @@ -43,7 +45,9 @@ ] }, "expect": { - "out": [ "1" ] + "out": [ + "1" + ] } }, { @@ -57,7 +61,9 @@ ] }, "expect": { - "out": [ "-1" ] + "out": [ + "-1" + ] } }, { @@ -71,7 +77,9 @@ ] }, "expect": { - "out": [ "+0x7FFFFFFFFFFFFFFF" ] + "out": [ + "+0x7FFFFFFFFFFFFFFF" + ] } }, { @@ -100,10 +108,11 @@ ] }, "expect": { - "out": [ "-0x8000000000000000" ] + "out": [ + "-0x8000000000000000" + ] } }, - { "step": "scQuery", "comment": "too small", diff --git a/contracts/feature-tests/basic-features/mandos/big_num_conversions.scen.json b/contracts/feature-tests/basic-features/mandos/big_num_conversions.scen.json index 06ba648d92..0208a29f1d 100644 --- a/contracts/feature-tests/basic-features/mandos/big_num_conversions.scen.json +++ b/contracts/feature-tests/basic-features/mandos/big_num_conversions.scen.json @@ -29,7 +29,10 @@ ] }, "expect": { - "out": [ "+1", "1234" ] + "out": [ + "+1", + "1234" + ] } }, { @@ -43,7 +46,10 @@ ] }, "expect": { - "out": [ "0", "0" ] + "out": [ + "0", + "0" + ] } }, { @@ -57,7 +63,10 @@ ] }, "expect": { - "out": [ "-1", "1234" ] + "out": [ + "-1", + "1234" + ] } }, { @@ -67,11 +76,14 @@ "to": "sc:basic-features", "function": "big_int_from_biguint", "arguments": [ - "+1", "1234" + "+1", + "1234" ] }, "expect": { - "out": [ "1234" ] + "out": [ + "1234" + ] } }, { @@ -81,11 +93,14 @@ "to": "sc:basic-features", "function": "big_int_from_biguint", "arguments": [ - "0", "1234" + "0", + "1234" ] }, "expect": { - "out": [ "1234" ] + "out": [ + "1234" + ] } }, { @@ -95,12 +110,15 @@ "to": "sc:basic-features", "function": "big_int_from_biguint", "arguments": [ - "-1", "1234" + "-1", + "1234" ] }, "expect": { - "out": [ "-1234" ] + "out": [ + "-1234" + ] } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/basic-features/mandos/big_uint_sqrt.scen.json b/contracts/feature-tests/basic-features/mandos/big_uint_sqrt.scen.json index adc7bc8e3d..eda7392a3f 100644 --- a/contracts/feature-tests/basic-features/mandos/big_uint_sqrt.scen.json +++ b/contracts/feature-tests/basic-features/mandos/big_uint_sqrt.scen.json @@ -27,12 +27,16 @@ "to": "sc:basic-features", "value": "0", "function": "sqrt_big_uint", - "arguments": ["100"], + "arguments": [ + "100" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "10" ], + "out": [ + "10" + ], "status": "0", "logs": [], "gas": "*", @@ -40,4 +44,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/basic-features/mandos/big_uint_to_u64.scen.json b/contracts/feature-tests/basic-features/mandos/big_uint_to_u64.scen.json index bf56f19e5a..8a30017520 100644 --- a/contracts/feature-tests/basic-features/mandos/big_uint_to_u64.scen.json +++ b/contracts/feature-tests/basic-features/mandos/big_uint_to_u64.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "0" ] + "out": [ + "0" + ] } }, { @@ -43,7 +45,9 @@ ] }, "expect": { - "out": [ "1" ] + "out": [ + "1" + ] } }, { @@ -57,7 +61,9 @@ ] }, "expect": { - "out": [ "0x7FFFFFFFFFFFFFFF" ] + "out": [ + "0x7FFFFFFFFFFFFFFF" + ] } }, { diff --git a/contracts/feature-tests/basic-features/mandos/block_info.scen.json b/contracts/feature-tests/basic-features/mandos/block_info.scen.json index 0e27b1f2f7..bf11aedd6c 100644 --- a/contracts/feature-tests/basic-features/mandos/block_info.scen.json +++ b/contracts/feature-tests/basic-features/mandos/block_info.scen.json @@ -45,7 +45,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "506" ], + "out": [ + "506" + ], "status": "", "logs": [], "gas": "*", @@ -65,7 +67,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "521" ], + "out": [ + "521" + ], "status": "", "logs": [], "gas": "*", @@ -85,7 +89,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "532" ], + "out": [ + "532" + ], "status": "", "logs": [], "gas": "*", @@ -105,7 +111,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "544" ], + "out": [ + "544" + ], "status": "", "logs": [], "gas": "*", @@ -125,14 +133,15 @@ "gasPrice": "0" }, "expect": { - "out": [ "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ], + "out": [ + "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + ], "status": "", "logs": [], "gas": "*", "refund": "*" } }, - { "step": "scCall", "txId": "get_block_timestamp", @@ -146,7 +155,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "511" ], + "out": [ + "511" + ], "status": "", "logs": [], "gas": "*", @@ -166,7 +177,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "522" ], + "out": [ + "522" + ], "status": "", "logs": [], "gas": "*", @@ -186,7 +199,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "533" ], + "out": [ + "533" + ], "status": "", "logs": [], "gas": "*", @@ -206,7 +221,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "544" ], + "out": [ + "544" + ], "status": "", "logs": [], "gas": "*", @@ -227,7 +244,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0x123456000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007" ], + "out": [ + "0x123456000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/count_ones.scen.json b/contracts/feature-tests/basic-features/mandos/count_ones.scen.json index 3c10fdf1e2..a0151515de 100644 --- a/contracts/feature-tests/basic-features/mandos/count_ones.scen.json +++ b/contracts/feature-tests/basic-features/mandos/count_ones.scen.json @@ -35,7 +35,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "3" ], + "out": [ + "3" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/crypto_elliptic_curves.scen.json b/contracts/feature-tests/basic-features/mandos/crypto_elliptic_curves.scen.json index 617b873e83..5d5f36acef 100644 --- a/contracts/feature-tests/basic-features/mandos/crypto_elliptic_curves.scen.json +++ b/contracts/feature-tests/basic-features/mandos/crypto_elliptic_curves.scen.json @@ -1,5 +1,5 @@ { - "name" : "crypto - elliptic curves", + "name": "crypto - elliptic curves", "steps": [ { "step": "setState", @@ -26,7 +26,9 @@ "to": "sc:features_contract", "value": "0", "function": "compute_create_ec", - "arguments": ["str:p22424"], + "arguments": [ + "str:p22424" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -47,19 +49,21 @@ "to": "sc:features_contract", "value": "0", "function": "compute_create_ec", - "arguments": ["str:p224"], + "arguments": [ + "str:p224" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { "out": [ { - "field1" : "biguint:26959946667150639794667015087019630673557916260026308143510066298881", - "field2" : "biguint:26959946667150639794667015087019625940457807714424391721682722368061", - "field3" : "biguint:0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4", - "field4" : "biguint:0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21", - "field5" : "biguint:0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34", - "field6" : "u32:224" + "field1": "biguint:26959946667150639794667015087019630673557916260026308143510066298881", + "field2": "biguint:26959946667150639794667015087019625940457807714424391721682722368061", + "field3": "biguint:0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4", + "field4": "biguint:0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21", + "field5": "biguint:0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34", + "field6": "u32:224" } ], "status": "0", @@ -76,19 +80,21 @@ "to": "sc:features_contract", "value": "0", "function": "compute_create_ec", - "arguments": ["str:p256"], + "arguments": [ + "str:p256" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { "out": [ { - "field1" : "biguint:115792089210356248762697446949407573530086143415290314195533631308867097853951", - "field2" : "biguint:115792089210356248762697446949407573529996955224135760342422259061068512044369", - "field3" : "biguint:0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", - "field4" : "biguint:0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", - "field5" : "biguint:0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5", - "field6" : "u32:256" + "field1": "biguint:115792089210356248762697446949407573530086143415290314195533631308867097853951", + "field2": "biguint:115792089210356248762697446949407573529996955224135760342422259061068512044369", + "field3": "biguint:0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", + "field4": "biguint:0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", + "field5": "biguint:0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5", + "field6": "u32:256" } ], "status": "0", @@ -105,19 +111,21 @@ "to": "sc:features_contract", "value": "0", "function": "compute_create_ec", - "arguments": ["str:p384"], + "arguments": [ + "str:p384" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { "out": [ { - "field1" : "biguint:39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319", - "field2" : "biguint:39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643", - "field3" : "biguint:0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef", - "field4" : "biguint:0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7", - "field5" : "biguint:0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f", - "field6" : "u32:384" + "field1": "biguint:39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319", + "field2": "biguint:39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643", + "field3": "biguint:0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef", + "field4": "biguint:0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7", + "field5": "biguint:0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f", + "field6": "u32:384" } ], "status": "0", @@ -134,19 +142,21 @@ "to": "sc:features_contract", "value": "0", "function": "compute_create_ec", - "arguments": ["str:p521"], + "arguments": [ + "str:p521" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { "out": [ { - "field1" : "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151", - "field2" : "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449", - "field3" : "biguint:0x51953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00", - "field4" : "biguint:0xc6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66", - "field5" : "biguint:0x11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650", - "field6" : "u32:521" + "field1": "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151", + "field2": "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449", + "field3": "biguint:0x51953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00", + "field4": "biguint:0xc6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66", + "field5": "biguint:0x11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650", + "field6": "u32:521" } ], "status": "0", @@ -172,12 +182,12 @@ "expect": { "out": [ { - "field1" : "biguint:26959946667150639794667015087019630673557916260026308143510066298881", - "field2" : "biguint:26959946667150639794667015087019625940457807714424391721682722368061", - "field3" : "biguint:0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4", - "field4" : "biguint:0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21", - "field5" : "biguint:0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34", - "field6" : "u32:224" + "field1": "biguint:26959946667150639794667015087019630673557916260026308143510066298881", + "field2": "biguint:26959946667150639794667015087019625940457807714424391721682722368061", + "field3": "biguint:0xb4050a850c04b3abf54132565044b0b7d7bfd8ba270b39432355ffb4", + "field4": "biguint:0xb70e0cbd6bb4bf7f321390b94a03c1d356c21122343280d6115c1d21", + "field5": "biguint:0xbd376388b5f723fb4c22dfe6cd4375a05a07476444d5819985007e34", + "field6": "u32:224" } ], "status": "0", @@ -203,12 +213,12 @@ "expect": { "out": [ { - "field1" : "biguint:115792089210356248762697446949407573530086143415290314195533631308867097853951", - "field2" : "biguint:115792089210356248762697446949407573529996955224135760342422259061068512044369", - "field3" : "biguint:0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", - "field4" : "biguint:0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", - "field5" : "biguint:0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5", - "field6" : "u32:256" + "field1": "biguint:115792089210356248762697446949407573530086143415290314195533631308867097853951", + "field2": "biguint:115792089210356248762697446949407573529996955224135760342422259061068512044369", + "field3": "biguint:0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", + "field4": "biguint:0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", + "field5": "biguint:0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5", + "field6": "u32:256" } ], "status": "0", @@ -234,12 +244,12 @@ "expect": { "out": [ { - "field1" : "biguint:39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319", - "field2" : "biguint:39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643", - "field3" : "biguint:0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef", - "field4" : "biguint:0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7", - "field5" : "biguint:0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f", - "field6" : "u32:384" + "field1": "biguint:39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319", + "field2": "biguint:39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643", + "field3": "biguint:0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef", + "field4": "biguint:0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7", + "field5": "biguint:0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f", + "field6": "u32:384" } ], "status": "0", @@ -265,12 +275,12 @@ "expect": { "out": [ { - "field1" : "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151", - "field2" : "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449", - "field3" : "biguint:0x51953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00", - "field4" : "biguint:0xc6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66", - "field5" : "biguint:0x11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650", - "field6" : "u32:521" + "field1": "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151", + "field2": "biguint:6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449", + "field3": "biguint:0x51953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00", + "field4": "biguint:0xc6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66", + "field5": "biguint:0x11839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650", + "field6": "u32:521" } ], "status": "0", @@ -570,7 +580,7 @@ "expect": { "out": [], "status": "10", - "message" : "str:point is not on curve", + "message": "str:point is not on curve", "gas": "*", "refund": "*" } @@ -596,7 +606,7 @@ "expect": { "out": [], "status": "10", - "message" : "str:point is not on curve", + "message": "str:point is not on curve", "gas": "*", "refund": "*" } @@ -623,9 +633,9 @@ "out": [ "0x7cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc47669978", "0x7775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d1" - ], + ], "status": "0", - "message" : "*", + "message": "*", "gas": "*", "refund": "*" } @@ -649,7 +659,7 @@ "expect": { "out": [], "status": "10", - "message" : "str:point is not on curve", + "message": "str:point is not on curve", "gas": "*", "refund": "*" } @@ -676,7 +686,7 @@ "0xf4bb8cc7f86db26700a7f3eceeeed3f0b5c6b5107c4da97740ab21a29906c42dbbb3e377de9f251f6b93937fa99a3248f4eafcbe95edc0f4f71be356d661f41b02" ], "status": "0", - "message" : "*", + "message": "*", "gas": "*", "refund": "*" } @@ -698,7 +708,7 @@ "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -720,7 +730,9 @@ "gasPrice": "0" }, "expect": { - "out":["0x046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"], + "out": [ + "0x046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" + ], "status": "0", "message": "*" } @@ -742,7 +754,7 @@ "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -758,12 +770,12 @@ "arguments": [ "256", "0x0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ ], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -779,12 +791,12 @@ "arguments": [ "256", "0x04000000000000000000000000000000000000" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ ], + "out": [], "status": "10", "message": "str:length of buffer is not correct" } @@ -799,12 +811,13 @@ "function": "compute_unmarshal_ec", "arguments": [ "256", - "0x046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" ], + "0x046b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c2964fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", "0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" ], @@ -829,7 +842,7 @@ "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -851,7 +864,9 @@ "gasPrice": "0" }, "expect": { - "out":["0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"], + "out": [ + "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" + ], "status": "0", "message": "*" } @@ -873,7 +888,7 @@ "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -889,12 +904,12 @@ "arguments": [ "256", "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a1394000000000" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -910,12 +925,12 @@ "arguments": [ "256", "0x040000000000000000" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ ], + "out": [], "status": "10", "message": "str:length of buffer is not correct" } @@ -930,12 +945,13 @@ "function": "compute_unmarshal_compressed_ec", "arguments": [ "256", - "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" ], + "0x036b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", "0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" ], @@ -953,13 +969,15 @@ "function": "compute_generate_key_ec", "arguments": [ "224" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ - "*","*","*" + "out": [ + "*", + "*", + "*" ], "status": "0", "message": "*" @@ -975,13 +993,15 @@ "function": "compute_generate_key_ec", "arguments": [ "256" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ - "*","*","*" + "out": [ + "*", + "*", + "*" ], "status": "0", "message": "*" @@ -997,13 +1017,15 @@ "function": "compute_generate_key_ec", "arguments": [ "384" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ - "*","*","*" + "out": [ + "*", + "*", + "*" ], "status": "0", "message": "*" @@ -1019,13 +1041,15 @@ "function": "compute_generate_key_ec", "arguments": [ "521" - ], + ], "gasLimit": "70,000,000", "gasPrice": "0" }, "expect": { - "out":[ - "*","*","*" + "out": [ + "*", + "*", + "*" ], "status": "0", "message": "*" @@ -1042,12 +1066,12 @@ "arguments": [ "224", "112233445566778899112233445566778899" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0x29895f0af496bfc62b6ef8d8a65c88c613949b03668aab4f0429e35", "0x3ea6e53f9a841f2019ec24bde1a75677aa9b5902e61081c01064de93" ], @@ -1068,12 +1092,12 @@ "0x2a265f8bcbdcaf94d58519141e578124cb40d64a501fba9c11847b28965bc737", "0x023819813ac969847059028ea88a1f30dfbcde03fc791d3a252c6b41211882ea", "0xf93e4ae433cc12cf2a43fc0ef26400c0e125508224cdb649380f25479148a4ad" - ], + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out":[], + "out": [], "status": "10", "message": "str:point is not on curve" } @@ -1091,12 +1115,12 @@ "0x2507b2a1719f88dbe16518d8e719644b9fe2192f4b0e82c6dad005d2", "0xa2534b3825a715e632b2629f158b9d9135de3a523c78814e5eef25c5", "0xf93e4ae433cc12cf2a43fc0ef26400c0e125508224cdb649380f25479148a4ad" - ], + ], "gasLimit": "1,500,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0xa71786c1e0b23c0812fd3feb626edfae5174f739823dd802eab38827", "0x2ac7327527e4d1db0d8a610c09186fc5cad7806523ac3ae690c27229" ], @@ -1117,12 +1141,12 @@ "0x3b5fe724fd14ca9e214b77055d0ab712ded48e87551a49757acf776981f5389b", "0x60854c6483a8d2b82bf766e3c3bc8ff2f1c261a9b17f2e073a70177bc3781094", "0xf93e4ae433cc12cf2a43fc0ef26400c0e125508224cdb649380f25479148a4ad" - ], + ], "gasLimit": "1,500,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0xd49802d2e004b0e393949a5621a9c8bc88da546cd74e836d42967e37ee3d4dac", "0xfb4de9aa477321be0c2524e68f8a0d601c001c99d311ff899deed3a3016d86b" ], @@ -1143,12 +1167,12 @@ "0xf705dc15013b3c76e0dc7f06c425cc9c30d9a216b70c3ba7ab2c42da32bcd16767466f2d5febd7615e04cc225312f565", "0x953320d0d4e6dffe103f9d2a846fdf8c706d638f9101f04d1e00b2f51e050f7d35e49552fef6eac6c6e2868282636255", "0xf93e4ae433cc12cf2a43fc0ef26400c0e125508224cdb649380f25479148a4ad" - ], + ], "gasLimit": "1,500,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0x742bf14f0c2840dbdec06691f80dd7e291cc344cd49e5f5e036d9b5a398b4bf8be19ca7cfaf85da37e81cd34c4a2d886", "0xd1c93b3c7c0afa8a8b4172ed58feeb1583212f45fa9b82af51ab0f22932cfe2dfd48d8d520869c28d9cb1f072003761f" ], @@ -1169,12 +1193,12 @@ "0x5390bac258c83dda7bddd0b607353e77b8a1fe6d6b73ed65fcd2927f0febcf000897b8c29c5e7f30a490d6ae6de3a179ab69bcba2c0c1d1a236ca81de940735fe7", "0x1b6f67ea88bf7506ea8e8ba39005a074426bd96b20022f5e3d2d7855ce9ed8de0de8baf6e85f8a2ceedff2ebd716405fe9d9a00580938b3cbbee66bad3a0cb94ec3", "0xf93e4ae433cc12cf2a43fc0ef26400c0e125508224cdb649380f25479148a4ad" - ], + ], "gasLimit": "1,500,000,000", "gasPrice": "0" }, "expect": { - "out":[ + "out": [ "0x73e462389a122750193fe319737ce536e72a55c96baacea96e428b85fc71e9e3386051f0b03579218792c4325722d7c523baeb04959e2cbcd75a0c8249a59a3a48", "0x36b9f6cc3e03dc5726ac86540b15ecf165291b70ada97c17cc52aedc29d5782ca6a246faab599eb3244629eb3617395be738a9f45c7781dcd0bb915bb8a9206776" ], @@ -1183,4 +1207,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/basic-features/mandos/crypto_verify_funcs.scen.json b/contracts/feature-tests/basic-features/mandos/crypto_verify_funcs.scen.json index ecee23d406..8011c0dad2 100644 --- a/contracts/feature-tests/basic-features/mandos/crypto_verify_funcs.scen.json +++ b/contracts/feature-tests/basic-features/mandos/crypto_verify_funcs.scen.json @@ -37,7 +37,9 @@ "gasPrice": "0" }, "expect": { - "out": ["0x01"], + "out": [ + "0x01" + ], "status": "", "logs": [], "gas": "*", @@ -61,7 +63,9 @@ "gasPrice": "0" }, "expect": { - "out": ["0x01"], + "out": [ + "0x01" + ], "status": "", "logs": [], "gas": "*", @@ -85,7 +89,9 @@ "gasPrice": "0" }, "expect": { - "out": ["0x01"], + "out": [ + "0x01" + ], "status": "", "logs": [], "gas": "*", @@ -109,7 +115,9 @@ "gasPrice": "0" }, "expect": { - "out": ["0x01"], + "out": [ + "0x01" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/echo_big_int_top.scen.json b/contracts/feature-tests/basic-features/mandos/echo_big_int_top.scen.json index 034d036a03..704ccd7bec 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_big_int_top.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_big_int_top.scen.json @@ -226,7 +226,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "0", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/echo_i64.scen.json b/contracts/feature-tests/basic-features/mandos/echo_i64.scen.json index 1ef3728d94..82d0a76232 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_i64.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_i64.scen.json @@ -223,7 +223,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "0", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/echo_managed_bytes.scen.json b/contracts/feature-tests/basic-features/mandos/echo_managed_bytes.scen.json index 1670bc177a..0ac9a77fbf 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_managed_bytes.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_managed_bytes.scen.json @@ -47,7 +47,9 @@ ] }, "expect": { - "out": [ "true" ], + "out": [ + "true" + ], "status": "" } }, @@ -63,7 +65,9 @@ ] }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "" } } diff --git a/contracts/feature-tests/basic-features/mandos/echo_managed_vec.scen.json b/contracts/feature-tests/basic-features/mandos/echo_managed_vec.scen.json index e8fab4d0e7..a57b8f263e 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_managed_vec.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_managed_vec.scen.json @@ -29,10 +29,17 @@ "arguments": [ [ "u32:3", - ["u32:1", "u32:2", "u32:3"], + [ + "u32:1", + "u32:2", + "u32:3" + ], "u32:0", "u32:2", - ["u32:5", "u32:6"] + [ + "u32:5", + "u32:6" + ] ] ], "gasLimit": "50,000,000", @@ -42,10 +49,17 @@ "out": [ [ "u32:3", - ["u32:1", "u32:2", "u32:3"], + [ + "u32:1", + "u32:2", + "u32:3" + ], "u32:0", "u32:2", - ["u32:5", "u32:6"] + [ + "u32:5", + "u32:6" + ] ] ], "status": "", diff --git a/contracts/feature-tests/basic-features/mandos/echo_ser_ex_1.scen.json b/contracts/feature-tests/basic-features/mandos/echo_ser_ex_1.scen.json index 70471ecb1b..f4c24083c2 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_ser_ex_1.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_ser_ex_1.scen.json @@ -29,11 +29,17 @@ "arguments": [ { "0-int": "u16:0", - "1-seq": ["u32:3", "0x010203"], + "1-seq": [ + "u32:3", + "0x010203" + ], "2-another_byte": "u8:4", "3-uint_32": "u32:5", "4-uint_64": "u64:6", - "5-boxed_bytes": ["u32:4", "0x0708090a"] + "5-boxed_bytes": [ + "u32:4", + "0x0708090a" + ] } ], "gasLimit": "50,000,000", @@ -43,11 +49,17 @@ "out": [ { "0-int": "u16:0", - "1-seq": ["u32:3", "0x010203"], + "1-seq": [ + "u32:3", + "0x010203" + ], "2-another_byte": "u8:4", "3-uint_32": "u32:5", "4-uint_64": "u64:6", - "5-boxed_bytes": ["u32:4", "0x0708090a"] + "5-boxed_bytes": [ + "u32:4", + "0x0708090a" + ] } ], "status": "", @@ -69,9 +81,15 @@ { "3-uint_32": "u32:5", "4-uint_64": "u64:6", - "5-boxed_bytes": ["u32:4", "0x0708090a"], + "5-boxed_bytes": [ + "u32:4", + "0x0708090a" + ], "0-int": "u16:0", - "1-seq": ["u32:3", "0x010203"], + "1-seq": [ + "u32:3", + "0x010203" + ], "2-another_byte": "u8:4" } ], @@ -81,12 +99,17 @@ "expect": { "out": [ { - - "5-boxed_bytes": ["u32:4", "0x0708090a"], + "5-boxed_bytes": [ + "u32:4", + "0x0708090a" + ], "4-uint_64": "u64:6", "3-uint_32": "u32:5", "2-another_byte": "u8:4", - "1-seq": ["u32:3", "0x010203"], + "1-seq": [ + "u32:3", + "0x010203" + ], "0-int": "u16:0" } ], diff --git a/contracts/feature-tests/basic-features/mandos/echo_tuple_into_multiresult.scen.json b/contracts/feature-tests/basic-features/mandos/echo_tuple_into_multiresult.scen.json index b951763217..00e2066fad 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_tuple_into_multiresult.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_tuple_into_multiresult.scen.json @@ -72,4 +72,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/basic-features/mandos/echo_varags_tuples.scen.json b/contracts/feature-tests/basic-features/mandos/echo_varags_tuples.scen.json index 50ad0b9bd4..09bd96057a 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_varags_tuples.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_varags_tuples.scen.json @@ -62,8 +62,7 @@ "gasPrice": "0" }, "expect": { - "out": [ - ], + "out": [], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/echo_varargs_u32.scen.json b/contracts/feature-tests/basic-features/mandos/echo_varargs_u32.scen.json index 551389f632..e95ff529cc 100644 --- a/contracts/feature-tests/basic-features/mandos/echo_varargs_u32.scen.json +++ b/contracts/feature-tests/basic-features/mandos/echo_varargs_u32.scen.json @@ -70,6 +70,5 @@ "refund": "*" } } - ] } diff --git a/contracts/feature-tests/basic-features/mandos/events.scen.json b/contracts/feature-tests/basic-features/mandos/events.scen.json index 3db25f414b..fac49d6d1f 100644 --- a/contracts/feature-tests/basic-features/mandos/events.scen.json +++ b/contracts/feature-tests/basic-features/mandos/events.scen.json @@ -113,7 +113,6 @@ "biguint:1", "biguint:2" ] - } ], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/get_caller.scen.json b/contracts/feature-tests/basic-features/mandos/get_caller.scen.json index 8a52517fd1..3881f694b9 100644 --- a/contracts/feature-tests/basic-features/mandos/get_caller.scen.json +++ b/contracts/feature-tests/basic-features/mandos/get_caller.scen.json @@ -32,7 +32,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "address:an_account" ], + "out": [ + "address:an_account" + ], "status": "", "logs": [], "gas": "*", @@ -47,7 +49,9 @@ "function": "get_caller" }, "expect": { - "out": [ "sc:basic-features" ], + "out": [ + "sc:basic-features" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/get_cumulated_validator_rewards.scen.json b/contracts/feature-tests/basic-features/mandos/get_cumulated_validator_rewards.scen.json index 9805d5c4c4..56a78bfaab 100644 --- a/contracts/feature-tests/basic-features/mandos/get_cumulated_validator_rewards.scen.json +++ b/contracts/feature-tests/basic-features/mandos/get_cumulated_validator_rewards.scen.json @@ -32,7 +32,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", @@ -60,7 +62,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "100,000,000" ], + "out": [ + "100,000,000" + ], "status": "", "logs": [], "gas": "*", @@ -88,7 +92,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "100,000,300" ], + "out": [ + "100,000,300" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_1.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_1.scen.json index 1751eee2cf..906711bb49 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_1.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_1.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "str:abcdef" ] + "out": [ + "str:abcdef" + ] } }, { @@ -44,7 +46,9 @@ ] }, "expect": { - "out": [ "str:def" ] + "out": [ + "str:def" + ] } }, { @@ -59,7 +63,9 @@ ] }, "expect": { - "out": [ "str:abc" ] + "out": [ + "str:abc" + ] } }, { @@ -74,7 +80,9 @@ ] }, "expect": { - "out": [ "" ] + "out": [ + "" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_2.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_2.scen.json index 12360390cc..f71e33d68e 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_2.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_concat_2.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "str:abcdef" ] + "out": [ + "str:abcdef" + ] } }, { @@ -44,7 +46,9 @@ ] }, "expect": { - "out": [ "str:def" ] + "out": [ + "str:def" + ] } }, { @@ -59,7 +63,9 @@ ] }, "expect": { - "out": [ "str:abc" ] + "out": [ + "str:abc" + ] } }, { @@ -74,7 +80,9 @@ ] }, "expect": { - "out": [ "" ] + "out": [ + "" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_eq.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_eq.scen.json index ddcc8c38d8..e38187dd7e 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_eq.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_eq.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "true" ] + "out": [ + "true" + ] } }, { @@ -44,7 +46,9 @@ ] }, "expect": { - "out": [ "false" ] + "out": [ + "false" + ] } }, { @@ -59,7 +63,9 @@ ] }, "expect": { - "out": [ "true" ] + "out": [ + "true" + ] } }, { @@ -74,7 +80,9 @@ ] }, "expect": { - "out": [ "false" ] + "out": [ + "false" + ] } }, { @@ -89,7 +97,9 @@ ] }, "expect": { - "out": [ "false" ] + "out": [ + "false" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_overwrite.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_overwrite.scen.json index f6b9e0bd96..0a05e52d74 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_overwrite.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_overwrite.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "str:new" ] + "out": [ + "str:new" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_1.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_1.scen.json index f23a084fab..90c2b6c168 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_1.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_1.scen.json @@ -30,7 +30,9 @@ ] }, "expect": { - "out": [ "str:abc" ] + "out": [ + "str:abc" + ] } }, { @@ -46,7 +48,9 @@ ] }, "expect": { - "out": [ "str:def" ] + "out": [ + "str:def" + ] } }, { @@ -62,7 +66,7 @@ ] }, "expect": { - "out": [ ] + "out": [] } }, { @@ -78,7 +82,9 @@ ] }, "expect": { - "out": [ "" ] + "out": [ + "" + ] } }, { @@ -94,7 +100,7 @@ ] }, "expect": { - "out": [ ] + "out": [] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_2.scen.json b/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_2.scen.json index 9a76841c58..3ad5531c45 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_2.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_buffer_slice_2.scen.json @@ -30,7 +30,9 @@ ] }, "expect": { - "out": [ "str:abc" ] + "out": [ + "str:abc" + ] } }, { @@ -46,7 +48,9 @@ ] }, "expect": { - "out": [ "str:def" ] + "out": [ + "str:def" + ] } }, { @@ -62,7 +66,7 @@ ] }, "expect": { - "out": [ ] + "out": [] } }, { @@ -78,7 +82,9 @@ ] }, "expect": { - "out": [ "" ] + "out": [ + "" + ] } }, { @@ -94,7 +100,7 @@ ] }, "expect": { - "out": [ ] + "out": [] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_vec_address_push.scen.json b/contracts/feature-tests/basic-features/mandos/managed_vec_address_push.scen.json index 29f605ab5b..d8c41e0f6c 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_vec_address_push.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_vec_address_push.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "address:a1|address:a2" ] + "out": [ + "address:a1|address:a2" + ] } }, { @@ -44,7 +46,9 @@ ] }, "expect": { - "out": [ "address:a2" ] + "out": [ + "address:a2" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/managed_vec_biguint_push.scen.json b/contracts/feature-tests/basic-features/mandos/managed_vec_biguint_push.scen.json index e6a5ba59bb..35bac82191 100644 --- a/contracts/feature-tests/basic-features/mandos/managed_vec_biguint_push.scen.json +++ b/contracts/feature-tests/basic-features/mandos/managed_vec_biguint_push.scen.json @@ -29,7 +29,9 @@ ] }, "expect": { - "out": [ "biguint:1|biguint:2" ] + "out": [ + "biguint:1|biguint:2" + ] } }, { @@ -44,7 +46,9 @@ ] }, "expect": { - "out": [ "biguint:2" ] + "out": [ + "biguint:2" + ] } }, { @@ -59,7 +63,9 @@ ] }, "expect": { - "out": [ "biguint:1|biguint:0" ] + "out": [ + "biguint:1|biguint:0" + ] } }, { @@ -74,7 +80,9 @@ ] }, "expect": { - "out": [ "biguint:0" ] + "out": [ + "biguint:0" + ] } } ] diff --git a/contracts/feature-tests/basic-features/mandos/sc_properties.scen.json b/contracts/feature-tests/basic-features/mandos/sc_properties.scen.json index 15e751bbef..c792c2a477 100644 --- a/contracts/feature-tests/basic-features/mandos/sc_properties.scen.json +++ b/contracts/feature-tests/basic-features/mandos/sc_properties.scen.json @@ -38,7 +38,9 @@ ] }, "expect": { - "out": [ "false" ] + "out": [ + "false" + ] } }, { @@ -52,7 +54,9 @@ ] }, "expect": { - "out": [ "true" ] + "out": [ + "true" + ] } }, { @@ -64,7 +68,9 @@ "arguments": [] }, "expect": { - "out": [ "address:someone_else" ] + "out": [ + "address:someone_else" + ] } }, { @@ -93,7 +99,9 @@ ] }, "expect": { - "out": [ "true" ] + "out": [ + "true" + ] } }, { @@ -105,7 +113,9 @@ "arguments": [] }, "expect": { - "out": [ "address:an_account" ] + "out": [ + "address:an_account" + ] } }, { diff --git a/contracts/feature-tests/basic-features/mandos/storage_addr.scen.json b/contracts/feature-tests/basic-features/mandos/storage_addr.scen.json index b8f528ed85..a18d22cfdd 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_addr.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_addr.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:____________address_____________" ], + "out": [ + "str:____________address_____________" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_big_int.scen.json b/contracts/feature-tests/basic-features/mandos/storage_big_int.scen.json index f9c0f72539..d1bdcb043f 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_big_int.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_big_int.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_big_uint.scen.json b/contracts/feature-tests/basic-features/mandos/storage_big_uint.scen.json index cd2ab1da5a..759c822e2a 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_big_uint.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_big_uint.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_bool.scen.json b/contracts/feature-tests/basic-features/mandos/storage_bool.scen.json index ed0a66dc06..87f827df80 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_bool.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_bool.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "true" ], + "out": [ + "true" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_clear.scen.json b/contracts/feature-tests/basic-features/mandos/storage_clear.scen.json index 6a940bec0a..ca4c28fb34 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_clear.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_clear.scen.json @@ -34,7 +34,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "42" ], + "out": [ + "42" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_i64.scen.json b/contracts/feature-tests/basic-features/mandos/storage_i64.scen.json index 8feb7d12f3..d13a27685b 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_i64.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_i64.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_map1.scen.json b/contracts/feature-tests/basic-features/mandos/storage_map1.scen.json index 591a57e183..b681d8bf36 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_map1.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_map1.scen.json @@ -76,7 +76,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -140,7 +142,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_map2.scen.json b/contracts/feature-tests/basic-features/mandos/storage_map2.scen.json index 757a9541bf..fd58035027 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_map2.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_map2.scen.json @@ -78,7 +78,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -144,7 +146,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_map3.scen.json b/contracts/feature-tests/basic-features/mandos/storage_map3.scen.json index 646d608b30..8da9e58b53 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_map3.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_map3.scen.json @@ -76,7 +76,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "true" ], + "out": [ + "true" + ], "status": "", "logs": [], "gas": "*", @@ -140,7 +142,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_mapper_vec.scen.json b/contracts/feature-tests/basic-features/mandos/storage_mapper_vec.scen.json index 5c718b3769..31b2b59301 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_mapper_vec.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_mapper_vec.scen.json @@ -47,7 +47,9 @@ "to": "sc:basic-features", "value": "0", "function": "vec_mapper_push", - "arguments": [ "123" ], + "arguments": [ + "123" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -72,7 +74,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -87,7 +91,9 @@ "to": "sc:basic-features", "value": "0", "function": "vec_mapper_push", - "arguments": [ "111" ], + "arguments": [ + "111" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -112,7 +118,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "123", "111" ], + "out": [ + "123", + "111" + ], "status": "", "logs": [], "gas": "*", @@ -132,7 +141,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "2" ], + "out": [ + "2" + ], "status": "", "logs": [], "gas": "*", @@ -168,7 +179,9 @@ "to": "sc:basic-features", "value": "0", "function": "vec_mapper_get", - "arguments": [ "0" ], + "arguments": [ + "0" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -189,12 +202,16 @@ "to": "sc:basic-features", "value": "0", "function": "vec_mapper_get", - "arguments": [ "2" ], + "arguments": [ + "2" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, "expect": { - "out": [ "111" ], + "out": [ + "111" + ], "status": "", "logs": [], "gas": "*", @@ -209,7 +226,9 @@ "to": "sc:basic-features", "value": "0", "function": "vec_mapper_get", - "arguments": [ "3" ], + "arguments": [ + "3" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/contracts/feature-tests/basic-features/mandos/storage_opt_addr.scen.json b/contracts/feature-tests/basic-features/mandos/storage_opt_addr.scen.json index 4760abdc83..249dcac73f 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_opt_addr.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_opt_addr.scen.json @@ -9,7 +9,10 @@ "nonce": "0", "balance": "0", "storage": { - "str:opt_addr": ["1", "str:____________address_too_long____________"] + "str:opt_addr": [ + "1", + "str:____________address_too_long____________" + ] }, "code": "file:../output/basic-features.wasm" }, @@ -91,7 +94,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "str:____________address_____________" ], + "out": [ + "str:____________address_____________" + ], "status": "", "logs": [], "gas": "*", @@ -111,7 +116,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "", "logs": [], "gas": "*", @@ -126,8 +133,7 @@ "to": "sc:basic-features", "value": "0", "function": "store_opt_addr", - "arguments": [ - ], + "arguments": [], "gasLimit": "50,000,000", "gasPrice": "0" }, @@ -152,7 +158,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "true" ], + "out": [ + "true" + ], "status": "", "logs": [], "gas": "*", @@ -186,7 +194,7 @@ "gasPrice": "0" }, "expect": { - "out": [ ], + "out": [], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_u64.scen.json b/contracts/feature-tests/basic-features/mandos/storage_u64.scen.json index 9586adca36..24f2bb18d6 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_u64.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_u64.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_usize.scen.json b/contracts/feature-tests/basic-features/mandos/storage_usize.scen.json index 4b650c8d77..c2b604e099 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_usize.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_usize.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/basic-features/mandos/storage_vec_u8.scen.json b/contracts/feature-tests/basic-features/mandos/storage_vec_u8.scen.json index 9f133b447b..5cd09d4ea3 100644 --- a/contracts/feature-tests/basic-features/mandos/storage_vec_u8.scen.json +++ b/contracts/feature-tests/basic-features/mandos/storage_vec_u8.scen.json @@ -73,7 +73,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "123" ], + "out": [ + "123" + ], "status": "", "logs": [], "gas": "*", @@ -134,7 +136,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "0" ], + "out": [ + "0" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/composability/mandos/forw_raw_async_send_and_retrieve_multi_transfer_funds.scen.json b/contracts/feature-tests/composability/mandos/forw_raw_async_send_and_retrieve_multi_transfer_funds.scen.json index 74271751e1..ed4c8a8deb 100644 --- a/contracts/feature-tests/composability/mandos/forw_raw_async_send_and_retrieve_multi_transfer_funds.scen.json +++ b/contracts/feature-tests/composability/mandos/forw_raw_async_send_and_retrieve_multi_transfer_funds.scen.json @@ -70,7 +70,10 @@ "gasPrice": "0" }, "expect": { - "out": ["3", "4"], + "out": [ + "3", + "4" + ], "status": "0", "message": "", "gas": "*", @@ -129,7 +132,6 @@ "5-arg_2_second_nft_create_nonce": "u8:4" }, "str:callback_data.len": "1", - "str:callback_payments.item|u32:1": { "1-token_id": "nested:str:TEST-SFT", "2-nonce": "u64:3", diff --git a/contracts/feature-tests/composability/mandos/forw_raw_call_async_retrieve_multi_transfer.scen.json b/contracts/feature-tests/composability/mandos/forw_raw_call_async_retrieve_multi_transfer.scen.json index d5aed8d52b..a692a74836 100644 --- a/contracts/feature-tests/composability/mandos/forw_raw_call_async_retrieve_multi_transfer.scen.json +++ b/contracts/feature-tests/composability/mandos/forw_raw_call_async_retrieve_multi_transfer.scen.json @@ -102,7 +102,6 @@ "storage": { "str:callback_data.item|u32:1": "u32:0", "str:callback_data.len": "1", - "str:callback_payments.item|u32:1": { "1-token_id": "nested:str:TEST-SFT", "2-nonce": "u64:1", diff --git a/contracts/feature-tests/composability/mandos/forw_raw_sync_echo_caller.scen.json b/contracts/feature-tests/composability/mandos/forw_raw_sync_echo_caller.scen.json index 2eef8837ec..b3c930874c 100644 --- a/contracts/feature-tests/composability/mandos/forw_raw_sync_echo_caller.scen.json +++ b/contracts/feature-tests/composability/mandos/forw_raw_sync_echo_caller.scen.json @@ -54,7 +54,6 @@ "data": [ "nested:sc:forwarder" ] - } ], "gas": "*", diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_esdt.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_esdt.scen.json index d7637b34a4..f2d51b3f06 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_esdt.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_esdt.scen.json @@ -113,4 +113,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_nft.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_nft.scen.json index 7eb6f81c5a..229341464a 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_nft.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_async_retrieve_nft.scen.json @@ -119,4 +119,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_egld.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_egld.scen.json index 9463bc1754..46fca4632b 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_egld.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_egld.scen.json @@ -88,4 +88,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_esdt.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_esdt.scen.json index 3dbdb139fc..cf9c1f183d 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_esdt.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_esdt.scen.json @@ -112,4 +112,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_nft.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_nft.scen.json index cb5ef61d39..9c2e3e9fa9 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_nft.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_accept_then_read_nft.scen.json @@ -127,4 +127,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_egld.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_egld.scen.json index 55d0aeb333..ad5160cab3 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_egld.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_egld.scen.json @@ -85,4 +85,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_esdt.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_esdt.scen.json index 596e84fec9..831f2ddbfd 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_esdt.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_esdt.scen.json @@ -102,4 +102,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_nft.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_nft.scen.json index 595507bffa..5f9d5d2d07 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_nft.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_sync_retrieve_nft.scen.json @@ -108,4 +108,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld.scen.json index 7cef7e5ee6..3ff980afb7 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld.scen.json @@ -85,4 +85,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld_twice.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld_twice.scen.json index aad82686c0..fc0f9ff419 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld_twice.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_egld_twice.scen.json @@ -97,4 +97,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt.scen.json index 5dd3caf67e..1dc8da966f 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt.scen.json @@ -109,4 +109,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt_twice.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt_twice.scen.json index 7129e3dd21..0449b5d4fd 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt_twice.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_esdt_twice.scen.json @@ -132,4 +132,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_nft.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_nft.scen.json index b66f341a6b..f512dbb786 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_nft.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_nft.scen.json @@ -113,4 +113,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_return_values.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_return_values.scen.json index 9a722a56cb..b9f7931993 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_return_values.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_return_values.scen.json @@ -90,4 +90,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_sft_twice.scen.json b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_sft_twice.scen.json index 23b66afbbf..c1eba8b267 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_sft_twice.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_call_transf_exec_accept_sft_twice.scen.json @@ -133,4 +133,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_contract_change_owner.scen.json b/contracts/feature-tests/composability/mandos/forwarder_contract_change_owner.scen.json index bbcbc54cf6..64cbbae4f6 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_contract_change_owner.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_contract_change_owner.scen.json @@ -11,15 +11,13 @@ }, "sc:child": { "owner": "sc:forwarder", - "code":"file:../vault/output/vault.wasm" + "code": "file:../vault/output/vault.wasm" } } }, { "step": "setState", - "accounts": { - - } + "accounts": {} }, { "step": "scCall", @@ -37,7 +35,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "address:new_owner", "address:new_owner" ] + "out": [ + "address:new_owner", + "address:new_owner" + ] } }, { @@ -45,7 +46,7 @@ "accounts": { "sc:child": { "owner": "address:new_owner", - "code":"file:../vault/output/vault.wasm" + "code": "file:../vault/output/vault.wasm" }, "+": {} } diff --git a/contracts/feature-tests/composability/mandos/forwarder_contract_deploy.scen.json b/contracts/feature-tests/composability/mandos/forwarder_contract_deploy.scen.json index 64a3ac1c48..ab3f072486 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_contract_deploy.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_contract_deploy.scen.json @@ -181,4 +181,4 @@ } } ] -} \ No newline at end of file +} diff --git a/contracts/feature-tests/composability/mandos/forwarder_contract_upgrade.scen.json b/contracts/feature-tests/composability/mandos/forwarder_contract_upgrade.scen.json index 7829700f5d..ffe3643a7e 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_contract_upgrade.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_contract_upgrade.scen.json @@ -10,7 +10,7 @@ }, "sc:child": { "owner": "sc:forwarder", - "code":"file:../vault/output/vault.wasm" + "code": "file:../vault/output/vault.wasm" } } }, diff --git a/contracts/feature-tests/composability/mandos/forwarder_nft_create.scen.json b/contracts/feature-tests/composability/mandos/forwarder_nft_create.scen.json index 882452ee62..d6a163f4ac 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_nft_create.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_nft_create.scen.json @@ -55,7 +55,10 @@ "gasPrice": "0" }, "expect": { - "out": ["2", "2"], + "out": [ + "2", + "2" + ], "status": "0", "gas": "*", "refund": "*" diff --git a/contracts/feature-tests/composability/mandos/forwarder_nft_create_and_send.scen.json b/contracts/feature-tests/composability/mandos/forwarder_nft_create_and_send.scen.json index 6df7e22727..4a6530d17c 100644 --- a/contracts/feature-tests/composability/mandos/forwarder_nft_create_and_send.scen.json +++ b/contracts/feature-tests/composability/mandos/forwarder_nft_create_and_send.scen.json @@ -55,55 +55,57 @@ "gasPrice": "0" }, "expect": { - "out": ["2"], + "out": [ + "2" + ], "status": "0", "gas": "*", "refund": "*", "logs": [ { - "address": "sc:forwarder", - "endpoint": "str:ESDTNFTCreate", - "topics": [ - "str:NFT-0001", - "2", - "01", - "0x080112020001226c0802120f6e66742d6372656174652d6e616d651a200000000000000000666f727761726465725f5f5f5f5f5f5f5f5f5f5f5f5f5f5f2a206e66742d6372656174652d686173682d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d320e6e66742d6372656174652d7572693a03808080" - ], - "data": "" + "address": "sc:forwarder", + "endpoint": "str:ESDTNFTCreate", + "topics": [ + "str:NFT-0001", + "2", + "01", + "0x080112020001226c0802120f6e66742d6372656174652d6e616d651a200000000000000000666f727761726465725f5f5f5f5f5f5f5f5f5f5f5f5f5f5f2a206e66742d6372656174652d686173682d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d320e6e66742d6372656174652d7572693a03808080" + ], + "data": "" }, { - "address": "sc:forwarder", - "endpoint": "str:create_and_send", - "topics": [ - "str:create", - "str:NFT-0001", - "2", - "1" - ], - "data": "" + "address": "sc:forwarder", + "endpoint": "str:create_and_send", + "topics": [ + "str:create", + "str:NFT-0001", + "2", + "1" + ], + "data": "" }, { - "address": "sc:forwarder", - "endpoint": "str:ESDTNFTTransfer", - "topics": [ - "str:NFT-0001", - "2", - "01", - "address:a_user" - ], - "data": "" + "address": "sc:forwarder", + "endpoint": "str:ESDTNFTTransfer", + "topics": [ + "str:NFT-0001", + "2", + "01", + "address:a_user" + ], + "data": "" }, { - "address": "sc:forwarder", - "endpoint": "str:create_and_send", - "topics": [ - "str:send", - "address:a_user", - "str:NFT-0001", - "2", - "1" - ], - "data": "" + "address": "sc:forwarder", + "endpoint": "str:create_and_send", + "topics": [ + "str:send", + "address:a_user", + "str:NFT-0001", + "2", + "1" + ], + "data": "" } ] } diff --git a/contracts/feature-tests/payable-features/mandos/payable_any_1.scen.json b/contracts/feature-tests/payable-features/mandos/payable_any_1.scen.json index 23213ea6ae..3b70bb3f0f 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_any_1.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_any_1.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -80,7 +86,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_any_2.scen.json b/contracts/feature-tests/payable-features/mandos/payable_any_2.scen.json index 5e547f82ca..1a71db6b12 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_any_2.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_any_2.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -80,7 +86,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_any_3.scen.json b/contracts/feature-tests/payable-features/mandos/payable_any_3.scen.json index a83c7e312b..aa27c97923 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_any_3.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_any_3.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -80,7 +86,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_any_4.scen.json b/contracts/feature-tests/payable-features/mandos/payable_any_4.scen.json index b2f0387df3..6e31ec2d6b 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_any_4.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_any_4.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -80,7 +86,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_egld_1.scen.json b/contracts/feature-tests/payable-features/mandos/payable_egld_1.scen.json index 8ec9cc5c70..8a76f03de6 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_egld_1.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_egld_1.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_egld_2.scen.json b/contracts/feature-tests/payable-features/mandos/payable_egld_2.scen.json index 5636d9b4c7..1cba5e8212 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_egld_2.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_egld_2.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_egld_3.scen.json b/contracts/feature-tests/payable-features/mandos/payable_egld_3.scen.json index 2a5494443d..acae37d3de 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_egld_3.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_egld_3.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_egld_4.scen.json b/contracts/feature-tests/payable-features/mandos/payable_egld_4.scen.json index 54e8e41ec5..137ddf5ff7 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_egld_4.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_egld_4.scen.json @@ -36,7 +36,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "0", "str:EGLD" ], + "out": [ + "0", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", @@ -56,7 +59,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "5", "str:EGLD" ], + "out": [ + "5", + "str:EGLD" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_token_1.scen.json b/contracts/feature-tests/payable-features/mandos/payable_token_1.scen.json index 8c24f71ceb..e9edccf110 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_token_1.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_token_1.scen.json @@ -82,7 +82,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_token_2.scen.json b/contracts/feature-tests/payable-features/mandos/payable_token_2.scen.json index fbc31b2511..26ca6145da 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_token_2.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_token_2.scen.json @@ -82,7 +82,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_token_3.scen.json b/contracts/feature-tests/payable-features/mandos/payable_token_3.scen.json index b45b49180c..79566a72af 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_token_3.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_token_3.scen.json @@ -82,7 +82,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/payable-features/mandos/payable_token_4.scen.json b/contracts/feature-tests/payable-features/mandos/payable_token_4.scen.json index d0e71092d7..814a417d64 100644 --- a/contracts/feature-tests/payable-features/mandos/payable_token_4.scen.json +++ b/contracts/feature-tests/payable-features/mandos/payable_token_4.scen.json @@ -82,7 +82,10 @@ "gasPrice": "0" }, "expect": { - "out": [ "100", "str:PAYABLE-FEATURES-TOKEN" ], + "out": [ + "100", + "str:PAYABLE-FEATURES-TOKEN" + ], "status": "", "logs": [], "gas": "*", diff --git a/contracts/feature-tests/use-module/mandos/use_module_governance/cancel_defeated_proposal.scen.json b/contracts/feature-tests/use-module/mandos/use_module_governance/cancel_defeated_proposal.scen.json index bfa7c2254e..67fa24e805 100644 --- a/contracts/feature-tests/use-module/mandos/use_module_governance/cancel_defeated_proposal.scen.json +++ b/contracts/feature-tests/use-module/mandos/use_module_governance/cancel_defeated_proposal.scen.json @@ -19,7 +19,6 @@ "function": "propose", "arguments": [ "str:change-quorum", - "50,000,000", "sc:governance", "", @@ -162,14 +161,11 @@ "storage": { "str:governance:votes|u32:1|str:.mapped|address:user1": "500", "str:governance:downvotes|u32:1|str:.mapped|address:user2": "999", - "str:governance:proposalStartBlock|u32:1": "", "str:governance:totalVotes|u32:1": "", "str:governance:totalDownvotes|u32:1": "", "str:governance:proposals.item|u32:1": "", - "str:governance:quorum": "1500", - "+": {} }, "code": "*" diff --git a/contracts/feature-tests/use-module/mandos/use_module_governance/change_configuration.scen.json b/contracts/feature-tests/use-module/mandos/use_module_governance/change_configuration.scen.json index 2b09a2ee9c..6aad19247b 100644 --- a/contracts/feature-tests/use-module/mandos/use_module_governance/change_configuration.scen.json +++ b/contracts/feature-tests/use-module/mandos/use_module_governance/change_configuration.scen.json @@ -19,7 +19,6 @@ "function": "propose", "arguments": [ "str:change-quorum", - "50,000,000", "sc:governance", "", @@ -61,7 +60,6 @@ "str:governance:proposalStartBlock|u32:1": "10", "str:governance:votes|u32:1|str:.mapped|address:user1": "500", "str:governance:totalVotes|u32:1": "500", - "str:governance:proposals.item|u32:1": { "1-proposer": "address:user1", "2-actions_len": "u32:1", @@ -79,7 +77,6 @@ }, "4-description": "nested:str:change-quorum" }, - "+": {} }, "code": "*" @@ -171,7 +168,6 @@ "str:governance:votes|u32:1|str:.mapped|address:user1": "500", "str:governance:votes|u32:1|str:.mapped|address:user2": "999", "str:governance:totalVotes|u32:1": "1499", - "str:governance:proposals.item|u32:1": { "1-proposer": "address:user1", "2-actions_len": "u32:1", @@ -189,7 +185,6 @@ }, "4-description": "nested:str:change-quorum" }, - "+": {} }, "code": "*" @@ -493,14 +488,11 @@ "str:governance:votes|u32:1|str:.mapped|address:user1": "900", "str:governance:votes|u32:1|str:.mapped|address:user2": "999", "str:governance:downvotes|u32:1|str:.mapped|address:owner": "200", - "str:governance:proposalStartBlock|u32:1": "", "str:governance:totalVotes|u32:1": "", "str:governance:totalDownvotes|u32:1": "", "str:governance:proposals.item|u32:1": "", - "str:governance:quorum": "1000", - "+": {} }, "code": "*" diff --git a/contracts/feature-tests/use-module/mandos/use_module_governance/invalid_proposals.scen.json b/contracts/feature-tests/use-module/mandos/use_module_governance/invalid_proposals.scen.json index 4339ae7717..54e571ea2a 100644 --- a/contracts/feature-tests/use-module/mandos/use_module_governance/invalid_proposals.scen.json +++ b/contracts/feature-tests/use-module/mandos/use_module_governance/invalid_proposals.scen.json @@ -19,7 +19,6 @@ "function": "propose", "arguments": [ "str:try-propose-with-too-few-tokens", - "50,000,000", "sc:governance", "", @@ -77,7 +76,6 @@ "function": "propose", "arguments": [ "str:try-propose-with-too-few-tokens", - "50,000,000", "sc:governance", "", @@ -85,7 +83,6 @@ "0", "str:changeQuorum", "biguint:1000", - "50,000,000", "sc:governance", "", @@ -93,7 +90,6 @@ "0", "str:changeQuorum", "biguint:1000", - "50,000,000", "sc:governance", "", diff --git a/contracts/feature-tests/use-module/mandos/use_module_governance/withdraw_governance_tokens.scen.json b/contracts/feature-tests/use-module/mandos/use_module_governance/withdraw_governance_tokens.scen.json index 0af78626e6..3936d2a9db 100644 --- a/contracts/feature-tests/use-module/mandos/use_module_governance/withdraw_governance_tokens.scen.json +++ b/contracts/feature-tests/use-module/mandos/use_module_governance/withdraw_governance_tokens.scen.json @@ -108,14 +108,11 @@ "str:governance:votes|u32:1|str:.mapped|address:user1": "", "str:governance:votes|u32:1|str:.mapped|address:user2": "", "str:governance:downvotes|u32:1|str:.mapped|address:owner": "", - "str:governance:proposalStartBlock|u32:1": "", "str:governance:totalVotes|u32:1": "", "str:governance:totalDownvotes|u32:1": "", "str:governance:proposals.item|u32:1": "", - "str:governance:quorum": "1000", - "+": {} }, "code": "*" diff --git a/contracts/feature-tests/use-module/mandos/use_module_pause.scen.json b/contracts/feature-tests/use-module/mandos/use_module_pause.scen.json index a4faff6f15..5143434eab 100644 --- a/contracts/feature-tests/use-module/mandos/use_module_pause.scen.json +++ b/contracts/feature-tests/use-module/mandos/use_module_pause.scen.json @@ -51,7 +51,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "", "logs": [], "gas": "*", @@ -91,7 +93,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "true" ], + "out": [ + "true" + ], "status": "", "logs": [], "gas": "*", @@ -131,7 +135,9 @@ "gasPrice": "0" }, "expect": { - "out": [ "false" ], + "out": [ + "false" + ], "status": "", "logs": [], "gas": "*", diff --git a/elrond-wasm-debug/tests/mandos/builtin-func-esdt-transfer.scen.json b/elrond-wasm-debug/tests/mandos/builtin-func-esdt-transfer.scen.json index 003db67692..3d5e339507 100644 --- a/elrond-wasm-debug/tests/mandos/builtin-func-esdt-transfer.scen.json +++ b/elrond-wasm-debug/tests/mandos/builtin-func-esdt-transfer.scen.json @@ -25,7 +25,9 @@ "from": "address:A", "to": "address:B", "function": "ESDTTransfer", - "arguments": [ "100" ], + "arguments": [ + "100" + ], "gasLimit": "50,000,000", "gasPrice": "0" }, diff --git a/mandos-fmt.sh b/mandos-fmt.sh new file mode 100755 index 0000000000..b0d53e309c --- /dev/null +++ b/mandos-fmt.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +## Prerequisites: `sudo npm install -g json-fmt` + +MANDOS_SCEN_FILES=$(find . -name "*.scen.json") +MANDOS_STEP_FILES=$(find . -name "*.step.json") +MANDOS_STEPS_FILES=$(find . -name "*.steps.json") +MANDOS_ALL_FILES="$MANDOS_SCEN_FILES $MANDOS_STEP_FILES $MANDOS_STEPS_FILES" + +TEMP_FILE=mandos-fmt-temp.scen.json +for MANDOS_FILE in $MANDOS_ALL_FILES +do + echo $MANDOS_FILE + json-fmt $MANDOS_FILE --indent " " --prettify --output $TEMP_FILE || exit 1 + echo >> $TEMP_FILE # adds missing newline + mv $TEMP_FILE $MANDOS_FILE +done