@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
105 lines (104 loc) • 3.63 kB
JavaScript
;
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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PipelineConfig = void 0;
const js_core_1 = require("@broxus/js-core");
const mobx_1 = require("mobx");
class PipelineConfig extends js_core_1.AbstractStore {
constructor(initialData) {
super();
this.setData(() => initialData);
(0, mobx_1.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;
}
}
exports.PipelineConfig = PipelineConfig;
__decorate([
mobx_1.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([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "depositFee", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "isBlacklisted", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "isMerged", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "isNative", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "mergePoolAddress", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "mergeRouterAddress", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "proxyAddress", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "tokenBase", null);
__decorate([
mobx_1.computed,
__metadata("design:type", Object),
__metadata("design:paramtypes", [])
], PipelineConfig.prototype, "withdrawFee", null);