32 Комити

Аутор SHA1 Порука Датум
  Khalil Malik Saboor 2fe85bbeeb dwqdj пре 6 година
  Khalil Malik Saboor 4c338cfa44 Merge branch 'dev' of https://git.zipcode.rocks/shiv-365/ZipCoin-RED into button пре 6 година
  Arin Turpin 7c6e3f3ee7 Commit пре 6 година
  Arin Turpin 87e35a8443 Commit пре 6 година
  Eric Foster 0b1819563c server running commented out extra api code to fix later пре 6 година
  Eric Foster 75cc7338ed added entity annotations to wallet and transaction пре 6 година
  Eric Foster ded75b1237 asdf пре 6 година
  Eric Foster 3a92832033 asdf пре 6 година
  Arin Turpin 884b39c463 Get all blocks пре 6 година
  Arin Turpin 925945b1c5 Asdf пре 6 година
  Arin Turpin 8fa4970f98 Chain + test added пре 6 година
  Arin Turpin 5cc043f30e merged with dev пре 6 година
  Arin Turpin 6572329a8a Commit пре 6 година
  Arin Turpin a3b2a49f42 commit пре 6 година
  Eric Foster 134135aff5 updated controller пре 6 година
  Arin Turpin b665941b65 Commit пре 6 година
  Eric Foster fd3517deba transaction controller edit пре 6 година
  Arin Turpin f8ff735683 Commit пре 6 година
  Khalil Malik Saboor 916ade918e all tab4 пре 6 година
  Eric Foster b12eb6eef9 asdflkj пре 6 година
  Eric Foster 20b46e4db8 4 new apis for wallet and transaction пре 6 година
  Eric Foster 609acaa51a created basic control apis пре 6 година
  Eric Foster 14c5d136a1 added wallet and transaction repository and controller пре 6 година
  Eric Foster 2b2d242a82 damn workspace file fix again пре 6 година
  Eric Foster 2356e570e7 asdf пре 6 година
  Khalil Malik Saboor 89509c81b8 asd пре 6 година
  Eric Foster d417d6340d asdf пре 6 година
  Khalil Malik Saboor 28b953498a fixed пре 6 година
  Arin Turpin 5cb2250d52 ... пре 6 година
  Arin Turpin a7cc764257 ... пре 6 година
  Arin Turpin 01ebf7d1c5 commit пре 6 година
  Arin Turpin f73daf8635 testAndClass пре 6 година
96 измењених фајлова са 12029 додато и 11008 уклоњено
  1. BIN
      .DS_Store
  2. 124
    0
      .idea/uiDesigner.xml
  3. 0
    6
      .idea/vcs.xml
  4. 193
    189
      .idea/workspace.xml
  5. 1
    0
      ZipCoinRedIonicClient/.sourcemaps/0.js.map
  6. 1
    0
      ZipCoinRedIonicClient/.sourcemaps/1.js.map
  7. 1
    0
      ZipCoinRedIonicClient/.sourcemaps/2.js.map
  8. 1
    0
      ZipCoinRedIonicClient/.sourcemaps/3.js.map
  9. 1
    1
      ZipCoinRedIonicClient/.sourcemaps/main.js.map
  10. 2
    1
      ZipCoinRedIonicClient/src/app/app.component.ts
  11. 14
    2
      ZipCoinRedIonicClient/src/app/app.module.ts
  12. 0
    0
      ZipCoinRedIonicClient/src/pages/block/home.html
  13. 0
    0
      ZipCoinRedIonicClient/src/pages/block/home.module.ts
  14. 0
    0
      ZipCoinRedIonicClient/src/pages/block/home.scss
  15. 7
    1
      ZipCoinRedIonicClient/src/pages/block/home.ts
  16. 18
    0
      ZipCoinRedIonicClient/src/pages/tab4/tab4.html
  17. 13
    0
      ZipCoinRedIonicClient/src/pages/tab4/tab4.module.ts
  18. 3
    0
      ZipCoinRedIonicClient/src/pages/tab4/tab4.scss
  19. 25
    0
      ZipCoinRedIonicClient/src/pages/tab4/tab4.ts
  20. 7
    0
      ZipCoinRedIonicClient/src/pages/tabs/tabs.html
  21. 13
    0
      ZipCoinRedIonicClient/src/pages/tabs/tabs.module.ts
  22. 3
    0
      ZipCoinRedIonicClient/src/pages/tabs/tabs.scss
  23. 20
    0
      ZipCoinRedIonicClient/src/pages/tabs/tabs.ts
  24. 18
    0
      ZipCoinRedIonicClient/src/pages/transaction/transaction.html
  25. 13
    0
      ZipCoinRedIonicClient/src/pages/transaction/transaction.module.ts
  26. 3
    0
      ZipCoinRedIonicClient/src/pages/transaction/transaction.scss
  27. 25
    0
      ZipCoinRedIonicClient/src/pages/transaction/transaction.ts
  28. 18
    0
      ZipCoinRedIonicClient/src/pages/wallet/wallet.html
  29. 13
    0
      ZipCoinRedIonicClient/src/pages/wallet/wallet.module.ts
  30. 3
    0
      ZipCoinRedIonicClient/src/pages/wallet/wallet.scss
  31. 25
    0
      ZipCoinRedIonicClient/src/pages/wallet/wallet.ts
  32. 75
    0
      ZipCoinRedIonicClient/www/build/.ion-diagnostic-typescript.html
  33. 42
    0
      ZipCoinRedIonicClient/www/build/0.js
  34. 1
    0
      ZipCoinRedIonicClient/www/build/0.js.map
  35. 42
    0
      ZipCoinRedIonicClient/www/build/1.js
  36. 1
    0
      ZipCoinRedIonicClient/www/build/1.js.map
  37. 42
    0
      ZipCoinRedIonicClient/www/build/2.js
  38. 1
    0
      ZipCoinRedIonicClient/www/build/2.js.map
  39. 42
    0
      ZipCoinRedIonicClient/www/build/3.js
  40. 1
    0
      ZipCoinRedIonicClient/www/build/3.js.map
  41. 272
    48
      ZipCoinRedIonicClient/www/build/main.js
  42. 1
    1
      ZipCoinRedIonicClient/www/build/main.js.map
  43. 10371
    10368
      ZipCoinRedIonicClient/www/build/vendor.js
  44. 1
    1
      ZipCoinRedIonicClient/www/build/vendor.js.map
  45. BIN
      ZipCoinRedJavaServer/.DS_Store
  46. 210
    343
      ZipCoinRedJavaServer/.idea/workspace.xml
  47. BIN
      ZipCoinRedJavaServer/src/.DS_Store
  48. BIN
      ZipCoinRedJavaServer/src/main/.DS_Store
  49. BIN
      ZipCoinRedJavaServer/src/main/java/.DS_Store
  50. BIN
      ZipCoinRedJavaServer/src/main/java/com/.DS_Store
  51. BIN
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/.DS_Store
  52. 10
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java
  53. 44
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/TransactionController.java
  54. 44
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java
  55. 24
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Chain.java
  56. 15
    8
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java
  57. 8
    2
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java
  58. 15
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/TransactionRepository.java
  59. 18
    0
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/WalletRepository.java
  60. 3
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/Miner.java
  61. 1
    1
      ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java
  62. BIN
      ZipCoinRedJavaServer/src/test/.DS_Store
  63. BIN
      ZipCoinRedJavaServer/src/test/java/.DS_Store
  64. BIN
      ZipCoinRedJavaServer/src/test/java/com/.DS_Store
  65. BIN
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/.DS_Store
  66. BIN
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/.DS_Store
  67. 32
    33
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java
  68. 28
    0
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/chain/test/chainTest.java
  69. BIN
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/miner/.DS_Store
  70. 1
    1
      ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/miner/test/minerTest.java
  71. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class
  72. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class
  73. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class
  74. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class
  75. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Miner.class
  76. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class
  77. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class
  78. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class
  79. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class
  80. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class
  81. BIN
      ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class
  82. BIN
      ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.class
  83. BIN
      ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/chain/test/chainTest.class
  84. BIN
      ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/miner/test/minerTest.class
  85. BIN
      src/.DS_Store
  86. BIN
      src/main/.DS_Store
  87. BIN
      src/main/java/.DS_Store
  88. BIN
      src/main/java/com/.DS_Store
  89. BIN
      src/main/java/com/zipcoin/.DS_Store
  90. 53
    0
      src/main/java/com/zipcoin/controllers/BlockController.java
  91. BIN
      src/main/java/com/zipcoin/model/.DS_Store
  92. 29
    0
      src/main/java/com/zipcoin/model/Miner.java
  93. BIN
      src/test/.DS_Store
  94. BIN
      src/test/java/.DS_Store
  95. BIN
      src/test/java/redCoin/.DS_Store
  96. 37
    0
      src/test/java/redCoin/Miner/minerTest.java

+ 124
- 0
.idea/uiDesigner.xml Прегледај датотеку

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 0
- 6
.idea/vcs.xml Прегледај датотеку

@@ -1,6 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="VcsDirectoryMappings">
4
-    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
-  </component>
6
-</project>

+ 193
- 189
.idea/workspace.xml Прегледај датотеку

@@ -1,87 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="f54e258d-da71-464b-8271-7897ae55d27f" name="Default" comment="">
5
-      <change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
7
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__antlr_antlr_2_7_7.xml" afterDir="false" />
8
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml" afterDir="false" />
9
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_3.xml" afterDir="false" />
10
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_3.xml" afterDir="false" />
11
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_classmate_1_1_0.xml" afterDir="false" />
12
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_6_4.xml" afterDir="false" />
13
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_6_4.xml" afterDir="false" />
14
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_6_4.xml" afterDir="false" />
15
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_h2database_h2_1_4_190.xml" afterDir="false" />
16
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__commons_codec_commons_codec_1_10.xml" afterDir="false" />
17
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml" afterDir="false" />
18
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__javax_transaction_javax_transaction_api_1_2.xml" afterDir="false" />
19
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__javax_validation_validation_api_1_1_0_Final.xml" afterDir="false" />
20
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
21
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_0_30.xml" afterDir="false" />
22
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_0_30.xml" afterDir="false" />
23
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_logging_juli_8_0_30.xml" afterDir="false" />
24
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_0_30.xml" afterDir="false" />
25
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_tomcat_jdbc_8_0_30.xml" afterDir="false" />
26
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_apache_tomcat_tomcat_juli_8_0_30.xml" afterDir="false" />
27
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_7.xml" afterDir="false" />
28
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_flywaydb_flyway_core_3_2_1.xml" afterDir="false" />
29
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
30
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml" afterDir="false" />
31
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_4_0_5_Final.xml" afterDir="false" />
32
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_hibernate_core_4_3_11_Final.xml" afterDir="false" />
33
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_4_3_11_Final.xml" afterDir="false" />
34
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_hibernate_validator_5_2_2_Final.xml" afterDir="false" />
35
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml" afterDir="false" />
36
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_javassist_javassist_3_18_1_GA.xml" afterDir="false" />
37
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_jboss_jandex_1_1_0_Final.xml" afterDir="false" />
38
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_0_Final.xml" afterDir="false" />
39
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_jboss_logging_jboss_logging_annotations_1_2_0_Beta1.xml" afterDir="false" />
40
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_mockito_mockito_core_1_10_19.xml" afterDir="false" />
41
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml" afterDir="false" />
42
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_slf4j_jcl_over_slf4j_1_7_13.xml" afterDir="false" />
43
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_13.xml" afterDir="false" />
44
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_slf4j_log4j_over_slf4j_1_7_13.xml" afterDir="false" />
45
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_13.xml" afterDir="false" />
46
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_1_3_1_RELEASE.xml" afterDir="false" />
47
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_1_3_1_RELEASE.xml" afterDir="false" />
48
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_1_3_1_RELEASE.xml" afterDir="false" />
49
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_1_3_1_RELEASE.xml" afterDir="false" />
50
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_1_3_1_RELEASE.xml" afterDir="false" />
51
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_1_3_1_RELEASE.xml" afterDir="false" />
52
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_1_3_1_RELEASE.xml" afterDir="false" />
53
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_1_3_1_RELEASE.xml" afterDir="false" />
54
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_1_3_1_RELEASE.xml" afterDir="false" />
55
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_validation_1_3_1_RELEASE.xml" afterDir="false" />
56
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_1_3_1_RELEASE.xml" afterDir="false" />
57
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_data_spring_data_commons_1_11_2_RELEASE.xml" afterDir="false" />
58
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_data_spring_data_jpa_1_9_2_RELEASE.xml" afterDir="false" />
59
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_aop_4_2_4_RELEASE.xml" afterDir="false" />
60
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_aspects_4_2_4_RELEASE.xml" afterDir="false" />
61
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_beans_4_2_4_RELEASE.xml" afterDir="false" />
62
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_context_4_2_4_RELEASE.xml" afterDir="false" />
63
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_core_4_2_4_RELEASE.xml" afterDir="false" />
64
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_expression_4_2_4_RELEASE.xml" afterDir="false" />
65
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_jdbc_4_2_4_RELEASE.xml" afterDir="false" />
66
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_orm_4_2_4_RELEASE.xml" afterDir="false" />
67
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_test_4_2_4_RELEASE.xml" afterDir="false" />
68
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_tx_4_2_4_RELEASE.xml" afterDir="false" />
69
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_web_4_2_4_RELEASE.xml" afterDir="false" />
70
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_springframework_spring_webmvc_4_2_4_RELEASE.xml" afterDir="false" />
71
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_yaml_snakeyaml_1_16.xml" afterDir="false" />
72
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml" afterDir="false" />
73
-      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
74
-      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
75
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
76
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/.sourcemaps/main.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/.sourcemaps/main.js.map" afterDir="false" />
77
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/src/pages/home/home.html" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/src/pages/home/home.html" afterDir="false" />
78
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/src/pages/home/home.ts" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/src/pages/home/home.ts" afterDir="false" />
79
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/main.js" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/main.js" afterDir="false" />
80
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/main.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/main.js.map" afterDir="false" />
81
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/vendor.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedIonicClient/www/build/vendor.js.map" afterDir="false" />
82
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedJavaServer/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedJavaServer/.idea/workspace.xml" afterDir="false" />
83
-      <change beforePath="$PROJECT_DIR$/ZipCoinRedJavaServer/ZipCoin-RED.iml" beforeDir="false" afterPath="$PROJECT_DIR$/ZipCoinRedJavaServer/ZipCoin-RED.iml" afterDir="false" />
84
-    </list>
4
+    <list default="true" id="2f74b7b2-2ea5-4123-a0c8-46294ab149b0" name="Default" comment="" />
85 5
     <ignored path="$PROJECT_DIR$/target/" />
86 6
     <ignored path="$PROJECT_DIR$/ZipCoinRedJavaServer/target/" />
87 7
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -107,47 +27,29 @@
107 27
   </component>
108 28
   <component name="FileEditorManager">
109 29
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
110
-      <file leaf-file-name="ZipCoinApp.java" pinned="false" current-in-tab="false">
111
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java">
112
-          <provider selected="true" editor-type-id="text-editor">
113
-            <state relative-caret-position="230">
114
-              <caret line="13" selection-start-line="13" selection-end-line="13" />
115
-            </state>
116
-          </provider>
117
-        </entry>
118
-      </file>
119
-      <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
120
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Miner.java">
121
-          <provider selected="true" editor-type-id="text-editor">
122
-            <state relative-caret-position="-15">
123
-              <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
124
-            </state>
125
-          </provider>
126
-        </entry>
127
-      </file>
128
-      <file leaf-file-name="BlockRepository.java" pinned="false" current-in-tab="false">
129
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/BlockRepository.java">
30
+      <file leaf-file-name="TransactionAndWalletTest.java" pinned="false" current-in-tab="true">
31
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
130 32
           <provider selected="true" editor-type-id="text-editor">
131
-            <state relative-caret-position="92">
132
-              <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
33
+            <state relative-caret-position="91">
34
+              <caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" />
133 35
             </state>
134 36
           </provider>
135 37
         </entry>
136 38
       </file>
137
-      <file leaf-file-name="BlockController.java" pinned="false" current-in-tab="true">
138
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java">
39
+      <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
40
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
139 41
           <provider selected="true" editor-type-id="text-editor">
140
-            <state relative-caret-position="-37">
141
-              <caret line="12" column="30" selection-start-line="12" selection-start-column="30" selection-end-line="12" selection-end-column="30" />
42
+            <state relative-caret-position="-483">
43
+              <caret column="1" lean-forward="true" selection-start-column="1" selection-end-column="1" />
142 44
             </state>
