Pārlūkot izejas kodu

wallet server commit

Navya Sanal 6 gadus atpakaļ
vecāks
revīzija
fac06a3d0a

+ 111
- 103
.idea/workspace.xml Parādīt failu

27
   </component>
27
   </component>
28
   <component name="FileEditorManager">
28
   <component name="FileEditorManager">
29
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
30
-      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
30
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="true">
31
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
31
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
32
           <provider selected="true" editor-type-id="text-editor">
32
           <provider selected="true" editor-type-id="text-editor">
33
-            <state relative-caret-position="285">
34
-              <caret line="19" column="29" selection-start-line="19" selection-start-column="29" selection-end-line="19" selection-end-column="29" />
35
-              <folding>
36
-                <element signature="imports" expanded="true" />
37
-                <element signature="e#432#433#0" expanded="true" />
38
-                <element signature="e#472#473#0" expanded="true" />
39
-                <element signature="e#504#505#0" expanded="true" />
40
-                <element signature="e#540#541#0" expanded="true" />
41
-                <element signature="e#572#573#0" expanded="true" />
42
-                <element signature="e#622#623#0" expanded="true" />
43
-                <element signature="e#664#665#0" expanded="true" />
44
-              </folding>
45
-            </state>
46
-          </provider>
47
-        </entry>
48
-      </file>
49
-      <file leaf-file-name="StringUtil.java" pinned="false" current-in-tab="false">
50
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java">
51
-          <provider selected="true" editor-type-id="text-editor">
52
-            <state relative-caret-position="525">
53
-              <caret line="35" column="5" selection-start-line="35" selection-start-column="5" selection-end-line="35" selection-end-column="5" />
54
-              <folding>
55
-                <element signature="e#1170#1171#0" expanded="true" />
56
-                <element signature="e#1209#1210#0" expanded="true" />
57
-              </folding>
33
+            <state relative-caret-position="105">
34
+              <caret line="14" column="4" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
58
             </state>
35
             </state>
59
           </provider>
36
           </provider>
60
         </entry>
37
         </entry>
63
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
40
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
64
           <provider selected="true" editor-type-id="text-editor">
41
           <provider selected="true" editor-type-id="text-editor">
65
             <state relative-caret-position="45">
42
             <state relative-caret-position="45">
66
-              <caret line="3" selection-start-line="3" selection-end-line="3" />
43
+              <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
67
             </state>
44
             </state>
68
           </provider>
45
           </provider>
69
         </entry>
46
         </entry>
70
       </file>
47
       </file>
71
-      <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
72
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
48
+      <file leaf-file-name="BlockLoader.java" pinned="false" current-in-tab="false">
49
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java">
73
           <provider selected="true" editor-type-id="text-editor">
50
           <provider selected="true" editor-type-id="text-editor">
74
-            <state relative-caret-position="232">
75
-              <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
51
+            <state relative-caret-position="30">
52
+              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
76
             </state>
53
             </state>
77
           </provider>
54
           </provider>
78
         </entry>
55
         </entry>
79
       </file>
56
       </file>
80
-      <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
81
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/Miner.java">
57
+      <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
58
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
82
           <provider selected="true" editor-type-id="text-editor">
59
           <provider selected="true" editor-type-id="text-editor">
83
-            <state relative-caret-position="60">
84
-              <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
60
+            <state relative-caret-position="135">
61
+              <caret line="15" column="21" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="21" />
85
             </state>
62
             </state>
86
           </provider>
63
           </provider>
87
         </entry>
64
         </entry>
89
       <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
66
       <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
90
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml">
67
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml">
91
           <provider selected="true" editor-type-id="text-editor">
68
           <provider selected="true" editor-type-id="text-editor">
92
-            <state relative-caret-position="-80">
69
+            <state relative-caret-position="465">
93
               <caret line="31" column="21" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
70
               <caret line="31" column="21" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
94
             </state>
71
             </state>
95
           </provider>
72
           </provider>
96
         </entry>
73
         </entry>
97
       </file>
74
       </file>
