@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
37 lines (36 loc) • 1.53 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PDelayed = void 0;
var Cloneable_1 = require("../../utils/Cloneable.js");
var PType_1 = require("../PType/index.js");
var PDelayed = /** @class */ (function (_super) {
__extends(PDelayed, _super);
function PDelayed(toDelay) {
if (toDelay === void 0) { toDelay = new PType_1.PType; }
var _this = _super.call(this) || this;
_this._delayedPType = toDelay;
return _this;
}
PDelayed.prototype.clone = function () {
return new PDelayed((0, Cloneable_1.isCloneable)(this._delayedPType) ?
this._delayedPType.clone() :
this._delayedPType);
};
return PDelayed;
}(PType_1.PType));
exports.PDelayed = PDelayed;