143 45
           </provider>
144 46
         </entry>
145 47
       </file>
146
-      <file leaf-file-name="PersistenceConfiguration.java" pinned="false" current-in-tab="false">
147
-        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
48
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
49
+        <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
148 50
           <provider selected="true" editor-type-id="text-editor">
149
-            <state relative-caret-position="138">
150
-              <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
51
+            <state relative-caret-position="60">
52
+              <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
151 53
             </state>
152 54
           </provider>
153 55
         </entry>
@@ -183,6 +85,10 @@
183 85
         <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/model/Miner.java" />
184 86
         <option value="$PROJECT_DIR$/src/test/java/redCoin/Miner/minerTest.java" />
185 87
         <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/controller/BlockController.java" />
88
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/chain/test/chainTest.java" />
89
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java" />
90
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java" />
91
+        <option value="$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Chain.java" />
186 92
       </list>
187 93
     </option>
188 94
   </component>
@@ -208,11 +114,10 @@
208 114
   <component name="NodePackageJsonFileManager">
209 115
     <packageJsonPaths />
210 116
   </component>
211
-  <component name="ProjectFrameBounds" fullScreen="true">
212
-    <option name="x" value="67" />
213
-    <option name="y" value="36" />
214
-    <option name="width" value="1043" />
215
-    <option name="height" value="699" />
117
+  <component name="ProjectFrameBounds">
118
+    <option name="y" value="22" />
119
+    <option name="width" value="1280" />
120
+    <option name="height" value="702" />
216 121
   </component>
217 122
   <component name="ProjectLevelVcsManager" settingsEditedManually="true">
218 123
     <ConfirmationsSetting value="2" id="Add" />
@@ -222,8 +127,7 @@
222 127
       <foldersAlwaysOnTop value="true" />
223 128
     </navigator>
224 129
     <panes>
225
-      <pane id="AndroidView" />
226
-      <pane id="Course" />
130
+      <pane id="PackagesPane" />
227 131
       <pane id="Scope" />
228 132
       <pane id="ProjectPane">
229 133
         <subPane>
@@ -265,40 +169,44 @@
265 169
               <item name="main" type="462c0819:PsiDirectoryNode" />
266 170
               <item name="java" type="462c0819:PsiDirectoryNode" />
267 171
               <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
268
-              <item name="config" type="462c0819:PsiDirectoryNode" />
172
+              <item name="model" type="462c0819:PsiDirectoryNode" />
269 173
             </path>
270 174
             <path>
271 175
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
272 176
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
273 177
               <item name="src" type="462c0819:PsiDirectoryNode" />
274
-              <item name="main" type="462c0819:PsiDirectoryNode" />
178
+              <item name="test" type="462c0819:PsiDirectoryNode" />
179
+            </path>
180
+            <path>
181
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
182
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
183
+              <item name="src" type="462c0819:PsiDirectoryNode" />
184
+              <item name="test" type="462c0819:PsiDirectoryNode" />
275 185
               <item name="java" type="462c0819:PsiDirectoryNode" />
276
-              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
277
-              <item name="controller" type="462c0819:PsiDirectoryNode" />
278 186
             </path>
279 187
             <path>
280 188
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
281 189
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
282 190
               <item name="src" type="462c0819:PsiDirectoryNode" />
283
-              <item name="main" type="462c0819:PsiDirectoryNode" />
191
+              <item name="test" type="462c0819:PsiDirectoryNode" />
284 192
               <item name="java" type="462c0819:PsiDirectoryNode" />
285
-              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
286
-              <item name="model" type="462c0819:PsiDirectoryNode" />
193
+              <item name="redCoin" type="462c0819:PsiDirectoryNode" />
287 194
             </path>
288 195
             <path>
289 196
               <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
290 197
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
291 198
               <item name="src" type="462c0819:PsiDirectoryNode" />
292
-              <item name="main" type="462c0819:PsiDirectoryNode" />
199
+              <item name="test" type="462c0819:PsiDirectoryNode" />
293 200
               <item name="java" type="462c0819:PsiDirectoryNode" />
294
-              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
295
-              <item name="repository" type="462c0819:PsiDirectoryNode" />
201
+              <item name="redCoin" type="462c0819:PsiDirectoryNode" />
202
+              <item name="TransactionAndWallet" type="462c0819:PsiDirectoryNode" />
296 203
             </path>
297 204
           </expand>
298 205
           <select />
299 206
         </subPane>
300 207
       </pane>
301
-      <pane id="PackagesPane" />
208
+      <pane id="AndroidView" />
209
+      <pane id="Course" />
302 210
     </panes>
303 211
   </component>
304 212
   <component name="PropertiesComponent">
@@ -338,7 +246,29 @@
338 246
       </list>
339 247
     </option>
340 248
   </component>
341
-  <component name="RunManager" selected="Spring Boot.ZipCoinApp">
249
+  <component name="RunManager" selected="Application.TransactionAndWalletTest">
250
+    <configuration name="TransactionAndWalletTest" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
251
+      <option name="MAIN_CLASS_NAME" value="com.zipcoin.redCoin.TransactionAndWallet.TransactionAndWalletTest" />
252
+      <module name="ZipCoin-RED" />
253
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
254
+      <extension name="coverage">
255
+        <pattern>
256
+          <option name="PATTERN" value="com.zipcoin.redCoin.TransactionAndWallet.*" />
257
+          <option name="ENABLED" value="true" />
258
+        </pattern>
259
+      </extension>
260
+    </configuration>
261
+    <configuration name="ZipCoinApp" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
262
+      <option name="MAIN_CLASS_NAME" value="com.zipcoin.ZipCoinApp" />
263
+      <module name="ZipCoin-RED" />
264
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
265
+      <extension name="coverage">
266
+        <pattern>
267
+          <option name="PATTERN" value="com.zipcoin.*" />
268
+          <option name="ENABLED" value="true" />
269
+        </pattern>
270
+      </extension>
271
+    </configuration>
342 272
     <configuration default="true" type="Application" factoryName="Application">
343 273
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
344 274
     </configuration>
@@ -403,7 +333,7 @@
403 333
       <module name="ZipCoin-RED" />
404 334
       <extension name="coverage">
405 335
         <pattern>
406
-          <option name="PATTERN" value="redCoin.*" />
336
+          <option name="PATTERN" value="com.zipcoin.redCoin.chain.test.*" />
407 337
           <option name="ENABLED" value="true" />
408 338
         </pattern>
409 339
       </extension>
@@ -422,16 +352,6 @@
422 352
       </option>
423 353
       <patterns />
424 354
     </configuration>
425
-    <configuration name="ZipCoinApp" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
426
-      <module name="ZipCoin-RED" />
427
-      <extension name="coverage">
428
-        <pattern>
429
-          <option name="PATTERN" value="com.zipcoin.*" />
430
-          <option name="ENABLED" value="true" />
431
-        </pattern>
432
-      </extension>
433
-      <option name="SPRING_BOOT_MAIN_CLASS" value="com.zipcoin.ZipCoinApp" />
434
-    </configuration>
435 355
     <configuration default="true" type="TestNG" factoryName="TestNG">
436 356
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
437 357
       <option name="ALTERNATIVE_JRE_PATH" />
@@ -456,13 +376,15 @@
456 376
     </configuration>
457 377
     <list>
458 378
       <item itemvalue="JUnit.testMain.test" />
459
-      <item itemvalue="Spring Boot.ZipCoinApp" />
460 379
       <item itemvalue="JUnit.java in ZipCoin-RED" />
461 380
       <item itemvalue="JUnit.minerTest" />
381
+      <item itemvalue="Application.ZipCoinApp" />
382
+      <item itemvalue="Application.TransactionAndWalletTest" />
462 383
     </list>
463 384
     <recent_temporary>
464 385
       <list>
465
-        <item itemvalue="Spring Boot.ZipCoinApp" />
386
+        <item itemvalue="Application.TransactionAndWalletTest" />
387
+        <item itemvalue="Application.ZipCoinApp" />
466 388
         <item itemvalue="JUnit.java in ZipCoin-RED" />
467 389
         <item itemvalue="JUnit.minerTest" />
468 390
         <item itemvalue="JUnit.testMain.test" />
@@ -474,7 +396,7 @@
474 396
   </component>
475 397
   <component name="TaskManager">
476 398
     <task active="true" id="Default" summary="Default task">
477
-      <changelist id="f54e258d-da71-464b-8271-7897ae55d27f" name="Default" comment="" />
399
+      <changelist id="2f74b7b2-2ea5-4123-a0c8-46294ab149b0" name="Default" comment="" />
478 400
       <created>1531343031636</created>
479 401
       <option name="number" value="Default" />
480 402
       <option name="presentableId" value="Default" />
@@ -522,43 +444,73 @@
522 444
     <option name="totallyTimeSpent" value="18185000" />
523 445
   </component>
524 446
   <component name="ToolWindowManager">
525
-    <frame x="0" y="0" width="1280" height="800" extended-state="6" />
447
+    <frame x="0" y="22" width="1280" height="702" extended-state="6" />
526 448
     <editor active="true" />
527 449
     <layout>
528 450
       <window_info anchor="right" id="Palette" order="3" />
451
+      <window_info anchor="bottom" id="TODO" order="6" />
452
+      <window_info anchor="bottom" id="Messages" order="9" weight="0.3298969" />
453
+      <window_info anchor="right" id="Palette&#9;" order="3" />
454
+      <window_info id="Image Layers" order="2" />
455
+      <window_info anchor="right" id="Capture Analysis" order="3" />
529 456
       <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
530 457
       <window_info anchor="right" id="Maven Projects" order="3" weight="0.32956383" />
531
-      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
458
+      <window_info anchor="bottom" id="Run" order="2" weight="0.0" />
459
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
460
+      <window_info anchor="bottom" id="Terminal" order="7" visible="true" weight="0.009917355" />
532 461
       <window_info id="Capture Tool" order="2" />
533 462
       <window_info id="Designer" order="2" />
534
-      <window_info anchor="right" id="Database" order="3" />
463
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.27705976" />
535 464
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
536 465
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
537 466
       <window_info id="UI Designer" order="2" />
538
-      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
539
-      <window_info anchor="bottom" id="TODO" order="6" />
540
-      <window_info anchor="bottom" id="Messages" order="9" weight="0.3298969" />
541
-      <window_info anchor="right" id="Palette&#9;" order="3" />
542
-      <window_info id="Image Layers" order="2" />
543
-      <window_info anchor="bottom" id="Java Enterprise" order="8" />
544
-      <window_info anchor="right" id="Capture Analysis" order="3" />
545
-      <window_info anchor="bottom" id="Run" order="2" weight="0.54206896" />
546
-      <window_info anchor="bottom" id="Version Control" order="7" />
547
-      <window_info anchor="bottom" id="Spring" order="9" />
548
-      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32827586" />
549
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.273021" />
550
-      <window_info anchor="right" id="Bean Validation" order="4" />
551
-      <window_info id="Web" order="4" side_tool="true" />
552
-      <window_info id="Learn" order="5" />
553 467
       <window_info anchor="right" id="Theme Preview" order="3" />
468
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
554 469
       <window_info id="Favorites" order="2" side_tool="true" />
470
+      <window_info anchor="bottom" id="Spring" order="9" />
555 471
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
556 472
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
557
-      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
558 473
       <window_info anchor="bottom" id="Message" order="0" />
559
-      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
560 474
       <window_info anchor="bottom" id="Find" order="1" weight="0.32954547" />
475
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
476
+      <window_info id="Web" order="4" side_tool="true" />
477
+      <window_info id="Learn" order="5" />
478
+      <window_info anchor="right" id="Bean Validation" order="4" />
479
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
480
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
481
+      <window_info anchor="bottom" id="Java Enterprise" order="8" />
482
+      <window_info anchor="right" id="Database" order="3" />
561 483
     </layout>
484
+    <layout-to-restore>
485
+      <window_info anchor="right" id="Palette" order="3" />
486
+      <window_info anchor="bottom" id="Message" order="0" />
487
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
488
+      <window_info anchor="right" id="Capture Analysis" order="4" />
489
+      <window_info anchor="bottom" id="Run" order="2" />
490
+      <window_info anchor="right" id="Theme Preview" order="5" />
491
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
492
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2358643" />
493
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
494
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
495
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
496
+      <window_info anchor="bottom" id="TODO" order="6" />
497
+      <window_info id="Image Layers" order="2" />
498
+      <window_info id="Designer" order="3" />
499
+      <window_info id="UI Designer" order="4" />
500
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
501
+      <window_info anchor="right" id="Database" order="6" />
502
+      <window_info anchor="right" id="Palette&#9;" order="7" />
503
+      <window_info anchor="bottom" id="Terminal" order="8" sideWeight="0.49919224" weight="0.65384614" />
504
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
505
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
506
+      <window_info anchor="bottom" id="Version Control" order="10" />
507
+      <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.50080776" side_tool="true" weight="0.30936456" />
508
+      <window_info id="Capture Tool" order="5" />
509
+      <window_info anchor="bottom" id="Find" order="1" />
510
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32674298" />
511
+      <window_info anchor="right" id="Maven Projects" order="8" weight="0.32956383" />
512
+      <window_info id="Favorites" order="6" side_tool="true" />
513
+    </layout-to-restore>
562 514
   </component>
563 515
   <component name="TypeScriptGeneratedFilesManager">
564 516
     <option name="version" value="1" />
@@ -572,17 +524,6 @@
572 524
     </breakpoint-manager>
573 525
   </component>
574 526
   <component name="editorHistoryManager">
575
-    <entry file="file://$PROJECT_DIR$/.idea/ZipCoin-RED.iml" />
576
-    <entry file="file://$PROJECT_DIR$/pom.xml" />
577
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
578
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
579
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
580
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
581
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
582
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
583
-    <entry file="file://$PROJECT_DIR$/pom.xml" />
584
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
585
-    <entry file="file://$PROJECT_DIR$/ZipCoin-RED.iml" />
586 527
     <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/block/test/BlockControllerTest.java" />
587 528
     <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
588 529
       <provider selected="true" editor-type-id="text-editor">
@@ -637,38 +578,101 @@
637 578
         </state>
638 579
       </provider>
639 580
     </entry>
581
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Miner.java" />
582
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/BlockRepository.java">
583
+      <provider selected="true" editor-type-id="text-editor">
584
+        <state relative-caret-position="92">
585
+          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
586
+        </state>
587
+      </provider>
588
+    </entry>
589
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
590
+      <provider selected="true" editor-type-id="text-editor">
591
+        <state relative-caret-position="138">
592
+          <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
593
+        </state>
594
+      </provider>
595
+    </entry>
596
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/chain/test/chainTest.java">
597
+      <provider selected="true" editor-type-id="text-editor">
598
+        <state relative-caret-position="90">
599
+          <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
600
+        </state>
601
+      </provider>
602
+    </entry>
603
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java">
604
+      <provider selected="true" editor-type-id="text-editor">
605
+        <state relative-caret-position="690">
606
+          <caret line="53" lean-forward="true" selection-start-line="53" selection-end-line="53" />
607
+        </state>
608
+      </provider>
609
+    </entry>
640 610
     <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/ZipCoinApp.java">
641 611
       <provider selected="true" editor-type-id="text-editor">
642
-        <state relative-caret-position="230">
643
-          <caret line="13" selection-start-line="13" selection-end-line="13" />
612
+        <state relative-caret-position="32">
613
+          <caret line="9" selection-start-line="9" selection-end-line="9" />
644 614
         </state>
645 615
       </provider>
646 616
     </entry>
647
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Miner.java">
617
+    <entry file="jar://$MAVEN_REPOSITORY$/org/springframework/boot/spring-boot/1.3.1.RELEASE/spring-boot-1.3.1.RELEASE.jar!/org/springframework/boot/SpringApplication.class">
648 618
       <provider selected="true" editor-type-id="text-editor">
649
-        <state relative-caret-position="-15">
650
-          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
619
+        <state>
620
+          <caret line="692" selection-start-line="692" selection-end-line="692" />
651 621
         </state>
652 622
       </provider>
653 623
     </entry>
654
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/BlockRepository.java">
624
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/pom.xml">
625
+      <provider selected="true" editor-type-id="text-editor" />
626
+    </entry>
627
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/application.properties">
655 628
       <provider selected="true" editor-type-id="text-editor">
