github.com/bytom/bytom@v1.1.2-0.20221014091027-bbcba3df6075/test/testdata/wallet_tests/wt_rollback.json (about)

     1  {
     2    "rollback": 102,
     3    "keys": [
     4      {"name": "alice", "password": "alice"},
     5      {"name": "bob", "password": "bob"},
     6      {"name": "none", "password": "none"}
     7    ],
     8    "accounts": [
     9      {"name": "alice", "keys": ["alice"], "quorum": 1},
    10      {"name": "bob", "keys": ["bob"], "quorum": 1},
    11      {"name": "multi-sig", "keys": ["alice", "bob"], "quorum": 2},
    12      {"name": "none", "keys": ["none"], "quorum": 1}
    13    ],
    14    "blocks": [
    15      {
    16        "coinbase_account": "alice",
    17        "post_states": [
    18          {"name": "alice", "asset": "BTM", "amount": 41250000000}
    19        ],
    20        "append": 100
    21      },
    22      {
    23        "coinbase_account": "none",
    24        "transactions": [
    25          {
    26            "passwords": ["alice"],
    27            "inputs": [
    28              {"type": "spend_account", "name": "alice", "amount": 40000000000, "asset": "BTM"}
    29            ],
    30            "outputs": [
    31              {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"},
    32              {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"},
    33              {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"},
    34              {"type": "output", "name": "alice", "amount": 5000000000, "asset": "BTM"},
    35              {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"},
    36              {"type": "output", "name": "alice", "amount": 2000000000, "asset": "BTM"},
    37              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"},
    38              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"},
    39              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"}
    40            ]
    41          }
    42        ],
    43        "post_states": [
    44          {"name": "alice", "asset": "BTM", "amount": 10250000000},
    45          {"name": "bob", "asset": "BTM", "amount": 15000000000},
    46          {"name": "multi-sig", "asset": "BTM", "amount": 15000000000}
    47        ]
    48      },
    49      {
    50        "coinbase_account": "none",
    51        "transactions": [
    52          {
    53            "passwords": ["bob", "alice"],
    54            "inputs": [
    55              {"type": "spend_account", "name": "multi-sig", "amount": 1000000000, "asset": "BTM"},
    56              {"type": "issue", "name": "multi-sig", "amount": 100, "asset": "GOLD"}
    57            ],
    58            "outputs": [
    59              {"type": "output", "name": "multi-sig", "amount": 100, "asset": "GOLD"}
    60            ]
    61          }
    62        ],
    63        "post_states": [
    64          {"name": "alice", "asset": "BTM", "amount": 10250000000},
    65          {"name": "multi-sig", "asset": "GOLD", "amount": 100},
    66          {"name": "multi-sig", "asset": "BTM", "amount": 14000000000},
    67          {"name": "bob", "asset": "BTM", "amount": 15000000000}
    68        ]
    69      },
    70      {
    71        "coinbase_account": "none",
    72        "transactions": [
    73          {
    74            "passwords": ["alice", "bob"],
    75            "inputs": [
    76              {"type": "spend_account", "name": "multi-sig", "amount": 1000000000, "asset": "BTM"},
    77              {"type": "spend_account", "name": "multi-sig", "amount": 40, "asset": "GOLD"},
    78              {"type": "spend_account", "name": "bob", "amount": 10000000000, "asset": "BTM"},
    79              {"type": "spend_account", "name": "alice", "amount": 10000000000, "asset": "BTM"}
    80            ],
    81            "outputs": [
    82              {"type": "output", "name": "alice", "amount": 20, "asset": "GOLD"},
    83              {"type": "output", "name": "bob", "amount": 20, "asset": "GOLD"},
    84              {"type": "output", "name": "multi-sig", "amount": 20000000000, "asset": "BTM"}
    85            ]
    86          }
    87        ],
    88        "post_states": [
    89          {"name": "multi-sig", "asset": "BTM", "amount": 33000000000},
    90          {"name": "multi-sig", "asset": "GOLD", "amount": 60},
    91          {"name": "alice", "asset": "BTM", "amount": 250000000},
    92          {"name": "alice", "asset": "GOLD", "amount": 20},
    93          {"name": "bob", "asset": "BTM", "amount": 5000000000},
    94          {"name": "bob", "asset": "GOLD", "amount": 20}
    95        ]
    96      }
    97    ]
    98  }