|
@@ -1,553 +0,0 @@
|
1
|
|
-webpackJsonp([4],{
|
2
|
|
-
|
3
|
|
-/***/ 101:
|
4
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5
|
|
-
|
6
|
|
-"use strict";
|
7
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab4Page; });
|
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 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/ericf/ZCWProjects/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/ericf/ZCWProjects/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 TabsPage; });
|
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
|
|
-
|
70
|
|
-
|
71
|
|
-
|
72
|
|
-var TabsPage = /** @class */ (function () {
|
73
|
|
- function TabsPage() {
|
74
|
|
- this.homePage = __WEBPACK_IMPORTED_MODULE_1__home_home__["a" /* HomePage */];
|
75
|
|
- this.walletPage = __WEBPACK_IMPORTED_MODULE_2__wallet_wallet__["a" /* WalletPage */];
|
76
|
|
- this.transactionPage = __WEBPACK_IMPORTED_MODULE_3__transaction_transaction__["a" /* TransactionPage */];
|
77
|
|
- this.tab4 = __WEBPACK_IMPORTED_MODULE_4__tab4_tab4__["a" /* Tab4Page */];
|
78
|
|
- }
|
79
|
|
- TabsPage = __decorate([
|
80
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
81
|
|
- selector: 'page-tabs',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/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/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/tabs/tabs.html"*/,
|
82
|
|
- }),
|
83
|
|
- __metadata("design:paramtypes", [])
|
84
|
|
- ], TabsPage);
|
85
|
|
- return TabsPage;
|
86
|
|
-}());
|
87
|
|
-
|
88
|
|
-//# sourceMappingURL=tabs.js.map
|
89
|
|
-
|
90
|
|
-/***/ }),
|
91
|
|
-
|
92
|
|
-/***/ 103:
|
93
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
94
|
|
-
|
95
|
|
-"use strict";
|
96
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WalletPage; });
|
97
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
98
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
99
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
100
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
101
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
102
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
103
|
|
- 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;
|
104
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
105
|
|
-};
|
106
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
107
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
108
|
|
-};
|
109
|
|
-
|
110
|
|
-
|
111
|
|
-
|
112
|
|
-/**
|
113
|
|
- * Generated class for the WalletPage page.
|
114
|
|
- *
|
115
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
116
|
|
- * Ionic pages and navigation.
|
117
|
|
- */
|
118
|
|
-var WalletPage = /** @class */ (function () {
|
119
|
|
- function WalletPage(navCtrl, navParams, transactionService) {
|
120
|
|
- this.navCtrl = navCtrl;
|
121
|
|
- this.navParams = navParams;
|
122
|
|
- this.transactionService = transactionService;
|
123
|
|
- }
|
124
|
|
- WalletPage.prototype.ionViewDidLoad = function () {
|
125
|
|
- console.log('ionViewDidLoad WalletPage');
|
126
|
|
- };
|
127
|
|
- WalletPage.prototype.createTransaction = function () {
|
128
|
|
- this.transactionService.createTransaction(this.transaction);
|
129
|
|
- };
|
130
|
|
- WalletPage = __decorate([
|
131
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
132
|
|
- selector: 'page-wallet',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/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/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/wallet/wallet.html"*/,
|
133
|
|
- }),
|
134
|
|
- __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 */]])
|
135
|
|
- ], WalletPage);
|
136
|
|
- return WalletPage;
|
137
|
|
-}());
|
138
|
|
-
|
139
|
|
-//# sourceMappingURL=wallet.js.map
|
140
|
|
-
|
141
|
|
-/***/ }),
|
142
|
|
-
|
143
|
|
-/***/ 104:
|
144
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
145
|
|
-
|
146
|
|
-"use strict";
|
147
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionPage; });
|
148
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
149
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
150
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__ = __webpack_require__(50);
|
151
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
152
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
153
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
154
|
|
- 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;
|
155
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
156
|
|
-};
|
157
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
158
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
159
|
|
-};
|
160
|
|
-
|
161
|
|
-
|
162
|
|
-
|
163
|
|
-/**
|
164
|
|
- * Generated class for the TransactionPage page.
|
165
|
|
- *
|
166
|
|
- * See https://ionicframework.com/docs/components/#navigation for more info on
|
167
|
|
- * Ionic pages and navigation.
|
168
|
|
- */
|
169
|
|
-var TransactionPage = /** @class */ (function () {
|
170
|
|
- function TransactionPage(navCtrl, navParams, transactionService) {
|
171
|
|
- this.navCtrl = navCtrl;
|
172
|
|
- this.navParams = navParams;
|
173
|
|
- this.transactionService = transactionService;
|
174
|
|
- this.getAllTransactions();
|
175
|
|
- }
|
176
|
|
- TransactionPage.prototype.ionViewDidLoad = function () {
|
177
|
|
- console.log('ionViewDidLoad TransactionPage');
|
178
|
|
- };
|
179
|
|
- TransactionPage.prototype.getAllTransactions = function () {
|
180
|
|
- var _this = this;
|
181
|
|
- this.transactionService.getAllTransactions().subscribe(function (transactions) {
|
182
|
|
- _this.transactions = transactions;
|
183
|
|
- });
|
184
|
|
- };
|
185
|
|
- TransactionPage = __decorate([
|
186
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
187
|
|
- selector: 'page-transaction',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/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/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/transaction/transaction.html"*/,
|
188
|
|
- }),
|
189
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavParams */],
|
190
|
|
- __WEBPACK_IMPORTED_MODULE_2__providers_transaction_service__["a" /* TransactionService */]])
|
191
|
|
- ], TransactionPage);
|
192
|
|
- return TransactionPage;
|
193
|
|
-}());
|
194
|
|
-
|
195
|
|
-//# sourceMappingURL=transaction.js.map
|
196
|
|
-
|
197
|
|
-/***/ }),
|
198
|
|
-
|
199
|
|
-/***/ 116:
|
200
|
|
-/***/ (function(module, exports) {
|
201
|
|
-
|
202
|
|
-function webpackEmptyAsyncContext(req) {
|
203
|
|
- // Here Promise.resolve().then() is used instead of new Promise() to prevent
|
204
|
|
- // uncatched exception popping up in devtools
|
205
|
|
- return Promise.resolve().then(function() {
|
206
|
|
- throw new Error("Cannot find module '" + req + "'.");
|
207
|
|
- });
|
208
|
|
-}
|
209
|
|
-webpackEmptyAsyncContext.keys = function() { return []; };
|
210
|
|
-webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
211
|
|
-module.exports = webpackEmptyAsyncContext;
|
212
|
|
-webpackEmptyAsyncContext.id = 116;
|
213
|
|
-
|
214
|
|
-/***/ }),
|
215
|
|
-
|
216
|
|
-/***/ 158:
|
217
|
|
-/***/ (function(module, exports, __webpack_require__) {
|
218
|
|
-
|
219
|
|
-var map = {
|
220
|
|
- "../pages/tab4/tab4.module": [
|
221
|
|
- 280,
|
222
|
|
- 3
|
223
|
|
- ],
|
224
|
|
- "../pages/tabs/tabs.module": [
|
225
|
|
- 281,
|
226
|
|
- 2
|
227
|
|
- ],
|
228
|
|
- "../pages/transaction/transaction.module": [
|
229
|
|
- 282,
|
230
|
|
- 1
|
231
|
|
- ],
|
232
|
|
- "../pages/wallet/wallet.module": [
|
233
|
|
- 283,
|
234
|
|
- 0
|
235
|
|
- ]
|
236
|
|
-};
|
237
|
|
-function webpackAsyncContext(req) {
|
238
|
|
- var ids = map[req];
|
239
|
|
- if(!ids)
|
240
|
|
- return Promise.reject(new Error("Cannot find module '" + req + "'."));
|
241
|
|
- return __webpack_require__.e(ids[1]).then(function() {
|
242
|
|
- return __webpack_require__(ids[0]);
|
243
|
|
- });
|
244
|
|
-};
|
245
|
|
-webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
246
|
|
- return Object.keys(map);
|
247
|
|
-};
|
248
|
|
-webpackAsyncContext.id = 158;
|
249
|
|
-module.exports = webpackAsyncContext;
|
250
|
|
-
|
251
|
|
-/***/ }),
|
252
|
|
-
|
253
|
|
-/***/ 159:
|
254
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
255
|
|
-
|
256
|
|
-"use strict";
|
257
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
|
258
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
259
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
260
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_block_service__ = __webpack_require__(160);
|
261
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
262
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
263
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
264
|
|
- 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;
|
265
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
266
|
|
-};
|
267
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
268
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
269
|
|
-};
|
270
|
|
-
|
271
|
|
-
|
272
|
|
-
|
273
|
|
-var HomePage = /** @class */ (function () {
|
274
|
|
- function HomePage(navCtrl, blockService) {
|
275
|
|
- this.navCtrl = navCtrl;
|
276
|
|
- this.blockService = blockService;
|
277
|
|
- this.block = {};
|
278
|
|
- this.getAllBlocks();
|
279
|
|
- }
|
280
|
|
- HomePage.prototype.getBlock = function (id) {
|
281
|
|
- var _this = this;
|
282
|
|
- this.blockService.getBlock(id).subscribe(function (block) {
|
283
|
|
- _this.block = block;
|
284
|
|
- });
|
285
|
|
- };
|
286
|
|
- HomePage.prototype.getAllBlocks = function () {
|
287
|
|
- var _this = this;
|
288
|
|
- this.blockService.getAllBlocks().subscribe(function (blocks) {
|
289
|
|
- _this.blocks = blocks;
|
290
|
|
- });
|
291
|
|
- };
|
292
|
|
- HomePage.prototype.getMinedBlock = function (id) {
|
293
|
|
- var _this = this;
|
294
|
|
- this.blockService.getMinedBlock(id).subscribe(function (minedBlock) {
|
295
|
|
- _this.block = minedBlock;
|
296
|
|
- });
|
297
|
|
- };
|
298
|
|
- HomePage = __decorate([
|
299
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
|
300
|
|
- selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/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/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/pages/home/home.html"*/
|
301
|
|
- }),
|
302
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* NavController */], __WEBPACK_IMPORTED_MODULE_2__providers_block_service__["a" /* BlockService */]])
|
303
|
|
- ], HomePage);
|
304
|
|
- return HomePage;
|
305
|
|
-}());
|
306
|
|
-
|
307
|
|
-//make payment
|
308
|
|
-//block view
|
309
|
|
-//2 pull down list of username and pay other user "blank zips"
|
310
|
|
-// transaction are order by date
|
311
|
|
-// pay tab how many coins``
|
312
|
|
-// 4 tabs block,pay,
|
313
|
|
-//# sourceMappingURL=home.js.map
|
314
|
|
-
|
315
|
|
-/***/ }),
|
316
|
|
-
|
317
|
|
-/***/ 160:
|
318
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
319
|
|
-
|
320
|
|
-"use strict";
|
321
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BlockService; });
|
322
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(78);
|
323
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
324
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
325
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
326
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
327
|
|
- 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;
|
328
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
329
|
|
-};
|
330
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
331
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
332
|
|
-};
|
333
|
|
-
|
334
|
|
-
|
335
|
|
-var BlockService = /** @class */ (function () {
|
336
|
|
- function BlockService(http) {
|
337
|
|
- this.http = http;
|
338
|
|
- this.API = 'http://localhost:8080/api/v1';
|
339
|
|
- this.BLOCK_API = this.API + '/blocks';
|
340
|
|
- }
|
341
|
|
- BlockService.prototype.getBlock = function (id) {
|
342
|
|
- return this.http.get(this.BLOCK_API + '/' + id);
|
343
|
|
- };
|
344
|
|
- BlockService.prototype.getMinedBlock = function (id) {
|
345
|
|
- return this.http.get(this.BLOCK_API + '/' + id + '/' + 'mine');
|
346
|
|
- };
|
347
|
|
- BlockService.prototype.getAllBlocks = function () {
|
348
|
|
- return this.http.get(this.BLOCK_API);
|
349
|
|
- };
|
350
|
|
- BlockService = __decorate([
|
351
|
|
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
|
352
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
|
353
|
|
- ], BlockService);
|
354
|
|
- return BlockService;
|
355
|
|
-}());
|
356
|
|
-
|
357
|
|
-//# sourceMappingURL=block-service.js.map
|
358
|
|
-
|
359
|
|
-/***/ }),
|
360
|
|
-
|
361
|
|
-/***/ 204:
|
362
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
363
|
|
-
|
364
|
|
-"use strict";
|
365
|
|
-Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
366
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(205);
|
367
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(225);
|
368
|
|
-
|
369
|
|
-
|
370
|
|
-Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
|
371
|
|
-//# sourceMappingURL=main.js.map
|
372
|
|
-
|
373
|
|
-/***/ }),
|
374
|
|
-
|
375
|
|
-/***/ 225:
|
376
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
377
|
|
-
|
378
|
|
-"use strict";
|
379
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
|
380
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(31);
|
381
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
|
382
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(28);
|
383
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
384
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(203);
|
385
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__(279);
|
386
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(78);
|
387
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_block_service__ = __webpack_require__(160);
|
388
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_home_home__ = __webpack_require__(159);
|
389
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__ = __webpack_require__(103);
|
390
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__ = __webpack_require__(104);
|
391
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__ = __webpack_require__(102);
|
392
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__ = __webpack_require__(101);
|
393
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__ = __webpack_require__(50);
|
394
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
395
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
396
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
397
|
|
- 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;
|
398
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
399
|
|
-};
|
400
|
|
-
|
401
|
|
-
|
402
|
|
-
|
403
|
|
-
|
404
|
|
-
|
405
|
|
-
|
406
|
|
-
|
407
|
|
-
|
408
|
|
-
|
409
|
|
-
|
410
|
|
-
|
411
|
|
-
|
412
|
|
-
|
413
|
|
-
|
414
|
|
-var AppModule = /** @class */ (function () {
|
415
|
|
- function AppModule() {
|
416
|
|
- }
|
417
|
|
- AppModule = __decorate([
|
418
|
|
- Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
|
419
|
|
- declarations: [
|
420
|
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
421
|
|
- __WEBPACK_IMPORTED_MODULE_8__pages_home_home__["a" /* HomePage */],
|
422
|
|
- __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
423
|
|
- __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
424
|
|
- __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
425
|
|
- __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
|
426
|
|
- ],
|
427
|
|
- imports: [
|
428
|
|
- __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
|
429
|
|
- __WEBPACK_IMPORTED_MODULE_6__angular_common_http__["b" /* HttpClientModule */],
|
430
|
|
- __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */], {}, {
|
431
|
|
- links: [
|
432
|
|
- { loadChildren: '../pages/tab4/tab4.module#Tab4PageModule', name: 'Tab4Page', segment: 'tab4', priority: 'low', defaultHistory: [] },
|
433
|
|
- { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
|
434
|
|
- { loadChildren: '../pages/transaction/transaction.module#TransactionPageModule', name: 'TransactionPage', segment: 'transaction', priority: 'low', defaultHistory: [] },
|
435
|
|
- { loadChildren: '../pages/wallet/wallet.module#WalletPageModule', name: 'WalletPage', segment: 'wallet', priority: 'low', defaultHistory: [] }
|
436
|
|
- ]
|
437
|
|
- })
|
438
|
|
- ],
|
439
|
|
- bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
|
440
|
|
- entryComponents: [
|
441
|
|
- __WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* MyApp */],
|
442
|
|
- __WEBPACK_IMPORTED_MODULE_8__pages_home_home__["a" /* HomePage */],
|
443
|
|
- __WEBPACK_IMPORTED_MODULE_9__pages_wallet_wallet__["a" /* WalletPage */],
|
444
|
|
- __WEBPACK_IMPORTED_MODULE_10__pages_transaction_transaction__["a" /* TransactionPage */],
|
445
|
|
- __WEBPACK_IMPORTED_MODULE_12__pages_tab4_tab4__["a" /* Tab4Page */],
|
446
|
|
- __WEBPACK_IMPORTED_MODULE_11__pages_tabs_tabs__["a" /* TabsPage */]
|
447
|
|
- ],
|
448
|
|
- providers: [
|
449
|
|
- __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
|
450
|
|
- __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
|
451
|
|
- __WEBPACK_IMPORTED_MODULE_7__providers_block_service__["a" /* BlockService */],
|
452
|
|
- __WEBPACK_IMPORTED_MODULE_13__providers_transaction_service__["a" /* TransactionService */],
|
453
|
|
- { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] }
|
454
|
|
- ]
|
455
|
|
- })
|
456
|
|
- ], AppModule);
|
457
|
|
- return AppModule;
|
458
|
|
-}());
|
459
|
|
-
|
460
|
|
-//# sourceMappingURL=app.module.js.map
|
461
|
|
-
|
462
|
|
-/***/ }),
|
463
|
|
-
|
464
|
|
-/***/ 279:
|
465
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
466
|
|
-
|
467
|
|
-"use strict";
|
468
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
|
469
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
470
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(28);
|
471
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(203);
|
472
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(200);
|
473
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__ = __webpack_require__(102);
|
474
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
475
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
476
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
477
|
|
- 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;
|
478
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
479
|
|
-};
|
480
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
481
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
482
|
|
-};
|
483
|
|
-
|
484
|
|
-
|
485
|
|
-
|
486
|
|
-
|
487
|
|
-
|
488
|
|
-var MyApp = /** @class */ (function () {
|
489
|
|
- function MyApp(platform, statusBar, splashScreen) {
|
490
|
|
- this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_tabs_tabs__["a" /* TabsPage */];
|
491
|
|
- platform.ready().then(function () {
|
492
|
|
- // Okay, so the platform is ready and our plugins are available.
|
493
|
|
- // Here you can do any higher level native things you might need.
|
494
|
|
- statusBar.styleDefault();
|
495
|
|
- splashScreen.hide();
|
496
|
|
- });
|
497
|
|
- }
|
498
|
|
- MyApp = __decorate([
|
499
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/ZipCoin-RED/ZipCoinRedIonicClient/src/app/app.html"*/
|
500
|
|
- }),
|
501
|
|
- __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* Platform */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]) === "function" && _c || Object])
|
502
|
|
- ], MyApp);
|
503
|
|
- return MyApp;
|
504
|
|
- var _a, _b, _c;
|
505
|
|
-}());
|
506
|
|
-
|
507
|
|
-//# sourceMappingURL=app.component.js.map
|
508
|
|
-
|
509
|
|
-/***/ }),
|
510
|
|
-
|
511
|
|
-/***/ 50:
|
512
|
|
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
513
|
|
-
|
514
|
|
-"use strict";
|
515
|
|
-/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TransactionService; });
|
516
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
|
517
|
|
-/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__(78);
|
518
|
|
-var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
519
|
|
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
520
|
|
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
521
|
|
- 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;
|
522
|
|
- return c > 3 && r && Object.defineProperty(target, key, r), r;
|
523
|
|
-};
|
524
|
|
-var __metadata = (this && this.__metadata) || function (k, v) {
|
525
|
|
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
526
|
|
-};
|
527
|
|
-
|
528
|
|
-
|
529
|
|
-var TransactionService = /** @class */ (function () {
|
530
|
|
- function TransactionService(http) {
|
531
|
|
- this.http = http;
|
532
|
|
- this.API = 'http://localhost:8080/api/v1';
|
533
|
|
- this.TRANSACTION_API = this.API + '/transactions';
|
534
|
|
- }
|
535
|
|
- TransactionService.prototype.createTransaction = function (transaction) {
|
536
|
|
- return this.http.post(this.TRANSACTION_API, transaction);
|
537
|
|
- };
|
538
|
|
- TransactionService.prototype.getAllTransactions = function () {
|
539
|
|
- return this.http.get(this.TRANSACTION_API);
|
540
|
|
- };
|
541
|
|
- TransactionService = __decorate([
|
542
|
|
- Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
|
543
|
|
- __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
|
544
|
|
- ], TransactionService);
|
545
|
|
- return TransactionService;
|
546
|
|
-}());
|
547
|
|
-
|
548
|
|
-//# sourceMappingURL=transaction-service.js.map
|
549
|
|
-
|
550
|
|
-/***/ })
|
551
|
|
-
|
552
|
|
-},[204]);
|
553
|
|
-//# sourceMappingURL=main.js.map
|