656
-        <state relative-caret-position="92">
657
-          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
629
+        <state relative-caret-position="240">
630
+          <caret line="16" column="28" lean-forward="true" selection-start-line="16" selection-start-column="28" selection-end-line="16" selection-end-column="28" />
658 631
         </state>
659 632
       </provider>
660 633
     </entry>
661
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
634
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Chain.java">
662 635
       <provider selected="true" editor-type-id="text-editor">
663
-        <state relative-caret-position="138">
664
-          <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
636
+        <state relative-caret-position="315">
637
+          <caret line="21" column="5" selection-start-line="21" selection-start-column="5" selection-end-line="21" selection-end-column="5" />
665 638
         </state>
666 639
       </provider>
667 640
     </entry>
668
-    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java">
641
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java">
642
+      <provider selected="true" editor-type-id="text-editor">
643
+        <state relative-caret-position="60">
644
+          <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
645
+        </state>
646
+      </provider>
647
+    </entry>
648
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/resources/db/migration/V2__create_block.sql">
649
+      <provider selected="true" editor-type-id="text-editor" />
650
+    </entry>
651
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/block/test/BlockTest.java">
652
+      <provider selected="true" editor-type-id="text-editor">
653
+        <state relative-caret-position="308">
654
+          <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
655
+        </state>
656
+      </provider>
657
+    </entry>
658
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Block.java">
659
+      <provider selected="true" editor-type-id="text-editor">
660
+        <state relative-caret-position="75">
661
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
662
+        </state>
663
+      </provider>
664
+    </entry>
665
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java">
666
+      <provider selected="true" editor-type-id="text-editor">
667
+        <state relative-caret-position="-483">
668
+          <caret column="1" lean-forward="true" selection-start-column="1" selection-end-column="1" />
669
+        </state>
670
+      </provider>
671
+    </entry>
672
+    <entry file="file://$PROJECT_DIR$/ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
669 673
       <provider selected="true" editor-type-id="text-editor">
670
-        <state relative-caret-position="-37">
671
-          <caret line="12" column="30" selection-start-line="12" selection-start-column="30" selection-end-line="12" selection-end-column="30" />
674
+        <state relative-caret-position="91">
675
+          <caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" />
672 676
         </state>
673 677
       </provider>
674 678
     </entry>

+ 1
- 0
ZipCoinRedIonicClient/.sourcemaps/0.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AAUtC;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAR5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(WalletPage),\n  ],\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}

+ 1
- 0
ZipCoinRedIonicClient/.sourcemaps/1.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/transaction/transaction.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACA;AAUhD;IAAA;IAAoC,CAAC;IAAxB,qBAAqB;QARjC,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,qEAAe;aAChB;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,qEAAe,CAAC;aAC1C;SACF,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { TransactionPage } from './transaction';\n\n@NgModule({\n  declarations: [\n    TransactionPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(TransactionPage),\n  ],\n})\nexport class TransactionPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/transaction/transaction.module.ts"],"sourceRoot":""}

+ 1
- 0
ZipCoinRedIonicClient/.sourcemaps/2.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/tabs/tabs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACd;AAUlC;IAAA;IAA6B,CAAC;IAAjB,cAAc;QAR1B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,uDAAQ;aACT;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,uDAAQ,CAAC;aACnC;SACF,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAAA;AAAH","file":"2.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { TabsPage } from './tabs';\n\n@NgModule({\n  declarations: [\n    TabsPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(TabsPage),\n  ],\n})\nexport class TabsPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/tabs/tabs.module.ts"],"sourceRoot":""}

+ 1
- 0
ZipCoinRedIonicClient/.sourcemaps/3.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/tab4/tab4.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACd;AAUlC;IAAA;IAA6B,CAAC;IAAjB,cAAc;QAR1B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,uDAAQ;aACT;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,uDAAQ,CAAC;aACnC;SACF,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAAA;AAAH","file":"3.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { Tab4Page } from './tab4';\n\n@NgModule({\n  declarations: [\n    Tab4Page,\n  ],\n  imports: [\n    IonicPageModule.forChild(Tab4Page),\n  ],\n})\nexport class Tab4PageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/tab4/tab4.module.ts"],"sourceRoot":""}

+ 1
- 1
ZipCoinRedIonicClient/.sourcemaps/main.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 2
- 1
ZipCoinRedIonicClient/src/app/app.component.ts Прегледај датотеку

@@ -4,11 +4,12 @@ import { StatusBar } from '@ionic-native/status-bar';
4 4
 import { SplashScreen } from '@ionic-native/splash-screen';
5 5
 
6 6
 import { HomePage } from '../pages/home/home';
7
+import { TabsPage } from '../pages/tabs/tabs';
7 8
 @Component({
8 9
   templateUrl: 'app.html'
9 10
 })
10 11
 export class MyApp {
11
-  rootPage:any = HomePage;
12
+  rootPage:any = TabsPage;
12 13
 
13 14
   constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
14 15
     platform.ready().then(() => {

+ 14
- 2
ZipCoinRedIonicClient/src/app/app.module.ts Прегледај датотеку

@@ -8,11 +8,19 @@ import { MyApp } from './app.component';
8 8
 import { HomePage } from '../pages/home/home';
9 9
 import { HttpClientModule } from '@angular/common/http';
10 10
 import { BlockService } from '../providers/block-service';
11
+import { WalletPage } from '../pages/wallet/wallet';
12
+import { TransactionPage } from '../pages/transaction/transaction';
13
+import { TabsPage } from '../pages/tabs/tabs';
14
+import { Tab4Page } from '../pages/tab4/tab4';
11 15
 
12 16
 @NgModule({
13 17
   declarations: [
14 18
     MyApp,
15
-    HomePage
19
+    HomePage,
20
+    WalletPage,
21
+    TransactionPage,
22
+    Tab4Page,
23
+    TabsPage
16 24
   ],
17 25
   imports: [
18 26
     BrowserModule,
@@ -22,7 +30,11 @@ import { BlockService } from '../providers/block-service';
22 30
   bootstrap: [IonicApp],
23 31
   entryComponents: [
24 32
     MyApp,
25
-    HomePage
33
+    HomePage,
34
+    WalletPage,
35
+    TransactionPage,
36
+    Tab4Page,
37
+    TabsPage
26 38
   ],
27 39
   providers: [
28 40
     StatusBar,

ZipCoinRedIonicClient/src/pages/home/home.html → ZipCoinRedIonicClient/src/pages/block/home.html Прегледај датотеку


ZipCoinRedIonicClient/src/pages/home/home.module.ts → ZipCoinRedIonicClient/src/pages/block/home.module.ts Прегледај датотеку


ZipCoinRedIonicClient/src/pages/home/home.scss → ZipCoinRedIonicClient/src/pages/block/home.scss Прегледај датотеку


ZipCoinRedIonicClient/src/pages/home/home.ts → ZipCoinRedIonicClient/src/pages/block/home.ts Прегледај датотеку

@@ -1,6 +1,7 @@
1 1
 import { Component } from '@angular/core';
2 2
 import { NavController } from 'ionic-angular';
3
-import { BlockService } from '../../providers/block-service'
3
+import { BlockService } from '../../providers/block-service';
4
+import { WalletPage } from '../wallet/wallet';
4 5
 @Component({
5 6
   selector: 'page-home',
6 7
   templateUrl: 'home.html'
@@ -13,6 +14,8 @@ export class HomePage {
13 14
       this.getBlock();
14 15
     }
15 16
 
17
+  
18
+
16 19
   getBlock() {
17 20
     this.blockService.getBlock(this.id).subscribe(block => {
18 21
       this.block = block;
@@ -25,6 +28,9 @@ export class HomePage {
25 28
   }
26 29
 }
27 30
 
31
+
32
+
33
+
28 34
 //make payment
29 35
 //block view
30 36
 //2 pull down list of username and pay other user "blank zips"

+ 18
- 0
ZipCoinRedIonicClient/src/pages/tab4/tab4.html Прегледај датотеку

@@ -0,0 +1,18 @@
1
+<!--
2
+  Generated template for the Tab4Page page.
3
+
4
+  See http://ionicframework.com/docs/components/#navigation for more info on
5
+  Ionic pages and navigation.
6
+-->
7
+<ion-header>
8
+
9
+  <ion-navbar>
10
+    <ion-title>tab4</ion-title>
11
+  </ion-navbar>
12
+
13
+</ion-header>
14
+
15
+
16
+<ion-content padding>
17
+
18
+</ion-content>

+ 13
- 0
ZipCoinRedIonicClient/src/pages/tab4/tab4.module.ts Прегледај датотеку

@@ -0,0 +1,13 @@
1
+import { NgModule } from '@angular/core';
2
+import { IonicPageModule } from 'ionic-angular';
3
+import { Tab4Page } from './tab4';
4
+
5
+@NgModule({
6
+  declarations: [
7
+    Tab4Page,
8
+  ],
9
+  imports: [
10
+    IonicPageModule.forChild(Tab4Page),
11
+  ],
12
+})
13
+export class Tab4PageModule {}

+ 3
- 0
ZipCoinRedIonicClient/src/pages/tab4/tab4.scss Прегледај датотеку

@@ -0,0 +1,3 @@
1
+page-tab4 {
2
+
3
+}

+ 25
- 0
ZipCoinRedIonicClient/src/pages/tab4/tab4.ts Прегледај датотеку

@@ -0,0 +1,25 @@
1
+import { Component } from '@angular/core';
2
+import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+
4
+/**
5
+ * Generated class for the Tab4Page page.
6
+ *
7
+ * See https://ionicframework.com/docs/components/#navigation for more info on
8
+ * Ionic pages and navigation.
9
+ */
10
+
11
+@IonicPage()
12
+@Component({
13
+  selector: 'page-tab4',
14
+  templateUrl: 'tab4.html',
15
+})
16
+export class Tab4Page {
17
+
18
+  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
+  }
20
+
21
+  ionViewDidLoad() {
22
+    console.log('ionViewDidLoad Tab4Page');
23
+  }
24
+
25
+}

+ 7
- 0
ZipCoinRedIonicClient/src/pages/tabs/tabs.html Прегледај датотеку

@@ -0,0 +1,7 @@
1
+<ion-tabs>
2
+  <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>
3
+  <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>
4
+  <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>
5
+  <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>
6
+
7
+</ion-tabs>

+ 13
- 0
ZipCoinRedIonicClient/src/pages/tabs/tabs.module.ts Прегледај датотеку

@@ -0,0 +1,13 @@
1
+import { NgModule } from '@angular/core';
2
+import { IonicPageModule } from 'ionic-angular';
3
+import { TabsPage } from './tabs';
4
+
5
+@NgModule({
6
+  declarations: [
7
+    TabsPage,
8
+  ],
9
+  imports: [
10
+    IonicPageModule.forChild(TabsPage),
11
+  ],
12
+})
13
+export class TabsPageModule {}

+ 3
- 0
ZipCoinRedIonicClient/src/pages/tabs/tabs.scss Прегледај датотеку

@@ -0,0 +1,3 @@
1
+page-tabs {
2
+
3
+}

+ 20
- 0
ZipCoinRedIonicClient/src/pages/tabs/tabs.ts Прегледај датотеку

@@ -0,0 +1,20 @@
1
+import { Component } from '@angular/core';
2
+import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+import { HomePage } from '../home/home';
4
+import { WalletPage } from '../wallet/wallet';
5
+import { TransactionPage } from '../transaction/transaction';
6
+import { Tab4Page } from '../tab4/tab4';
7
+@IonicPage()
8
+@Component({
9
+  selector: 'page-tabs',
10
+  templateUrl: 'tabs.html',
11
+})
12
+export class TabsPage {
13
+  homePage = HomePage;
14
+  walletPage = WalletPage;
15
+  transactionPage = TransactionPage;
16
+  tab4 = Tab4Page; 
17
+  constructor() {
18
+
19
+  }
20
+}

+ 18
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.html Прегледај датотеку

@@ -0,0 +1,18 @@
1
+<!--
2
+  Generated template for the TransactionPage page.
3
+
4
+  See http://ionicframework.com/docs/components/#navigation for more info on
5
+  Ionic pages and navigation.
6
+-->
7
+<ion-header>
8
+
9
+  <ion-navbar>
10
+    <ion-title>Transaction</ion-title>
11
+  </ion-navbar>
12
+
13
+</ion-header>
14
+
15
+
16
+<ion-content padding>
17
+
18
+</ion-content>

+ 13
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.module.ts Прегледај датотеку

@@ -0,0 +1,13 @@
1
+import { NgModule } from '@angular/core';
2
+import { IonicPageModule } from 'ionic-angular';
3
+import { TransactionPage } from './transaction';
4
+
5
+@NgModule({
6
+  declarations: [
7
+    TransactionPage,
8
+  ],
9
+  imports: [
10
+    IonicPageModule.forChild(TransactionPage),
11
+  ],
12
+})
13
+export class TransactionPageModule {}

+ 3
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.scss Прегледај датотеку

@@ -0,0 +1,3 @@
1
+page-transaction {
2
+
3
+}

+ 25
- 0
ZipCoinRedIonicClient/src/pages/transaction/transaction.ts Прегледај датотеку

@@ -0,0 +1,25 @@
1
+import { Component } from '@angular/core';
2
+import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+
4
+/**
5
+ * Generated class for the TransactionPage page.
6
+ *
7
+ * See https://ionicframework.com/docs/components/#navigation for more info on
8
+ * Ionic pages and navigation.
9
+ */
10
+
11
+@IonicPage()
12
+@Component({
13
+  selector: 'page-transaction',
14
+  templateUrl: 'transaction.html',
15
+})
16
+export class TransactionPage {
17
+
18
+  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
+  }
20
+
21
+  ionViewDidLoad() {
22
+    console.log('ionViewDidLoad TransactionPage');
23
+  }
24
+
25
+}

+ 18
- 0
ZipCoinRedIonicClient/src/pages/wallet/wallet.html Прегледај датотеку

@@ -0,0 +1,18 @@
1
+<!--
2
+  Generated template for the WalletPage page.
3
+
4
+  See http://ionicframework.com/docs/components/#navigation for more info on
5
+  Ionic pages and navigation.
6
+-->
7
+<ion-header>
8
+
9
+  <ion-navbar>
10
+    <ion-title>Wallet</ion-title>
11
+  </ion-navbar>
12
+
13
+</ion-header>
14
+
15
+
16
+<ion-content padding>
17
+
18
+</ion-content>

+ 13
- 0
ZipCoinRedIonicClient/src/pages/wallet/wallet.module.ts Прегледај датотеку

@@ -0,0 +1,13 @@
1
+import { NgModule } from '@angular/core';
2
+import { IonicPageModule } from 'ionic-angular';
3
+import { WalletPage } from './wallet';
4
+
5
+@NgModule({
6
+  declarations: [
7
+    WalletPage,
8
+  ],
9
+  imports: [
10
+    IonicPageModule.forChild(WalletPage),
11
+  ],
12
+})
13
+export class WalletPageModule {}

+ 3
- 0
ZipCoinRedIonicClient/src/pages/wallet/wallet.scss Прегледај датотеку

@@ -0,0 +1,3 @@
1
+page-wallet {
2
+
3
+}

+ 25
- 0
ZipCoinRedIonicClient/src/pages/wallet/wallet.ts Прегледај датотеку

@@ -0,0 +1,25 @@
1
+import { Component } from '@angular/core';
2
+import { IonicPage, NavController, NavParams } from 'ionic-angular';
3
+
4
+/**
5
+ * Generated class for the WalletPage page.
6
+ *
7
+ * See https://ionicframework.com/docs/components/#navigation for more info on
8
+ * Ionic pages and navigation.
9
+ */
10
+
11
+@IonicPage()
12
+@Component({
13
+  selector: 'page-wallet',
14
+  templateUrl: 'wallet.html',
15
+})
16
+export class WalletPage {
17
+
18
+  constructor(public navCtrl: NavController, public navParams: NavParams) {
19
+  }
20
+
21
+  ionViewDidLoad() {
22
+    console.log('ionViewDidLoad WalletPage');
23
+  }
24
+
25
+}

+ 75
- 0
ZipCoinRedIonicClient/www/build/.ion-diagnostic-typescript.html Прегледај датотеку

@@ -0,0 +1,75 @@
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;../pages/home/home&#039;.</div>
5
+</div>
6
+<div class="ion-diagnostic-file">
7
+<div class="ion-diagnostic-file-header" title="/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.component.ts">src/app/app.component.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="5"></td>
12
+<td class="ion-diagnostic-blob-code"></td>
13
+</tr>
14
+<tr class="ion-diagnostic-error-line">
15
+<td class="ion-diagnostic-blob-num" data-line-number="6"></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">p</span><span class="ion-diagnostics-error-chr">a</span><span class="ion-diagnostics-error-chr">g</span><span class="ion-diagnostics-error-chr">e</span><span class="ion-diagnostics-error-chr">s</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 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="7"></td>
20
+<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { TabsPage } from <span class="hljs-string">'../pages/tabs/tabs'</span>;</td>
21
+</tr>
22
+</table>
23
+</div>
24
+</div>
25
+</div>
26
+<div class="ion-diagnostic">
27
+<div class="ion-diagnostic-masthead" title="typescript error: 2307">
28
+<div class="ion-diagnostic-title">Typescript Error</div>
29
+<div class="ion-diagnostic-message" data-error-code="typescript-2307">Cannot find module &#039;../pages/home/home&#039;.</div>
30
+</div>
31
+<div class="ion-diagnostic-file">
32
+<div class="ion-diagnostic-file-header" title="/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.module.ts">src/app/app.module.ts</div>
33
+<div class="ion-diagnostic-blob">
34
+<table class="ion-diagnostic-table">
35
+<tr>
36
+<td class="ion-diagnostic-blob-num" data-line-number="7"></td>
37
+<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { MyApp } from <span class="hljs-string">'./app.component'</span>;</td>
38
+</tr>
39
+<tr class="ion-diagnostic-error-line">
40
+<td class="ion-diagnostic-blob-num" data-line-number="8"></td>
41
+<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">p</span><span class="ion-diagnostics-error-chr">a</span><span class="ion-diagnostics-error-chr">g</span><span class="ion-diagnostics-error-chr">e</span><span class="ion-diagnostics-error-chr">s</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 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>
42
+</tr>
43
+<tr>
44
+<td class="ion-diagnostic-blob-num" data-line-number="9"></td>
45
+<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { HttpClientModule } from <span class="hljs-string">'@angular/common/http'</span>;</td>
46
+</tr>
47
+</table>
48
+</div>
49
+</div>
50
+</div>
51
+<div class="ion-diagnostic">
52
+<div class="ion-diagnostic-masthead" title="typescript error: 2307">
53
+<div class="ion-diagnostic-title">Typescript Error</div>
54
+<div class="ion-diagnostic-message" data-error-code="typescript-2307">Cannot find module &#039;../home/home&#039;.</div>
55
+</div>
56
+<div class="ion-diagnostic-file">
57
+<div class="ion-diagnostic-file-header" title="/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.ts">src/pages/tabs/tabs.ts</div>
58
+<div class="ion-diagnostic-blob">
59
+<table class="ion-diagnostic-table">
60
+<tr>
61
+<td class="ion-diagnostic-blob-num" data-line-number="2"></td>
62
+<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { NavController, NavParams } from <span class="hljs-string">'ionic-angular'</span>;</td>
63
+</tr>
64
+<tr class="ion-diagnostic-error-line">
65
+<td class="ion-diagnostic-blob-num" data-line-number="3"></td>
66
+<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">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 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>
67
+</tr>
68
+<tr>
69
+<td class="ion-diagnostic-blob-num" data-line-number="4"></td>
70
+<td class="ion-diagnostic-blob-code"><span class="hljs-keyword">import</span> { WalletPage } from <span class="hljs-string">'../wallet/wallet'</span>;</td>
71
+</tr>
72
+</table>
73
+</div>
74
+</div>
75
+</div>

+ 42
- 0
ZipCoinRedIonicClient/www/build/0.js Прегледај датотеку

@@ -0,0 +1,42 @@
1
+webpackJsonp([0],{
2
+
3
+/***/ 282:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
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);
10
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(100);
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;
14
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+};
18
+
19
+
20
+
21
+var WalletPageModule = /** @class */ (function () {
22
+    function WalletPageModule() {
23
+    }
24
+    WalletPageModule = __decorate([
25
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26
+            declarations: [
27
+                __WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */],
28
+            ],
29
+            imports: [
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__wallet__["a" /* WalletPage */]),
31
+            ],
32
+        })
33
+    ], WalletPageModule);
34
+    return WalletPageModule;
35
+}());
36
+
37
+//# sourceMappingURL=wallet.module.js.map
38
+
39
+/***/ })
40
+
41
+});
42
+//# sourceMappingURL=0.js.map

+ 1
- 0
ZipCoinRedIonicClient/www/build/0.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/wallet/wallet.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACV;AAUtC;IAAA;IAA+B,CAAC;IAAnB,gBAAgB;QAR5B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,2DAAU;aACX;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,2DAAU,CAAC;aACrC;SACF,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAA;AAAH","file":"0.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { WalletPage } from './wallet';\n\n@NgModule({\n  declarations: [\n    WalletPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(WalletPage),\n  ],\n})\nexport class WalletPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/wallet/wallet.module.ts"],"sourceRoot":""}

+ 42
- 0
ZipCoinRedIonicClient/www/build/1.js Прегледај датотеку

@@ -0,0 +1,42 @@
1
+webpackJsonp([1],{
2
+
3
+/***/ 281:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
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);
10
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transaction__ = __webpack_require__(101);
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;
14
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+};
18
+
19
+
20
+
21
+var TransactionPageModule = /** @class */ (function () {
22
+    function TransactionPageModule() {
23
+    }
24
+    TransactionPageModule = __decorate([
25
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26
+            declarations: [
27
+                __WEBPACK_IMPORTED_MODULE_2__transaction__["a" /* TransactionPage */],
28
+            ],
29
+            imports: [
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__transaction__["a" /* TransactionPage */]),
31
+            ],
32
+        })
33
+    ], TransactionPageModule);
34
+    return TransactionPageModule;
35
+}());
36
+
37
+//# sourceMappingURL=transaction.module.js.map
38
+
39
+/***/ })
40
+
41
+});
42
+//# sourceMappingURL=1.js.map

