UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

101 lines (100 loc) 3.42 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var _a; import { AbstractStore } from '@broxus/js-core'; import { action, computed, makeObservable } from 'mobx'; export class PipelineConfig extends AbstractStore { constructor(initialData) { super(); this.setData(() => initialData); makeObservable(this); } get(key) { return this._data[key]; } get depositFee() { return this._data.depositFee; } get isBlacklisted() { return this._data.isBlacklisted; } get isMerged() { return this._data.isMerged; } get isNative() { return this._data.isNative; } get mergePoolAddress() { return this._data.mergePoolAddress; } get mergeRouterAddress() { return this._data.mergeRouterAddress; } get proxyAddress() { return this._data.proxyAddress; } get tokenBase() { return this._data.tokenBase; } get withdrawFee() { return this._data.withdrawFee; } } __decorate([ action.bound, __metadata("design:type", Function), __metadata("design:paramtypes", [typeof (_a = typeof K !== "undefined" && K) === "function" ? _a : Object]), __metadata("design:returntype", Object) ], PipelineConfig.prototype, "get", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "depositFee", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "isBlacklisted", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "isMerged", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "isNative", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "mergePoolAddress", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "mergeRouterAddress", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "proxyAddress", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "tokenBase", null); __decorate([ computed, __metadata("design:type", Object), __metadata("design:paramtypes", []) ], PipelineConfig.prototype, "withdrawFee", null);