a zip code crypto-currency system good for red ONLY

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