@muirglacier/jellyfish-transaction
Version:
A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance for Bitcoin
50 lines • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OP_SIZE = exports.OP_RIGHT = exports.OP_LEFT = exports.OP_SUBSTR = exports.OP_CAT = void 0;
const opcode_1 = require("./opcode");
/**
* Concatenates two strings. disabled.
*/
class OP_CAT extends opcode_1.StaticCode {
constructor() {
super(0x7e, 'OP_CAT');
}
}
exports.OP_CAT = OP_CAT;
/**
* Returns a section of a string. disabled.
*/
class OP_SUBSTR extends opcode_1.StaticCode {
constructor() {
super(0x7f, 'OP_SUBSTR');
}
}
exports.OP_SUBSTR = OP_SUBSTR;
/**
* Keeps only characters left of the specified point in a string. disabled.
*/
class OP_LEFT extends opcode_1.StaticCode {
constructor() {
super(0x80, 'OP_LEFT');
}
}
exports.OP_LEFT = OP_LEFT;
/**
* Keeps only characters right of the specified point in a string. disabled.
*/
class OP_RIGHT extends opcode_1.StaticCode {
constructor() {
super(0x81, 'OP_RIGHT');
}
}
exports.OP_RIGHT = OP_RIGHT;
/**
* Pushes the string length of the top element of the stack (without popping it).
*/
class OP_SIZE extends opcode_1.StaticCode {
constructor() {
super(0x82, 'OP_SIZE');
}
}
exports.OP_SIZE = OP_SIZE;
//# sourceMappingURL=splice.js.map