98
-      <file leaf-file-name="WalletLoader.java" pinned="false" current-in-tab="true">
75
+      <file leaf-file-name="WalletLoader.java" pinned="false" current-in-tab="false">
99
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java">
76
         <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java">
100
           <provider selected="true" editor-type-id="text-editor">
77
           <provider selected="true" editor-type-id="text-editor">
101
-            <state relative-caret-position="60">
102
-              <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
78
+            <state relative-caret-position="305">
79
+              <caret line="23" column="41" lean-forward="true" selection-start-line="23" selection-start-column="41" selection-end-line="23" selection-end-column="41" />
80
+              <folding>
81
+                <element signature="imports" expanded="true" />
82
+                <element signature="e#523#524#0" expanded="true" />
83
+                <element signature="e#579#580#0" expanded="true" />
84
+              </folding>
85
+            </state>
86
+          </provider>
87
+        </entry>
88
+      </file>
89
+      <file leaf-file-name="TransactionController.java" pinned="false" current-in-tab="false">
90
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/TransactionController.java">
91
+          <provider selected="true" editor-type-id="text-editor">
92
+            <state relative-caret-position="105">
93
+              <caret line="12" column="13" selection-start-line="12" selection-start-column="13" selection-end-line="12" selection-end-column="13" />
103
             </state>
94
             </state>
104
           </provider>
95
           </provider>
105
         </entry>
96
         </entry>
122
           </provider>
113
           </provider>
123
         </entry>
114
         </entry>
124
       </file>
115
       </file>
125
-      <file leaf-file-name="WalletRepository.java" pinned="false" current-in-tab="false">
126
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/WalletRepository.java">
116
+      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
117
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java">
127
           <provider selected="true" editor-type-id="text-editor">
118
           <provider selected="true" editor-type-id="text-editor">
128
-            <state relative-caret-position="150">
129
-              <caret line="15" column="27" selection-start-line="15" selection-start-column="27" selection-end-line="15" selection-end-column="27" />
119
+            <state relative-caret-position="405">
120
+              <caret line="36" column="35" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
130
             </state>
121
             </state>
131
           </provider>
122
           </provider>
132
         </entry>
123
         </entry>
173
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java" />
164
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java" />
174
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java" />
165
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java" />
175
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java" />
166
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java" />
176
-        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java" />
177
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_wallet.sql" />
167
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_wallet.sql" />
178
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V3__create_wallet.sql" />
168
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V3__create_wallet.sql" />
179
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java" />
169
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java" />
181
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_block.sql" />
171
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_block.sql" />
182
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties" />
172
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties" />
183
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml" />
173
         <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml" />
174
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java" />
175
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java" />
184
       </list>
176
       </list>
185
     </option>
177
     </option>
186
   </component>
178
   </component>
222
       <foldersAlwaysOnTop value="true" />
214
       <foldersAlwaysOnTop value="true" />
223
     </navigator>
215
     </navigator>
224
     <panes>
216
     <panes>
225
-      <pane id="AndroidView" />
217
+      <pane id="PackagesPane" />
226
       <pane id="ProjectPane">
218
       <pane id="ProjectPane">
227
         <subPane>
219
         <subPane>
228
           <expand>
220
           <expand>
233
             <path>
225
             <path>
234
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
226
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
235
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
227
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
228
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
229
+            </path>
230
+            <path>
231
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
232
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
236
               <item name="src" type="462c0819:PsiDirectoryNode" />
233
               <item name="src" type="462c0819:PsiDirectoryNode" />
237
             </path>
234
             </path>
238
             <path>
235
             <path>
265
               <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
262
               <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
266
               <item name="config" type="462c0819:PsiDirectoryNode" />
263
               <item name="config" type="462c0819:PsiDirectoryNode" />
267
             </path>
264
             </path>
