"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UtxoAddress = void 0;
const AddressBase_1 = require("../AddressBase");
const AddressTypes_1 = require("./AddressTypes");
class UtxoAddress extends AddressBase_1.AddressBase {
    get stdHash() {
        throw new Error("Method not implemented.");
    }
    get type() {
        throw new Error("Method not implemented.");
    }
    addressToPkscript() {
        throw new Error("Method not implemented.");
    }
    isValid() {
        throw new Error("Method not implemented.");
    }
    get isMainnet() {
        if (!this.isValid)
            return false;
        switch (this.type) {
            case AddressTypes_1.UtxoAddressTypes.P2PKH:
            case AddressTypes_1.UtxoAddressTypes.P2SH:
            case AddressTypes_1.UtxoAddressTypes.P2WPKH:
            case AddressTypes_1.UtxoAddressTypes.P2WSH:
            case AddressTypes_1.UtxoAddressTypes.P2TR:
                return true;
            default:
                return false;
        }
    }
}
exports.UtxoAddress = UtxoAddress;
//# sourceMappingURL=UtxoAddress.js.map