OSDN Git Service

Hulk did something
[bytom/vapor.git] / test / testdata / wallet_tests / wt_btm.json
diff --git a/test/testdata/wallet_tests/wt_btm.json b/test/testdata/wallet_tests/wt_btm.json
new file mode 100644 (file)
index 0000000..9acaea3
--- /dev/null
@@ -0,0 +1,39 @@
+{
+  "keys": [
+    {"name": "alice", "password": "alice"},
+    {"name": "bob", "password": "bob"}
+  ],
+  "accounts": [
+    {"name": "alice", "keys": ["alice"], "quorum": 1},
+    {"name": "bob", "keys": ["bob"], "quorum": 1}
+  ],
+  "blocks": [
+    {
+      "coinbase_account": "alice",
+      "post_states": [
+        {"name": "alice", "asset": "BTM", "amount": 41250000000}
+      ],
+      "append": 100
+    },
+    {
+      "coinbase_account": "bob",
+      "transactions": [
+        {
+          "passwords": ["alice"],
+          "inputs": [
+            {"type": "spend_account", "name": "alice", "amount": 6000000000, "asset": "BTM"}
+          ],
+          "outputs": [
+            {"type": "output", "name": "bob", "amount": 1000000000, "asset": "BTM"},
+            {"type": "output", "name": "alice", "amount": 4000000000, "asset": "BTM"}
+          ]
+        }
+      ],
+      "post_states": [
+        {"name": "alice", "asset": "BTM", "amount": 39250000000},
+        {"name": "bob", "asset": "BTM", "amount": 43250000000}
+      ],
+      "append": 0
+    }
+  ]
+}