-
Notifications
You must be signed in to change notification settings - Fork 64
/
index.html
3868 lines (3586 loc) · 225 KB
/
index.html
1
2
3
4
5
6
7
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<style>
.fadeIn {
-webkit-animation-name: fadeIn;
animation-name: fadeIn;
}
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@keyframes fadeIn{
0% {
opacity: 0;
}
100%{
opacity: 1
}
}
.jsonview{font-family:monospace;font-size:1.1em;white-space:pre-wrap}.jsonview .prop{font-weight:700;text-decoration:none;color:#000}.jsonview .null,.jsonview .undefined{color:red}.jsonview .bool,.jsonview .num{color:#00f}.jsonview .string{color:green;white-space:pre-wrap}.jsonview .string.multiline{display:inline-block;vertical-align:text-top}.jsonview .collapser{position:absolute;left:-1em;cursor:pointer}.jsonview .collapsible{transition:height 1.2s;transition:width 1.2s}.jsonview .collapsible.collapsed{height:.8em;width:1em;display:inline-block;overflow:hidden;margin:0}.jsonview .collapsible.collapsed:before{content:"…";width:1em;margin-left:.2em}.jsonview .collapser.collapsed{transform:rotate(0)}.jsonview .q{display:inline-block;width:0;color:transparent}.jsonview li{position:relative}.jsonview ul{list-style:none;margin:0 0 0 2em;padding:0}.jsonview h1{font-size:1.2em}
*{
box-sizing: border-box;
}
html,body{width: 100%; height: 100%; margin:0; padding: 0;}
hr{
margin: 30px 0;
}
.div_module{
width:80%;
margin: 20px auto;
}
.div_module input,.div_module select,.div_module textarea{
width: 100%;
}
.div_module_c{
margin-bottom: 30px;
}
.div_module_c h2{
text-align: center;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
.sel_goods{
padding: 3px 0;
}
.div_getOperations table td{
border-bottom: 1px solid #eee;
}
table{
width: 100%;
border-collapse: collapse;
border-spacing: 0;
}
th,td{
text-align: left;
}
.body{
width: 100%;
}
.container{
height: 100%;
display: flex;
/* overflow: hidden; */
}
.left_nav{
padding: 30px 30px 0 10px;
height: 100%;
overflow: auto;
width: 390px;
min-width: 390px;
}
.left_nav ul{
list-style: decimal-leading-zero;
}
.right_main_content{
flex: 1;
border-left:1px dotted green;
display: flex;
flex-direction: column;
}
.right_main_content .top{
border-bottom:1px dotted green;
}
.container .body{
flex: 1;
overflow:auto;
}
.top .div_module_c{
margin-bottom: 0;
}
.h_msg{
margin:0;
color:red;
padding-left: 20px;
}
.h_msg::before{
content: "消息:"
}
.div_unlock{
padding-bottom: 0;
}
.left_nav .p_account{margin-bottom: 20px; padding-left: 10px;}
.listCard .row{
display: flex;
margin-bottom:6px;
}
.listCard .row:last-child{
display: block;
}
.listCard .row .field{
width: 160px;
}
.listCard .row .value{
flex: 1;
}
.transactions h4{
margin:8px 0;
}
.blockOrTXID .transactions{
margin-top: 16px;
}
.blockOrTXID .row_op{
margin-bottom: 8px;
}
.blockOrTXID .row_op .info{
margin: 6px 0;
}
.blockOrTXID .row_op .type{
color:green;
}
.blockOrTXID .row_op .time{
color:#999;
}
.div_getWitnessesForExplorer .activeNodeClass>td {
background: rgba(80, 210, 194, 0.4);
}
.div_get_contract p,.div_getAccountContractData p{
border-bottom: 1px solid #eee;
padding-bottom: 6px;
}
.op_results{
display: none;
color:gray;
margin-top: 6px;
}
.op_results p{
border-top:1px solid #eee;
margin: 2px 0;
}
.checkbox{
display: flex;
align-items: center;
margin: 10px 0;
}
input[type="checkbox"]{
margin:3px 6px 0;
}
.div_getAssets .div_list P{
display: flex;
justify-content: space-between;
}
.red{
color:red;
}
.green{
color:green;
}
.div_subscribeToTransactionPair .container{
display:flex;
height: auto;
}
.orders{
flex: 1;
padding-left: 30px;
}
.orders tbody tr:hover{
background: rgba(0,0,0,0.6);
color:#fff;
cursor: pointer;
}
.btn{
padding: 10px 0;
color:#fff;
font-size: 16px;
}
.buy_balances,.sell_balances{
margin: 0;
}
.op_results p{
word-wrap: break-word;
}
.game_item_base_describe{
word-break:break-all;
word-wrap:break-word;
padding-right:10px;
/* width:200px; */
}
.new_options{
margin-top: 6px;
border-top:1px solid #dedede;
}
.memo{
margin-left: 6px;
}
.res{
max-width: 600px;
overflow: auto;
}
.div_loadAccountProposals .rows{
width: 250px;
display: flex;
justify-content: space-between;
}
.td-status{
/* border:1px solid #eee; */
padding: 10px 0;
}
.div_loadAccountProposals input[type=checkbox]{
width: auto;
}
.div_bitassetOpts{
display:none;
}
/*
.scroll{
max-height:250px;
overflow:auto;
} */
</style>
</head>
<body>
<div class="container">
<div class="left_nav">
<p class="p_account">当前账户:<span class="current_account"></span></p>
<ul>
<li>钱包管理模式
<ul class="class_0">
</ul>
</li>
<li>账户管理模式
<ul class="class_1">
</ul>
</li>
<li>账户操作
<ul class="class_11">
</ul>
</li>
<li>代币资产操作
<ul class="class_2">
</ul>
</li>
<li>NH资产操作
<ul class="class_3">
</ul>
</li>
<li>NH资产查询
<ul class="class_5">
</ul>
</li>
<li>区块链浏览器
<ul class="class_7">
</ul>
</li>
<li>API服务器节点
<ul class="class_8">
</ul>
</li>
<li>合约
<ul class="class_9">
</ul>
</li>
<li>交易市场
<ul class="class_10">
</ul>
</li>
<li>其他
<ul class="class_12">
</ul>
</li>
</ul>
</div>
<div class="right_main_content">
<div class="top">
<h2 class="h_msg"></h2>
<div class="div_module_c" pclass="class_1">
<h2 style="border-bottom:0; padding-bottom:0; margin:6px 0;">钱包解锁与锁定</h2>
<div class="div_unlock div_module">
<p>私钥模式登录可以使用该方法</p>
<input type="text" class="pwd" placeholder="解锁密码" value="Kokko313@020"/><br><br>
<input type="button" id="btn_unlock" value="确认解锁" /><br><br>
<input type="button" id="btn_lock" value="确认锁定" />
</div>
</div>
</div>
<div class="body">
<div class="div_module_c" id="div_createAccountWithWallet" pclass="class_0" >
<h2>钱包模式创建账户</h2>
<div class="div_createAccountWithWallet div_module">
<p class="red">如果钱包模式已经存在账户,该操作会创建子账户,创建该子账户需要操作账户为终身会员账户</p>
用户名(规则/^[a-z][a-z0-9\.-]{4,63}$//)<input type="text" class="signup_username" value="test1"><br><br>
密码<input type="text" class="signup_pwd" value="12345678"><br><br><br>
<input type="button" class="btn_signup" value="确认创建账户" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_backupDownload" pclass="class_0" >
<h2>备份钱包下载</h2>
<div class="div_backupDownload div_module">
<input type="button" id="btn_backupDownload" value="确认下载" />
</div>
</div>
<div class="div_module_c" id="div_restoreWalletFile" pclass="class_0" >
<h2>备份文件恢复钱包</h2>
<div class="div_restoreWalletFile div_module">
选择钱包文件
<input type="file" value="选择钱包文件" class="file" />
<div class="div_restore" style="display:none">
<p>SHA1:<span class="sha1"></span></p>
<input type="password" class="password" placeholder="请输入钱包密码" /><br><br>
<input type="button" id="btn_restoreWallet" value="确认恢复" />
</div>
</div>
</div>
<div class="div_module_c" id="div_deleteWallet" pclass="class_0" >
<h2>删除钱包</h2>
<div class="div_deleteWallet div_module">
删除钱包前再次确认是否已备份钱包或私钥
<input type="button" id="btn_deleteWallet" value="确认删除" />
</div>
</div>
<div class="div_module_c" id="div_importPrivateKey" pclass="class_0" >
<h2>导入私钥</h2>
<div class="div_importPrivateKey div_module">
<input type="text" class="pwd" value="12345678" placeholder="请设置临时密码" /><br><br>
<input type="text" class="privateKey" value="5JTRWBhT98rw8oCKWz5MVJEciYRed8ogqDifvqturWEE3UQPND3" placeholder="请输入账号私钥" /><br><br>
<input type="button" id="btn_importPrivateKey" value="确认导入" />
</div>
</div>
<div class="div_module_c" id="div_getAccounts" pclass="class_0" >
<h2>获取钱包账户列表</h2>
<div class="div_getAccounts div_module">
<input type="button" id="btn_getAccounts" value="确认获取" />
<p class="res"></p>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>账户名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="div_module_c" id="div_signup" pclass="class_1" >
<h2>账户模式创建账户</h2>
<div class="div_signup div_module">
<p class="red">如果账户模式已经登录,该操作会创建子账户,创建该子账户需要操作账户为终身会员账户</p>
用户名(规则/^[a-z][a-z0-9\.-]{4,63}$/)<input type="text" id="signup_username" value="test1"><br><br>
密码<input type="text" id="signup_pwd" value="12345678"><br><br><br>
<input type="button" id="btn_signup" value="注册" />
</div>
</div>
<div class="div_module_c" id="div_login" pclass="class_1" >
<h2>登录</h2>
<div class="div_login div_module">
<!-- tom0002,12345678 -->
用户名<input type="text" id="login_username" value="xulin-test1"><br><br>
密码<input type="text" id="login_pwd" value="xulin123"><br><br><br>
<input type="button" id="btn_login" value="登录" />
</div>
</div>
<div class="div_module_c" id="div_keyLogin" pclass="class_1" >
<h2>私钥登录</h2>
<div class="div_keyLogin div_module">
<input type="text" class="pwd" value="12345678" placeholder="请设置临时密码" /><br><br>
<input type="text" class="privateKey" value="5KUAMBYHLm6vyLgEwjLVx5bsQ6534c7mc54RoyaidJCfxBExdjf" placeholder="请输入账号私钥" /><br><br>
<input type="button" id="btn_keyLogin" value="确认登录" />
</div>
</div>
<div class="div_module_c" id="div_logout" pclass="class_1" >
<h2>退出登录</h2>
<div class="div_logout div_module">
<input type="button" id="btn_logout" value="确认退出" /><br><br>
</div>
</div>
<div class="div_module_c" id="div_changePassword" pclass="class_1" >
<h2>修改密码</h2>
<div class="div_changePassword div_module">
<p class="red">如果账户模式已经登录,该操作会创建子账户,创建该子账户需要操作账户为终身会员账户</p>
<input type="text" class="old_password" placeholder="原始密码/临时钱包密码" /><br><br>
<input type="text" class="new_password" placeholder="新密码" /><br><br>
<input type="button" id="btn_changePassword" value="确认修改" /><br><br>
</div>
</div>
<div class="div_module_c" id="div_getUserInfo" pclass="class_1" >
<h2>获取当前账户信息</h2>
<div class="div_getUserInfo div_module">
<p>无callback,直接返回</p>
<input type="button" id="btn_getUserInfo" value="立即获取" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_createAccountWithPublicKey" pclass="class_11" >
<h2>公钥+账户名注册账户</h2>
<div class="div_createAccountWithPublicKey div_module">
<p class="red">如果账户模式已经登录,该操作会创建子账户,创建该子账户需要操作账户为终身会员账户</p>
用户名(规则/^[a-z][a-z0-9\.-]{4,63}$/)
<input type="text" class="accountName" value="test1"><br><br>
owner public key(账户权限公钥)<input type="text" class="owner_public_key" value=""><br><br>
active public key(资金权限公钥)<input type="text" class="active_public_key" value=""><br><br>
<input type="button" class="btn_generateKey" value="随机生成公私钥" /><br><br>
<p class="res_key"></p><br>
<input type="button" id="btn_createAccountWithPublicKey" value="确认" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_upgradeAccount" pclass="class_11" >
<h2>升级成为终身会员账户</h2>
<div class="div_upgradeAccount div_module">
<p>此操作需消耗一定的手续费</p>
<input type="button" id="btn_upgradeAccount" value="确认升级" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_witnessCreate" pclass="class_11" >
<h2>升级成为见证人账户</h2>
<div class="div_witnessCreate div_module">
url<input type="text" class="url" value="http://cocos-terminal.com"><br><br>
区块签名公钥<input type="text" class="block_signing_key" value=""><br><br>
<input type="button" id="btn_witnessCreate" value="确认升级" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_committeeMemberCreate" pclass="class_11" >
<h2>升级成为理事会账户</h2>
<div class="div_committeeMemberCreate div_module">
url<input type="text" class="url" value="http://cocos-terminal.com"><br><br>
<input type="button" id="btn_committeeMemberCreate" value="确认升级" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_witnessUpdate" pclass="class_11" >
<h2>更新见证人信息</h2>
<div class="div_witnessUpdate div_module">
url<input type="text" class="new_url" value="http://cocos-terminal.com"><br><br>
区块签名公钥<input type="text" class="new_signing_key" value=""><br>
<div class="checkbox">
工作状态:<input type="checkbox" class="work_status" style="width:auto;">
</div>
<input type="button" id="btn_witnessUpdate" value="确认更新" /><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_committeeMemberUpdate" pclass="class_11" >
<h2>更新理事会信息</h2>
<div class="div_committeeMemberUpdate div_module">
url<input type="text" class="new_url" value="http://cocos-terminal.com"><br>
<div class="checkbox">
工作状态:<input type="checkbox" class="work_status" style="width:auto;">
</div>
<input type="button" id="btn_committeeMemberUpdate" value="确认更新" /><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_getPrivateKey" pclass="class_11" >
<h2>获取私钥</h2>
<div class="div_getPrivateKey div_module">
<input type="text" id="input_psd" placeholder="密码" /><br><br>
<input type="button" id="btn_psdChangePrivateKey" value="测试密码转化私钥" /><br><br>
<input type="button" id="btn_getPrivateKey" value="获取私钥" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_decodeOneMemo" pclass="class_11" >
<h2>解密memo</h2>
<div class="div_getDecodeOneMemo div_module">
<input type="text" id="input_decodeOneMemo_from" placeholder="from" /><br><br>
<input type="text" id="input_decodeOneMemo_to" placeholder="to" /><br><br>
<input type="text" id="input_decodeOneMemo_message" placeholder="message" /><br><br>
<input type="text" id="input_decodeOneMemo_nonce" placeholder="input_nonce" /><br><br>
<input type="button" id="input_decodeOneMemo" value="解密memo" /><br><br>
<p class="res" id="res_decodeOneMemo"></p>
</div>
</div>
<div class="div_module_c" id="div_encryptionOneMome" pclass="class_11" >
<h2>加密memo</h2>
<div class="div_encryptionOneMome div_module">
<input type="text" id="input_encryptionOneMome_mome" placeholder="请填写加密mome" /><br /><br />
<input type="text" id="input_encryptionOneMome_toAccount" placeholder="toAccount" /><br /><br />
<input type="button" id="btn_encryptionOneMome" value="加密mome" /><br /><br />
<p class="res" id="res_encryptionOneMome"></p>
</div>
</div>
<div class="div_module_c" id="div_sign" pclass="class_11" >
<h2>签名</h2>
<div class="div_getSignString div_module">
<input type="text" id="input_sign" placeholder="签名信息" /><br><br>
<input type="button" id="btn_sign" value="签名" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_checkoutSign" pclass="class_11" >
<h2>验签</h2>
<div class="div_checkoutSign div_module">
<input type="text" id="input_sign_checkoutSign" placeholder="签名信息" /><br><br>
<input type="text" id="input_checkoutSign" placeholder="验签信息" /><br><br>
<input type="button" id="btn_checkoutSign" value="验签" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_queryUserInfo" pclass="class_11" >
<h2>查询账户信息</h2>
<div class="div_queryUserInfo div_module">
account<input type="text" class="account" value="unitedlabs.witness"><br><br>
<input type="button" id="btn_queryUserInfo" value="立即查询" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_getOperations" pclass="class_11" >
<h2>查询和订阅账户记录</h2>
<div class="div_getOperations div_module" style="width:98%;">
<!-- password<input type="text" class="password" value="xulin123"><br><br> -->
account<input type="text" class="account" value="xulin-test1"><br><br>
limit<input type="text" class="limit" value="10"><br><br>
<input type="button" id="btn_getOperations" value="立即查询" /><br><br>
<table class="table">
<thead>
<tr>
<th>区块</th>
<th>操作</th>
<th>信息</th>
<th>手续费</th>
<th>时间</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="div_module_c" id="div_transferAsset" pclass="class_2" >
<h2>转账</h2>
<div class="div_transferAsset div_module">
<div class="div_from_account" style="display:none;">来自<input type="text" class="from_account" value="test1"><br><br></div>
发往<input type="text" class="to_account" value="xulin-test1"><br><br>
数量<input type="number" class="transfer_amount" value="1"><br><br>
资产id<input type="text" class="asset_id" value="COCOS"><br><br>
备注消息<input class="transfer_memo" type="text" value="I am mechanic">
<div class="checkbox">
是否发起提议: <input type="checkbox" class="isPropose" style="width:auto;" />
</div>
<div class="checkbox">
是否加密: <input type="checkbox" checked class="isEncryption" style="width:auto;" />
</div>
<input type="button" id="btn_transferAsset" value="转账" /><br /><br />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_createAsset" pclass="class_2" >
<h2>资产创建</h2>
<div class="div_createAsset div_module">
资产符号<input type="text" class="symbol" value="TEST"><br><br>
最大资产总量<input type="number" class="max_supply" value="100000"><br><br>
精度(小数位数)<input type="number" class="precision" value="5"><br><br>
<div class="checkbox">
收取市场交易手续费:<input type="checkbox" class="is_charge_market_fee" style="width:auto;" />
</div>
<fieldset style="display:none" class="fieldset_charge_market_fee">
<legend>交易手续费率 </legend>
交易手续费率 (%):<input type="text" class="market_fee_percent" value="1" />
最大交易手续费:<input type="text" class="max_market_fee" value="1" />
</fieldset>
<br>
描述<textarea rows="6" class="description"></textarea>
<div class="checkbox">
智能币 SmartCoin: <input type="checkbox" class="isBitAsset" style="width:auto;" />
</div>
<div class="div_bitassetOpts" >
喂价有效时间(分钟)
<input type="text" class="feedLifetimeSec" value="1440"><br><br>
最少喂价数量
<input type="text" class="minimumFeeds" value="1"><br><br>
强制清算发生前延迟时间(分钟)
<input type="text" class="forceSettlementDelaySec" value="1440"><br><br>
强制清算价格偏离百分比
<input type="text" class="forceSettlementOffsetPercent" value="1"><br><br>
强制清算最大数量(百分比)
<input type="text" class="maximumForceSettlementVolume" value="20"><br><br>
做空时可抵押的资产类型
<input type="text" class="shortBackingAsset" value="1.3.0"><br><br>
</div>
<input type="button" id="btn_createAsset" value="确认创建" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_updateAsset" pclass="class_2" >
<h2>资产更新</h2>
<div class="div_updateAsset div_module">
资产符号<input type="text" class="symbol" value="TEST"><br><br>
最大资产总量<input type="number" class="max_supply" value="100000"><br><br>
新发行人<input type="text" class="new_issuer" ><br><br>
<div class="checkbox">
黑白名单: <input type="checkbox" class="white_list" style="width:auto;" checked />
</div>
<div class="checkbox">
限制交易: <input type="checkbox" class="transfer_restricted" style="width:auto;" />
</div>
<fieldset>
<legend>GAS手续费汇率(只有GAS设置此项才有效)</legend>
基准资产数量:<input type="text" class="base" value="" onKeyUp="_assets.u_priceChange()" />
标价资产数量(COCOS):<input type="text" class="quote" value="" onKeyUp="_assets.u_priceChange()" />
<p>单价:<span class="price"></span></p>
</fieldset>
<br>
<div class="checkbox">
收取市场交易手续费:<input type="checkbox" class="is_charge_market_fee" style="width:auto;" />
</div>
<fieldset style="display:none" class="fieldset_charge_market_fee">
<legend>交易手续费率 </legend>
交易手续费率 (%):<input type="text" class="market_fee_percent" value="1" />
最大交易手续费:<input type="text" class="max_market_fee" value="1" />
</fieldset>
<br>
描述<textarea rows="6" class="description"></textarea><br><br>
<div class="checkbox">
智能币 SmartCoin: <input type="checkbox" class="isBitAsset" style="width:auto;">
</div>
<div class="div_bitassetOpts" >
喂价有效时间(分钟)
<input type="text" class="feedLifetimeSec" value="1440"><br><br>
最少喂价数量
<input type="text" class="minimumFeeds" value="1"><br><br>
强制清算发生前延迟时间(分钟)
<input type="text" class="forceSettlementDelaySec" value="1440"><br><br>
强制清算价格偏离百分比
<input type="text" class="forceSettlementOffsetPercent" value="1"><br><br>
强制清算最大数量(百分比)
<input type="text" class="maximumForceSettlementVolume" value="20"><br><br>
做空时可抵押的资产类型
<input type="text" class="shortBackingAsset" value="1.3.0"><br><br>
</div>
<input type="button" id="btn_updateAsset" value="确认更新" /><br><br>
<p class="res" ></p>
</div>
</div>
<div class="div_module_c" id="div_issueAsset" pclass="class_2" >
<h2>资产发行</h2>
<div class="div_issueAsset div_module">
发行给<input type="text" class="to_account" value="test2"><br><br>
发行数量<input type="number" class="amount" value="10"><br><br>
资产符号<input type="text" class="asset_id" value="TEST"><br><br>
备注消息<input class="memo" type="text" value="">
<div class="checkbox">
是否加密: <input type="checkbox" checked class="isEncryption" style="width:auto;" />
</div>
<input type="button" id="btn_issueAsset" value="确认发行" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_reserveAsset" pclass="class_2" >
<h2>资产销毁</h2>
<div class="div_reserveAsset div_module">
资产符号<input type="text" class="asset_id" value="TEST"><br><br>
销毁数量<input type="number" class="amount" value="1"><br><br>
<input type="button" id="btn_reserveAsset" value="确认销毁" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_assetClaimFees" pclass="class_2" >
<h2>资产手续费领取</h2>
<div class="div_assetClaimFees div_module">
资产符号<input type="text" class="asset_id" value="TEST"><br><br>
数量<input type="number" class="amount" value="1"><br><br>
<input type="button" id="btn_assetClaimFees" value="确认领取" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_assetUpdateRestricted" pclass="class_2" >
<h2>资产受限名单更新</h2>
<div class="div_assetUpdateRestricted div_module">
<p class="red">若是发行人与黑名单中的账户进行交易则不受限制</p>
资产符号<input type="text" class="asset_id" value="TEST"><br><br>
<div class="checkbox">
是否添加(否则移除,Boolean): <input type="checkbox" class="isadd" style="width:auto;" checked />
</div>
限制类型(Number)<select class="restricted_type" >
<option value ="1">资产权限账户白名单</option>
<option value ="2">资产权限账户黑名单</option>
<option value ="3">市场交易资产白名单</option>
<option value ="4">市场交易资产黑名单</option>
</select><br><br>
限制列表(Array)<textarea rows="10" class="restricted_list">test3</textarea><br><br>
<input type="button" id="btn_assetUpdateRestricted" value="确认更新" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_updateCollateralForGas" pclass="class_2" >
<h2>为gas调整质押物</h2>
<div class="div_updateCollateralForGas div_module">
抵押人<input type="text" class="mortgager" value="test1"><br><br>
受益人<input type="text" class="beneficiary" value="test1"><br><br>
抵押数量<input type="number" class="collateral" value="10"><br><br>
<div class="checkbox">
是否发起提议: <input type="checkbox" class="isPropose" style="width:auto;" />
</div>
<p>预估获得gas:<span class="gas"></span></p>
<input type="button" id="btn_queryGas" value="确认获取预估gas" /><br><br>
<input type="button" id="btn_updateCollateralForGas" value="确认" />
</div>
</div>
<div class="div_module_c" id="div_queryAssetRestricted" pclass="class_2" >
<h2>查询资产受限名单</h2>
<div class="div_queryAssetRestricted div_module">
资产符号<input type="text" class="asset_id" value="TEST"><br><br>
限制类型<select class="restricted_type" >
<option value ="0">所有类型</option>
<option value ="1">资产权限白名单</option>
<option value ="2">资产权限黑名单</option>
<option value ="3">市场交易白名单</option>
<option value ="4">市场交易黑名单</option>
</select><br><br>
<input type="button" id="btn_queryAssetRestricted" value="确认查询" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_getAssets" pclass="class_2" >
<h2>查询链上发行的资产</h2>
<div class="div_getAssets div_module">
<input type="button" id="btn_getAssets" value="立即查询" /><br><br>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>资产</th>
<th>发行人</th>
<th>供应量</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p>查询指定资产</p>
<input type="text" class="symbol" placeholder="请输入查询的资产符号" ><br><br>
<input type="button" id="btn_queryAsset" value="立即查询" />
<div class="div_list">
</div>
</div>
</div>
<div class="div_module_c" id="queryAccountAllBalances" pclass="class_2" >
<h2>查询账户拥有的所有资产列表</h2>
<div class="div_queryAccountAllBalances div_module">
<h3>其中包含资产对记账单位的换算值</h3>
记账单位<input type="text" class="asset_id" value=""><br><br>
account<input type="text" class="account" value="unitedlabs.witness"><br><br>
<input type="button" id="btn_queryAccountAllBalances" value="立即查询" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="queryAccountBalances" pclass="class_2" >
<h2>查询账户指定资产</h2>
<div class="div_queryAccountBalances div_module">
资产id或symbol<input type="text" class="asset_id" value=""><br><br>
account<input type="text" class="account" value="test1"><br><br>
<input type="button" id="btn_queryAccountBalances" value="立即查询" /><br><br>
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_registerCreator" pclass="class_3" >
<h2>注册开发者</h2>
<div class="div_registerCreator div_module">
<input type="button" id="btn_registerCreator" value="确认注册" />
</div>
</div>
<div class="div_module_c" id="div_creatWorldView" pclass="class_3">
<h2>世界观创建</h2>
<div class="div_creatWorldView div_module">
世界观<input type="text" class="world_view" value=""><br><br>
<input type="button" id="btn_creatWorldView" value="确认创建" />
</div>
</div>
<div class="div_module_c" id="div_proposeRelateWorldView" pclass="class_3" >
<h2>世界观提议关联</h2>
<div class="div_proposeRelateWorldView div_module">
<p>提议关联到某一个世界观,需要该世界观的创建人审批</p>
世界观<input type="text" class="world_view" value="TEST"><br><br>
<input type="button" id="btn_proposeRelateWorldView" value="确认关联" />
</div>
</div>
<div class="div_module_c" id="loadAccountProposals" pclass="class_3" >
<h2>查询账户收到的提议并审批</h2>
<div class="div_loadAccountProposals div_module" style="width:90%;">
account<input type="text" class="account" value="test1"><br><br>
<input type="button" id="btn_loadAccountProposals" value="立即获取" /><br><br>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>id</th>
<th>信息</th>
<th>过期时间</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="div_module_c" id="div_create_nh" pclass="class_3" >
<h2>NH资产创建</h2>
<div class="div_create_nh div_module">
资产id<input type="text" class="asset_id" value="COCOS" ><br><br>
世界观<input type="text" class="world_view" value="TEST" ><br><br>
NH资产数据data<textarea rows="6" class="base_describe"></textarea><br><br>
NH资产拥有者(NH资产归属权账户)<input type="text" class="owner_account" value="test2" ><br><br>
NH资产数量(默认为1)<input type="text" class="nh_count" value="1" placeholder="" ><br><br><br>
type(默认为0,可不传,如果批量创建不同NH资产传1)<input type="text" class="type" value="0" placeholder="" ><br><br>
批量创建不同NH资产(type为1才使用该参数)<textarea rows="6" class="items"></textarea><br><br><br>
<input type="button" id="btn_create_nh" value="确认创建" />
</div>
</div>
<div class="div_module_c" id="div_deleteNHAsset" pclass="class_3" >
<h2>NH资产删除</h2>
<div class="div_deleteNHAsset div_module">
itemIds(Array)<textarea rows="10" class="NHAssetIds">4.2.195,4.2.194</textarea><br><br><br>
<input type="button" id="btn_deleteNHAsset" value="确认删除" >
</div>
</div>
<div class="div_module_c" id="div_transferNHAsset" pclass="class_3" >
<h2>NH资产转移</h2>
<div class="div_transferNHAsset div_module">
转移目标账户<input type="text" class="to_account" value="test2"><br><br>
<input type="text" class="NHAssetIds" value="4.2.2"><br><br>
<input type="button" id="btn_transferNHAsset" value="确认发送" />
</div>
</div>
<div class="div_module_c" id="div_sell" pclass="class_3">
<h2>NH资产出售单创建</h2>
<div class="div_creatNHAssetOrder div_module">
OTC交易平台账户otcAccount,用于收取挂单费用
<input type="text" class="receiver" value="otcaccount" ><br><br>
挂单费用fee<input type="text" class="token" value="1"><br><br>
挂单备注信息memo<input type="text" class="memo" value="NH资产挂单"><br><br>
商品挂单价格price<input type="text" class="price" value="2" ><br><br>
商品挂单价格币种priceAssetSymbol<input type="text" class="priceAssetSymbol" value="1.3.0" ><br><br>
过期时间(即挂卖时间,number类型,如3600,表示3600秒后过期)<input type="text" class="expiration" value="3600" ><br><br><br>
<!-- 游戏开发者账户<input type="text" class="developerAccount" value="" ><br><br> -->
获取账户NH资产 <input type="button" id="btn_getAccountNHAssetForSell" value="立即获取" /><br><br>
NH资产itemID<select class="sel_goods" >
<option value ="1">请选择您要卖的NH资产</option>
</select>
<br><br><br>
<p class="res"></p>
<input type="button" id="btn_creatNHAssetOrder" value="确认卖出NH资产" />
</div>
</div>
<div class="div_module_c" id="div_queryNHAssets" pclass="class_5" >
<h2>查询NH资产详细信息</h2>
<div class="div_queryNHAssets div_module">
hash或id<input type="text" class="NHAssetHashOrIds" value="4.2.11" ><br><br>
<input type="button" id="btn_queryNHAssets" value="立即查询" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_queryAccountNHAssets" pclass="class_5" >
<h2>查询账户下所拥有的NH资产</h2>
<div class="div_queryAccountNHAssets div_module">
查询账户<input type="text" class="account" value="test1" ><br><br>
查询的世界观<input type="text" class="worldViews" value="" ><br><br>
page<input type="text" class="page" placeholder="" value="1" ><br><br>
pageSize<input type="text" class="pageSize" placeholder="" value="10" ><br><br>
<input type="button" id="btn_queryAccountNHAssets" value="立即查询" />
<p class="res"></p>
</div>
</div>
<div class="div_module_c" id="div_queryAccountNHAssetOrders" pclass="class_5" >
<h2>查询账户下的NH资产售卖单</h2>
<div class="div_queryAccountNHAssetOrders div_module" style="width:98%;">
查询账户<input type="text" class="account" placeholder="" value="test1" ><br><br>
page<input type="text" class="page" placeholder="" value="1" ><br><br>
pageSize<input type="text" class="pageSize" placeholder="" value="10" ><br><br>
<input type="button" id="btn_queryAccountNHAssetOrders" value="立即查询" ><br><br>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>订单id</th>
<th>NH资产id</th>
<th>基本属性</th>
<th>域数据列表 </th>
<th>售卖价格</th>
<th>卖家</th>
<th>过期时间</th>
<th>备注</th>
<th>操作</th>
</tr>
</thead>
<tbody>
</tbody>
</table><br><br>
</div>
</div>
<div class="div_module_c" id="div_queryNHAssetOrders" pclass="class_5" >
<h2>查询(购买)全网NH资产售卖单</h2>
<div class="div_queryNHAssetOrders div_module" style="width:98%;">
资产ID或资产符号<input type="text" class="assetSymbolsOrIds" placeholder="" value="COCOS" ><br><br>
世界观ID或世界观名<input type="text" class="world_views" placeholder="" value="" ><br><br>
baseDescribe<input type="text" class="baseDescribe" placeholder="" value="" ><br><br>
page<input type="text" class="page" placeholder="" value="1" ><br><br>
pageSize<input type="text" class="pageSize" placeholder="" value="10" ><br><br>
<input type="button" id="btn_queryNHAssetOrders" value="立即查询" ><br><br>
<table class="table">
<thead>
<tr>
<th>#</th>
<th>订单id</th>
<th>NH资产id</th>
<th>基本属性</th>
<th>域数据列表 </th>
<th>售卖价格</th>
<th>卖家</th>
<th>过期时间</th>
<th>备注</th>
<th>操作</th>
</tr>
</thead>
<tbody>
</tbody>
</table><br><br>