github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/test/testdata/wallet_tests/wt_retire_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": 30000000000, "asset": "BTM"} 27 ], 28 "outputs": [ 29 {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"}, 30 {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"}, 31 {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"}, 32 {"type": "output", "name": "alice", "amount": 5000000000, "asset": "BTM"}, 33 {"type": "output", "name": "alice", "amount": 5000000000, "asset": "BTM"}, 34 {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"}, 35 {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"} 36 ] 37 } 38 ], 39 "post_states": [ 40 {"name": "alice", "asset": "BTM", "amount": 25250000000}, 41 {"name": "bob", "asset": "BTM", "amount": 15000000000} 42 ] 43 }, 44 { 45 "coinbase_account": "none", 46 "transactions": [ 47 { 48 "passwords": ["alice"], 49 "inputs": [ 50 {"type": "spend_account", "name": "alice", "amount": 1000000000, "asset": "BTM"}, 51 {"type": "issue", "name": "alice", "amount": 100, "asset": "GOLD"} 52 ], 53 "outputs": [ 54 {"type": "output", "name": "alice", "amount": 100, "asset": "GOLD"} 55 ] 56 } 57 ], 58 "post_states": [ 59 {"name": "alice", "asset": "BTM", "amount": 24250000000}, 60 {"name": "alice", "asset": "GOLD", "amount": 100}, 61 {"name": "bob", "asset": "BTM", "amount": 15000000000} 62 ] 63 }, 64 { 65 "coinbase_account": "none", 66 "transactions": [ 67 { 68 "passwords": ["bob"], 69 "inputs": [ 70 {"type": "spend_account", "name": "bob", "amount": 5000000000, "asset": "BTM"} 71 ], 72 "outputs": [ 73 {"type": "output", "name": "alice", "amount": 1000000000, "asset": "BTM"}, 74 {"type": "output", "name": "bob", "amount": 3000000000, "asset": "BTM"} 75 ] 76 }, 77 { 78 "passwords": ["alice", "bob"], 79 "inputs": [ 80 {"type": "spend_account", "name": "bob", "amount": 2000000000, "asset": "BTM"}, 81 {"type": "spend_account", "name": "alice", "amount": 50, "asset": "GOLD"} 82 ], 83 "outputs": [ 84 {"type": "output", "name": "bob", "amount": 50, "asset": "GOLD"}, 85 {"type": "output", "name": "alice", "amount": 1000000000, "asset": "BTM"} 86 ] 87 } 88 ], 89 "post_states": [ 90 {"name": "alice", "asset": "BTM", "amount": 26250000000}, 91 {"name": "alice", "asset": "GOLD", "amount": 50}, 92 {"name": "bob", "asset": "BTM", "amount": 11000000000}, 93 {"name": "bob", "asset": "GOLD", "amount": 50} 94 ] 95 }, 96 { 97 "coinbase_account": "none", 98 "transactions": [ 99 { 100 "passwords": ["alice"], 101 "inputs": [ 102 {"type": "spend_account", "name": "alice", "amount": 1000000000, "asset": "BTM"}, 103 {"type": "spend_account", "name": "alice", "amount": 20, "asset": "GOLD"} 104 ], 105 "outputs": [ 106 {"type": "retire", "name": "alice", "amount": 20, "asset": "GOLD"} 107 ] 108 } 109 ], 110 "post_states": [ 111 {"name": "alice", "asset": "BTM", "amount": 25250000000}, 112 {"name": "alice", "asset": "GOLD", "amount": 30}, 113 {"name": "bob", "asset": "BTM", "amount": 11000000000}, 114 {"name": "bob", "asset": "GOLD", "amount": 50} 115 ] 116 } 117 ] 118 }