265
+            <path>
266
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
267
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
268
+              <item name="src" type="462c0819:PsiDirectoryNode" />
269
+              <item name="main" type="462c0819:PsiDirectoryNode" />
270
+              <item name="java" type="462c0819:PsiDirectoryNode" />
271
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
272
+              <item name="controller" type="462c0819:PsiDirectoryNode" />
273
+            </path>
274
+            <path>
275
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
276
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
277
+              <item name="src" type="462c0819:PsiDirectoryNode" />
278
+              <item name="main" type="462c0819:PsiDirectoryNode" />
279
+              <item name="java" type="462c0819:PsiDirectoryNode" />
280
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
281
+              <item name="model" type="462c0819:PsiDirectoryNode" />
282
+            </path>
283
+            <path>
284
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
285
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
286
+              <item name="src" type="462c0819:PsiDirectoryNode" />
287
+              <item name="main" type="462c0819:PsiDirectoryNode" />
288
+              <item name="java" type="462c0819:PsiDirectoryNode" />
289
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
290
+              <item name="repository" type="462c0819:PsiDirectoryNode" />
291
+            </path>
292
+            <path>
293
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
294
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
295
+              <item name="src" type="462c0819:PsiDirectoryNode" />
296
+              <item name="main" type="462c0819:PsiDirectoryNode" />
297
+              <item name="resources" type="462c0819:PsiDirectoryNode" />
298
+            </path>
268
           </expand>
299
           </expand>
269
           <select />
300
           <select />
270
         </subPane>
301
         </subPane>
271
       </pane>
302
       </pane>
272
-      <pane id="PackagesPane" />
303
+      <pane id="AndroidView" />
273
       <pane id="Scope" />
304
       <pane id="Scope" />
274
       <pane id="Course" />
305
       <pane id="Course" />
275
     </panes>
306
     </panes>
477
       <workItem from="1532523890378" duration="1028000" />
508
       <workItem from="1532523890378" duration="1028000" />
478
       <workItem from="1532528099328" duration="14938000" />
509
       <workItem from="1532528099328" duration="14938000" />
479
       <workItem from="1532701223355" duration="2106000" />
510
       <workItem from="1532701223355" duration="2106000" />
511
+      <workItem from="1532961841730" duration="279000" />
512
+      <workItem from="1533210922154" duration="431000" />
480
     </task>
513
     </task>
481
     <servers />
514
     <servers />
482
   </component>
515
   </component>
510
     </history-entry>
543
     </history-entry>
511
   </component>
544
   </component>
512
   <component name="TimeTrackingManager">
545
   <component name="TimeTrackingManager">
513
-    <option name="totallyTimeSpent" value="40895000" />
546
+    <option name="totallyTimeSpent" value="43618000" />
514
   </component>
547
   </component>
515
   <component name="ToolWindowManager">
548
   <component name="ToolWindowManager">
516
     <frame x="0" y="23" width="1426" height="804" extended-state="0" />
549
     <frame x="0" y="23" width="1426" height="804" extended-state="0" />
523
       <window_info id="Capture Tool" order="2" />
556
       <window_info id="Capture Tool" order="2" />
524
       <window_info id="Designer" order="2" />
557
       <window_info id="Designer" order="2" />
525
       <window_info anchor="right" id="Database" order="3" />
558
       <window_info anchor="right" id="Database" order="3" />
526
-      <window_info id="Structure" order="1" sideWeight="0.17450981" side_tool="true" visible="true" weight="0.2550578" />
559
+      <window_info id="Structure" order="1" sideWeight="0.17892976" side_tool="true" visible="true" weight="0.26228324" />
527
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
560
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
528
       <window_info id="UI Designer" order="2" />
561
       <window_info id="UI Designer" order="2" />
529
       <window_info anchor="bottom" id="Debug" order="3" weight="0.39886847" />
562
       <window_info anchor="bottom" id="Debug" order="3" weight="0.39886847" />
530
       <window_info anchor="bottom" id="TODO" order="6" />
563
       <window_info anchor="bottom" id="TODO" order="6" />
531
-      <window_info anchor="bottom" id="Messages" order="9" weight="0.3289256" />
532
       <window_info anchor="right" id="Palette&#9;" order="3" />
564
       <window_info anchor="right" id="Palette&#9;" order="3" />
533
       <window_info id="Image Layers" order="2" />
565
       <window_info id="Image Layers" order="2" />
