/
index.html
903 lines (840 loc) · 60.8 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
<!--
/******************************************************************************
* Copyright © 2016 The Waves Developers. *
* *
* See the LICENSE file at *
* the top-level directory of this distribution for the individual copyright *
* holder information and the developer policies on copyright and licensing. *
* *
* Unless otherwise agreed in a custom licensing agreement, no part of the *
* Waves software, including this file may be copied, modified, propagated *
* or distributed except according to the terms contained in the LICENSE file *
* *
* Removal or modification of this copyright notice is prohibited. *
* *
******************************************************************************/
-->
<!doctype html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<title>Waves Lite Client</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../bower_components/angular/angular-csp.css">
<link rel="stylesheet" href="../bower_components/angular-material/angular-material.css">
<link rel="stylesheet" href="css/jquery.modal.css">
<link rel="stylesheet" href="css/jquery.growl.css">
<link rel="stylesheet" href="css/tooltipster.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="img/favicon.ico" type="image/x-icon" rel="shortcut icon"/>
</head>
<body ng-controller="homeController as home" ng-switch on="home.screen">
<!-- LOADER -->
<div ng-controller="splashController as splash" id="bg-spin" class="noSelect" ng-show="home.screen === 'splash-screen'">
<div id="logo-container-centered" class="centerIt">
<div id="logoo">
<img id="logo-spin" src="img/logo-spin.svg" />
<p id="networkCheck" ng-cloak>{{::splash.connectionFailed}}</p>
</div>
</div>
</div>
<!-- LOG IN AREA -->
<div id="lockscreen" class="userBG" ng-controller="accountsController as accounts" ng-switch-when="accounts-screen" ng-cloak>
<table id="lockscreenTable">
<thead>
<div id="logoNversion">
<img src="img/topleftlogo.svg" />
<p ng-class='{testnet: home.isTestnet()}'>{{::home.title}} <span class="wlcversion">{{::home.version}}</span></p>
</div>
</thead>
<tbody>
<tr>
<td>
<!-- Accounts -->
<div id="accounts">
<h2 id="AccHeader">{{accounts.caption}}</h2>
<div class="wavesAccounts" ng-controller="accountListController as list" ng-show="accounts.mode === 'list'">
<p class="loginAccountDiv" ng-repeat="account in list.accounts">
<span class="loginAccount fade" tooltipster tooltip-theme="tooltipster-theme1" title="Log into this account." ng-click="list.signIn(account)"> <br/>
<b>{{::account.name}}</b> <span class="divider-1"></span> <small>{{::account.address}}</small>
</span>
<span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard title="Copy this address to the clipboard." data-clipboard-text="{{::account.address}}" ngclipboard-success="clipboardOk()"></span>
<span class="divider-1"></span>
<button class="removeAccount wButtonAlt fade" tooltipster tooltip-theme="tooltipster-theme1" title="Remove this account from the list." ng-click="list.showRemoveWarning(account)">
<span class="wButton-icon"><img src="img/wIcon_x.svg"></span>REMOVE
</button>
</p>
<button id="import_account" class="wButton fade" tooltipster tooltip-theme="tooltipster-theme1" title="Click here to import an existing account." ng-click="list.importAccount()">IMPORT ACCOUNT</button>
<span class="divider-1"></span>
<button id="create_account" class="wButton fade" tooltipster tooltip-theme="tooltipster-theme1" title="Click here to create a brand new account." ng-click="list.createAccount()">NEW ACCOUNT</button>
<br/>
<!-- Remove Account popup -->
<div id="account-remove-popup" waves-dialog on-dialog-ok="list.removeAccount()" is-error="true" ok-button-caption="REMOVE">
<h2 class="sectionHeader">REMOVE ACCOUNT <span id="removeAccountSpan"></span> - NOTICE</h2>
<p>This feature completely removes the account from this device.
<br/><br/>
The account will not be eliminated or destroyed, but instead will not be shown anymore in the Accounts List at the client startup.
<br/><br/>
You can always re-generate your account on this device again using the Import Account feature and entering the SEED when prompted.
<br/><br/>
Click on the REMOVE button to proceed with the account removal, or CANCEL to return to the previous screen.
<br/><br/>
</p>
</div>
</div>
<!-- Seed input -->
<div id="create-seed" ng-controller="accountSeedController as vm" ng-show="accounts.mode === 'create-seed'">
<form id="account-seed-form" name="accountSeedForm" ng-submit="vm.checkSeedAndRegister(accountSeedForm)" novalidate ng-validate="vm.validationOptions">
<button id="generateRandomSeed" class="wButton fade" ng-click="vm.generateSeed()" type="button">GENERATE NEW SEED</button>
<br/><br/>
<div class="form-field">
<label for="walletSeed">WALLET SEED</label>
<br/>
<textarea id="walletSeed" rows="3" name="walletSeed" class="wInput" focus-me="accounts.mode === 'create-seed'" ng-model="vm.seed" ng-change="vm.refreshAddress()" ng-model-options="{ debounce: 750 }" ng-trim="false"></textarea>
<span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" title="Copy the seed to the clipboard." data-clipboard-target="#walletSeed" data-clipboard-message-success="Wallet seed has been successfully copied to clipboard" ></span>
<br/>
</div>
<br/>
<div class="wPop-content">
<div>ADDRESS
<br/>
<span>{{vm.displayAddress}}</span>
</div>
</div>
<button class="wButton fade" type="submit">REGISTER ACCOUNT</button>
<span class="divider-2"></span>
<button class="wButton fade" type="reset" ng-click="vm.back()">BACK</button>
<div id="seed-whitespace-popup" waves-dialog on-dialog-ok="vm.registerAccount()" closeable="false" ok-button-caption="PROCEED">
<h2>SEED NOTICE</h2>
<p>
Your wallet seed contains one or more trailing whitespace characters.
<br/><br/>
A seed with a whitespace at the end and a seed without one are different, and will result in different addresses generated.
<br/><br/>
It is strongly recommended that you avoid trailing whitespaces in the seed. If you understand the implications of including a trailing whitespace in your seed, press <b>PROCEED</b>.
Press <b>CANCEL</b> or close the dialog box to edit your seed.<br/>
</p>
</div>
</form>
</div>
<div id="login-wPop-new" waves-dialog ok-button-caption="I UNDERSTAND" on-dialog-ok="" cancel-button-visible="false" closeable="false">
<h2 class="sectionHeader">NEW ACCOUNT - NOTICE</h2>
<p>This feature involves the creation of a new account on Waves platform.
<br/><br/>
The procedure consists of complex cryptographic operations that use a <b>SEED</b> (a series of random words) to create a unique address for your account.
<br/><br/>
This SEED is extremely important and must be kept in safe place, since it's the only way to recover your account in case of lost, corrupted data or hardware failure.
<br/>
Your SEED will also allow you to IMPORT your account to other devices.
<br/><br/>
<i>NOTE: Make sure that you select the entire SEED length before keeping it. It's suggested to use the copy-to-clipboard button located the right side of the SEED box.</i>
</p>
</div>
<!-- store account on the current device -->
<div id="register" ng-controller="accountRegisterController as vm" ng-show="accounts.mode === 'register'">
<form id="register-form" name="registerForm" novalidate ng-submit="vm.saveAccountAndSignIn(registerForm)" ng-validate="vm.validationOptions">
<div class="wPop-content">
<label for="readonlySeed">WALLET SEED</label>
<br/>
<textarea id="readonlySeed" rows="3" class="wInput" ng-model="vm.seed" ng-model-options="{ getterSetter: true }" readonly></textarea>
<br/><br/>
<div>ADDRESS
<br/>
<span>{{accounts.displayAddress}}</span>
</div>
<br/>
<div class="form-field">
<label for="walletName">
NAME<span class="infoSpan" tooltipster tooltip-theme="tooltipster-theme1" tooltip-html title="It is possible to assign a name to your account(s)
<br/>
in order to make them more memorable, feel
<br/>
free to use the field below to do so.
<br/><br/>
<i>NOTE: This is optional, the accounts do not forcefully
<br/>
need to have assigned a name.</i>"></span>
<br/>
</label>
<input type="text" id="walletName" name="walletName" class="wInput" ng-model="vm.name" focus-me="accounts.mode === 'register'"/>
</div>
<br/>
<div class="form-field">
<label for="walletPassword">
PASSWORD<span class="infoSpan" tooltipster tooltip-theme="tooltipster-theme1" tooltip-html title="Used to encrypt your wallet seed, the password
<br/>
will be prompted at the time of login.
<br/><br/>
It is imperative that the user keeps it in a safe
<br/>
place at all times."></span>
</label>
<br/>
<input type="password" id="walletPassword" name="walletPassword" class="wInput" ng-model="vm.password"/>
</div>
<br/>
<div class="form-field">
<label for="walletPasswordConfirm">REPEAT PASSWORD</label>
<br/>
<input type="password" id="walletPasswordConfirm" name="walletPasswordConfirm" class="wInput" ng-model="vm.confirmPassword"/>
</div>
<br/>
<button class="wButton fade" type="submit">REGISTER</button>
<span class="divider-2"></span>
<button class="wButton fade" type="reset" ng-click="vm.cancel()">CANCEL</button>
</div>
</form>
</div>
<!-- log in to selected account -->
<div id="account-login" ng-controller="accountLoginController as vm" ng-show="accounts.mode === 'login'">
<form id="login-form">
<div>ACCOUNT
<br/>
<span>{{accounts.displayAddress}}</span>
</div>
<br/>
<label for="accountPassword">PASSWORD</label>
<br/>
<input type="password" id="accountPassword" class="wInput" ng-model="vm.password" focus-me="accounts.mode === 'login'"/>
<br/><br/>
<button class="wButton fade" ng-click="vm.signIn()">SIGN IN</button>
<span class="divider-2"></span>
<button class="wButton fade" ng-click="vm.cancel()">CANCEL</button>
</form>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="wrapper" ng-switch-when="main-screen" ng-cloak>
<!-- shared blocks -->
<div id="feat-not-active" waves-dialog show-buttons="false" is-error="true">
<h2 class="sectionHeader">NOTICE</h2>
<p>This feature is still under development and not active during the alpha release.
<br/><br/>
Follow our social media channels for being up-to-date with the latest improvements and developments.
<br/><br/>
</p>
<div class="modal-media">
<a href="https://blog.wavesplatform.com/" target="_blank"><img class="modal-media-img" src="img/blog_icon.svg" /></a>
<a href="https://twitter.com/wavesplatform" target="_blank"><img class="modal-media-img" src="img/twitter_icon.svg" /></a>
<a href="https://www.facebook.com/wavesplatform" target="_blank"><img class="modal-media-img" src="img/facebook_icon.svg" /></a>
<a href="http://slack.wavesplatform.com/" target="_blank"><img class="modal-media-img" src="img/slack_icon.svg" /></a>
<a href="https://www.reddit.com/r/Wavesplatform/" target="_blank"><img class="modal-media-img" src="img/reddit_icon.svg" /></a>
<a href="https://vk.com/wavesplatform" target="_blank"><img id="icon-blog" class="modal-media-img" src="img/vk_icon.svg" /></a>
</div>
</div>
<!-- /shared blocks-->
<!-- HEADER -->
<header class="fFade noSelect" ng-controller="mainMenuController as menu">
<img id="topLogoH" src="img/topleftlogo_hor.svg" alt="Waves platform logo horizontal" />
<div id="logoNversion2">
<img src="img/topleftlogo.svg" />
<p ng-class='{testnet: home.isTestnet()}'>{{::home.title}} <span class="wlcversion">{{::home.version}}</span></p>
</div>
<span id="version" class="centerIt">Address:
<span id="wavesAccountAddress" class="clipSpan" tooltipster tooltip-theme="tooltipster-theme3" title="Copy the address to clipboard." ngclipboard data-clipboard-text="{{::menu.address}}" ngclipboard-success="clipboardOk()">{{::menu.address}}</span>
<span class="divider-2"></span>
<span class="inlineParagraph">Block:</span> <span id="blockheight">{{menu.blockHeight}}</span>
</span>
<div id="header-Iconset">
<a ng-click="menu.showBackupDialog()">
<img class="header-Icon fade" tooltipster tooltip-theme="tooltipster-theme2" src="img/uiTB-iconset-backup.svg" alt="Backup" title="Backup"/>
</a>
<div id="header-wPop-backup" waves-dialog on-dialog-ok="menu.backup()" ok-button-caption="COPY" cancel-button-caption="CLOSE">
<h2 class="sectionHeader">ACCOUNT INFO BACKUP</h2>
<p>Your account's basic information, click the <b>COPY</b> button in order to copy the contents to the clipboard or <b>CLOSE</b> to exit.</p></br>
<form id="backupForm">
<label for="seedBackup">SEED</label><br/>
<textarea id="seedBackup" class="wInput" rows="3" readonly ng-model="menu.seed"></textarea><br/>
<label for="encodedSeedBackup">ENCODED SEED</label><br/>
<textarea id="encodedSeedBackup" class="wInput" rows="3" readonly ng-model="menu.encodedSeed"></textarea><br/>
<label for="privateKeyBackup">PRIVATE KEY</label><br/>
<input id="privateKeyBackup" class="wInput" type="text" readonly ng-model="menu.privateKey"/><br/>
<label for="publicKeyBackup">PUBLIC KEY</label><br/>
<input id="publicKeyBackup" class="wInput" type="text" readonly ng-model="menu.publicKey"/><br/>
<label for="addressBackup">ADDRESS</label><br/>
<input id="addressBackup" class="wInput" type="text" readonly ng-model="menu.address"/>
</form>
</div>
<a ng-click="home.featureUnderDevelopment()">
<img class="header-Icon fade" tooltipster tooltip-theme="tooltipster-theme2" src="img/uiTB-iconset-preferences.svg" alt="Preferences" title="Preferences"/>
</a>
<a ng-click="home.featureUnderDevelopment()">
<img class="header-Icon fade" tooltipster tooltip-theme="tooltipster-theme2" src="img/uiTB-iconset-profile.svg" alt="User profile" title="User profile"/>
</a>
<a ng-click="home.logout()">
<img class="header-Icon fade" tooltipster tooltip-theme="tooltipster-theme2" src="img/uiTB-iconset-logout.svg" alt="Log out" title="Log out" />
</a>
</div>
</header>
<!-- / HEADER -->
<!-- <span class="jurl"></span>-->
<div id="navigationContainer" ng-controller="navigationController as nav">
<!-- APPLICATION TAB SELECTORS -->
<section id="tabs" class="fFade noSelect">
<div id="tabs-Iconset" class="centerIt">
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="wallet" caption="'Wallet tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Wallet</u></center><br/>Area containing the main wallets."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="portfolio" caption="'Portfolio tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Portfolio</u></center><br/>Display all your assets, both digital and physical<br/>as well as allowing transfers."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="exchange" caption="'Exchange tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Waves Decentralized Exchange</u></center><br/>Access to Waves markets where you can<br/>conveniently buy, sell and trade tokens."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="voting" caption="'Voting tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Voting Area</u></center><br/>Decentralized voting utility."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="history" caption="'History tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>History</u></center><br/>Access all your transaction records."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="tokens" caption="'Tokens Creation tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Tokens Creation tab</u></center><br/>Area in which assets can be created."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="messages" caption="'Messages tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Decentralized Messenger</u></center><br/>Allows private communication between Waves users."></span>
<span waves-tab on-select="nav.changeTab(pageId)" current-page-id="nav.currentTab" page-id="community" caption="'Community tab'" tooltipster tooltip-html
tooltip-theme="tooltipster-theme3" tooltip-title="<center><u>Community tab</u></center><br/>Resources to learn more about Waves project such as <br/>forums, blogs, websites, etc."></span>
</div>
</section>
<!-- BODY CONTENT -->
<section id="mBBody" class="fFade" ng-switch on="nav.currentTab">
<!-- WALLET TAB -->
<div id="mBB-wallet" class="mBB-content" ng-switch-when="wallet" ng-controller="walletController as wallet">
<div id="wB-butSend-WAV" waves-dialog ok-button-caption="SUBMIT" cancel-button-visible="false" on-dialog-ok="wallet.submitPayment()">
<form id="send-waves-form" name="sendWavesForm" class="paymentForm" novalidate ng-validate="wallet.paymentValidationOptions">
<h2 class="sectionHeader">SEND PAYMENT</h2>
<div class="balanceAmt">
<p>Balance: </p><span class="balancewaves">{{wallet.current.balance.formatAmount(true)}}</span>
</div>
<table>
<thead>
<tr>
<th>DESCRIPTION</th>
<th>INPUT</th>
</tr>
</thead>
<tbody>
<tr>
<td>Recipient's Address</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="wavesrecipient" type="text" placeholder="Recipient" ng-model="wallet.transfer.recipient" />
</div>
</td>
</tr>
<tr>
<td>Amount</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="wavessendamount" type="text" placeholder="Amount" ng-model="wallet.transfer.amount" />
</div>
</td>
</tr>
<tr>
<td>Fee</td>
<td>
<md-autocomplete md-input-name="wavessendfee" md-selected-item="wallet.transfer.selectedFee" md-search-text="wallet.transfer.searchText"
md-items="item in wallet.transfer.querySearch(wallet.transfer.searchText)"
md-item-text="item.amount.toString()" md-min-length="0" md-require-match="" md-no-cache="true"
md-menu-class="popup-autocomplete" ng-class="{'wInput-error': !wallet.transfer.fee.isValid}">
<md-item-template>
<span md-highlight-text="wallet.transfer.searchText">{{item.displayText}}</span>
</md-item-template>
</md-autocomplete>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div id="send-payment-confirmation" waves-dialog ok-button-caption="CONFIRM" ok-button-enabled="!wallet.confirm.pendingPayment" on-dialog-ok="wallet.broadcastSendTransaction()">
<p>You are sending <span class="confirmation-value">{{wallet.confirm.amount.value}}</span>
<span class="confirmation-value">{{wallet.confirm.amount.currency}}</span> with
<span class="confirmation-value">{{wallet.confirm.fee.value}}</span>
<span class="confirmation-value">{{wallet.confirm.fee.currency}}</span> fee to the address<br/>
<span class="confirmation-value">{{wallet.confirm.recipient}}</span>
</p>
<p>Please <span class="fontBold"> CONFIRM </span>to execute or <span class="fontBold"> CANCEL </span> to discard.</p>
</div>
<div class="flex-container">
<wallet-box class="walletBox" ng-repeat="w in wallet.wallets" balance="w.balance" on-send="wallet.send(currency)"
on-withdraw="wallet.withdraw(currency)" on-trade="wallet.trade(currency)"></wallet-box>
</div>
<div id="wallet-transaction-history" class="wavesTable">
<table>
<h2 class="sectionHeader">LATEST TRANSACTIONS</h2>
<thead>
<tr>
<td>DATE</td>
<td>TYPE</td>
<td>SENDER</td>
<td>RECIPIENT</td>
<td>FEE</td>
<td>UNITS</td>
</tr>
</thead>
<tbody id="walletTransactionhistory">
<tr ng-repeat="tx in wallet.transactions | orderBy:'timestamp':true | limitTo:10 | transaction track by tx.timestamp" ng-class="{'wavesTable-txUnc': tx.unconfirmed, 'wavesTable-txIn': !tx.formatted.isOutgoing, 'wavesTable-txOut': tx.formatted.isOutgoing}">
<td>{{tx.formatted.datetime}}</td>
<td>{{tx.formatted.type}}</td>
<td ng-if="!tx.formatted.isSenderCopiable">{{tx.formatted.sender}}</td>
<td ng-if="tx.formatted.isSenderCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.sender}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.sender}}</span></td>
<td ng-if="!tx.formatted.isRecipientCopiable">{{tx.formatted.recipient}}</td>
<td ng-if="tx.formatted.isRecipientCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.recipient}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.recipient}}</span></td>
<td>{{tx.formatted.fee}}</td>
<td>{{tx.formatted.amount}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- / WALLET TAB -->
<!-- PORTFOLIO TAB -->
<div id="mBB-portfolio" class="mBB-content" ng-switch-when="portfolio">
<div ng-controller="assetListController as assetList">
<h2 class="sectionHeader">PORTFOLIO</h2>
<table class="wavesTable">
<thead>
<tr>
<td>ASSET NAME</td>
<td>ISSUER</td>
<td>RE-ISSUABLE</td>
<td>BALANCE</td>
<td>OPTIONS</td>
</tr>
</thead>
<tbody ng-switch on="assetList.assets.length">
<tr ng-switch-when="0">
<td colspan="5">You do not own or issued any assets</td>
</tr>
<tr ng-switch-default ng-repeat="tx in assetList.assets | orderBy:'timestamp':true | asset track by tx.id">
<td>{{tx.name}}</td>
<td ng-if="!tx.formatted.isSenderCopiable">{{tx.formatted.sender}}</td>
<td ng-if="tx.formatted.isSenderCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.sender}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.sender}}</span></td>
<td>{{tx.reissuable}}</td>
<td>{{tx.balance}}</td>
<td>
<button class="wButton wButton-neg fade" ng-click="assetList.assetTransfer(tx.id)">Transfer</button><span class="divider-2"></span>
<button class="wButton wButton-neg fade" ng-disabled="!tx.formatted.canReissue" ng-click="assetList.assetReissue(tx.id)">Reissue</button><span class="divider-2"></span>
<button class="wButton wButton-neg fade" ng-click="assetList.assetDetails(tx.id)">Details</button>
</td>
</tr>
</tbody>
</table>
<div class="noDisp" ng-controller="assetDetailsController as details">
<div id="asset-details-dialog" waves-dialog cancel-button-visible="false">
<h2>ASSET DETAILS</h2>
<table>
<tbody>
<tr>
<td>Issuer address:</td>
<td ng-if="!details.isSenderCopiable">{{details.sender}}</td>
<td ng-if="details.isSenderCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{details.sender}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{details.sender}}</span></td>
</tr>
<tr>
<td>Identifier:</td>
<td><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{details.assetId}}" title="Copy this asset id to the clipboard." ngclipboard-success="clipboardOk()">{{details.assetId}}</span></td>
</tr>
<tr>
<td>Name:</td>
<td>{{details.name}}</td>
</tr>
<tr>
<td colspan="2">Details:</td>
</tr>
<tr>
<td colspan="2">{{details.description}}</td>
</tr>
<tr>
<td>Total tokens:</td>
<td>{{details.totalTokens}}</td>
</tr>
<tr>
<td>Reissuable:</td>
<td>{{details.reissuable}}</td>
</tr>
<tr>
<td>Issue date:</td>
<td>{{details.timestamp | formatting}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="noDisp" ng-controller="assetTransferController as transfer">
<div id="asset-transfer-dialog" waves-dialog ok-button-caption="TRANSFER" on-dialog-ok="transfer.submitTransfer()">
<form id="transfer-asset-form" name="transferAssetForm" novalidate ng-validate="transfer.validationOptions">
<h2 class="sectionHeader">ASSET TRANSFER</h2>
<div class="balanceAmt">
<p>Balance: </p><span class="balancewaves">{{transfer.availableBalance}}</span>
</div>
<table class="wavesTable">
<thead>
<th>DESCRIPTION</th>
<th>INPUT</th>
</thead>
<tbody>
<tr>
<td>Recipient's Address</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="assetRecipient" type="text" placeholder="Recipient" ng-model="transfer.recipient" />
</div>
</td>
</tr>
<tr>
<td>Amount</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="assetAmount" type="text" placeholder="Amount" ng-model="transfer.amount" />
</div>
</td>
</tr>
<tr>
<td>Fee</td>
<td>
<md-autocomplete md-input-name="assetFee" md-selected-item="transfer.autocomplete.selectedFee" md-search-text="transfer.autocomplete.searchText"
md-items="item in transfer.autocomplete.querySearch(transfer.autocomplete.searchText)"
md-item-text="item.amount.toString()" md-min-length="0" md-require-match="" md-no-cache="true"
md-menu-class="popup-autocomplete" ng-class="{'wInput-error': !transfer.fee.isValid}">
<md-item-template>
<span md-highlight-text="transfer.autocomplete.searchText">{{item.displayText}}</span>
</md-item-template>
</md-autocomplete>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div id="transfer-asset-confirmation" waves-dialog ok-button-caption="CONFIRM" ok-button-enabled="!transfer.confirm.pendingTransfer" on-dialog-ok="transfer.broadcastTransaction()">
<p>You are sending <span class="confirmation-value">{{transfer.confirm.amount.value}}</span>
<span class="confirmation-value">{{transfer.confirm.amount.currency}}</span> with
<span class="confirmation-value">{{transfer.confirm.fee.value}}</span>
<span class="confirmation-value">{{transfer.confirm.fee.currency}}</span> fee <br/>to the address: <span class="confirmation-value">{{transfer.confirm.recipient}}</span>
</p>
<p>Please <span class="fontBold"> CONFIRM </span>to execute or <span class="fontBold"> CANCEL </span> to discard.</p>
</div>
</div>
<div class="noDisp" ng-controller="assetReissueController as reissue">
<div id="asset-reissue-dialog" waves-dialog ok-button-caption="REISSUE" ok-button-enabled="!reissue.confirm.pendingReissue" on-dialog-ok="reissue.submitReissue()">
<form id="asset-reissue-form" name="assetReissueForm" novalidate ng-validate="reissue.validationOptions">
<h2 class="sectionHeader">ASSET REISSUE</h2>
<div class="balanceAmt">
<p>Total tokens issued: </p><span class="balancewaves">{{reissue.totalTokens}}</span>
</div>
<table class="wavesTable">
<thead>
<tr>
<th>DESCRIPTION</th>
<th>INPUT</th>
</tr>
</thead>
<tbody>
<tr>
<td>Asset identifier</td>
<td>{{reissue.assetId}}</td>
</tr>
<tr>
<td>Asset name</td>
<td>{{reissue.assetName}}</td>
</tr>
<tr>
<td>Additional amount</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="assetAmount" type="text" placeholder="Amount" ng-model="reissue.amount" />
</div>
</td>
</tr>
<tr>
<td>Reissue enabled</td>
<td>
<div class="form-field">
<input class="wInput form-control" name="assetReissue" type="checkbox" ng-model="reissue.reissuable" />
</div>
</td>
</tr>
<tr>
<td>Fee</td>
<td>{{reissue.fee.formatAmount(true)}}</td>
</tr>
</tbody>
</table>
</form>
</div>
<div id="asset-reissue-confirm-dialog" waves-dialog ok-button-caption="CONFIRM" ok-button-enabled="!reissue.confirm.reissuePending" on-dialog-ok="reissue.broadcastTransaction()">
<p>You are issuing additional amount of <span class="confirmation-value">{{reissue.confirm.amount.value}}</span> tokens <br/>
to the asset <span class="confirmation-value">{{reissue.confirm.amount.currency}}</span>
with <span class="confirmation-value">{{reissue.confirm.fee.value}}</span>
<span class="confirmation-value">{{reissue.confirm.fee.currency}}</span> fee
</p>
<p>Please <span class="fontBold"> CONFIRM </span>to execute or <span class="fontBold"> CANCEL </span> to discard.</p>
</div>
</div>
</div>
</div>
<!-- / PORTFOLIO TAB -->
<!-- EXCHANGE TAB -->
<div id="mBB-exchange" class="mBB-content" ng-switch-when="exchange">
<div class="phContent">
<h1>DECENTRALIZED EXCHANGE</h1>
<br/>
<p>Waves' features include a decentralized exchange in which users will be able to trade tokens of all kinds. There will be no AML/KYC requirements in order to use this service.
<br/><br/>
The Decentralized Exchange is scheduled for launch in the last quarter of 2016.
</p>
<br/><br/>
<img src="img/tab_dex_prev.svg" />
</div>
</div>
<!-- / EXCHANGE TAB -->
<!-- VOTING TAB -->
<div id="mBB-voting" class="mBB-content" ng-switch-when="voting">
<div class="phContent">
<h1>DECENTRALIZED VOTING</h1>
<br/>
<p>With a fair and automated system, Waves' voting area enables communities and projects to achieve consensus for critical decision-making that might otherwise prove difficult or controversial. A full set of analytic tools will also be available to follow up the voting process in real time.
<br/><br/>
The Decentralized Voting feature is scheduled for launch in the final quarter of 2016.
</p>
<br/><br/>
<img src="img/tab_vote_prev.svg" />
</div>
</div>
<!-- / VOTING TAB -->
<!-- HISTORY TAB -->
<div id="mBB-history" class="mBB-content" ng-switch-when="history" ng-controller="historyController as history">
<div id="full-transaction-history" class="wavesTable" >
<h2 class="sectionHeader">LATEST TRANSACTIONS</h2>
<table>
<thead>
<!-- <div class="wTMainHeader">LATEST TRANSACTIONS</div>-->
<tr>
<td>DATE</td>
<td>TYPE</td>
<td>SENDER</td>
<td>RECIPIENT</td>
<td>FEE</td>
<td>UNITS</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="tx in history.unconfirmed | orderBy:'timestamp':true | limitTo:10 | transaction track by tx.timestamp" class="wavesTable-txUnc" ng-class="{'wavesTable-txIn': !tx.formatted.isOutgoing, 'wavesTable-txOut': tx.formatted.isOutgoing}">
<td>{{tx.formatted.datetime}}</td>
<td>{{tx.formatted.type}}</td>
<td>{{tx.formatted.sender}}</td>
<td>{{tx.formatted.recipient}}</td>
<td>{{tx.formatted.fee}}</td>
<td>{{tx.formatted.amount}}</td>
</tr>
</tbody>
<tbody>
<tr ng-repeat="tx in history.confirmed | orderBy:'timestamp':true | limitTo:10 | transaction track by tx.timestamp" ng-class="{'wavesTable-txIn': !tx.formatted.isOutgoing, 'wavesTable-txOut': tx.formatted.isOutgoing}">
<td>{{tx.formatted.datetime}}</td>
<td>{{tx.formatted.type}}</td>
<td>{{tx.formatted.sender}}</td>
<td>{{tx.formatted.recipient}}</td>
<td>{{tx.formatted.fee}}</td>
<td>{{tx.formatted.amount}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- / HISTORY TAB -->
<!-- TOKENS TAB -->
<div id="mBB-token" class="mBB-content" ng-switch-when="tokens">
<div ng-controller="tokenCreateController as ctrl">
<h2 class="sectionHeader">ASSET CREATION</h2>
<form id="create-asset-form" name="createAssetForm" novalidate ng-validate="ctrl.issuanceValidationOptions" ng-submit="ctrl.assetIssueConfirmation(createAssetForm, $event)">
<table class="wavesTable">
<thead>
<tr>
<td>DESCRIPTION</td>
<td>INPUT</td>
</tr>
</thead>
<tbody>
<tr>
<td><label for="assetName">Name</label></td>
<td><input id="assetName" name="assetName" type="text" class="wInput form-control" focus-me="true" ng-model="ctrl.asset.name"/></td>
</tr>
<tr>
<td><label for="assetDescription">Description</label></td>
<td><textarea id="assetDescription" name="assetDescription" class="wInput" rows="3" ng-model="ctrl.asset.description"></textarea></td>
</tr>
<tr>
<td><label for="assetTotalTokens">Total Tokens</label></td>
<td><input id="assetTotalTokens" name="assetTotalTokens" class="wInput" type="text" ng-model="ctrl.asset.totalTokens"/></td>
</tr>
<tr>
<td><label for="assetTokenDecimalPlaces">Token Decimals</label></td>
<td><input id="assetTokenDecimalPlaces" name="assetTokenDecimalPlaces" class="wInput" type="text" ng-model="ctrl.asset.decimalPlaces"/></td>
</tr>
<tr>
<td><label for="assetReissuable">Re-issuable</label></td>
<td><input id="assetReissuable" name="assetReissuable" type="checkbox" class="wInput" ng-model="ctrl.asset.reissuable"/></td>
</tr>
<tr class="noSelect">
<td>Fee</td>
<td>{{::ctrl.asset.fee.formatAmount(true)}} WAVES</td>
</tr>
</tbody>
</table>
<div>
<button class="wButton wButton-neg fade" type="submit">SUBMIT</button>
</div>
</form>
<div id="create-asset-confirmation" waves-dialog ok-button-caption="CONFIRM" ok-button-enabled="!ctrl.confirm.pendingIssuance" on-dialog-ok="ctrl.broadcastIssueTransaction()">
<p>You are creating a <span class="confirmation-value">{{ctrl.confirm.reissuable}}</span> asset named
<span class="confirmation-value">{{ctrl.confirm.name}}</span><br/> with
<span class="confirmation-value">{{ctrl.confirm.totalTokens}}</span> of total tokens amount
</p>
<p>Please <span class="fontBold"> CONFIRM </span>to execute or <span class="fontBold"> CANCEL </span> to discard.</p>
</div>
</div>
</div>
<!-- / TOKENS TAB -->
<!-- MESSAGES TAB -->
<div id="mBB-messages" class="mBB-content" ng-switch-when="messages">
<div class="phContent">
<h1>MESSAGING CENTER</h1>
<br/>
<p>Soon to be renamed/rebranded as CONTACTS, this is an area in which users will be able to add other individuals or groups to several list types, providing an easy way to keep track of friends, execute regular, automated payments, and much more.
<br/><br/>
The Contacts area services is scheduled for launch in the third quarter of 2016.
</p>
<br/><br/>
<img src="img/tab_cont_prev.svg" />
</div>
<div id="addContact-wPop" class="wavesPop">
<img class="wPop-header" src="img/modal-header.svg" />
<form id="addContactForm" class="wPop-content">
<h2>ADD CONTACT</h2>
<p>Fill the fields below in order to add a new contact to your list:</p>
<p>Name</p>
<input type="text" id="contactname" placeholder="" class="wInput" />
<p>Address</p>
<input type="text" id="contactaddress" placeholder="" class="wInput" />
<p>Email</p>
<input type="email" id="contactemail" placeholder="" class="wInput" />
<br/><br/>
<button id="addContactSubmit" class="wButton fade">ADD CONTACT</button>
</form>
</div>
</div>
<!-- / MESSAGES TAB -->
<!-- COMMUNITY TAB -->
<div id="mBB-community" class="mBB-content" ng-switch-when="community" ng-controller="communityController as community">
<!-- Temporary -->
<p>DISCLAIMER: The Community tab will temporarily hold block information for testing purposes. After alpha phase this data will be relocated inside the Preferences - Advanced area.</p>
<h2>LATEST BLOCKS INFORMATION</h2>
<p class="centerIt">
<div id="latestBlocks" class="wavesTable" >
<table>
<thead>
<tr class="fade">
<td>HEIGHT</td>
<td>DATE</td>
<td>TRANSACTIONS</td>
<td>GENERATOR</td>
</tr>
</thead>
<tbody id="latestBlocksUnconfirmed">
<tr class="fade">
<td>{{community.candidate.block}}</td>
<td><i>incoming</i></td>
<td>{{community.candidate.size}}</td>
<td><i>unconfirmed</i></td>
</tr>
</tbody>
<tbody id="latestBlocksTable">
<tr class="fade" ng-repeat="block in community.blocks | orderBy:'timestamp':true">
<td>{{block.height}}</td>
<td>{{block.timestamp | formatting}}</td>
<td>{{block.transactions.length}}</td>
<td>
<span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard title="Copy this address to the clipboard." data-clipboard-text="{{block.generator}}" ngclipboard-success="clipboardOk()">{{block.generator}}</span>
</td>
</tr>
</tbody>
</table>
</div>
</p>
</div>
<!-- /COMMUNITY TAB -->
</section>
</div>
</div> <!-- Wrapper div END -->
<!-- JAVASCRIPT -->
<script src="../bower_components/jquery/dist/jquery.js"></script>
<script src="../bower_components/js-sha3/src/sha3.js"></script>
<!-- angular -->
<script src="../bower_components/angular/angular.js"></script>
<script src="../bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="../bower_components/angular-animate/angular-animate.js"></script>
<script src="../bower_components/angular-aria/angular-aria.js"></script>
<script src="../bower_components/angular-material/angular-material.js"></script>
<script src="../bower_components/restangular/dist/restangular.js"></script>
<!-- utilities -->
<script src="../bower_components/underscore/underscore.js"></script>
<script src="../bower_components/decimal.js/decimal.js"></script>
<script src="../bower_components/nprogress/nprogress.js"></script>
<script src="../bower_components/clipboard/dist/clipboard.js"></script>
<script src="../bower_components/ngclipboard/dist/ngclipboard.js"></script>
<script src="../bower_components/growl/javascripts/jquery.growl.js"></script>
<script src="../bower_components/jquery-validation/dist/jquery.validate.js"></script>
<script src="../bower_components/tooltipster/js/jquery.tooltipster.js"></script>
<script src="../bower_components/waves-angular-validate/src/angular-validate.js"></script>
<!-- crypto libraries -->
<script src="../bower_components/Base58/Base58.js"></script>
<script src="../bower_components/cryptojslib/rollups/aes.js"></script>
<script src="../bower_components/cryptojslib/rollups/sha256.js"></script>
<script src="../bower_components/curve25519-js/axlsign.js"></script>
<script src="js/vendor/jquery.modal.js"></script>
<!-- application modules -->
<script src="../bower_components/wavesplatform-core-js/distr/wavesplatform-core-js-0.2.0.js"></script>
<script src="js/app.js"></script>
<script src="js/ui.module.js"></script>
<script src="js/application.context.factory.js"></script>
<script src="js/home.controller.js"></script>
<script src="js/splash.controller.js"></script>
<script src="js/shared/shared.module.js"></script>
<script src="js/shared/shared.constants.js"></script>
<script src="js/shared/dialog.service.js"></script>
<script src="js/shared/shared.dialog.directive.js"></script>
<script src="js/shared/focus.directive.js"></script>
<script src="js/shared/tooltipster.directive.js"></script>
<script src="js/shared/notification.service.js"></script>
<script src="js/shared/transaction.loading.service.js"></script>
<script src="js/shared/transaction.filter.js"></script>
<script src="js/shared/shared.autocomplete.js"></script>
<script src="js/login/login.module.js"></script>
<script src="js/login/login.constants.js"></script>
<script src="js/login/login.context.factory.js"></script>
<script src="js/login/accounts.controller.js"></script>
<script src="js/login/account.list.controller.js"></script>
<script src="js/login/account.register.controller.js"></script>
<script src="js/login/account.seed.controller.js"></script>
<script src="js/login/account.login.controller.js"></script>
<script src="js/navigation/navigation.module.js"></script>
<script src="js/navigation/main.menu.controller.js"></script>
<script src="js/navigation/navigation.controller.js"></script>
<script src="js/navigation/tab.directive.js"></script>
<script src="js/wallet/wallet.module.js"></script>
<script src="js/wallet/wallet.box.component.js"></script>
<script src="js/wallet/wallet.controller.js"></script>
<script src="js/tokens/tokens.module.js"></script>
<script src="js/tokens/token.create.controller.js"></script>
<script src="js/history/history.module.js"></script>
<script src="js/history/history.controller.js"></script>
<script src="js/community/community.module.js"></script>
<script src="js/community/community.controller.js"></script>
<script src="js/portfolio/portfolio.module.js"></script>
<script src="js/portfolio/asset.list.controller.js"></script>
<script src="js/portfolio/asset.transfer.controller.js"></script>
<script src="js/portfolio/asset.details.controller.js"></script>
<script src="js/portfolio/asset.reissue.controller.js"></script>
<script src="js/portfolio/asset.filter.js"></script>
<script src="js/style.js"></script>
</body>
</html>