github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/test/testdata/wallet_tests/wt_multi_sig_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": "multi-sig", "keys": ["alice", "bob"], "quorum": 2},
    11      {"name": "none", "keys": ["none"], "quorum": 1}
    12    ],
    13    "blocks": [
    14      {
    15        "coinbase_account": "alice",
    16        "post_states": [
    17          {"name": "alice", "asset": "BTM", "amount": 41250000000}
    18        ],
    19        "append": 100
    20      },
    21      {
    22        "coinbase_account": "none",
    23        "transactions": [
    24          {
    25            "passwords": ["alice"],
    26            "inputs": [
    27              {"type": "spend_account", "name": "alice", "amount": 40000000000, "asset": "BTM"}
    28            ],
    29            "outputs": [
    30              {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"},
    31              {"type": "output", "name": "bob", "amount": 5000000000, "asset": "BTM"},
    32              {"type": "output", "name": "bob", "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              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"},
    37              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"},
    38              {"type": "output", "name": "multi-sig", "amount": 5000000000, "asset": "BTM"}
    39            ]
    40          }
    41        ],
    42        "post_states": [
    43          {"name": "alice", "asset": "BTM", "amount": 10250000000},
    44          {"name": "bob", "asset": "BTM", "amount": 15000000000},
    45          {"name": "multi-sig", "asset": "BTM", "amount": 15000000000}
    46        ]
    47      },
    48      {
    49        "coinbase_account": "none",
    50        "transactions": [
    51          {
    52            "passwords": ["bob", "alice"],
    53            "inputs": [
    54              {"type": "spend_account", "name": "multi-sig", "amount": 1000000000, "asset": "BTM"},
    55              {"type": "issue", "name": "multi-sig", "amount": 100, "asset": "GOLD"}
    56            ],
    57            "outputs": [
    58              {"type": "output", "name": "multi-sig", "amount": 100, "asset": "GOLD"}
    59            ]
    60          }
    61        ],
    62        "post_states": [
    63          {"name": "alice", "asset": "BTM", "amount": 10250000000},
    64          {"name": "multi-sig", "asset": "GOLD", "amount": 100},
    65          {"name": "multi-sig", "asset": "BTM", "amount": 14000000000},
    66          {"name": "bob", "asset": "BTM", "amount": 15000000000}
    67        ]
    68      },
    69      {
    70        "coinbase_account": "none",
    71        "transactions": [
    72          {
    73            "passwords": ["alice", "bob"],
    74            "inputs": [
    75              {"type": "spend_account", "name": "multi-sig", "amount": 1000000000, "asset": "BTM"},
    76              {"type": "spend_account", "name": "multi-sig", "amount": 40, "asset": "GOLD"},
    77              {"type": "spend_account", "name": "bob", "amount": 10000000000, "asset": "BTM"},
    78              {"type": "spend_account", "name": "alice", "amount": 10000000000, "asset": "BTM"}
    79            ],
    80            "outputs": [
    81              {"type": "output", "name": "alice", "amount": 20, "asset": "GOLD"},
    82              {"type": "output", "name": "bob", "amount": 20, "asset": "GOLD"},
    83              {"type": "output", "name": "multi-sig", "amount": 20000000000, "asset": "BTM"}
    84            ]
    85          }
    86        ],
    87        "post_states": [
    88          {"name": "multi-sig", "asset": "BTM", "amount": 33000000000},
    89          {"name": "multi-sig", "asset": "GOLD", "amount": 60},
    90          {"name": "alice", "asset": "BTM", "amount": 250000000},
    91          {"name": "alice", "asset": "GOLD", "amount": 20},
    92          {"name": "bob", "asset": "BTM", "amount": 5000000000},
    93          {"name": "bob", "asset": "GOLD", "amount": 20}
    94        ]
    95      }
    96    ]
    97  }