534
       <window_info anchor="bottom" id="Java Enterprise" order="8" />
566
       <window_info anchor="bottom" id="Java Enterprise" order="8" />
535
       <window_info anchor="right" id="Capture Analysis" order="3" />
567
       <window_info anchor="right" id="Capture Analysis" order="3" />
536
-      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
537
       <window_info anchor="bottom" id="Run" order="2" weight="0.3493635" />
568
       <window_info anchor="bottom" id="Run" order="2" weight="0.3493635" />
569
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
538
       <window_info anchor="bottom" id="Spring" order="9" weight="0.32956153" />
570
       <window_info anchor="bottom" id="Spring" order="9" weight="0.32956153" />
539
-      <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.27864215" />
540
-      <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.8254902" visible="true" weight="0.2550578" />
571
+      <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.15417255" />
572
+      <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.82107025" visible="true" weight="0.26228324" />
541
       <window_info anchor="right" id="Bean Validation" order="4" />
573
       <window_info anchor="right" id="Bean Validation" order="4" />
542
       <window_info id="Web" order="4" side_tool="true" />
574
       <window_info id="Web" order="4" side_tool="true" />
543
       <window_info anchor="right" id="Theme Preview" order="3" />
575
       <window_info anchor="right" id="Theme Preview" order="3" />
546
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
578
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
547
       <window_info anchor="bottom" id="Message" order="0" />
579
       <window_info anchor="bottom" id="Message" order="0" />
548
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
580
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
581
+      <window_info anchor="bottom" id="Messages" order="9" weight="0.3289256" />
549
       <window_info id="Learn" order="5" />
582
       <window_info id="Learn" order="5" />
550
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
583
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
551
       <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" />
584
       <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" />
552
     </layout>
585
     </layout>
553
     <layout-to-restore>
586
     <layout-to-restore>
554
       <window_info anchor="right" id="Palette" order="3" />
587
       <window_info anchor="right" id="Palette" order="3" />
588
+      <window_info anchor="bottom" id="Find" order="1" />
555
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
589
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
556
       <window_info anchor="right" id="Capture Analysis" order="4" />
590
       <window_info anchor="right" id="Capture Analysis" order="4" />
557
-      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
558
       <window_info anchor="bottom" id="Run" order="2" />
591
       <window_info anchor="bottom" id="Run" order="2" />
559
       <window_info anchor="right" id="Theme Preview" order="5" />
592
       <window_info anchor="right" id="Theme Preview" order="5" />
560
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2358643" />
593
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2358643" />
562
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
595
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
563
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
596
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
564
       <window_info anchor="bottom" id="TODO" order="6" />
597
       <window_info anchor="bottom" id="TODO" order="6" />
565
-      <window_info anchor="bottom" id="Version Control" order="10" />
566
       <window_info id="Image Layers" order="2" />
598
       <window_info id="Image Layers" order="2" />
567
       <window_info id="Designer" order="3" />
599
       <window_info id="Designer" order="3" />
568
       <window_info id="UI Designer" order="4" />
600
       <window_info id="UI Designer" order="4" />
569
-      <window_info anchor="bottom" id="Find" order="1" />
601
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
570
       <window_info anchor="right" id="Database" order="6" />
602
       <window_info anchor="right" id="Database" order="6" />
571
       <window_info anchor="right" id="Palette&#9;" order="7" />
603
       <window_info anchor="right" id="Palette&#9;" order="7" />
572
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49919224" weight="0.65384614" />
604
       <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49919224" weight="0.65384614" />
694
       <provider selected="true" editor-type-id="text-editor">
726
       <provider selected="true" editor-type-id="text-editor">
695
         <state relative-caret-position="120">
727
         <state relative-caret-position="120">
696
           <caret line="9" selection-start-line="9" selection-end-line="9" />
728
           <caret line="9" selection-start-line="9" selection-end-line="9" />
697
-          <folding>
698
-            <element signature="e#296#297#0" expanded="true" />
699
-          </folding>
700
-        </state>
701
-      </provider>
702
-    </entry>
703
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_block.sql">
704
-      <provider selected="true" editor-type-id="text-editor">
705
-        <state relative-caret-position="210">
706
-          <caret line="14" column="5" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" />
707
         </state>
