github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/test/testdata/wallet_tests/wt_asset.json (about) 1 { 2 "keys": [ 3 {"name": "alice", "password": "alice"}, 4 {"name": "bob", "password": "bob"}, 5 {"name": "none", "password": "none"} 6 ], 7 "accounts": [ 8 {"name": "alice", "keys": ["alice"], "quorum": 1}, 9 {"name": "bob", "keys": ["bob"], "quorum": 1}, 10 {"name": "none", "keys": ["none"], "quorum": 1} 11 ], 12 "blocks": [ 13 { 14 "coinbase_account": "alice", 15 "post_states": [ 16 {"name": "alice", "asset": "BTM", "amount": 41250000000} 17 ], 18 "append": 100 19 }, 20 { 21 "coinbase_account": "none", 22 "transactions": [ 23 { 24 "passwords": ["alice"], 25 "inputs": [ 26 {"type": "spend_account", "name": "alice", "amount": 6000000000, "asset": "BTM"} 27 ], 28 "outputs": [ 29 {"type": "output", "name": "bob", "amount": 500000000, "asset": "BTM"}, 30 {"type": "output", "name": "bob", "amount": 500000000, "asset": "BTM"}, 31 {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"}, 32 {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"} 33 ] 34 } 35 ], 36 "post_states": [ 37 {"name": "alice", "asset": "BTM", "amount": 39250000000}, 38 {"name": "bob", "asset": "BTM", "amount": 1000000000} 39 ] 40 }, 41 { 42 "coinbase_account": "none", 43 "transactions": [ 44 { 45 "passwords": ["alice"], 46 "inputs": [ 47 {"type": "spend_account", "name": "alice", "amount": 1000000000, "asset": "BTM"}, 48 {"type": "issue", "name": "alice", "amount": 100, "asset": "GOLD"} 49 ], 50 "outputs": [ 51 {"type": "output", "name": "alice", "amount": 100, "asset": "GOLD"} 52 ] 53 } 54 ], 55 "post_states": [ 56 {"name": "alice", "asset": "BTM", "amount": 38250000000}, 57 {"name": "alice", "asset": "GOLD", "amount": 100}, 58 {"name": "bob", "asset": "BTM", "amount": 1000000000} 59 ] 60 }, 61 { 62 "coinbase_account": "none", 63 "transactions": [ 64 { 65 "passwords": ["bob"], 66 "inputs": [ 67 {"type": "spend_account", "name": "bob", "amount": 400000000, "asset": "BTM"} 68 ], 69 "outputs": [ 70 {"type": "output", "name": "alice", "amount": 100000000, "asset": "BTM"}, 71 {"type": "output", "name": "bob", "amount": 200000000, "asset": "BTM"} 72 ] 73 }, 74 { 75 "passwords": ["alice", "bob"], 76 "inputs": [ 77 {"type": "spend_account", "name": "bob", "amount": 200000000, "asset": "BTM"}, 78 {"type": "spend_account", "name": "alice", "amount": 50, "asset": "GOLD"} 79 ], 80 "outputs": [ 81 {"type": "output", "name": "bob", "amount": 50, "asset": "GOLD"}, 82 {"type": "output", "name": "alice", "amount": 100000000, "asset": "BTM"} 83 ] 84 } 85 ], 86 "post_states": [ 87 {"name": "alice", "asset": "BTM", "amount": 38450000000}, 88 {"name": "alice", "asset": "GOLD", "amount": 50}, 89 {"name": "bob", "asset": "BTM", "amount": 600000000}, 90 {"name": "bob", "asset": "GOLD", "amount": 50} 91 ] 92 } 93 ] 94 }