+ 1
- 0
ZipCoinRedIonicClient/www/build/1.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/transaction/transaction.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACA;AAUhD;IAAA;IAAoC,CAAC;IAAxB,qBAAqB;QARjC,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,qEAAe;aAChB;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,qEAAe,CAAC;aAC1C;SACF,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAAA;AAAH","file":"1.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { TransactionPage } from './transaction';\n\n@NgModule({\n  declarations: [\n    TransactionPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(TransactionPage),\n  ],\n})\nexport class TransactionPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/transaction/transaction.module.ts"],"sourceRoot":""}

+ 42
- 0
ZipCoinRedIonicClient/www/build/2.js Прегледај датотеку

@@ -0,0 +1,42 @@
1
+webpackJsonp([2],{
2
+
3
+/***/ 280:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
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);
10
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tabs__ = __webpack_require__(99);
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;
14
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+};
18
+
19
+
20
+
21
+var TabsPageModule = /** @class */ (function () {
22
+    function TabsPageModule() {
23
+    }
24
+    TabsPageModule = __decorate([
25
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26
+            declarations: [
27
+                __WEBPACK_IMPORTED_MODULE_2__tabs__["a" /* TabsPage */],
28
+            ],
29
+            imports: [
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__tabs__["a" /* TabsPage */]),
31
+            ],
32
+        })
33
+    ], TabsPageModule);
34
+    return TabsPageModule;
35
+}());
36
+
37
+//# sourceMappingURL=tabs.module.js.map
38
+
39
+/***/ })
40
+
41
+});
42
+//# sourceMappingURL=2.js.map

+ 1
- 0
ZipCoinRedIonicClient/www/build/2.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/tabs/tabs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACd;AAUlC;IAAA;IAA6B,CAAC;IAAjB,cAAc;QAR1B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,uDAAQ;aACT;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,uDAAQ,CAAC;aACnC;SACF,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAAA;AAAH","file":"2.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { TabsPage } from './tabs';\n\n@NgModule({\n  declarations: [\n    TabsPage,\n  ],\n  imports: [\n    IonicPageModule.forChild(TabsPage),\n  ],\n})\nexport class TabsPageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/tabs/tabs.module.ts"],"sourceRoot":""}

+ 42
- 0
ZipCoinRedIonicClient/www/build/3.js Прегледај датотеку

@@ -0,0 +1,42 @@
1
+webpackJsonp([3],{
2
+
3
+/***/ 279:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tab4PageModule", function() { return Tab4PageModule; });
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);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tab4__ = __webpack_require__(202);
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;
14
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+};
18
+
19
+
20
+
21
+var Tab4PageModule = /** @class */ (function () {
22
+    function Tab4PageModule() {
23
+    }
24
+    Tab4PageModule = __decorate([
25
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
26
+            declarations: [
27
+                __WEBPACK_IMPORTED_MODULE_2__tab4__["a" /* Tab4Page */],
28
+            ],
29
+            imports: [
30
+                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__tab4__["a" /* Tab4Page */]),
31
+            ],
32
+        })
33
+    ], Tab4PageModule);
34
+    return Tab4PageModule;
35
+}());
36
+
37
+//# sourceMappingURL=tab4.module.js.map
38
+
39
+/***/ })
40
+
41
+});
42
+//# sourceMappingURL=3.js.map

+ 1
- 0
ZipCoinRedIonicClient/www/build/3.js.map Прегледај датотеку

@@ -0,0 +1 @@
1
+{"version":3,"sources":["../../src/pages/tab4/tab4.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAyC;AACO;AACd;AAUlC;IAAA;IAA6B,CAAC;IAAjB,cAAc;QAR1B,uEAAQ,CAAC;YACR,YAAY,EAAE;gBACZ,uDAAQ;aACT;YACD,OAAO,EAAE;gBACP,sEAAe,CAAC,QAAQ,CAAC,uDAAQ,CAAC;aACnC;SACF,CAAC;OACW,cAAc,CAAG;IAAD,qBAAC;CAAA;AAAH","file":"3.js","sourcesContent":["import { NgModule } from '@angular/core';\nimport { IonicPageModule } from 'ionic-angular';\nimport { Tab4Page } from './tab4';\n\n@NgModule({\n  declarations: [\n    Tab4Page,\n  ],\n  imports: [\n    IonicPageModule.forChild(Tab4Page),\n  ],\n})\nexport class Tab4PageModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/tab4/tab4.module.ts"],"sourceRoot":""}

+ 272
- 48
ZipCoinRedIonicClient/www/build/main.js Прегледај датотеку

@@ -1,23 +1,96 @@
1
-webpackJsonp([0],{
1
+webpackJsonp([4],{
2 2
 
3
-/***/ 110:
4
-/***/ (function(module, exports) {
3
+/***/ 100:
4
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
5
+
6
+"use strict";
7
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
8
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
9
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
10
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
11
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
13
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
15
+};
16
+var __metadata = (this && this.__metadata) || function (k, v) {
17
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
18
+};
19
+
20
+
21
+/**
22
+ * Generated class for the WalletPage page.
23
+ *
24
+ * See https://ionicframework.com/docs/components/#navigation for more info on
25
+ * Ionic pages and navigation.
26
+ */
27
+var WalletPage = /** @class */ (function () {
28
+    function WalletPage(navCtrl, navParams) {
29
+        this.navCtrl = navCtrl;
30
+        this.navParams = navParams;
31
+    }
32
+    WalletPage.prototype.ionViewDidLoad = function () {
33
+        console.log('ionViewDidLoad WalletPage');
34
+    };
35
+    WalletPage = __decorate([
36
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
37
+            selector: 'page-wallet',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/'<!--\n  Generated template for the WalletPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Wallet</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
38
+        }),
39
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
40
+    ], WalletPage);
41
+    return WalletPage;
42
+}());
43
+
44
+//# sourceMappingURL=wallet.js.map
45
+
46
+/***/ }),
47
+
48
+/***/ 101:
49
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
50
+
51
+"use strict";
52
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
53
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
54
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
55
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
56
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+};
61
+var __metadata = (this && this.__metadata) || function (k, v) {
62
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
63
+};
5 64
 
6
-function webpackEmptyAsyncContext(req) {
7
-	// Here Promise.resolve().then() is used instead of new Promise() to prevent
8
-	// uncatched exception popping up in devtools
9
-	return Promise.resolve().then(function() {
10
-		throw new Error("Cannot find module '" + req + "'.");
11
-	});
12
-}
13
-webpackEmptyAsyncContext.keys = function() { return []; };
14
-webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
15
-module.exports = webpackEmptyAsyncContext;
16
-webpackEmptyAsyncContext.id = 110;
65
+
66
+/**
67
+ * Generated class for the TransactionPage page.
68
+ *
69
+ * See https://ionicframework.com/docs/components/#navigation for more info on
70
+ * Ionic pages and navigation.
71
+ */
72
+var TransactionPage = /** @class */ (function () {
73
+    function TransactionPage(navCtrl, navParams) {
74
+        this.navCtrl = navCtrl;
75
+        this.navParams = navParams;
76
+    }
77
+    TransactionPage.prototype.ionViewDidLoad = function () {
78
+        console.log('ionViewDidLoad TransactionPage');
79
+    };
80
+    TransactionPage = __decorate([
81
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
82
+            selector: 'page-transaction',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<!--\n  Generated template for the TransactionPage page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
83
+        }),
84
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
85
+    ], TransactionPage);
86
+    return TransactionPage;
87
+}());
88
+
89
+//# sourceMappingURL=transaction.js.map
17 90
 
18 91
 /***/ }),
19 92
 
20
-/***/ 152:
93
+/***/ 113:
21 94
 /***/ (function(module, exports) {
22 95
 
23 96
 function webpackEmptyAsyncContext(req) {
@@ -30,18 +103,55 @@ function webpackEmptyAsyncContext(req) {
30 103
 webpackEmptyAsyncContext.keys = function() { return []; };
31 104
 webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
32 105
 module.exports = webpackEmptyAsyncContext;
33
-webpackEmptyAsyncContext.id = 152;
106
+webpackEmptyAsyncContext.id = 113;
34 107
 
35 108
 /***/ }),
36 109
 
37
-/***/ 196:
110
+/***/ 155:
111
+/***/ (function(module, exports, __webpack_require__) {
112
+
113
+var map = {
114
+	"../pages/tab4/tab4.module": [
115
+		279,
116
+		3
117
+	],
118
+	"../pages/tabs/tabs.module": [
119
+		280,
120
+		2
121
+	],
122
+	"../pages/transaction/transaction.module": [
123
+		281,
124
+		1
125
+	],
126
+	"../pages/wallet/wallet.module": [
127
+		282,
128
+		0
129
+	]
130
+};
131
+function webpackAsyncContext(req) {
132
+	var ids = map[req];
133
+	if(!ids)
134
+		return Promise.reject(new Error("Cannot find module '" + req + "'."));
135
+	return __webpack_require__.e(ids[1]).then(function() {
136
+		return __webpack_require__(ids[0]);
137
+	});
138
+};
139
+webpackAsyncContext.keys = function webpackAsyncContextKeys() {
140
+	return Object.keys(map);
141
+};
142
+webpackAsyncContext.id = 155;
143
+module.exports = webpackAsyncContext;
144
+
145
+/***/ }),
146
+
147
+/***/ 156:
38 148
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
39 149
 
40 150
 "use strict";
41 151
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
42 152
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
43
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(54);
44
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(197);
153
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
154
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(157);
45 155
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
46 156
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
47 157
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -78,22 +188,27 @@ var HomePage = /** @class */ (function () {
78 188
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
79 189
             selector: 'page-home',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title>\n      ZipCoin BlockChain\n    </ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n  \n  <div class="well well-success col-xs-7" id="blockchain">\n       <div class="list list-inset">\n          <label class="item item-input"> Block #:<input type="text" disabled placeholder= "{{ block.blockNumber }}" ></label>\n          <label class="item item-input"> Nonce:<input type="text" disabled placeholder= "{{ block.nonce }}" ></label>\n          <label class="item item-input"> Data:<input type="text" disabled placeholder= "{{ block.transactionList }}" > </label>\n          <label class="item item-input"> Hash:<input type="text" disabled placeholder= "{{ block.currentHash }}" ></label>\n    <!-- <label class="item item-input"> HashPrev: <input type="text" disabled placeholder="Hash"></label> -->\n          <button ion-button (click)="btnClicked()">Mine</button>\n        </div>\n  </div>   \n\n</ion-content>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
80 190
         }),
81
-        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["d" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]) === "function" && _b || Object])
191
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
82 192
     ], HomePage);
