부모
커밋
54f6ee3940

+ 1
- 1
ZipCoinRedIonicClient/.sourcemaps/main.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 3
- 2
ZipCoinRedIonicClient/ionic.config.json 파일 보기

@@ -1,5 +1,6 @@
1 1
 {
2 2
   "name": "ZipCoinRed",
3 3
   "integrations": {},
4
-  "type": "ionic-angular"
5
-}
4
+  "type": "ionic-angular",
5
+  "app_id": ""
6
+}

+ 2
- 2
ZipCoinRedIonicClient/www/build/0.js 파일 보기

@@ -1,6 +1,6 @@
1 1
 webpackJsonp([0],{
2 2
 
3
-/***/ 283:
3
+/***/ 282:
4 4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5 5
 
6 6
 "use strict";
@@ -8,7 +8,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
8 8
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletPageModule", function() { return WalletPageModule; });
9 9
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
10 10
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
11
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(104);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet__ = __webpack_require__(102);
12 12
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_transaction_service__ = __webpack_require__(50);
13 13
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
14 14
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

+ 2
- 2
ZipCoinRedIonicClient/www/build/1.js 파일 보기

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

+ 2
- 2
ZipCoinRedIonicClient/www/build/2.js 파일 보기

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

+ 2
- 2
ZipCoinRedIonicClient/www/build/3.js 파일 보기

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

+ 108
- 92
ZipCoinRedIonicClient/www/build/main.js 파일 보기

@@ -4,9 +4,12 @@ webpackJsonp([4],{
4 4
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
5 5
 
6 6
 "use strict";
7
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
7
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
8 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);
9
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
10
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(102);
11
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(103);
12
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(104);
10 13
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
11 14
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12 15
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -18,30 +21,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
18 21
 };
19 22
 
20 23
 
21
-/**
22
- * Generated class for the Tab4Page page.
23
- *
24
- * See https://ionicframework.com/docs/components/#navigation for more info on
25
- * Ionic pages and navigation.
26
- */
27
-var Tab4Page = /** @class */ (function () {
28
-    function Tab4Page(navCtrl, navParams) {
29
-        this.navCtrl = navCtrl;
30
-        this.navParams = navParams;
24
+
25
+
26
+
27
+var TabsPage = /** @class */ (function () {
28
+    function TabsPage() {
29
+        this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
30
+        this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
31
+        this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
32
+        this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
31 33
     }
32
-    Tab4Page.prototype.ionViewDidLoad = function () {
33
-        console.log('ionViewDidLoad Tab4Page');
34
-    };
35
-    Tab4Page = __decorate([
34
+    TabsPage = __decorate([
36 35
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
37
-            selector: 'page-tab4',template:/*ion-inline-start:"/Users/shivamp/labs/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/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
36
+            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"*/,
38 37
         }),
39
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
40
-    ], Tab4Page);
41
-    return Tab4Page;
38
+        __metadata("design:paramtypes", [])
39
+    ], TabsPage);
40
+    return TabsPage;
42 41
 }());
43 42
 
44
-//# sourceMappingURL=tab4.js.map
43
+//# sourceMappingURL=tabs.js.map
45 44
 
46 45
 /***/ }),
47 46
 
@@ -49,7 +48,7 @@ var Tab4Page = /** @class */ (function () {
49 48
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
50 49
 
51 50
 "use strict";
52
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
51
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
53 52
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
54 53
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
55 54
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
@@ -66,42 +65,44 @@ var __metadata = (this && this.__metadata) || function (k, v) {
66 65
 
67 66
 
68 67
 /**
69
- * Generated class for the TransactionPage page.
68
+ * Generated class for the WalletPage page.
70 69
  *
71 70
  * See https://ionicframework.com/docs/components/#navigation for more info on
72 71
  * Ionic pages and navigation.
73 72
  */
74
-var TransactionPage = /** @class */ (function () {
75
-    function TransactionPage(navCtrl, navParams, transactionService) {
73
+var WalletPage = /** @class */ (function () {
74
+    function WalletPage(navCtrl, navParams, transactionService) {
76 75
         this.navCtrl = navCtrl;
77 76
         this.navParams = navParams;
78 77
         this.transactionService = transactionService;
79
-        this.getAllTransactions;
80 78
     }
81
-    TransactionPage.prototype.ionViewDidLoad = function () {
82
-        console.log('ionViewDidLoad TransactionPage');
79
+    WalletPage.prototype.ionViewDidLoad = function () {
80
+        console.log('ionViewDidLoad WalletPage');
83 81
     };
84
-
85
-            selector: 'page-transaction',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n<ion-content padding>\n  <ion-list>\n      <ion-item-sliding *ngFor="let block of blocks">\n        <ion-item>\n          <ion-card>\n              <ion-card-content>\n                <div>Data: {{ block.transactionList }}</div>\n              </ion-card-content>\n          </ion-card>\n        </ion-item>\n      </ion-item-sliding>\n    </ion-list>\n</ion-content>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
86
-        }),
87
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
88
-            selector: 'page-transaction',template:/*ion-inline-start:"/Users/shivamp/labs/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-list>\n        <ion-item-sliding *ngFor="let transaction of transactions">\n          <ion-item>\n            <ion-card>\n                <ion-card-header>\n                  Transaction #: {{transaction.transactionId}}\n                </ion-card-header>\n                <ion-card-content>\n                  <div>Sender: {{ transaction.sender }}</div>\n                  <div>Recipient: {{ transaction.recipient }}</div>\n                  <div>Amount: {{ transaction.amount }}</div>\n                </ion-card-content>\n            </ion-card>\n          </ion-item>\n        </ion-item-sliding>\n      </ion-list>\n\n</ion-content>\n'/*ion-inline-end:"/Users/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
82
+    WalletPage.prototype.createTransaction = function () {
83
+        this.transactionService.createTransaction(this.transaction);
84
+    };
85
+    WalletPage = __decorate([
86
+        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
87
+            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\n  \n  <ion-item>\n      <ion-label>Name</ion-label>\n      <ion-select [(ngModel)]="name">\n        <ion-option value="ann">Ann</ion-option>\n        <ion-option value="sen">Sen</ion-option>\n      </ion-select>\n     </ion-item>\n     <ion-item>\n        <ion-label>current balance</ion-label>\n        <ion-input></ion-input>\n      </ion-item>\n      <ion-item>\n          <ion-label>Public Key</ion-label>\n          <ion-input></ion-input>\n        </ion-item>\n      <br>\n      <br>\n      <div class = "bar bar-subheader bar-assertive">\n          <h2 class = "title">Payment</h2>\n       </div>\n       <!-- <ion-item>\n          <ion-label>From</ion-label>\n          <ion-select [(ngModel)]="name">\n            <ion-option value="ann">Ann</ion-option>\n            <ion-option value="sen">Sen</ion-option>\n          </ion-select>\n         </ion-item> -->\n         <ion-item>\n            <ion-label>To</ion-label>\n            <ion-select [(ngModel)]="to">\n              <ion-option value="ann">Ann</ion-option>\n              <ion-option value="sen">Sen</ion-option>\n            </ion-select>\n           </ion-item>\n      \n          <ion-item>\n              <ion-label>Amount</ion-label>\n              <ion-input></ion-input>\n            </ion-item>\n            <br>\n            <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
89 88
         }),
90
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
91
-            __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
92
-    ], TransactionPage);
93
-    return TransactionPage;
89
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
90
+    ], WalletPage);
91
+    return WalletPage;
94 92
 }());
95 93
 
96
-//# sourceMappingURL=transaction.js.map
94
+//# sourceMappingURL=wallet.js.map
97 95
 
98 96
 /***/ }),
99 97
 
100
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
101
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
102
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(104);
103
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(102);
104
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(101);
98
+/***/ 103:
99
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
100
+
101
+"use strict";
102
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
103
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
104
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
105
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
105 106
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
106 107
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
107 108
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -114,25 +115,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
114 115
 
115 116
 
116 117
 
117
-
118
-
119
-var TabsPage = /** @class */ (function () {
120
-    function TabsPage() {
121
-        this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
122
-        this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
123
-        this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
124
-        this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
118
+/**
119
+ * Generated class for the TransactionPage page.
120
+ *
121
+ * See https://ionicframework.com/docs/components/#navigation for more info on
122
+ * Ionic pages and navigation.
123
+ */
124
+var TransactionPage = /** @class */ (function () {
125
+    function TransactionPage(navCtrl, navParams, transactionService) {
126
+        this.navCtrl = navCtrl;
127
+        this.navParams = navParams;
128
+        this.transactionService = transactionService;
129
+        this.block = {};
130
+        this.getAllTransactions();
125 131
     }
126
-    TabsPage = __decorate([
132
+    TransactionPage.prototype.ionViewDidLoad = function () {
133
+        console.log('ionViewDidLoad TransactionPage');
134
+    };
135
+    TransactionPage.prototype.getAllTransactions = function () {
136
+        var _this = this;
137
+        this.transactionService.getAllTransactions().subscribe(function (transactions) {
138
+            _this.transactions = transactions;
139
+        });
140
+    };
141
+    TransactionPage = __decorate([
127 142
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
128
-            selector: 'page-tabs',template:/*ion-inline-start:"/Users/shivamp/labs/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/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
143
+            selector: 'page-transaction',template:/*ion-inline-start:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/'<ion-header>\n\n  <ion-navbar>\n    <ion-title>Transaction</ion-title>\n  </ion-navbar>\n\n</ion-header>\n<ion-content padding>\n\n    <ion-list>\n        <ion-item-sliding *ngFor="let transaction of transactions">\n          <ion-item>\n            <ion-card>\n                <ion-card-header>\n                  Transaction #: {{transaction.transactionId}}\n                </ion-card-header>\n                <ion-card-content>\n                  <div>Sender: {{ transaction.sender }}</div>\n                  <div>Recipient: {{ transaction.recipient }}</div>\n                  <div>Amount: {{ transaction.amount }}</div>\n                </ion-card-content>\n            </ion-card>\n          </ion-item>\n        </ion-item-sliding>\n      </ion-list>\n\n</ion-content>\n'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
129 144
         }),
130
-        __metadata("design:paramtypes", [])
131
-    ], TabsPage);
132
-    return TabsPage;
145
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
146
+            __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
147
+    ], TransactionPage);
148
+    return TransactionPage;
133 149
 }());
134 150
 
135
-//# sourceMappingURL=tabs.js.map
151
+//# sourceMappingURL=transaction.js.map
136 152
 
137 153
 /***/ }),
138 154
 
@@ -140,10 +156,9 @@ var TabsPage = /** @class */ (function () {
140 156
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
141 157
 
142 158
 "use strict";
143
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
159
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
144 160
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
145 161
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
146
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
147 162
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
148 163
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
149 164
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -155,40 +170,34 @@ var __metadata = (this && this.__metadata) || function (k, v) {
155 170
 };
156 171
 
157 172
 
158
-
159 173
 /**
160
- * Generated class for the WalletPage page.
174
+ * Generated class for the Tab4Page page.
161 175
  *
162 176
  * See https://ionicframework.com/docs/components/#navigation for more info on
163 177
  * Ionic pages and navigation.
164 178
  */
165
-var WalletPage = /** @class */ (function () {
166
-    function WalletPage(navCtrl, navParams, transactionService) {
179
+var Tab4Page = /** @class */ (function () {
180
+    function Tab4Page(navCtrl, navParams) {
167 181
         this.navCtrl = navCtrl;
168 182
         this.navParams = navParams;
169
-        this.transactionService = transactionService;
170 183
     }
171
-    WalletPage.prototype.ionViewDidLoad = function () {
172
-        console.log('ionViewDidLoad WalletPage');
173
-    };
174
-    WalletPage.prototype.createTransaction = function () {
175
-        this.transactionService.createTransaction(this.transaction);
184
+    Tab4Page.prototype.ionViewDidLoad = function () {
185
+        console.log('ionViewDidLoad Tab4Page');
176 186
     };
177
-    WalletPage = __decorate([
187
+    Tab4Page = __decorate([
178 188
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
179
-            selector: 'page-wallet',template:/*ion-inline-start:"/Users/shivamp/labs/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\n  \n  <ion-item>\n      <ion-label>Name</ion-label>\n      <ion-select [(ngModel)]="name">\n        <ion-option value="ann">Ann</ion-option>\n        <ion-option value="sen">Sen</ion-option>\n      </ion-select>\n     </ion-item>\n     <ion-item>\n        <ion-label>current balance</ion-label>\n        <ion-input></ion-input>\n      </ion-item>\n      <ion-item>\n          <ion-label>Public Key</ion-label>\n          <ion-input></ion-input>\n        </ion-item>\n      <br>\n      <br>\n      <div class = "bar bar-subheader bar-assertive">\n          <h2 class = "title">Payment</h2>\n       </div>\n       <!-- <ion-item>\n          <ion-label>From</ion-label>\n          <ion-select [(ngModel)]="name">\n            <ion-option value="ann">Ann</ion-option>\n            <ion-option value="sen">Sen</ion-option>\n          </ion-select>\n         </ion-item> -->\n         <ion-item>\n            <ion-label>To</ion-label>\n            <ion-select [(ngModel)]="to">\n              <ion-option value="ann">Ann</ion-option>\n              <ion-option value="sen">Sen</ion-option>\n            </ion-select>\n           </ion-item>\n      \n          <ion-item>\n              <ion-label>Amount</ion-label>\n              <ion-input></ion-input>\n            </ion-item>\n            <br>\n            <button ion-button>Pay</button>\n</ion-content>\n'/*ion-inline-end:"/Users/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
189
+            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"*/,
180 190
         }),
181
-        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
182
-    ], WalletPage);
183
-    return WalletPage;
191
+        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
192
+    ], Tab4Page);
193
+    return Tab4Page;
184 194
 }());
185 195
 
186
-//# sourceMappingURL=wallet.js.map
196
+//# sourceMappingURL=tab4.js.map
187 197
 
188 198
 /***/ }),
189 199
 
190 200
 /***/ 116:
191
->>>>>>> 8b1e22a5a0caf7af0d9105c89403f7d2bcc4b254
192 201
 /***/ (function(module, exports) {
193 202
 
194 203
 function webpackEmptyAsyncContext(req) {
@@ -210,19 +219,19 @@ webpackEmptyAsyncContext.id = 116;
210 219
 
211 220
 var map = {
212 221
 	"../pages/tab4/tab4.module": [
213
-		280,
222
+		281,
214 223
 		3
215 224
 	],
216 225
 	"../pages/tabs/tabs.module": [
217
-		282,
226
+		280,
218 227
 		2
219 228
 	],
220 229
 	"../pages/transaction/transaction.module": [
221
-		281,
230
+		283,
222 231
 		1
223 232
 	],
224 233
 	"../pages/wallet/wallet.module": [
225
-		283,
234
+		282,
226 235
 		0
227 236
 	]
228 237
 };
@@ -249,9 +258,11 @@ module.exports = webpackAsyncContext;
249 258
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
250 259
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
251 260
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
252
-
253 261
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
262
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
263
+    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
254 264
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
265
+    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;
255 266
     return c > 3 && r && Object.defineProperty(target, key, r), r;
256 267
 };
257 268
 var __metadata = (this && this.__metadata) || function (k, v) {
@@ -287,7 +298,7 @@ var HomePage = /** @class */ (function () {
287 298
     };
288 299
     HomePage = __decorate([
289 300
         Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
290
-            selector: 'page-home',template:/*ion-inline-start:"/Users/shivamp/labs/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  <ion-list>\n    <ion-item-sliding *ngFor="let block of blocks">\n      <ion-item>\n        <ion-card>\n            <ion-card-header>\n              Block #: {{block.blockNumber}}\n            </ion-card-header>\n            <ion-card-content>\n              <div>Nonce: {{ block.nonce }}</div>\n              <div>Data: {{ block.transactionList }}</div>\n              <div>Previous Hash: {{ block.previousHash }}</div>\n              <div>Current Hash: {{ block.currentHash }}</div>\n              <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n            </ion-card-content>\n        </ion-card>\n      </ion-item>\n    </ion-item-sliding>\n  </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
301
+            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  <ion-list>\n    <ion-item-sliding *ngFor="let block of blocks">\n      <ion-item>\n        <ion-card>\n            <ion-card-header>\n              Block #: {{block.blockNumber}}\n            </ion-card-header>\n            <ion-card-content>\n              <div>Nonce: {{ block.nonce }}</div>\n              <div>Data: {{ block.transactionList }}</div>\n              <div>Previous Hash: {{ block.previousHash }}</div>\n              <div>Current Hash: {{ block.currentHash }}</div>\n              <button ion-button (click)="getMinedBlock(block.id)">Mine</button>\n            </ion-card-content>\n        </ion-card>\n      </ion-item>\n    </ion-item-sliding>\n  </ion-list>\n\n</ion-content>'/*ion-inline-end:"/Users/khalils/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
291 302
         }),
292 303
         __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
293 304
     ], HomePage);
@@ -376,10 +387,10 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
376 387
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
377 388
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
378 389
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
379
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(104);
380
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(102);
381
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(103);
382
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
390
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(102);
391
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(103);
392
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(101);
393
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(104);
383 394
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
384 395
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
385 396
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -400,6 +411,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
400 411
 
401 412
 
402 413
 
414
+
403 415
 var AppModule = /** @class */ (function () {
404 416
     function AppModule() {
405 417
     }
@@ -409,16 +421,19 @@ var AppModule = /** @class */ (function () {
409 421
                 __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
410 422
                 __WEBPACK_IMPORTED_MODULE_8__pages_home_home__["a" /* HomePage */],
411 423
                 __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
424
+                __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
425
+                __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
412 426
                 __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
427
+            ],
413 428
             imports: [
414 429
                 __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
415 430
                 __WEBPACK_IMPORTED_MODULE_6__angular_common_http__["b" /* HttpClientModule */],
416 431
                 __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
417 432
                     links: [
418
-                        { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
419
-                        { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
420 433
                         { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
421
-                        { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
434
+                        { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
435
+                        { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] },
436
+                        { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] }
422 437
                     ]
423 438
                 })
424 439
             ],
@@ -454,12 +469,13 @@ var AppModule = /** @class */ (function () {
454 469
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
455 470
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
456 471
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
457
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
458
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
472
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
473
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
459 474
 /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(101);
460 475
 var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
461 476
     var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
462 477
     if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
478
+    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;
463 479
     return c > 3 && r && Object.defineProperty(target, key, r), r;
464 480
 };
465 481
 var __metadata = (this && this.__metadata) || function (k, v) {
@@ -481,7 +497,7 @@ var MyApp = /** @class */ (function () {
481 497
         });
482 498
     }
483 499
     MyApp = __decorate([
484
-        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/shivamp/labs/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
500
+        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"*/
485 501
         }),
486 502
         __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 */]])
487 503
     ], MyApp);

+ 1
- 1
ZipCoinRedIonicClient/www/build/main.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 502
- 5339
ZipCoinRedIonicClient/www/build/vendor.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 1
- 1
ZipCoinRedIonicClient/www/build/vendor.js.map
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 5
- 0
ZipCoinRedJavaServer/pom.xml 파일 보기

@@ -52,6 +52,11 @@
52 52
             <artifactId>mysql-connector-java</artifactId>
53 53
             <scope>runtime</scope>
54 54
         </dependency>
55
+        <dependency>
56
+            <groupId>org.springframework</groupId>
57
+            <artifactId>spring-web</artifactId>
58
+            <version>5.0.7.RELEASE</version>
59
+        </dependency>
55 60
 
56 61
 
57 62
     </dependencies>

+ 20
- 25
ZipCoinRedJavaServer/src/main/java/com/zipcoin/controller/TransactionController.java 파일 보기

@@ -1,44 +1,39 @@
1 1
 package com.zipcoin.controller;
2 2
 
3 3
 import com.zipcoin.model.Transaction;
4
-import com.zipcoin.repository.TransactionRepository;
4
+import com.zipcoin.service.TransactionService;
5 5
 import org.springframework.beans.factory.annotation.Autowired;
6 6
 import org.springframework.web.bind.annotation.*;
7 7
 
8
-import java.util.List;
8
+import java.util.Collection;
9
+
10
+import static com.zipcoin.config.TransactionApis.BASE_TRANSACTION_URL;
11
+import static com.zipcoin.config.TransactionApis.GET_TRANSACTIONS_BY_PUBLIC_KEY;
9 12
 
10 13
 @RestController
11
-@RequestMapping("api/v1/")
12 14
 @CrossOrigin(origins = {"http://localhost:8100"})
13 15
 public class TransactionController {
14 16
 
17
+    private TransactionService transactionService;
18
+
15 19
     @Autowired
16
-    private TransactionRepository transactionRepository;
20
+    public TransactionController(TransactionService transactionService){
21
+        this.transactionService = transactionService;
22
+    }
17 23
 
18
-    //CREATE A TRANSACTION
19
-    @RequestMapping(value = "transactions", method = RequestMethod.POST)
20
-    public Transaction create(@RequestBody Transaction transaction){
21
-        return transactionRepository.saveAndFlush(transaction);
24
+    @PostMapping(path = BASE_TRANSACTION_URL)
25
+    public Transaction createTransaction(@RequestBody Transaction transaction){
26
+        return transactionService.createTransaction(transaction);
22 27
     }
23 28
 
24
-    //READ-ALL TRANSACTIONS
25
-    @RequestMapping(value = "transactions", method = RequestMethod.GET)
26
-    public Iterable<Transaction> get(){
27
-        return transactionRepository.findAll();
29
+    @GetMapping(path = BASE_TRANSACTION_URL)
30
+    public Collection<Transaction> getAllTransactions(){
31
+        return transactionService.getAllTransactions();
28 32
     }
29 33
 
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;
34
+    @GetMapping(path = GET_TRANSACTIONS_BY_PUBLIC_KEY)
35
+    public Collection<Transaction> getTransactionByPublicKey(@PathVariable String publicKey){
36
+        return transactionService.getTransactionsByPublicKey(publicKey);
42 37
     }
43 38
 
44
-}
39
+}