729
         </state>
708
       </provider>
730
       </provider>
709
     </entry>
731
     </entry>
732
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_block.sql" />
710
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
733
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
711
       <provider selected="true" editor-type-id="text-editor">
734
       <provider selected="true" editor-type-id="text-editor">
712
         <state relative-caret-position="105">
735
         <state relative-caret-position="105">
714
         </state>
737
         </state>
715
       </provider>
738
       </provider>
716
     </entry>
739
     </entry>
717
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java">
718
-      <provider selected="true" editor-type-id="text-editor">
719
-        <state relative-caret-position="270">
720
-          <caret line="27" column="95" selection-start-line="27" selection-start-column="95" selection-end-line="27" selection-end-column="95" />
721
-        </state>
722
-      </provider>
723
-    </entry>
724
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java">
740
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java">
725
       <provider selected="true" editor-type-id="text-editor">
741
       <provider selected="true" editor-type-id="text-editor">
726
         <state relative-caret-position="525">
742
         <state relative-caret-position="525">
727
           <caret line="35" column="5" selection-start-line="35" selection-start-column="5" selection-end-line="35" selection-end-column="5" />
743
           <caret line="35" column="5" selection-start-line="35" selection-start-column="5" selection-end-line="35" selection-end-column="5" />
728
-          <folding>
729
-            <element signature="e#1170#1171#0" expanded="true" />
730
-            <element signature="e#1209#1210#0" expanded="true" />
731
-          </folding>
732
         </state>
744
         </state>
733
       </provider>
745
       </provider>
734
     </entry>
746
     </entry>
762
     </entry>
774
     </entry>
763
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
775
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
764
       <provider selected="true" editor-type-id="text-editor">
776
       <provider selected="true" editor-type-id="text-editor">
765
-        <state relative-caret-position="232">
766
-          <caret line="34" column="27" selection-start-line="34" selection-start-column="27" selection-end-line="34" selection-end-column="27" />
777
+        <state relative-caret-position="135">
778
+          <caret line="15" column="21" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="21" />
767
         </state>
779
         </state>
768
       </provider>
780
       </provider>
769
     </entry>
781
     </entry>
770
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
782
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java" />
783
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml">
771
       <provider selected="true" editor-type-id="text-editor">
784
       <provider selected="true" editor-type-id="text-editor">
772
-        <state relative-caret-position="285">
773
-          <caret line="19" column="29" selection-start-line="19" selection-start-column="29" selection-end-line="19" selection-end-column="29" />
774
-          <folding>
775
-            <element signature="imports" expanded="true" />
776
-            <element signature="e#432#433#0" expanded="true" />
777
-            <element signature="e#472#473#0" expanded="true" />
778
-            <element signature="e#504#505#0" expanded="true" />
779
-            <element signature="e#540#541#0" expanded="true" />
780
-            <element signature="e#572#573#0" expanded="true" />
781
-            <element signature="e#622#623#0" expanded="true" />
782
-            <element signature="e#664#665#0" expanded="true" />
783
-          </folding>
785
+        <state relative-caret-position="465">
786
+          <caret line="31" column="21" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
784
         </state>
787
         </state>
785
       </provider>
788
       </provider>
786
     </entry>
789
     </entry>
787
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
790
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
788
       <provider selected="true" editor-type-id="text-editor">
791
       <provider selected="true" editor-type-id="text-editor">
789
-        <state relative-caret-position="270">
790
-          <caret line="18" column="23" selection-start-line="18" selection-start-column="23" selection-end-line="18" selection-end-column="23" />
792
+        <state relative-caret-position="45">
793
+          <caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
791
         </state>
794
         </state>
792
       </provider>
795
       </provider>
793
     </entry>
796
     </entry>
794
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
797
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java">
795
       <provider selected="true" editor-type-id="text-editor">
798
       <provider selected="true" editor-type-id="text-editor">