83 193
     return HomePage;
84
-    var _a, _b;
85 194
 }());
86 195
 
196
+//make payment
197
+//block view
198
+//2 pull down list of username and pay other user "blank zips"
199
+// transaction are order by date
200
+// pay tab how many coins``
201
+// 4 tabs block,pay,  
87 202
 //# sourceMappingURL=home.js.map
88 203
 
89 204
 /***/ }),
90 205
 
91
-/***/ 197:
206
+/***/ 157:
92 207
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
93 208
 
94 209
 "use strict";
95 210
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
96
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(198);
211
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(158);
97 212
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
98 213
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
99 214
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -120,23 +235,67 @@ var BlockService = /** @class */ (function () {
120 235
     };
121 236
     BlockService = __decorate([
122 237
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
123
-        __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]) === "function" && _a || Object])
238
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
124 239
     ], BlockService);
125 240
     return BlockService;
126
-    var _a;
127 241
 }());
128 242
 
129 243
 //# sourceMappingURL=block-service.js.map
130 244
 
131 245
 /***/ }),
132 246
 
133
-/***/ 199:
247
+/***/ 202:
248
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
249
+
250
+"use strict";
251
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
252
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
253
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
254
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
255
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
256
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
257
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
258
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
259
+};
260
+var __metadata = (this && this.__metadata) || function (k, v) {
261
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
262
+};
263
+
264
+
265
+/**
266
+ * Generated class for the Tab4Page page.
267
+ *
268
+ * See https://ionicframework.com/docs/components/#navigation for more info on
269
+ * Ionic pages and navigation.
270
+ */
271
+var Tab4Page = /** @class */ (function () {
272
+    function Tab4Page(navCtrl, navParams) {
273
+        this.navCtrl = navCtrl;
274
+        this.navParams = navParams;
275
+    }
276
+    Tab4Page.prototype.ionViewDidLoad = function () {
277
+        console.log('ionViewDidLoad Tab4Page');
278
+    };
279
+    Tab4Page = __decorate([
280
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
281
+            selector: 'page-tab4',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/'<!--\n  Generated template for the Tab4Page page.\n\n  See http://ionicframework.com/docs/components/#navigation for more info on\n  Ionic pages and navigation.\n-->\n<ion-header>\n\n  <ion-navbar>\n    <ion-title>tab4</ion-title>\n  </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
282
+        }),
283
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
284
+    ], Tab4Page);
285
+    return Tab4Page;
286
+}());
287
+
288
+//# sourceMappingURL=tab4.js.map
289
+
290
+/***/ }),
291
+
292
+/***/ 203:
134 293
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
135 294
 
136 295
 "use strict";
137 296
 Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
138
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(200);
139
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(220);
297
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(204);
298
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(224);
140 299
 
141 300
 
142 301
 Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
@@ -144,20 +303,24 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
144 303
 
145 304
 /***/ }),
146 305
 
147
-/***/ 220:
306
+/***/ 224:
148 307
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
149 308
 
150 309
 "use strict";
151 310
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
152
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(30);
311
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
153 312
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
154
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(54);
155
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(192);
156
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(195);
157
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(269);
158
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(196);
159
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_common_http__ = __webpack_require__(198);
160
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__providers_block_service__ = __webpack_require__(197);
313
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
314
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(198);
315
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(201);
316
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
317
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_home_home__ = __webpack_require__(156);
318
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_common_http__ = __webpack_require__(158);
319
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__providers_block_service__ = __webpack_require__(157);
320
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(100);
321
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(101);
322
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(99);
323
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(202);
161 324
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
162 325
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
163 326
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -173,6 +336,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
173 336
 
174 337
 
175 338
 
339
+
340
+
341
+
342
+
176 343
 var AppModule = /** @class */ (function () {
177 344
     function AppModule() {
178 345
     }
@@ -180,19 +347,32 @@ var AppModule = /** @class */ (function () {
180 347
         Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
181 348
             declarations: [
182 349
                 __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
183
-                __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */]
350
+                __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
351
+                __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
352
+                __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
353
+                __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
354
+                __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
184 355
             ],
185 356
             imports: [
186 357
                 __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
187 358
                 __WEBPACK_IMPORTED_MODULE_7__angular_common_http__["b" /* HttpClientModule */],
188 359
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
189
-                    links: []
360
+                    links: [
361
+                        { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
362
+                        { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
363
+                        { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
364
+                        { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
365
+                    ]
190 366
                 })
191 367
             ],
192 368
             bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
193 369
             entryComponents: [
194 370
                 __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
195
-                __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */]
371
+                __WEBPACK_IMPORTED_MODULE_6__pages_home_home__["a" /* HomePage */],
372
+                __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
373
+                __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
374
+                __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
375
+                __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
196 376
             ],
197 377
             providers: [
198 378
                 __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
@@ -209,16 +389,16 @@ var AppModule = /** @class */ (function () {
209 389
 
210 390
 /***/ }),
211 391
 
212
-/***/ 269:
392
+/***/ 278:
213 393
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
214 394
 
215 395
 "use strict";
216 396
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
217 397
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
218
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(54);
219
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(195);
220
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(192);
221
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(196);
398
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
399
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(201);
400
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(198);
401
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(99);
222 402
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
223 403
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
224 404
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -235,7 +415,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
235 415
 
236 416
 var MyApp = /** @class */ (function () {
237 417
     function MyApp(platform, statusBar, splashScreen) {
238
-        this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */];
418
+        this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__["a" /* TabsPage */];
239 419
         platform.ready().then(function () {
240 420
             // Okay, so the platform is ready and our plugins are available.
241 421
             // Here you can do any higher level native things you might need.
@@ -246,14 +426,58 @@ var MyApp = /** @class */ (function () {
246 426
     MyApp = __decorate([
247 427
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
248 428
         }),
249
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
429
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
250 430
     ], MyApp);
251 431
     return MyApp;
252 432
 }());
253 433
 
254 434
 //# sourceMappingURL=app.component.js.map
255 435
 
436
+/***/ }),
437
+
438
+/***/ 99:
439
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
440
+
441
+"use strict";
442
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
443
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
444
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(156);
445
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(100);
446
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(101);
447
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(202);
448
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
449
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
450
+    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
451
+    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
452
+    return c > 3 && r && Object.defineProperty(target, key, r), r;
453
+};
454
+var __metadata = (this && this.__metadata) || function (k, v) {
455
+    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
456
+};
457
+
458
+
459
+
460
+
461
+
462
+var TabsPage = /** @class */ (function () {
463
+    function TabsPage() {
464
+        this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
465
+        this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
466
+        this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
467
+        this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
468
+    }
469
+    TabsPage = __decorate([
470
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
471
+            selector: 'page-tabs',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/'<ion-tabs>\n  <ion-tab [root]="homePage" tabTitle="ZipCoin-BlockChain" tabIcon="link"></ion-tab>\n  <ion-tab [root]="walletPage" tabTitle="ZipCoin Wallet" tabIcon="cash"></ion-tab>\n  <ion-tab [root]="transactionPage" tabTitle="ZipCoin Transactions" tabIcon="contacts"></ion-tab>\n  <ion-tab [root]="tab4" tabTitle="Ziptab" tabIcon="star"></ion-tab>\n\n</ion-tabs>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
472
+        }),
473
+        __metadata("design:paramtypes", [])
474
+    ], TabsPage);
475
+    return TabsPage;
476
+}());
477
+
478
+//# sourceMappingURL=tabs.js.map
479
+
256 480
 /***/ })
257 481
 
258
-},[199]);
482
+},[203]);
259 483
 //# sourceMappingURL=main.js.map

+ 1
- 1
ZipCoinRedIonicClient/www/build/main.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 10371
- 10368
ZipCoinRedIonicClient/www/build/vendor.js
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 1
- 1
ZipCoinRedIonicClient/www/build/vendor.js.map
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


BIN
ZipCoinRedJavaServer/.DS_Store Прегледај датотеку


+ 210
- 343
ZipCoinRedJavaServer/.idea/workspace.xml Прегледај датотеку

@@ -10,32 +10,13 @@
10 10
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11 11
     <option name="LAST_RESOLUTION" value="IGNORE" />
12 12
   </component>
13
-  <component name="DatabaseView">
14
-    <option name="SHOW_INTERMEDIATE" value="true" />
15
-    <option name="GROUP_DATA_SOURCES" value="true" />
16
-    <option name="GROUP_SCHEMA" value="true" />
17
-    <option name="GROUP_CONTENTS" value="false" />
18
-    <option name="SORT_POSITIONED" value="false" />
19
-    <option name="SHOW_EMPTY_GROUPS" value="false" />
20
-    <option name="AUTO_SCROLL_FROM_SOURCE" value="false" />
21
-    <option name="HIDDEN_KINDS">
22
-      <set />
23
-    </option>
24
-    <expand />
25
-    <select />
26
-  </component>
27 13
   <component name="FileEditorManager">
28 14
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
29
-      <file leaf-file-name="Block.java" pinned="false" current-in-tab="true">
15
+      <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
30 16
         <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
31 17
           <provider selected="true" editor-type-id="text-editor">
32
-<<<<<<< HEAD
33
-            <state relative-caret-position="209">
34
-              <caret line="15" column="31" lean-forward="true" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
35
-=======
36
-            <state relative-caret-position="1200">
37
-              <caret line="82" column="4" selection-start-line="82" selection-start-column="4" selection-end-line="82" selection-end-column="4" />
38
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
18
+            <state relative-caret-position="165">
19
+              <caret line="11" column="20" lean-forward="true" selection-start-line="9" selection-start-column="4" selection-end-line="11" selection-end-column="20" />
39 20
               <folding>
40 21
                 <element signature="imports" expanded="true" />
41 22
               </folding>
@@ -43,54 +24,56 @@
43 24
           </provider>
44 25
         </entry>
45 26
       </file>
46
-      <file leaf-file-name="BlockController.java" pinned="false" current-in-tab="false">
47
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/BlockController.java">
27
+      <file leaf-file-name="HomeController.java" pinned="false" current-in-tab="false">
28
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/HomeController.java">
48 29
           <provider selected="true" editor-type-id="text-editor">
49
-<<<<<<< HEAD
50
-            <state relative-caret-position="529">
51
-=======
52
-            <state relative-caret-position="-192">
53
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
54
-              <caret line="27" column="5" selection-start-line="27" selection-start-column="5" selection-end-line="27" selection-end-column="5" />
55
-              <folding>
56
-                <element signature="imports" expanded="true" />
57
-              </folding>
30
+            <state relative-caret-position="60">
31
+              <caret line="5" column="13" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
58 32
             </state>
59 33
           </provider>
60 34
         </entry>
61 35
       </file>
62
-      <file leaf-file-name="HomeController.java" pinned="false" current-in-tab="false">
63
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/HomeController.java">
36
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
37
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Wallet.java">
64 38
           <provider selected="true" editor-type-id="text-editor">
65
-            <state relative-caret-position="138">
66
-              <caret line="9" column="5" selection-start-line="9" selection-start-column="5" selection-end-line="9" selection-end-column="5" />
39
+            <state relative-caret-position="120">
40
+              <caret line="12" column="32" selection-start-line="12" selection-start-column="32" selection-end-line="12" selection-end-column="32" />
41
+              <folding>
42
+                <element signature="imports" expanded="true" />
43
+              </folding>
67 44
             </state>
68 45
           </provider>
69 46
         </entry>
70 47
       </file>
71
-      <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
72
-        <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
48
+      <file leaf-file-name="TransactionController.java" pinned="false" current-in-tab="false">
49
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/TransactionController.java">
73 50
           <provider selected="true" editor-type-id="text-editor">
74
-            <state relative-caret-position="253">
75
-              <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
51
+            <state relative-caret-position="230">
52
+              <caret line="19" column="68" selection-start-line="19" selection-start-column="68" selection-end-line="19" selection-end-column="68" />
53
+              <folding>
54
+                <element signature="imports" expanded="true" />
55
+              </folding>
76 56
             </state>
77 57
           </provider>
78 58
         </entry>
79 59
       </file>
80
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
81
-        <entry file="file://$PROJECT_DIR$/pom.xml">
60
+      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
61
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/WalletController.java">
82 62
           <provider selected="true" editor-type-id="text-editor">
83
-            <state relative-caret-position="897">
84
-              <caret line="39" column="21" selection-start-line="39" selection-start-column="21" selection-end-line="39" selection-end-column="21" />
63
+            <state relative-caret-position="216">
64
+              <caret line="24" column="48" selection-start-line="24" selection-start-column="29" selection-end-line="24" selection-end-column="48" />
65
+              <folding>
66
+                <element signature="imports" expanded="true" />
67
+              </folding>
85 68
             </state>
86 69
           </provider>
87 70
         </entry>
88 71
       </file>
89
-      <file leaf-file-name="BlockRepository.java" pinned="false" current-in-tab="false">
90
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
72
+      <file leaf-file-name="TransactionRepository.java" pinned="false" current-in-tab="false">
73
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/TransactionRepository.java">
91 74
           <provider selected="true" editor-type-id="text-editor">
92
-            <state relative-caret-position="115">
93
-              <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
75
+            <state relative-caret-position="165">
76
+              <caret line="11" selection-start-line="11" selection-start-column="2" selection-end-line="12" selection-end-column="92" />
94 77
               <folding>
95 78
                 <element signature="imports" expanded="true" />
96 79
               </folding>
@@ -98,11 +81,11 @@
98 81
           </provider>
99 82
         </entry>
100 83
       </file>
101
-      <file leaf-file-name="ZipCoinApp.java" pinned="false" current-in-tab="false">
102
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/ZipCoinApp.java">
84
+      <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
85
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Transaction.java">
103 86
           <provider selected="true" editor-type-id="text-editor">
104
-            <state relative-caret-position="138">
105
-              <caret line="6" column="13" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
87
+            <state relative-caret-position="1110">
88
+              <caret line="74" selection-start-line="74" selection-start-column="2" selection-end-line="78" selection-end-column="7" />
106 89
               <folding>
107 90
                 <element signature="imports" expanded="true" />
108 91
               </folding>
@@ -110,32 +93,32 @@
110 93
           </provider>
111 94
         </entry>
112 95
       </file>
113
-      <file leaf-file-name="V2__create_block.sql" pinned="false" current-in-tab="false">
114
-        <entry file="file://$PROJECT_DIR$/src/main/resources/db/migration/V2__create_block.sql">
96
+      <file leaf-file-name="WalletRepository.java" pinned="false" current-in-tab="true">
97
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/WalletRepository.java">
115 98
           <provider selected="true" editor-type-id="text-editor">
116
-            <state relative-caret-position="161">
117
-              <caret line="7" column="2" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" />
99
+            <state relative-caret-position="180">
100
+              <caret line="12" column="70" selection-start-line="11" selection-start-column="4" selection-end-line="12" selection-end-column="70" />
101
+              <folding>
102
+                <element signature="imports" expanded="true" />
103
+              </folding>
118 104
             </state>
119 105
           </provider>
120 106
         </entry>
121 107
       </file>
122
-      <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
123
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Miner.java">
108
+      <file leaf-file-name="TransactionAndWalletTest.java" pinned="false" current-in-tab="false">
109
+        <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
124 110
           <provider selected="true" editor-type-id="text-editor">
125
-            <state relative-caret-position="322">
126
-              <caret line="14" column="21" selection-start-line="14" selection-start-column="21" selection-end-line="14" selection-end-column="21" />
111
+            <state relative-caret-position="75">
112
+              <caret line="12" selection-start-line="12" selection-start-column="2" selection-end-line="13" selection-end-column="39" />
127 113
             </state>
128 114
           </provider>
129 115
         </entry>
130 116
       </file>
131
-      <file leaf-file-name="minerTest.java" pinned="false" current-in-tab="false">
132
-        <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/miner/test/minerTest.java">
117
+      <file leaf-file-name="Chain.java" pinned="false" current-in-tab="false">
118
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Chain.java">
133 119
           <provider selected="true" editor-type-id="text-editor">
134
-            <state relative-caret-position="276">
135
-              <caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
136
-              <folding>
137
-                <element signature="imports" expanded="true" />
138
-              </folding>
120
+            <state relative-caret-position="60">
121
+              <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
139 122
             </state>
