"use strict";
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExplorerDefinition = void 0;
const Struct_js_1 = require("../chain/Struct.js");
let ExplorerDefinition = class ExplorerDefinition extends Struct_js_1.Struct {
    url(id) {
        return `${this.prefix}${id}${this.suffix}`;
    }
};
exports.ExplorerDefinition = ExplorerDefinition;
__decorate([
    Struct_js_1.Struct.field("string"),
    __metadata("design:type", String)
], ExplorerDefinition.prototype, "prefix", void 0);
__decorate([
    Struct_js_1.Struct.field("string"),
    __metadata("design:type", String)
], ExplorerDefinition.prototype, "suffix", void 0);
exports.ExplorerDefinition = ExplorerDefinition = __decorate([
    Struct_js_1.Struct.type("explorer_definition")
], ExplorerDefinition);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhwbG9yZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tbW9uL0V4cGxvcmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBLGtEQUEyQztBQUdwQyxJQUFNLGtCQUFrQixHQUF4QixNQUFNLGtCQUFtQixTQUFRLGtCQUFNO0lBSXJDLEdBQUcsQ0FBQyxFQUFVO1FBQ25CLE9BQU8sR0FBRyxJQUFJLENBQUMsTUFBTSxHQUFHLEVBQU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