796
-        <state relative-caret-position="45">
797
-          <caret line="3" selection-start-line="3" selection-end-line="3" />
799
+        <state relative-caret-position="405">
800
+          <caret line="36" column="35" selection-start-line="36" selection-start-column="35" selection-end-line="36" selection-end-column="35" />
798
         </state>
801
         </state>
799
       </provider>
802
       </provider>
800
     </entry>
803
     </entry>
801
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml">
804
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java">
802
       <provider selected="true" editor-type-id="text-editor">
805
       <provider selected="true" editor-type-id="text-editor">
803
-        <state relative-caret-position="-80">
804
-          <caret line="31" column="21" selection-start-line="31" selection-start-column="21" selection-end-line="31" selection-end-column="21" />
806
+        <state relative-caret-position="305">
807
+          <caret line="23" column="41" lean-forward="true" selection-start-line="23" selection-start-column="41" selection-end-line="23" selection-end-column="41" />
808
+          <folding>
809
+            <element signature="imports" expanded="true" />
810
+            <element signature="e#523#524#0" expanded="true" />
811
+            <element signature="e#579#580#0" expanded="true" />
812
+          </folding>
805
         </state>
813
         </state>
806
       </provider>
814
       </provider>
807
     </entry>
815
     </entry>
808
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java">
816
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
809
       <provider selected="true" editor-type-id="text-editor">
817
       <provider selected="true" editor-type-id="text-editor">
810
-        <state relative-caret-position="60">
811
-          <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
818
+        <state relative-caret-position="105">
819
+          <caret line="14" column="4" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
812
         </state>
820
         </state>
813
       </provider>
821
       </provider>
814
     </entry>
822
     </entry>

+ 1
- 1
ZipCoinRedIonicClient/.sourcemaps/main.js.map
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 0
- 25
ZipCoinRedIonicClient/www/build/.ion-diagnostic-typescript.html Parādīt failu

1
-<div class="ion-diagnostic">
2
-<div class="ion-diagnostic-masthead" title="typescript error: 2307">
3
-<div class="ion-diagnostic-title">Typescript Error</div>
4
-<div class="ion-diagnostic-message" data-error-code="typescript-2307">Cannot find module &#039;../block/home&#039;.</div>
5
-</div>
6
-<div class="ion-diagnostic-file">
7
-<div class="ion-diagnostic-file-header" title="/Users/navyas/Labs6/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.ts">src/pages/tabs/tabs.ts</div>
8
-<div class="ion-diagnostic-blob">
9
-<table class="ion-diagnostic-table">
10
-<tr>
11
-<td class="ion-diagnostic-blob-num" data-line-number="2"></td>
12
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { NavController, NavParams } from <span class="hljs-string">'ionic-angular'</span>;</td>
13
-</tr>
14
-<tr class="ion-diagnostic-error-line">
15
-<td class="ion-diagnostic-blob-num" data-line-number="3"></td>
16
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { HomePage } from <span class="hljs-string"><span class="ion-diagnostics-error-chr">'</span><span class="ion-diagnostics-error-chr">.</span><span class="ion-diagnostics-error-chr">.</span><span class="ion-diagnostics-error-chr">/</span><span class="ion-diagnostics-error-chr">b</span><span class="ion-diagnostics-error-chr">l</span><span class="ion-diagnostics-error-chr">o</span><span class="ion-diagnostics-error-chr">c</span><span class="ion-diagnostics-error-chr">k</span><span class="ion-diagnostics-error-chr">/</span><span class="ion-diagnostics-error-chr">h</span><span class="ion-diagnostics-error-chr">o</span><span class="ion-diagnostics-error-chr">m</span><span class="ion-diagnostics-error-chr">e</span><span class="ion-diagnostics-error-chr">'</span></span>;</td>
17
-</tr>
18
-<tr>
19
-<td class="ion-diagnostic-blob-num" data-line-number="4"></td>
20
-<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { WalletPage } from <span class="hljs-string">'../wallet/wallet'</span>;</td>
21
-</tr>
22
-</table>
23
-</div>
24
-</div>
25
-</div>

