UNPKG

@okxweb3/coin-bitcoin

Version:

@ok/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals.

34 lines 859 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.value = exports.prop = void 0; function prop(object, name, f) { Object.defineProperty(object, name, { configurable: true, enumerable: true, get() { const _value = f.call(this); this[name] = _value; return _value; }, set(_value) { Object.defineProperty(this, name, { configurable: true, enumerable: true, value: _value, writable: true, }); }, }); } exports.prop = prop; function value(f) { let _value; return () => { if (_value !== undefined) return _value; _value = f(); return _value; }; } exports.value = value; //# sourceMappingURL=lazy.js.map