+ function useP2wpkhNestedInP2sh() {
+ return DOM.useP2wpkhNestedInP2sh.prop("checked");
+ }
+
+ function networkHasBip49() {
+ return networks[DOM.network.val()].p2wpkhNestedInP2shAvailable;
+ }
+
+ function bip49TabSelected() {
+ return DOM.bip49tab.hasClass("active");
+ }
+
+ function setHdCoin(coinValue) {
+ DOM.bip44coin.val(coinValue);
+ DOM.bip49coin.val(coinValue);
+ }
+
+ function showP2wpkhNestedInP2shAvailable() {
+ DOM.bip49unavailable.addClass("hidden");
+ DOM.bip49available.removeClass("hidden");
+ DOM.useP2wpkhNestedInP2sh.prop("disabled", false);
+ }
+
+ function showP2wpkhNestedInP2shUnavailable() {
+ DOM.bip49available.addClass("hidden");
+ DOM.bip49unavailable.removeClass("hidden");
+ DOM.useP2wpkhNestedInP2sh.prop("disabled", true);
+ DOM.useP2wpkhNestedInP2sh.prop("checked", false);
+ }
+