+ 1
- 1
ZipCoinRedIonicClient/www/build/0.js Parādīt failu

8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(102);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(101);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 2
- 2
ZipCoinRedIonicClient/www/build/1.js Parādīt failu

1
 webpackJsonp([1],{
1
 webpackJsonp([1],{
2
 
2
 
3
-/***/ 280:
3
+/***/ 281:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
5
 
6
 "use strict";
6
 "use strict";
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransactionPageModule", function() { return TransactionPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transaction__ = __webpack_require__(100);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transaction__ = __webpack_require__(102);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 2
- 2
ZipCoinRedIonicClient/www/build/2.js Parādīt failu

1
 webpackJsonp([2],{
1
 webpackJsonp([2],{
2
 
2
 
3
-/***/ 281:
3
+/***/ 280:
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
5
 
6
 "use strict";
6
 "use strict";
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsPageModule", function() { return TabsPageModule; });
8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsPageModule", function() { return TabsPageModule; });
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(101);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(100);
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
12
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);

+ 1
- 1
ZipCoinRedIonicClient/www/build/vendor.js.map
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 23
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/WalletLoader.java Parādīt failu

1
 package com.zipcoin.config;
1
 package com.zipcoin.config;
2
 
2
 
3
+import com.zipcoin.model.Wallet;
4
+import com.zipcoin.repository.WalletRepository;
5
+import org.springframework.beans.factory.annotation.Autowired;
3
 import org.springframework.boot.ApplicationArguments;
6
 import org.springframework.boot.ApplicationArguments;
4
 import org.springframework.boot.ApplicationRunner;
7
 import org.springframework.boot.ApplicationRunner;
5
 import org.springframework.stereotype.Component;
8
 import org.springframework.stereotype.Component;
7
 @Component
10
 @Component
8
 public class WalletLoader implements ApplicationRunner {
11
 public class WalletLoader implements ApplicationRunner {
9
 
12
 
13
+    private WalletRepository walletRepository;
14
+
15
+    @Autowired
16
+    public WalletLoader(WalletRepository walletRepository)
17
+    {
18
+        this.walletRepository = walletRepository;
19
+    }
10
     @Override
20
     @Override
11
     public void run(ApplicationArguments applicationArguments) throws Exception {
21
     public void run(ApplicationArguments applicationArguments) throws Exception {
22
+        Wallet[] wallets = new Wallet[]
23
+                {
24
+                        new Wallet("ANN","34",80),
25
+                        new Wallet("sen","3564",8)
26
+
27
+
28
+                };
29
+        for(Wallet wallet :wallets)
30
+        {
31
+            this.walletRepository.save(wallet);
32
+        }
33
+
12
 
34
 
13
     }
35
     }
14
 }
36
 }
37
+

+ 6
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java Parādīt failu

12
 @Entity
12
 @Entity
13
 public class Wallet {
13
 public class Wallet {
14
 
14
 
15
-
16
     @Id
15
     @Id
17
     @GeneratedValue(strategy = GenerationType.AUTO)
16
     @GeneratedValue(strategy = GenerationType.AUTO)
18
     private int id;
17
     private int id;
42
         generateKeyPair();
41
         generateKeyPair();
43
 
42
 
44
     }
43
     }
44
+    public Wallet(String name,String publickey,double amount)
45
+    {
46
+        this.name=name;
47
+        this.publickey=publickey;
48
+        this.amount=amount;
49
+    }
45
 
50
 
46
     public Double getAmount()
51
     public Double getAmount()
47
     {
52
     {

+ 1
- 1
ZipCoinRedJavaServer/target/classes/application.properties Parādīt failu

1
 spring.jpa.hibernate.ddl-auto=create-drop
1
 spring.jpa.hibernate.ddl-auto=create-drop
2
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
2
 spring.datasource.url=jdbc:mysql://localhost:3306/zipcoin?useSSL=false
3
-spring.datasource.username=root
3
+spring.datasource.username=root

Binārs
ZipCoinRedJavaServer/target/classes/com/zipcoin/config/WalletLoader.class Parādīt failu