|
@@ -1,10 +1,10 @@
|
1
|
1
|
webpackJsonp([4],{
|
2
|
2
|
|
3
|
|
-/***/ 100:
|
|
3
|
+/***/ 101:
|
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 WalletPage; });
|
|
7
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
|
8
|
8
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
9
|
9
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
10
|
10
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -19,6 +19,54 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
19
|
19
|
|
20
|
20
|
|
21
|
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;
|
|
31
|
+ }
|
|
32
|
+ Tab4Page.prototype.ionViewDidLoad = function () {
|
|
33
|
+ console.log('ionViewDidLoad Tab4Page');
|
|
34
|
+ };
|
|
35
|
+ Tab4Page = __decorate([
|
|
36
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
|
37
|
+ selector: 'page-tab4',template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/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/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tab4/tab4.html"*/,
|
|
38
|
+ }),
|
|
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;
|
|
42
|
+}());
|
|
43
|
+
|
|
44
|
+//# sourceMappingURL=tab4.js.map
|
|
45
|
+
|
|
46
|
+/***/ }),
|
|
47
|
+
|
|
48
|
+/***/ 102:
|
|
49
|
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
50
|
+
|
|
51
|
+"use strict";
|
|
52
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
|
|
53
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
|
54
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(159);
|
|
55
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(103);
|
|
56
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(104);
|
|
57
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(101);
|
|
58
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
59
|
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
60
|
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
61
|
+ 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;
|
|
62
|
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
63
|
+};
|
|
64
|
+var __metadata = (this && this.__metadata) || function (k, v) {
|
|
65
|
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
66
|
+};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+/**
|
22
|
70
|
* Generated class for the WalletPage page.
|
23
|
71
|
*
|
24
|
72
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
|
@@ -34,7 +82,7 @@ var WalletPage = /** @class */ (function () {
|
34
|
82
|
};
|
35
|
83
|
WalletPage = __decorate([
|
36
|
84
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
37
|
|
- 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="navya">navya</ion-option>\n <ion-option value="aleena">aleena</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="navya">navya</ion-option>\n <ion-option value="aleena">aleena</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="navya">navya</ion-option>\n <ion-option value="aleena">aleena</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"*/,
|
|
85
|
+ selector: 'page-tabs',template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/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/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
|
38
|
86
|
}),
|
39
|
87
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
40
|
88
|
], WalletPage);
|
|
@@ -45,13 +93,14 @@ var WalletPage = /** @class */ (function () {
|
45
|
93
|
|
46
|
94
|
/***/ }),
|
47
|
95
|
|
48
|
|
-/***/ 101:
|
|
96
|
+/***/ 103:
|
49
|
97
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
50
|
98
|
|
51
|
99
|
"use strict";
|
52
|
100
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
|
53
|
101
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
54
|
102
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
103
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
55
|
104
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
56
|
105
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
57
|
106
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -63,40 +112,46 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
63
|
112
|
};
|
64
|
113
|
|
65
|
114
|
|
|
115
|
+
|
66
|
116
|
/**
|
67
|
117
|
* Generated class for the TransactionPage page.
|
68
|
118
|
*
|
69
|
119
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
70
|
120
|
* Ionic pages and navigation.
|
71
|
121
|
*/
|
72
|
|
-var TransactionPage = /** @class */ (function () {
|
73
|
|
- function TransactionPage(navCtrl, navParams) {
|
|
122
|
+var WalletPage = /** @class */ (function () {
|
|
123
|
+ function WalletPage(navCtrl, navParams, transactionService) {
|
74
|
124
|
this.navCtrl = navCtrl;
|
75
|
125
|
this.navParams = navParams;
|
|
126
|
+ this.transactionService = transactionService;
|
76
|
127
|
}
|
77
|
128
|
TransactionPage.prototype.ionViewDidLoad = function () {
|
78
|
129
|
console.log('ionViewDidLoad TransactionPage');
|
79
|
130
|
};
|
80
|
|
- TransactionPage = __decorate([
|
|
131
|
+ WalletPage.prototype.createTransaction = function () {
|
|
132
|
+ this.transactionService.createTransaction(this.transaction);
|
|
133
|
+ };
|
|
134
|
+ WalletPage = __decorate([
|
81
|
135
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
82
|
|
- 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: {{ block.recipient }}</div>\n <div>Amount: {{ block.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"*/,
|
|
136
|
+ selector: 'page-wallet',template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/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/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
|
83
|
137
|
}),
|
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;
|
|
138
|
+ __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 */]])
|
|
139
|
+ ], WalletPage);
|
|
140
|
+ return WalletPage;
|
87
|
141
|
}());
|
88
|
142
|
|
89
|
143
|
//# sourceMappingURL=transaction.js.map
|
90
|
144
|
|
91
|
145
|
/***/ }),
|
92
|
146
|
|
93
|
|
-/***/ 102:
|
|
147
|
+/***/ 104:
|
94
|
148
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
|
149
|
|
96
|
150
|
"use strict";
|
97
|
151
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
|
98
|
152
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
99
|
153
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
|
154
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
100
|
155
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
101
|
156
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
102
|
157
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -108,34 +163,44 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
108
|
163
|
};
|
109
|
164
|
|
110
|
165
|
|
|
166
|
+
|
111
|
167
|
/**
|
112
|
168
|
* Generated class for the Tab4Page page.
|
113
|
169
|
*
|
114
|
170
|
* See https://ionicframework.com/docs/components/#navigation for more info on
|
115
|
171
|
* Ionic pages and navigation.
|
116
|
172
|
*/
|
117
|
|
-var Tab4Page = /** @class */ (function () {
|
118
|
|
- function Tab4Page(navCtrl, navParams) {
|
|
173
|
+var TransactionPage = /** @class */ (function () {
|
|
174
|
+ function TransactionPage(navCtrl, navParams, transactionService) {
|
119
|
175
|
this.navCtrl = navCtrl;
|
120
|
176
|
this.navParams = navParams;
|
|
177
|
+ this.transactionService = transactionService;
|
|
178
|
+ this.getAllTransactions;
|
121
|
179
|
}
|
122
|
180
|
Tab4Page.prototype.ionViewDidLoad = function () {
|
123
|
181
|
console.log('ionViewDidLoad Tab4Page');
|
124
|
182
|
};
|
125
|
|
- Tab4Page = __decorate([
|
|
183
|
+ TransactionPage.prototype.getAllTransactions = function () {
|
|
184
|
+ var _this = this;
|
|
185
|
+ this.transactionService.getAllTransactions().subscribe(function (transactions) {
|
|
186
|
+ _this.transactions = transactions;
|
|
187
|
+ });
|
|
188
|
+ };
|
|
189
|
+ TransactionPage = __decorate([
|
126
|
190
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
127
|
|
- 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"*/,
|
|
191
|
+ selector: 'page-transaction',template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/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: {{ block.recipient }}</div>\n <div>Amount: {{ block.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/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
128
|
192
|
}),
|
129
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */]])
|
130
|
|
- ], Tab4Page);
|
131
|
|
- return Tab4Page;
|
|
193
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
|
|
194
|
+ __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
|
195
|
+ ], TransactionPage);
|
|
196
|
+ return TransactionPage;
|
132
|
197
|
}());
|
133
|
198
|
|
134
|
199
|
//# sourceMappingURL=tab4.js.map
|
135
|
200
|
|
136
|
201
|
/***/ }),
|
137
|
202
|
|
138
|
|
-/***/ 114:
|
|
203
|
+/***/ 116:
|
139
|
204
|
/***/ (function(module, exports) {
|
140
|
205
|
|
141
|
206
|
function webpackEmptyAsyncContext(req) {
|
|
@@ -148,11 +213,11 @@ function webpackEmptyAsyncContext(req) {
|
148
|
213
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
149
|
214
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
150
|
215
|
module.exports = webpackEmptyAsyncContext;
|
151
|
|
-webpackEmptyAsyncContext.id = 114;
|
|
216
|
+webpackEmptyAsyncContext.id = 116;
|
152
|
217
|
|
153
|
218
|
/***/ }),
|
154
|
219
|
|
155
|
|
-/***/ 156:
|
|
220
|
+/***/ 158:
|
156
|
221
|
/***/ (function(module, exports, __webpack_require__) {
|
157
|
222
|
|
158
|
223
|
var map = {
|
|
@@ -161,15 +226,15 @@ var map = {
|
161
|
226
|
3
|
162
|
227
|
],
|
163
|
228
|
"../pages/tabs/tabs.module": [
|
164
|
|
- 279,
|
|
229
|
+ 281,
|
165
|
230
|
2
|
166
|
231
|
],
|
167
|
232
|
"../pages/transaction/transaction.module": [
|
168
|
|
- 281,
|
|
233
|
+ 282,
|
169
|
234
|
1
|
170
|
235
|
],
|
171
|
236
|
"../pages/wallet/wallet.module": [
|
172
|
|
- 282,
|
|
237
|
+ 283,
|
173
|
238
|
0
|
174
|
239
|
]
|
175
|
240
|
};
|
|
@@ -184,19 +249,19 @@ function webpackAsyncContext(req) {
|
184
|
249
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
185
|
250
|
return Object.keys(map);
|
186
|
251
|
};
|
187
|
|
-webpackAsyncContext.id = 156;
|
|
252
|
+webpackAsyncContext.id = 158;
|
188
|
253
|
module.exports = webpackAsyncContext;
|
189
|
254
|
|
190
|
255
|
/***/ }),
|
191
|
256
|
|
192
|
|
-/***/ 157:
|
|
257
|
+/***/ 159:
|
193
|
258
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
194
|
259
|
|
195
|
260
|
"use strict";
|
196
|
261
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
197
|
262
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
198
|
263
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
199
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(158);
|
|
264
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
|
200
|
265
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
201
|
266
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
202
|
267
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -236,7 +301,7 @@ var HomePage = /** @class */ (function () {
|
236
|
301
|
};
|
237
|
302
|
HomePage = __decorate([
|
238
|
303
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
239
|
|
- 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"*/
|
|
304
|
+ selector: 'page-home',template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/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/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
|
240
|
305
|
}),
|
241
|
306
|
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
242
|
307
|
], HomePage);
|
|
@@ -253,12 +318,12 @@ var HomePage = /** @class */ (function () {
|
253
|
318
|
|
254
|
319
|
/***/ }),
|
255
|
320
|
|
256
|
|
-/***/ 158:
|
|
321
|
+/***/ 160:
|
257
|
322
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
258
|
323
|
|
259
|
324
|
"use strict";
|
260
|
325
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
|
261
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(159);
|
|
326
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(78);
|
262
|
327
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
263
|
328
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
264
|
329
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -297,13 +362,13 @@ var BlockService = /** @class */ (function () {
|
297
|
362
|
|
298
|
363
|
/***/ }),
|
299
|
364
|
|
300
|
|
-/***/ 203:
|
|
365
|
+/***/ 204:
|
301
|
366
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
302
|
367
|
|
303
|
368
|
"use strict";
|
304
|
369
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
305
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(204);
|
306
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(224);
|
|
370
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
|
|
371
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
307
|
372
|
|
308
|
373
|
|
309
|
374
|
Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
|
@@ -311,7 +376,7 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
311
|
376
|
|
312
|
377
|
/***/ }),
|
313
|
378
|
|
314
|
|
-/***/ 224:
|
|
379
|
+/***/ 225:
|
315
|
380
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
316
|
381
|
|
317
|
382
|
"use strict";
|
|
@@ -319,16 +384,17 @@ Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* pl
|
319
|
384
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
320
|
385
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
321
|
386
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
|
322
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
|
323
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(202);
|
324
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(278);
|
325
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(159);
|
326
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(158);
|
327
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(157);
|
328
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(100);
|
329
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(101);
|
330
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(99);
|
331
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(102);
|
|
387
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
|
388
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(203);
|
|
389
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(279);
|
|
390
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
|
|
391
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
|
|
392
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
|
|
393
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(103);
|
|
394
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(104);
|
|
395
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(102);
|
|
396
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
|
|
397
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
|
332
|
398
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
333
|
399
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
334
|
400
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -348,6 +414,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
348
|
414
|
|
349
|
415
|
|
350
|
416
|
|
|
417
|
+
|
351
|
418
|
var AppModule = /** @class */ (function () {
|
352
|
419
|
function AppModule() {
|
353
|
420
|
}
|
|
@@ -386,6 +453,7 @@ var AppModule = /** @class */ (function () {
|
386
|
453
|
__WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
387
|
454
|
__WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
388
|
455
|
__WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
|
|
456
|
+ __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
|
389
|
457
|
{ provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
|
390
|
458
|
]
|
391
|
459
|
})
|
|
@@ -397,16 +465,16 @@ var AppModule = /** @class */ (function () {
|
397
|
465
|
|
398
|
466
|
/***/ }),
|
399
|
467
|
|
400
|
|
-/***/ 278:
|
|
468
|
+/***/ 279:
|
401
|
469
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
402
|
470
|
|
403
|
471
|
"use strict";
|
404
|
472
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
405
|
473
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
406
|
474
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
407
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(202);
|
408
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(199);
|
409
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(99);
|
|
475
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
|
|
476
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
|
477
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(102);
|
410
|
478
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
411
|
479
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
412
|
480
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -432,7 +500,7 @@ var MyApp = /** @class */ (function () {
|
432
|
500
|
});
|
433
|
501
|
}
|
434
|
502
|
MyApp = __decorate([
|
435
|
|
- 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"*/
|
|
503
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/AleenaRM/Labi/zipcoin/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
|
436
|
504
|
}),
|
437
|
505
|
__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 */]])
|
438
|
506
|
], MyApp);
|
|
@@ -443,16 +511,13 @@ var MyApp = /** @class */ (function () {
|
443
|
511
|
|
444
|
512
|
/***/ }),
|
445
|
513
|
|
446
|
|
-/***/ 99:
|
|
514
|
+/***/ 50:
|
447
|
515
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
448
|
516
|
|
449
|
517
|
"use strict";
|
450
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TabsPage; });
|
|
518
|
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
|
451
|
519
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
452
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__home_home__ = __webpack_require__(157);
|
453
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__ = __webpack_require__(100);
|
454
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__ = __webpack_require__(101);
|
455
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__ = __webpack_require__(102);
|
|
520
|
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(78);
|
456
|
521
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
457
|
522
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
458
|
523
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -464,28 +529,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
464
|
529
|
};
|
465
|
530
|
|
466
|
531
|
|
467
|
|
-
|
468
|
|
-
|
469
|
|
-
|
470
|
|
-var TabsPage = /** @class */ (function () {
|
471
|
|
- function TabsPage() {
|
472
|
|
- this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
|
473
|
|
- this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
|
474
|
|
- this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
|
475
|
|
- this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
|
|
532
|
+var TransactionService = /** @class */ (function () {
|
|
533
|
+ function TransactionService(http) {
|
|
534
|
+ this.http = http;
|
|
535
|
+ this.API = 'http://localhost:8080/api/v1';
|
|
536
|
+ this.TRANSACTION_API = this.API + '/transactions';
|
476
|
537
|
}
|
477
|
|
- TabsPage = __decorate([
|
478
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
479
|
|
- 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"*/,
|
480
|
|
- }),
|
481
|
|
- __metadata("design:paramtypes", [])
|
482
|
|
- ], TabsPage);
|
483
|
|
- return TabsPage;
|
|
538
|
+ TransactionService.prototype.createTransaction = function (transaction) {
|
|
539
|
+ return this.http.post(this.TRANSACTION_API, transaction);
|
|
540
|
+ };
|
|
541
|
+ TransactionService.prototype.getAllTransactions = function () {
|
|
542
|
+ return this.http.get(this.TRANSACTION_API);
|
|
543
|
+ };
|
|
544
|
+ TransactionService = __decorate([
|
|
545
|
+ Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
|
546
|
+ __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
|
|
547
|
+ ], TransactionService);
|
|
548
|
+ return TransactionService;
|
484
|
549
|
}());
|
485
|
550
|
|
486
|
|
-//# sourceMappingURL=tabs.js.map
|
|
551
|
+//# sourceMappingURL=transaction-service.js.map
|
487
|
552
|
|
488
|
553
|
/***/ })
|
489
|
554
|
|
490
|
|
-},[203]);
|
|
555
|
+},[204]);
|
491
|
556
|
//# sourceMappingURL=main.js.map
|