140 123
           </provider>
141 124
         </entry>
@@ -171,6 +154,14 @@
171 154
         <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/model/Miner.java" />
172 155
         <option value="$PROJECT_DIR$/src/test/java/redCoin/Miner/minerTest.java" />
173 156
         <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/controller/BlockController.java" />
157
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Wallet.java" />
158
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/controller/WalletController.java" />
159
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/repository/WalletRepository.java" />
160
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/controller/TransactionController.java" />
161
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/model/Wallet.java" />
162
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/model/Transaction.java" />
163
+        <option value="$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java" />
164
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/repository/TransactionRepository.java" />
174 165
       </list>
175 166
     </option>
176 167
   </component>
@@ -196,13 +187,7 @@
196 187
   <component name="NodePackageJsonFileManager">
197 188
     <packageJsonPaths />
198 189
   </component>
199
-  <component name="ProjectFrameBounds">
200
-    <option name="x" value="39" />
201
-    <option name="y" value="23" />
202
-    <option name="width" value="1203" />
203
-    <option name="height" value="713" />
204
-  </component>
205
-  <component name="ProjectLevelVcsManager">
190
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
206 191
     <ConfirmationsSetting value="2" id="Add" />
207 192
   </component>
208 193
   <component name="ProjectView">
@@ -210,14 +195,6 @@
210 195
       <foldersAlwaysOnTop value="true" />
211 196
     </navigator>
212 197
     <panes>
213
-<<<<<<< HEAD
214
-      <pane id="Course" />
215
-      <pane id="Scope" />
216
-      <pane id="PackagesPane" />
217
-=======
218
-      <pane id="Scope" />
219
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
220
-      <pane id="AndroidView" />
221 198
       <pane id="ProjectPane">
222 199
         <subPane>
223 200
           <expand>
@@ -258,6 +235,15 @@
258 235
               <item name="main" type="462c0819:PsiDirectoryNode" />
259 236
               <item name="java" type="462c0819:PsiDirectoryNode" />
260 237
               <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
238
+              <item name="config" type="462c0819:PsiDirectoryNode" />
239
+            </path>
240
+            <path>
241
+              <item name="ZipCoinRedJavaServer" type="b2602c69:ProjectViewProjectNode" />
242
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
243
+              <item name="src" type="462c0819:PsiDirectoryNode" />
244
+              <item name="main" type="462c0819:PsiDirectoryNode" />
245
+              <item name="java" type="462c0819:PsiDirectoryNode" />
246
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
261 247
               <item name="controller" type="462c0819:PsiDirectoryNode" />
262 248
             </path>
263 249
             <path>
@@ -274,16 +260,33 @@
274 260
               <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
275 261
               <item name="src" type="462c0819:PsiDirectoryNode" />
276 262
               <item name="main" type="462c0819:PsiDirectoryNode" />
263
+              <item name="java" type="462c0819:PsiDirectoryNode" />
264
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
265
+              <item name="repository" type="462c0819:PsiDirectoryNode" />
266
+            </path>
267
+            <path>
268
+              <item name="ZipCoinRedJavaServer" type="b2602c69:ProjectViewProjectNode" />
269
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
270
+              <item name="src" type="462c0819:PsiDirectoryNode" />
271
+              <item name="main" type="462c0819:PsiDirectoryNode" />
272
+              <item name="java" type="462c0819:PsiDirectoryNode" />
273
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
274
+              <item name="utilities" type="462c0819:PsiDirectoryNode" />
275
+            </path>
276
+            <path>
277
+              <item name="ZipCoinRedJavaServer" type="b2602c69:ProjectViewProjectNode" />
278
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
279
+              <item name="src" type="462c0819:PsiDirectoryNode" />
280
+              <item name="main" type="462c0819:PsiDirectoryNode" />
277 281
               <item name="resources" type="462c0819:PsiDirectoryNode" />
278 282
             </path>
279 283
           </expand>
280 284
           <select />
281 285
         </subPane>
282 286
       </pane>
283
-<<<<<<< HEAD
284
-=======
285 287
       <pane id="PackagesPane" />
286
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
288
+      <pane id="AndroidView" />
289
+      <pane id="Scope" />
287 290
     </panes>
288 291
   </component>
289 292
   <component name="PropertiesComponent">
@@ -302,15 +305,6 @@
302 305
     <property name="project.structure.last.edited" value="Modules" />
303 306
     <property name="project.structure.proportion" value="0.15" />
304 307
     <property name="project.structure.side.proportion" value="0.2" />
305
-    <property name="settings.editor.selected.configurable" value="project.propVCSSupport.Mappings" />
306
-  </component>
307
-  <component name="RecentsManager">
308
-    <key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
309
-      <recent name="com.zipcoin" />
310
-    </key>
311
-    <key name="MoveFile.RECENT_KEYS">
312
-      <recent name="$PROJECT_DIR$/src/main/resources/db/migration" />
313
-    </key>
314 308
   </component>
315 309
   <component name="RunDashboard">
316 310
     <option name="ruleStates">
@@ -468,60 +462,21 @@
468 462
       <workItem from="1531343033550" duration="411000" />
469 463
       <workItem from="1531419813805" duration="2054000" />
470 464
       <workItem from="1531772346214" duration="3133000" />
471
-      <workItem from="1531775595883" duration="5563000" />
472
-<<<<<<< HEAD
473
-      <workItem from="1531837698674" duration="1652000" />
474
-      <workItem from="1531919430062" duration="82000" />
475
-      <workItem from="1531919540581" duration="3064000" />
476
-=======
477
-      <workItem from="1531837698674" duration="1689000" />
478
-      <workItem from="1531920139324" duration="959000" />
479
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
465
+      <workItem from="1531775595883" duration="5604000" />
466
+      <workItem from="1531837614306" duration="20000" />
467
+      <workItem from="1532460990056" duration="1658000" />
480 468
     </task>
481 469
     <servers />
482 470
   </component>
483
-  <component name="TestHistory">
484
-    <history-entry file="testMain_test - 2018.07.12 at 16h 28m 57s.xml">
485
-      <configuration name="testMain.test" configurationId="JUnit" />
486
-    </history-entry>
487
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 16h 44m 25s.xml">
488
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
489
-    </history-entry>
490
-    <history-entry file="minerTest - 2018.07.16 at 16h 49m 37s.xml">
491
-      <configuration name="minerTest" configurationId="JUnit" />
492
-    </history-entry>
493
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 16h 50m 59s.xml">
494
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
495
-    </history-entry>
496
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 16h 51m 40s.xml">
497
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
498
-    </history-entry>
499
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 16h 57m 51s.xml">
500
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
501
-    </history-entry>
502
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 16h 59m 51s.xml">
503
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
504
-    </history-entry>
505
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 17h 00m 23s.xml">
506
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
507
-    </history-entry>
508
-    <history-entry file="java_in_ZipCoin-RED - 2018.07.16 at 18h 43m 44s.xml">
509
-      <configuration name="java in ZipCoin-RED" configurationId="JUnit" />
510
-    </history-entry>
511
-  </component>
512 471
   <component name="TimeTrackingManager">
513
-<<<<<<< HEAD
514
-    <option name="totallyTimeSpent" value="19058000" />
515
-=======
516
-    <option name="totallyTimeSpent" value="16908000" />
517
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
472
+    <option name="totallyTimeSpent" value="20150000" />
518 473
   </component>
519 474
   <component name="ToolWindowManager">
520
-    <frame x="39" y="23" width="1203" height="713" extended-state="0" />
475
+    <frame x="0" y="0" width="1280" height="800" extended-state="0" />
521 476
     <editor active="true" />
522 477
     <layout>
523 478
       <window_info anchor="right" id="Palette" order="3" />
524
-      <window_info anchor="bottom" id="Event Log" order="7" sideWeight="0.50080776" side_tool="true" visible="true" weight="0.36689654" />
479
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
525 480
       <window_info anchor="right" id="Maven Projects" order="3" />
526 481
       <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
527 482
       <window_info id="Capture Tool" order="2" />
@@ -532,27 +487,18 @@
532 487
       <window_info id="UI Designer" order="2" />
533 488
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
534 489
       <window_info anchor="bottom" id="TODO" order="6" />
535
-      <window_info anchor="bottom" id="Messages" order="9" weight="0.3298969" />
490
+      <window_info anchor="bottom" id="Messages" order="9" weight="0.32965517" />
536 491
       <window_info anchor="right" id="Palette&#9;" order="3" />
537 492
       <window_info id="Image Layers" order="2" />
538
-      <window_info anchor="bottom" id="Java Enterprise" order="8" />
493
+      <window_info anchor="bottom" id="Java Enterprise" order="8" weight="0.32965517" />
539 494
       <window_info anchor="right" id="Capture Analysis" order="3" />
540
-<<<<<<< HEAD
541
-      <window_info anchor="bottom" id="Run" order="2" sideWeight="0.49919224" weight="0.36689654" />
542
-=======
543
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
544 495
       <window_info anchor="bottom" id="Version Control" order="7" />
545
-      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.4318182" />
546
-      <window_info anchor="bottom" id="Spring" order="9" />
547
-      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32954547" />
548
-<<<<<<< HEAD
549
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.21405493" />
550
-=======
551
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.28251508" />
552
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
496
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.10068966" />
497
+      <window_info anchor="bottom" id="Spring" order="9" weight="0.32965517" />
498
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32827586" />
499
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26494345" />
553 500
       <window_info anchor="right" id="Bean Validation" order="4" />
554 501
       <window_info id="Web" order="4" side_tool="true" />
555
-      <window_info id="Learn" order="5" />
556 502
       <window_info anchor="right" id="Theme Preview" order="3" />
557 503
       <window_info id="Favorites" order="2" side_tool="true" />
558 504
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@@ -570,208 +516,216 @@
570 516
     <option name="myLimit" value="2678400000" />
571 517
   </component>
572 518
   <component name="editorHistoryManager">
519
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
573 520
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
574 521
     <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
575
-    <entry file="file://$PROJECT_DIR$/pom.xml">
522
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
523
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
524
+    <entry file="file://$PROJECT_DIR$/pom.xml" />
525
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
526
+    <entry file="file://$PROJECT_DIR$/ZipCoin-RED.iml" />
527
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/block/test/BlockControllerTest.java" />
528
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
576 529
       <provider selected="true" editor-type-id="text-editor">
577
-        <state relative-caret-position="165">
578
-          <caret line="11" column="10" lean-forward="true" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
530
+        <state relative-caret-position="438">
531
+          <caret line="461" column="19" selection-start-line="461" selection-start-column="19" selection-end-line="461" selection-end-column="19" />
579 532
         </state>
580 533
       </provider>
581 534
     </entry>
535
+    <entry file="file://$PROJECT_DIR$/pom.xml" />
536
+    <entry file="file://$PROJECT_DIR$/src/main/java/Main.java" />
537
+    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
538
+    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
539
+    <entry file="file://$PROJECT_DIR$/pom.xml" />
582 540
     <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/minerTest.java" />
583 541
     <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
584 542
       <provider selected="true" editor-type-id="text-editor">
585
-        <state relative-caret-position="405">
586
-          <caret line="27" selection-start-line="27" selection-end-line="27" selection-end-column="12" />
543
+        <state relative-caret-position="539">
544
+          <caret line="813" column="10" selection-start-line="813" selection-start-column="10" selection-end-line="813" selection-end-column="10" />
587 545
         </state>
588 546
       </provider>
589 547
     </entry>
590 548
     <entry file="file://$PROJECT_DIR$/.idea/ZipCoin-RED.iml" />
591
-    <entry file="file://$PROJECT_DIR$/pom.xml">
549
+    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
550
+    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
551
+    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
552
+    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
553
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
554
+    <entry file="file://$PROJECT_DIR$/src/test/java/mainTest.java" />
555
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
556
+    <entry file="file://$PROJECT_DIR$/README.md" />
557
+    <entry file="file://$PROJECT_DIR$/src/main/resources/db.migration/mine_block.sql" />
558
+    <entry file="file://$PROJECT_DIR$/src/main/resources/db.migration/V2__mine_block.sql" />
559
+    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Miner/Miner.java" />
560
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/block/test/BlockTest.java" />
561
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/ZipCoinApp.java">
592 562
       <provider selected="true" editor-type-id="text-editor">
593
-        <state relative-caret-position="270">
594
-          <caret line="18" column="10" lean-forward="true" selection-start-line="18" selection-start-column="10" selection-end-line="18" selection-end-column="10" />
563
+        <state relative-caret-position="75">
564
+          <caret line="6" column="13" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
565
+          <folding>
566
+            <element signature="imports" expanded="true" />
567
+          </folding>
595 568
         </state>
596 569
       </provider>
597 570
     </entry>
598
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
599
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
600
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
601
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
602
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
603
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
604
-    <entry file="file://$PROJECT_DIR$/pom.xml">
571
+    <entry file="file://$PROJECT_DIR$/src/main/resources/db/migration/V2__create_block.sql">
605 572
       <provider selected="true" editor-type-id="text-editor">
606
-        <state relative-caret-position="90">
607
-          <caret line="6" column="20" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="20" />
573
+        <state relative-caret-position="105">
574
+          <caret line="7" column="2" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" />
608 575
         </state>
609 576
       </provider>
610 577
     </entry>
611
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
612
-    <entry file="file://$PROJECT_DIR$/ZipCoin-RED.iml">
578
+    <entry file="file://$PROJECT_DIR$/pom.xml">
613 579
       <provider selected="true" editor-type-id="text-editor">
614
-        <state relative-caret-position="195">
615
-          <caret line="13" column="34" selection-start-line="13" selection-start-column="34" selection-end-line="13" selection-end-column="34" />
580
+        <state relative-caret-position="585">
581
+          <caret line="39" column="21" selection-start-line="39" selection-start-column="21" selection-end-line="39" selection-end-column="21" />
616 582
         </state>
617 583
       </provider>
618 584
     </entry>
619
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/block/test/BlockControllerTest.java">
585
+    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/Miner/minerTest.java" />
586
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/miner/test/minerTest.java">
620 587
       <provider selected="true" editor-type-id="text-editor">
621
-        <state relative-caret-position="30">
622
-          <caret line="2" column="32" selection-start-line="2" selection-start-column="32" selection-end-line="2" selection-end-column="32" />
588
+        <state relative-caret-position="135">
589
+          <caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
590
+          <folding>
591
+            <element signature="imports" expanded="true" />
592
+          </folding>
623 593
         </state>
624 594
       </provider>
625 595
     </entry>
626
-    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
596
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/StringUtil.java">
627 597
       <provider selected="true" editor-type-id="text-editor">
628
-        <state relative-caret-position="438">
629
-          <caret line="461" column="19" selection-start-line="461" selection-start-column="19" selection-end-line="461" selection-end-column="19" />
598
+        <state relative-caret-position="450">
599
+          <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
630 600
         </state>
631 601
       </provider>
632 602
     </entry>
633
-    <entry file="file://$PROJECT_DIR$/pom.xml">
603
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
634 604
       <provider selected="true" editor-type-id="text-editor">
635 605
         <state relative-caret-position="60">
636
-          <caret line="4" column="30" selection-start-line="4" selection-start-column="30" selection-end-line="4" selection-end-column="30" />
606
+          <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
637 607
         </state>
638 608
       </provider>
639 609
     </entry>
640
-    <entry file="file://$PROJECT_DIR$/src/main/java/Main.java" />
641
-    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
642
-    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
643
-    <entry file="file://$PROJECT_DIR$/pom.xml">
610
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
644 611
       <provider selected="true" editor-type-id="text-editor">
645
-        <state relative-caret-position="165">
646
-          <caret line="11" column="10" lean-forward="true" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
612
+        <state relative-caret-position="60">
613
+          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
614
+          <folding>
615
+            <element signature="imports" expanded="true" />
616
+          </folding>
647 617
         </state>
648 618
       </provider>
649 619
     </entry>
650
-    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/minerTest.java" />
651
-    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
620
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
652 621
       <provider selected="true" editor-type-id="text-editor">
653
-        <state relative-caret-position="-4617">
654
-          <caret line="124" column="19" selection-start-line="124" selection-start-column="19" selection-end-line="124" selection-end-column="19" />
622
+        <state relative-caret-position="225">
623
+          <caret line="15" column="53" selection-start-line="15" selection-start-column="53" selection-end-line="15" selection-end-column="53" />
655 624
         </state>
656 625
       </provider>
657 626
     </entry>
