Smart Contract Test Plan
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
£
%
123
 
 
 
 
 
 
 
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Sudoku Contract
2
Available RPC callsWhat does this Call do?Example Test CommandExample Expected Output
3
cclib gen 17Creating new Sudoku puzzle./komodo-cli -ac_name=SUDOKU cclib gen 17

-----------------------------------
| 2 : 5 : 7 | 1 : 3 : 6 | 9 : 8 : 4 |
|- - - - - -|- - - - - -|- - - - - -|
| 8 : 9 : 1 | 4 : 5 : 7 | 3 : 2 : 6 |
|- - - - - -|- - - - - -|- - - - - -|
| 3 : 6 : 4 | 9 : 2 : 8 | 7 : 1 : 5 |
|-----------+-----------+-----------|
| 6 : 8 : 9 | 5 : 7 : 4 | 2 : 3 : 1 |
|- - - - - -|- - - - - -|- - - - - -|
| 4 : 2 : 3 | 6 : 8 : 1 | 5 : 9 : 7 |
|- - - - - -|- - - - - -|- - - - - -|
| 1 : 7 : 5 | 2 : 9 : 3 | 6 : 4 : 8 |
|-----------+-----------+-----------|
| 7 : 3 : 6 | 8 : 1 : 9 | 4 : 5 : 2 |
|- - - - - -|- - - - - -|- - - - - -|
| 9 : 1 : 2 | 7 : 4 : 5 | 8 : 6 : 3 |
|- - - - - -|- - - - - -|- - - - - -|
| 5 : 4 : 8 | 3 : 6 : 2 | 1 : 7 : 9 |
----------------------------------- -----------------------------------
| 2 : 5 : | 1 : : | : 8 : 4 |
|- - - - - -|- - - - - -|- - - - - -|
| : 9 : | : 5 : | 3 : 2 : |
|- - - - - -|- - - - - -|- - - - - -|
| 3 : : 4 | : 2 : 8 | : 1 : |
|-----------+-----------+-----------|
| : : 9 | : : | : : 1 |
|- - - - - -|- - - - - -|- - - - - -|
| : 2 : | 6 : : | : : 7 |
|- - - - - -|- - - - - -|- - - - - -|
| 1 : : | : : 3 | : 4 : |
|-----------+-----------+-----------|
| : : | : 1 : | : : |
|- - - - - -|- - - - - -|- - - - - -|
| : : | 7 : : | : : |
|- - - - - -|- - - - - -|- - - - - -|
| 5 : : | : : 2 | : : |
----------------------------------- *** 26 numbers left ***
257136984
891457326
364928715
689574231
423681597
175293648
736819452
912745863
548362179
solve: 250100084090050320304028010009000001020600007100003040000010000000700000500002000
1:1 score: 898 257136984891457326364928715689574231423681597175293648736819452912745863548362179 26
{
"result": "success",
"name": "sudoku",
"method": "gen",
"srand": -678890453,
"amount": 898.00000000,
"hex": "0400008085202f890159a377ff60f9c0173b2de965fa902608490c339626642e5bcfeea4fd13facbf4010000007b4c79a276a072a26ba067a56580210223b2b9d35fb6383bbbc0dd6668825c91713bc21081b9ce33df3d7edbafa883058140460886e61f55924af187b34ed1bffe114bc4af194ab57c9e50301ea9c134135d00dc34c44a42b1ba54390da0b8c2637239a008b6b11fee535be5aecfd73e10b9a100af03800111a10001ffffffff041027000000000000302ea22c80203d1579313abe7d8ea85f48c65ea66fc512c878c0d0e6f6d54036669de940febf8103120c008203000401cc00427fe814000000302ea22c802033c7f0d5d7327fbe86a1c94d56a6acbc59b2d24e00ed83864bfbf9e9dab41eed8103120c008203000401cc48f28f6002000000302ea22c80203d1579313abe7d8ea85f48c65ea66fc512c878c0d0e6f6d54036669de940febf8103120c008203000401cc0000000000000000576a4c541147510205000100000008040009000005000302000300040002080001000000090000000000010002000600000000070100000000030004000000000001000000000000000700000000000500000000020000000000000067e300000000000000000000000000",
"txid": "3b00b64e5892987ea2afc1c66384bf304ab2f8ca90d98ebef1d7784ca7347645"
}
4
5
cclib txidinfo 17 \[%22<PUZZLE_TXID>%22\"Getting info about puzzle./komodo-cli -ac_name=SUDOKU cclib txidinfo 17 \%220aaa8fdc83aa9111b1f1d143ca7baf5730cd68c02f1422b3f8cf4186959db6ff%22\"{
"result": "success",
"txid": "0aaa8fdc83aa9111b1f1d143ca7baf5730cd68c02f1422b3f8cf4186959db6ff",
"result": "success",
"height": 766,
"sudokuaddr": "RAFVbQbZ5esSkktLQq9mdQWrvi7UBnzqwE",
"amount": 10.00000000,
"unsolved": "4--13--6---89--2--37-2--541--5-8-1-66---4-----1-7------8-------------3---------9-",
"name": "sudoku",
"method": "txidinfo"
}
6
cclib pending 17Returning list of unsolved puzzles on chain./komodo-cli -ac_name=SUDOKU cclib pending 17{
"result": "success",
"name": "sudoku",
"method": "pending",
"pending": [
{
"height": 665,
"amount": 10000.00000000,
"txid": "2944aa188737301bb863ea926dd9cca3ec55331c56339dba9ed0ec7fb09a1600"
},
{
"height": 777,
"amount": 100.00000000,
"txid": "4f247ce2e9ef53d51cc885de5e97404991c08a81ce1802c5fc92f722355a2000"
},
{
"height": 476,
"amount": 1000.00000000,
"txid": "f4a82917256127f8687289b3ed55213fe3f7b68d9f84a2b329b3a2f49b342c00"
},

{
"height": 817,
"amount": 10.00000000,
"txid": "b5c70ac386761ab47c2ecf4897ee6af12875cc19e1aa9c260c2d7102179822ff"
},
{
"height": 586,
"amount": 10.00000000,
"txid": "09aa7708e9fa7169228da81c7a03ee9079a7bf49bbab9059bfcf4d0abb2041ff"
},
{
"height": 524,
"amount": 100.00000000,
"txid": "d4be96c74f841cf971d8b2612802c3c4544f4ccf734361515c6d8daae6fa41ff"
},
{
"height": 532,
"amount": 10000.00000000,
"txid": "c5c8150c72a15965f2ae83179f38c122f82d296185870e1180a1d0040e6a7fff"
},
{
"height": 635,
"amount": 100.00000000,
"txid": "d1440839963b1df7b05a3cb34d4b7c636c5a4f13863f38639e696298517195ff"
},
{
"height": 766,
"amount": 10.00000000,
"txid": "0aaa8fdc83aa9111b1f1d143ca7baf5730cd68c02f1422b3f8cf4186959db6ff"
}
],
"numpending": 3290,
"total": 3504801.00000000
}
7
cclib solution 17 [%22<puzzletxid>%22,%22<solution>%22,t0,t1,t2,...]Sending puzzle solution - solution line 81 number + 81 timestamp (number input time for each cell). For prefilled cells - timestamp 0./komodo-cli -ac_name=ROGUE cclib solution 17 [%22b5d7e2b50ace182e0ab7b5a18875818fa8e56b937689376bc5bdc8727b78ad52%22,%22157392864829461357436587129795634218381279645642815973978146532563728491214953786%22,1552297383,1552297384,1552297386,0,1552297387,0,0,1552297389,1552297389,1552297391,0,1552297392,1552297394,1552297396,1552297396,1552297397,1552297398,1552297399,1552297401,1552297402,1552297403,1552297404,1552297405,1552297407,1552297408,1552297409,1552297410,1552297412,1552297413,0,1552297415,1552297416,1552297417,0,0,1552297419,0,1552297422,1552297423,1552297424,1552297429,0,1552297431,0,1552297432,1552297435,1552297436,1552297437,1552297439,0,1552297440,1552297441,1552297443,0,1552297445,0,0,1552297446,1552297447,0,1552297449,0,1552297451,0,1552297453,0,1552297455,0,0,0,1552297457,0,1552297458,1552297459,0,0,1552297460,0,1552297462,1552297462,0]{'name': 'sudok', 'hex': '0400008085202f890252ad787b72c8bdc56b378976936be5a88f817588a1b5b70a2e18ce0ab5e2d7b5000000007b4c79a276a072a26ba067a56580210223b2b9d35fb6383bbbc0dd6668825c91713bc21081b9ce33df3d7edbafa883058140f6e597c2b4454dd6c2203744bcdf133e98b4330d0df27933d6db8fb5ccc443d919a04d072b35f6660ca80e647485b8c7f5bee08a56e47e636db67232ebf36fbfa100af03800111a10001ffffffff52ad787b72c8bdc56b378976936be5a88f817588a1b5b70a2e18ce0ab5e2d7b5010000007b4c79a276a072a26ba067a5658021027e0bf5ddd579d858b7997a60f3cd91c1cd99ed78df1753464cb12685251d5bf181401be4b2e389756a56e544e53cc9755ab737d1cd1cec180c2f5993b0a49d3787686d32dbb0364aaf1a8bd17c49e8ede3c4ea05d4705c33b65f16df131ef2a46f16a100af03800111a10001ffffffff0200e40b5402000000232102c4d7a2001384c7c2b95eb3927f6b1cec0c6fc29c35d9b17dc7a012d02203a17cac0000000000000000fd9f016a4d9b01115351313537333932383634383239343631333537343336353837313239373935363334323138333831323739363435363432383135393733393738313436353332353633373238343931323134393533373836fd44015c862da75c862da85c862daa000000005c862dab00000000000000005c862dad5c862dad5c862daf000000005c862db05c862db25c862db45c862db45c862db55c862db65c862db75c862db95c862dba5c862dbb5c862dbc5c862dbd5c862dbf5c862dc05c862dc15c862dc25c862dc45c862dc5000000005c862dc75c862dc85c862dc900000000000000005c862dcb000000005c862dce5c862dcf5c862dd05c862dd5000000005c862dd7000000005c862dd85c862ddb5c862ddc5c862ddd5c862ddf000000005c862de05c862de15c862de3000000005c862de500000000000000005c862de65c862de7000000005c862e5a000000005c862deb000000005c862ded000000005c862def0000000000000000000000005c862df1000000005c862df25c862df300000000000000005c862df4000000005c862df65c862df60000000000000000ade400000000000000000000000000', 'txid': 'b5d7e2b50ace182e0ab7b5a18875818fa8e56b937689376bc5bdc8727b78ad52', 'amount': 100.0, 'result': 'success', 'sudokuaddr': 'RWXsjC1zc7zGqsxa2YdL9zS7G3PwN5xc9m', 'method': 'solution'}
SOLVED ht.58521 100.00000000 4c3fb21e60ef0af863da43c5ebbdf38651f080a3fff1c04855fc42857479f9e5
157392864829461357436587129795634218381279645642815973978146532563728491214953786 score.55 ---3-28---2------------------5---21-3----9-4-----1---3-78--6-3-5-3-284-1--49-3--6
1 2 1 2 0 2 1 2 2 0 1 1 1 2 1 1 1 1 2 1 1 1 2 1 2 1 1 2 3 1 1 5 2 1 3 1 1 2 1 1 2 2 1 1 4 2 2 2 1 1 1 2 0 100 solvetime.179 n.55 avetime.3 variance.177 vs ave2 9
Solution accepted!
4c3fb21e60ef0af863da43c5ebbdf38651f080a3fff1c04855fc42857479f9e5
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...