UNPKG

@scrow/tapscript

Version:

A development build of tapscript. Built for escrow.

27 lines (20 loc) 479 B
import { parse_sequence } from '../lib/tx/timelock.js' import { TimelockData } from '../types/index.js' export class Sequence { readonly _data : TimelockData constructor (value : number) { this._data = parse_sequence(value) } get data () : TimelockData { return this._data } get value () : number { return this._data.value } get is_replaceable () : boolean { return this.data.enabled } toJSON () : number { return this.value } }