658
-    <entry file="file://$PROJECT_DIR$/.idea/ZipCoin-RED.iml" />
659
-    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
660
-    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
661
-    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Main.java" />
662
-    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/testMain.java" />
663
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/redCoin/Main.java" />
664
-    <entry file="file://$PROJECT_DIR$/src/test/java/mainTest.java" />
665
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/testMain.java" />
666
-    <entry file="file://$PROJECT_DIR$/README.md" />
667
-    <entry file="file://$PROJECT_DIR$/src/main/resources/db.migration/mine_block.sql" />
668
-    <entry file="file://$PROJECT_DIR$/src/main/resources/db.migration/V2__mine_block.sql" />
669
-    <entry file="file://$PROJECT_DIR$/src/main/java/redCoin/Miner/Miner.java" />
670
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/block/test/BlockTest.java">
627
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
671 628
       <provider selected="true" editor-type-id="text-editor">
672
-        <state relative-caret-position="449">
673
-          <caret line="78" lean-forward="true" selection-start-line="78" selection-end-line="78" />
629
+        <state relative-caret-position="90">
630
+          <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
674 631
         </state>
675 632
       </provider>
676 633
     </entry>
677
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Transaction.java" />
678
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/PersistenceConfiguration.java">
634
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/BlockController.java">
679 635
       <provider selected="true" editor-type-id="text-editor">
680
-        <state relative-caret-position="420">
681
-          <caret line="28" selection-start-line="28" selection-end-line="28" />
636
+        <state relative-caret-position="36">
637
+          <caret line="12" column="26" selection-start-line="12" selection-start-column="26" selection-end-line="12" selection-end-column="26" />
638
+          <folding>
639
+            <element signature="imports" expanded="true" />
640
+          </folding>
682 641
         </state>
683 642
       </provider>
684 643
     </entry>
685 644
     <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/HomeController.java">
686 645
       <provider selected="true" editor-type-id="text-editor">
687
-        <state relative-caret-position="138">
688
-          <caret line="9" column="5" selection-start-line="9" selection-start-column="5" selection-end-line="9" selection-end-column="5" />
646
+        <state relative-caret-position="60">
647
+          <caret line="5" column="13" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="13" />
689 648
         </state>
690 649
       </provider>
691 650
     </entry>
692
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/BlockRepository.java">
651
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/TransactionController.java">
693 652
       <provider selected="true" editor-type-id="text-editor">
694
-        <state relative-caret-position="115">
695
-          <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" />
653
+        <state relative-caret-position="230">
654
+          <caret line="19" column="68" selection-start-line="19" selection-start-column="68" selection-end-line="19" selection-end-column="68" />
696 655
           <folding>
697 656
             <element signature="imports" expanded="true" />
698 657
           </folding>
699 658
         </state>
700 659
       </provider>
701 660
     </entry>
702
-    <entry file="file://$PROJECT_DIR$/src/main/resources/db/migration/V2__create_block.sql">
661
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/WalletController.java">
703 662
       <provider selected="true" editor-type-id="text-editor">
704
-        <state relative-caret-position="161">
705
-          <caret line="7" column="2" selection-start-line="7" selection-start-column="2" selection-end-line="7" selection-end-column="2" />
663
+        <state relative-caret-position="216">
664
+          <caret line="24" column="48" selection-start-line="24" selection-start-column="29" selection-end-line="24" selection-end-column="48" />
665
+          <folding>
666
+            <element signature="imports" expanded="true" />
667
+          </folding>
706 668
         </state>
707 669
       </provider>
708 670
     </entry>
709
-    <entry file="file://$PROJECT_DIR$/pom.xml">
671
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Chain.java">
710 672
       <provider selected="true" editor-type-id="text-editor">
711
-        <state relative-caret-position="897">
712
-          <caret line="39" column="21" selection-start-line="39" selection-start-column="21" selection-end-line="39" selection-end-column="21" />
673
+        <state relative-caret-position="60">
674
+          <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="13" />
713 675
         </state>
714 676
       </provider>
715 677
     </entry>
716
-    <entry file="file://$PROJECT_DIR$/src/test/java/redCoin/Miner/minerTest.java" />
717
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/miner/test/minerTest.java">
678
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
718 679
       <provider selected="true" editor-type-id="text-editor">
719
-        <state relative-caret-position="276">
720
-          <caret line="12" column="9" selection-start-line="12" selection-start-column="9" selection-end-line="12" selection-end-column="9" />
680
+        <state relative-caret-position="165">
681
+          <caret line="11" column="20" lean-forward="true" selection-start-line="9" selection-start-column="4" selection-end-line="11" selection-end-column="20" />
721 682
           <folding>
722 683
             <element signature="imports" expanded="true" />
723 684
           </folding>
724 685
         </state>
725 686
       </provider>
726 687
     </entry>
727
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/ZipCoinApp.java">
688
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Wallet.java">
728 689
       <provider selected="true" editor-type-id="text-editor">
729
-        <state relative-caret-position="138">
730
-          <caret line="6" column="13" selection-start-line="6" selection-start-column="13" selection-end-line="6" selection-end-column="13" />
690
+        <state relative-caret-position="120">
691
+          <caret line="12" column="32" selection-start-line="12" selection-start-column="32" selection-end-line="12" selection-end-column="32" />
731 692
           <folding>
732 693
             <element signature="imports" expanded="true" />
733 694
           </folding>
734 695
         </state>
735 696
       </provider>
736 697
     </entry>
737
-    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
698
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Transaction.java">
738 699
       <provider selected="true" editor-type-id="text-editor">
739
-<<<<<<< HEAD
740
-        <state relative-caret-position="253">
741
-          <caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
700
+        <state relative-caret-position="1110">
701
+          <caret line="74" selection-start-line="74" selection-start-column="2" selection-end-line="78" selection-end-column="7" />
702
+          <folding>
703
+            <element signature="imports" expanded="true" />
704
+          </folding>
742 705
         </state>
743 706
       </provider>
744 707
     </entry>
745
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/controller/BlockController.java">
708
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java">
746 709
       <provider selected="true" editor-type-id="text-editor">
747
-        <state relative-caret-position="529">
748
-          <caret line="27" column="5" selection-start-line="27" selection-start-column="5" selection-end-line="27" selection-end-column="5" />
749
-=======
750
-        <state relative-caret-position="1200">
751
-          <caret line="82" column="4" selection-start-line="82" selection-start-column="4" selection-end-line="82" selection-end-column="4" />
752
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
753
-          <folding>
754
-            <element signature="imports" expanded="true" />
755
-          </folding>
710
+        <state relative-caret-position="75">
711
+          <caret line="12" selection-start-line="12" selection-start-column="2" selection-end-line="13" selection-end-column="39" />
756 712
         </state>
757 713
       </provider>
758 714
     </entry>
759
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Miner.java">
715
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/TransactionRepository.java">
760 716
       <provider selected="true" editor-type-id="text-editor">
761
-        <state relative-caret-position="322">
762
-          <caret line="14" column="21" selection-start-line="14" selection-start-column="21" selection-end-line="14" selection-end-column="21" />
717
+        <state relative-caret-position="165">
718
+          <caret line="11" selection-start-line="11" selection-start-column="2" selection-end-line="12" selection-end-column="92" />
719
+          <folding>
720
+            <element signature="imports" expanded="true" />
721
+          </folding>
763 722
         </state>
764 723
       </provider>
765 724
     </entry>
766
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
725
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/repository/WalletRepository.java">
767 726
       <provider selected="true" editor-type-id="text-editor">
768
-<<<<<<< HEAD
769
-        <state relative-caret-position="209">
770
-          <caret line="15" column="31" lean-forward="true" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
771
-=======
772
-        <state relative-caret-position="-192">
773
-          <caret line="27" column="5" selection-start-line="27" selection-start-column="5" selection-end-line="27" selection-end-column="5" />
774
->>>>>>> 232d1d1a1bfb8e6c7686314cbfe52dab7be64e78
727
+        <state relative-caret-position="180">
728
+          <caret line="12" column="70" selection-start-line="11" selection-start-column="4" selection-end-line="12" selection-end-column="70" />
775 729
           <folding>
776 730
             <element signature="imports" expanded="true" />
777 731
           </folding>
@@ -779,91 +733,4 @@
779 733
       </provider>
780 734
     </entry>
781 735
   </component>
782
-  <component name="masterDetails">
783
-    <states>
784
-      <state key="ArtifactsStructureConfigurable.UI">
785
-        <settings>
786
-          <artifact-editor />
787
-          <splitter-proportions>
788
-            <option name="proportions">
789
-              <list>
790
-                <option value="0.2" />
791
-              </list>
792
-            </option>
793
-          </splitter-proportions>
794
-        </settings>
795
-      </state>
796
-      <state key="FacetStructureConfigurable.UI">
797
-        <settings>
798
-          <last-edited />
799
-          <splitter-proportions>
800
-            <option name="proportions">
801
-              <list>
802
-                <option value="0.2" />
803
-              </list>
804
-            </option>
805
-          </splitter-proportions>
806
-        </settings>
807
-      </state>
808
-      <state key="GlobalLibrariesConfigurable.UI">
809
-        <settings>
810
-          <splitter-proportions>
811
-            <option name="proportions">
812
-              <list>
813
-                <option value="0.2" />
814
-              </list>
815
-            </option>
816
-          </splitter-proportions>
817
-        </settings>
818
-      </state>
819
-      <state key="JdkListConfigurable.UI">
820
-        <settings>
821
-          <last-edited>1.8</last-edited>
822
-          <splitter-proportions>
823
-            <option name="proportions">
824
-              <list>
825
-                <option value="0.2" />
826
-              </list>
827
-            </option>
828
-          </splitter-proportions>
829
-        </settings>
830
-      </state>
831
-      <state key="ModuleStructureConfigurable.UI">
832
-        <settings>
833
-          <last-edited>ZipCoin-RED</last-edited>
834
-          <splitter-proportions>
835
-            <option name="proportions">
836
-              <list>
837
-                <option value="0.2" />
838
-              </list>
839
-            </option>
840
-          </splitter-proportions>
841
-        </settings>
842
-      </state>
843
-      <state key="ProjectJDKs.UI">
844
-        <settings>
845
-          <last-edited>1.8</last-edited>
846
-          <splitter-proportions>
847
-            <option name="proportions">
848
-              <list>
849
-                <option value="0.2" />
850
-              </list>
851
-            </option>
852
-          </splitter-proportions>
853
-        </settings>
854
-      </state>
855
-      <state key="ProjectLibrariesConfigurable.UI">
856
-        <settings>
857
-          <last-edited />
858
-          <splitter-proportions>
859
-            <option name="proportions">
860
-              <list>
861
-                <option value="0.2" />
862
-              </list>
863
-            </option>
864
-          </splitter-proportions>
865
-        </settings>
866
-      </state>
867
-    </states>
868
-  </component>
869 736
 </project>

BIN
ZipCoinRedJavaServer/src/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/main/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/main/java/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/main/java/com/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/main/java/com/zipcoin/.DS_Store Прегледај датотеку


+ 10
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/BlockController.java Прегледај датотеку

@@ -1,12 +1,14 @@
1 1
 package com.zipcoin.controller;
2 2
 
3 3
 import com.zipcoin.model.Block;
4
-import com.zipcoin.model.Miner;
4
+import com.zipcoin.utilities.Miner;
5 5
 import org.springframework.beans.BeanUtils;
6 6
 import org.springframework.beans.factory.annotation.Autowired;
7 7
 import org.springframework.web.bind.annotation.*;
8 8
 import com.zipcoin.repository.BlockRepository;
9 9
 
10
+import java.util.List;
11
+
10 12
 @RestController
11 13
 @RequestMapping("api/v1/")
12 14
 @CrossOrigin(origins = {"http://localhost:8100"})
@@ -22,11 +24,18 @@ public class BlockController {
22 24
     }
23 25
 
24 26
     //READ
27
+    //Gets a single Block by ID
25 28
     @RequestMapping(value = "blocks/{id}", method = RequestMethod.GET)
26 29
     public Block get(@PathVariable Long id){
27 30
         return blockRepository.findOne(id);
28 31
     }
29 32
 
33
+    //Gets all Blocks
34
+    @RequestMapping(value = "blocks", method = RequestMethod.GET)
35
+    public List<Block> get(){
36
+        return blockRepository.findAll();
37
+    }
38
+
30 39
     //UPDATE
31 40
     @RequestMapping(value = "blocks/{id}", method = RequestMethod.PUT)
32 41
     public Block update(@PathVariable Long id, @RequestBody Block block){

+ 44
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/TransactionController.java Прегледај датотеку

@@ -0,0 +1,44 @@
1
+package com.zipcoin.controller;
2
+
3
+import com.zipcoin.model.Transaction;
4
+import com.zipcoin.repository.TransactionRepository;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.*;
7
+
8
+import java.util.List;
9
+
10
+@RestController
11
+@RequestMapping("api/v1/")
12
+@CrossOrigin(origins = {"http://localhost:8100"})
13
+public class TransactionController {
14
+
15
+    @Autowired
16
+    private TransactionRepository transactionRepository;
17
+
18
+    //CREATE A TRANSACTION
19
+    @RequestMapping(value = "transactions", method = RequestMethod.POST)
20
+    public Transaction create(@RequestBody Transaction transaction){
21
+        return transactionRepository.saveAndFlush(transaction);
22
+    }
23
+
24
+    //READ-ALL TRANSACTIONS
25
+    @RequestMapping(value = "transactions", method = RequestMethod.GET)
26
+    public List<Transaction> get(){
27
+        return transactionRepository.findAll();
28
+    }
29
+
30
+//    //READ TRANSACTIONS TO OR FROM A PUBLIC KEY
31
+//    @RequestMapping(value = "transactions/{publicKey}", method = RequestMethod.GET)
32
+//    public List<Transaction> get(@PathVariable String publicKey){
33
+//        return transactionRepository.findAllTransactionsWithPubKey(publicKey);
34
+//    }
35
+
36
+    //DELETE A TRANSACTION
37
+    @RequestMapping(value = "transactions/{id}", method = RequestMethod.DELETE)
38
+    public Transaction delete(@PathVariable Long id){
39
+        Transaction transactionToDelete = transactionRepository.findOne(id);
40
+        transactionRepository.delete(transactionToDelete);
41
+        return transactionToDelete;
42
+    }
43
+
44
+}

+ 44
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/WalletController.java Прегледај датотеку

@@ -0,0 +1,44 @@
1
+package com.zipcoin.controller;
2
+
3
+import com.zipcoin.model.Wallet;
4
+import com.zipcoin.repository.WalletRepository;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.*;
7
+
8
+import java.util.List;
9
+
10
+@RestController
11
+@RequestMapping("api/v1/")
12
+@CrossOrigin(origins = {"http://localhost:8100"})
13
+public class WalletController {
14
+
15
+    @Autowired
16
+    private WalletRepository walletRepository;
17
+
18
+    //CREATE A WALLET
19
+    @RequestMapping(value = "wallets", method = RequestMethod.POST)
20
+    public Wallet create(@RequestBody Wallet wallet){
21
+        return walletRepository.saveAndFlush(wallet);
22
+    }
23
+
24
+//    //READ A WALLET FROM PUBLIC KEY
25
+//    @RequestMapping(value = "wallets/{publicKey}", method = RequestMethod.GET)
26
+//    public Wallet get(@PathVariable String publicKey){
27
+//        return walletRepository.findWalletFromPubKey(publicKey);
28
+//    }
29
+//
30
+//    //READ PUBLIC KEYS FROM ALL WALLETS
31
+//    @RequestMapping(value = "wallets/publicKeys", method = RequestMethod.GET)
32
+//    public List<String> get(){
33
+//        return walletRepository.findAllPublicKeys();
34
+//    }
35
+
36
+    //DELETE A WALLET
37
+    @RequestMapping(value = "wallets/{id}", method = RequestMethod.DELETE)
38
+    public Wallet delete(@PathVariable Long id){
39
+        Wallet walletToDelete = walletRepository.findOne(id);
40
+        walletRepository.delete(walletToDelete);
41
+        return walletToDelete;
42
+    }
43
+
44
+}

+ 24
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Chain.java Прегледај датотеку

@@ -0,0 +1,24 @@
1
+package com.zipcoin.model;
2
+
3
+import java.util.ArrayList;
4
+
5
+public class Chain {
6
+
7
+    Block block = new Block(0);
8
+    public ArrayList<Block> blockchain = new ArrayList<Block>();
9
+
10
+    public Chain(){
11
+
12
+    }
13
+
14
+    public void addBlock(Block block){
15
+        blockchain.add(block);
16
+    }
17
+
18
+    public void hasBeenMined(Block block){
19
+        if (block.getCurrentHash().startsWith("0000")){
20
+            addBlock(block);
21
+        }
22
+    }
23
+
24
+}

ZipCoinRedJavaServer/src/main/java/com/zipcoin/Wallet/Transaction.java → ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Transaction.java Прегледај датотеку

@@ -1,16 +1,23 @@
1
-package com.zipcoin.Wallet;
1
+package com.zipcoin.model;
2 2
 
3
+import com.zipcoin.utilities.StringUtil;
3 4
 import org.apache.commons.codec.digest.DigestUtils;
4 5
 
6
+import javax.persistence.Entity;
7
+import javax.persistence.GeneratedValue;
8
+import javax.persistence.GenerationType;
9
+import javax.persistence.Id;
5 10
 import java.security.*;
6
-import java.util.ArrayList;
7 11
 
12
+@Entity
8 13
 public class Transaction {
14
+
15
+    @Id
9 16
     private String transactionId; // this is also the hash of the transaction.
10 17
     private PublicKey sender; // senders address/public key.
11 18
     private PublicKey reciepient; // Recipients address/public key.
12 19
     private float value;
13
-    public Signature signature;// this is to prevent anybody else from spending funds in our wallet.
20
+//    public Signature signature;// this is to prevent anybody else from spending funds in our wallet.
14 21
 
15 22
     public String getTransactionId() {
16 23
         return transactionId;
@@ -65,11 +72,11 @@ public class Transaction {
65 72
                         Float.toString(value)
66 73
         );
67 74
     }
68
-    public void generateSignature(PrivateKey privateKey) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
69
-        String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient) + Float.toString(value)    ;
70
-        signature = StringUtil.applyECDSASig(privateKey,data);
71
-        System.out.println(signature);
72
-    }
75
+//    public void generateSignature(PrivateKey privateKey) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
76
+//        String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient) + Float.toString(value)    ;
77
+//        signature = StringUtil.applyECDSASig(privateKey,data);
78
+//        System.out.println(signature);
79
+//    }
73 80
     //Verifies the data we signed hasnt been tampered with
74 81
     //public boolean verifiySignature() {
75 82
     // String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient) + Float.toString(value)    ;

ZipCoinRedJavaServer/src/main/java/com/zipcoin/Wallet/Wallet.java → ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Wallet.java Прегледај датотеку

@@ -1,11 +1,17 @@
1
-package com.zipcoin.Wallet;
1
+package com.zipcoin.model;
2 2
 
3
+import javax.persistence.Entity;
4
+import javax.persistence.GeneratedValue;
5
+import javax.persistence.GenerationType;
6
+import javax.persistence.Id;
3 7
 import java.security.*;
4 8
 
9
+@Entity
5 10
 public class Wallet {
6 11
 
7
-    private PrivateKey privateKey;
12
+    @Id
8 13
     private PublicKey publicKey;
14
+    private PrivateKey privateKey;
9 15
 
10 16
     public PrivateKey getPrivateKey() {
11 17
         return privateKey;

+ 15
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/TransactionRepository.java Прегледај датотеку

@@ -0,0 +1,15 @@
1
+package com.zipcoin.repository;
2
+
3
+import com.zipcoin.model.Transaction;
4
+import org.springframework.data.jpa.repository.JpaRepository;
5
+import org.springframework.data.jpa.repository.Query;
6
+import org.springframework.data.repository.query.Param;
7
+
8
+import java.util.List;
9
+
10
+public interface TransactionRepository extends JpaRepository<Transaction, Long> {
11
+
12
+//    @Query("SELECT t FROM transaction t WHERE t.sender = :publicKey OR t.recipient = :publicKey")
13
+//    List<Transaction> findAllTransactionsWithPubKey(@Param("publicKey") String publicKey);
14
+
15
+}

+ 18
- 0
ZipCoinRedJavaServer/src/main/java/com/zipcoin/repository/WalletRepository.java Прегледај датотеку

@@ -0,0 +1,18 @@
1
+package com.zipcoin.repository;
2
+
3
+import com.zipcoin.model.Wallet;
4
+import org.springframework.data.jpa.repository.JpaRepository;
5
+import org.springframework.data.jpa.repository.Query;
6
+import org.springframework.data.repository.query.Param;
7
+
8
+import java.util.List;
9
+
10
+public interface WalletRepository extends JpaRepository<Wallet, Long> {
11
+
12
+//    @Query("SELECT w FROM wallet w WHERE w.publicKey = :publicKey")
13
+//    Wallet findWalletFromPubKey(@Param("publicKey") String publicKey);
14
+//
15
+//    @Query("SELECT w.publicKey FROM wallet")
16
+//    List<String> findAllPublicKeys();
17
+
18
+}

ZipCoinRedJavaServer/src/main/java/com/zipcoin/model/Miner.java → ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/Miner.java Прегледај датотеку

@@ -1,4 +1,6 @@
1
-package com.zipcoin.model;
1
+package com.zipcoin.utilities;
2
+
3
+import com.zipcoin.model.Block;
2 4
 
3 5
 public class Miner {
4 6
 

ZipCoinRedJavaServer/src/main/java/com/zipcoin/Wallet/StringUtil.java → ZipCoinRedJavaServer/src/main/java/com/zipcoin/utilities/StringUtil.java Прегледај датотеку

@@ -1,4 +1,4 @@
1
-package com.zipcoin.Wallet;
1
+package com.zipcoin.utilities;
2 2
 
3 3
 import java.security.*;
4 4
 

BIN
ZipCoinRedJavaServer/src/test/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/test/java/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/test/java/com/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/test/java/com/zipcoin/.DS_Store Прегледај датотеку


BIN
ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/.DS_Store Прегледај датотеку


+ 32
- 33
ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.java Прегледај датотеку

@@ -1,9 +1,8 @@
1 1
 package com.zipcoin.redCoin.TransactionAndWallet;
2 2
 
3 3
 import com.zipcoin.model.Block;
4
-import com.zipcoin.model.Miner;
5
-import com.zipcoin.Wallet.Transaction;
6
-import com.zipcoin.Wallet.Wallet;
4
+import com.zipcoin.model.Transaction;
5
+import com.zipcoin.model.Wallet;
7 6
 
8 7
 import java.security.InvalidKeyException;
9 8
 import java.security.NoSuchAlgorithmException;
@@ -11,36 +10,36 @@ import java.security.NoSuchProviderException;
11 10
 import java.util.ArrayList;
12 11
 
13 12
 public class TransactionAndWalletTest {
14
-    public static ArrayList<Block> blockchain = new ArrayList<Block>();
15
-    public static int difficulty = 5;
16
-
17
-
18
-    public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
19
-        //Setup Bouncey castle as a Security Provider
20
-        //Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
21
-        //Create the new wallets
22
-        Wallet walletA = new Wallet();
23
-        Wallet walletB = new Wallet();
24
-        //Test public and private keys
25
-        System.out.println("Wallet 1");
26
-        System.out.println("private key :wallet 1");
27
-        System.out.println(walletA.getPrivateKey().toString());
28
-        System.out.println("public key :wallet 1");
29
-        System.out.println(walletA.getPublicKey().toString());
30
-        System.out.println("\n\nWallet2");
31
-        System.out.println("public key :wallet 2");
32
-        System.out.println(walletB.getPublicKey().toString());
33
-        System.out.println("private key :wallet 2");
34
-        System.out.println(walletB.getPrivateKey().toString());
35
-        //Create a test transaction from WalletA to walletB
36
-        Transaction transaction = new Transaction(walletA.getPublicKey(), walletB.getPublicKey(), 5);
37
-        transaction.generateSignature(walletA.getPrivateKey());
38
-        //Verify the signature works and verify it from the public key
39
-
40
-
41
-        System.out.println("Is signature verified");
42
-        // System.out.println(transaction.verifiySignature());
43
-    }
13
+//    public static ArrayList<Block> blockchain = new ArrayList<Block>();
14
+//    public static int difficulty = 5;
15
+
16
+
17
+//    public static void main(String[] args) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
18
+//        //Setup Bouncey castle as a Security Provider
19
+//        //Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
20
+//        //Create the new wallets
21
+//        Wallet walletA = new Wallet();
22
+//        Wallet walletB = new Wallet();
23
+//        //Test public and private keys
24
+//        System.out.println("utilities 1");
25
+//        System.out.println("private key :wallet 1");
26
+//        System.out.println(walletA.getPrivateKey().toString());
27
+//        System.out.println("public key :wallet 1");
28
+//        System.out.println(walletA.getPublicKey().toString());
29
+//        System.out.println("\n\nWallet2");
30
+//        System.out.println("public key :wallet 2");
31
+//        System.out.println(walletB.getPublicKey().toString());
32
+//        System.out.println("private key :wallet 2");
33
+//        System.out.println(walletB.getPrivateKey().toString());
34
+//        //Create a test transaction from WalletA to walletB
35
+//        Transaction transaction = new Transaction(walletA.getPublicKey(), walletB.getPublicKey(), 5);
36
+//        transaction.generateSignature(walletA.getPrivateKey());
37
+//        //Verify the signature works and verify it from the public key
38
+//
39
+//
40
+//        System.out.println("Is signature verified");
41
+//        // System.out.println(transaction.verifiySignature());
42
+//    }
44 43
 
45 44
 
46 45
 

+ 28
- 0
ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/chain/test/chainTest.java Прегледај датотеку

@@ -0,0 +1,28 @@
1
+package com.zipcoin.redCoin.chain.test;
2
+
3
+import com.zipcoin.model.Block;
4
+import com.zipcoin.model.Chain;
5
+import com.zipcoin.utilities.Miner;
6
+import org.junit.Assert;
7
+import org.junit.Test;
8
+
9
+import java.util.ArrayList;
10
+
11
+public class chainTest {
12
+    Block block = new Block(0);
13
+    Chain chain = new Chain();
14
+    Miner miner = new Miner();
15
+
16
+    @Test
17
+    public void testAdd_Block_To_Blockchain(){
18
+
19
+        int x = chain.blockchain.size();
20
+        miner.mine(block);
21
+        chain.addBlock(block);
22
+        int y = chain.blockchain.size();
23
+
24
+        Assert.assertTrue(x == 0);
25
+        Assert.assertTrue(y == 1);
26
+    }
27
+
28
+}

BIN
ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/miner/.DS_Store Прегледај датотеку


+ 1
- 1
ZipCoinRedJavaServer/src/test/java/com/zipcoin/redCoin/miner/test/minerTest.java Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 package com.zipcoin.redCoin.miner.test;
2 2
 
3 3
 import com.zipcoin.model.Block;
4
-import com.zipcoin.model.Miner;
4
+import com.zipcoin.utilities.Miner;
5 5
 import org.junit.Assert;
6 6
 import org.junit.Test;
7 7
 

BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/BlockController.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/TransactionController.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/controller/WalletController.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Chain.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Miner.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Transaction.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/model/Wallet.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/TransactionRepository.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/repository/WalletRepository.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/Miner.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/classes/com/zipcoin/utilities/StringUtil.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/TransactionAndWallet/TransactionAndWalletTest.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/chain/test/chainTest.class Прегледај датотеку


BIN
ZipCoinRedJavaServer/target/test-classes/com/zipcoin/redCoin/miner/test/minerTest.class Прегледај датотеку



BIN
src/main/.DS_Store Прегледај датотеку


BIN
src/main/java/.DS_Store Прегледај датотеку


BIN
src/main/java/com/.DS_Store Прегледај датотеку


BIN
src/main/java/com/zipcoin/.DS_Store Прегледај датотеку


+ 53
- 0
src/main/java/com/zipcoin/controllers/BlockController.java Прегледај датотеку

@@ -0,0 +1,53 @@
1
+package com.zipcoin.controllers;
2
+
3
+import com.zipcoin.model.Block;
4
+import org.springframework.beans.BeanUtils;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.http.HttpStatus;
7
+import org.springframework.http.ResponseEntity;
8
+import org.springframework.web.bind.annotation.*;
9
+import com.zipcoin.repository.BlockRepository;
10
+
11
+import java.util.List;
12
+
13
+@RestController
14
+public class BlockController {
15
+
16
+    @Autowired
17
+    private BlockRepository blockRepository;
18
+
19
+    //CREATE
20
+    @RequestMapping(value = "blocks", method = RequestMethod.POST)
21
+    public ResponseEntity<Block> create(@RequestBody Block block){
22
+        return new ResponseEntity<Block>(blockRepository.saveAndFlush(block),HttpStatus.CREATED);
23
+    }
24
+
25
+    //READ
26
+    @RequestMapping(value = "blocks/{id}", method = RequestMethod.GET)
27
+    public Block get(@PathVariable Long id){
28
+        return blockRepository.findOne(id);
29
+    }
30
+
31
+    //READ
32
+    @RequestMapping(value = "blocks", method = RequestMethod.GET)
33
+    public List<Block> get(){
34
+        return blockRepository.findAll();
35
+    }
36
+
37
+    //UPDATE
38
+    @RequestMapping(value = "blocks/{id}", method = RequestMethod.PUT)
39
+    public Block update(@PathVariable Long id, @RequestBody Block block){
40
+        Block blockToUpdate = blockRepository.findOne(id);
41
+        BeanUtils.copyProperties(block, blockToUpdate);
42
+        return blockRepository.saveAndFlush(blockToUpdate);
43
+    }
44
+
45
+    //DELETE
46
+    @RequestMapping(value = "blocks/{id}", method = RequestMethod.DELETE)
47
+    public Block delete(@PathVariable Long id){
48
+        Block blockToDelete = blockRepository.findOne(id);
49
+        blockRepository.delete(blockToDelete);
50
+        return blockToDelete;
51
+    }
52
+
53
+}

BIN
src/main/java/com/zipcoin/model/.DS_Store Прегледај датотеку


+ 29
- 0
src/main/java/com/zipcoin/model/Miner.java Прегледај датотеку

@@ -0,0 +1,29 @@
1
+package com.zipcoin.model;
2
+
3
+
4
+public class Miner {
5
+    boolean hashCodeCheck = false;
6
+    Chain chain = new Chain();
7
+
8
+    public void setHashCodeCheck(boolean hashCodeCheck) {
9
+        this.hashCodeCheck = hashCodeCheck;
10
+    }
11
+
12
+    public boolean getHashCodeCheck() {
13
+        return hashCodeCheck;
14
+    }
15
+
16
+
17
+    public void mine(Block block) {
18
+
19
+        while (hashCodeCheck == false) {
20
+            if (block.getCurrentHash().startsWith("0000") == false) {
21
+                block.iterateNonce();
22
+            } else {
23
+                hashCodeCheck = true;
24
+                //chain.addBlock(block);    Why doesn't this line of code work?
25
+            }
26
+        }
27
+    }
28
+
29
+}

BIN
src/test/.DS_Store Прегледај датотеку


BIN
src/test/java/.DS_Store Прегледај датотеку


BIN
src/test/java/redCoin/.DS_Store Прегледај датотеку


+ 37
- 0
src/test/java/redCoin/Miner/minerTest.java Прегледај датотеку

@@ -0,0 +1,37 @@
1
+package redCoin.Miner;
2
+
3
+import com.zipcoin.model.Block;
4
+import com.zipcoin.model.Miner;
5
+import org.apache.commons.codec.digest.DigestUtils;
6
+import org.junit.Assert;
7
+import org.junit.Test;
8
+
9
+public class minerTest {
10
+
11
+    Block block = new Block(0);
12
+    Miner miner = new Miner();
13
+
14
+
15
+    @Test
16
+    public void testMine_When_HashcodeCheck_Is_False(){
17
+
18
+        miner.setHashCodeCheck(false);
19
+        int x = block.getNonce();
20
+        miner.mine(block);
21
+        int y = block.getNonce();
22
+
23
+        Assert.assertTrue(y > x);
24
+    }
25
+
26
+    @Test
27
+    public void testMine_When_HashcodeCheck_Is_True(){
28
+
29
+        miner.setHashCodeCheck(true);
30
+        int x = block.getNonce();
31
+        miner.mine(block);
32
+        int y = block.getNonce();
33
+
34
+        Assert.assertTrue(y == x);
35
+    }
36
+
37
+}