@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
21 lines • 911 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWalletAPIVersion = getWalletAPIVersion;
exports.setWalletAPIVersion = setWalletAPIVersion;
// as the client side must implement the Wallet API, it's for LLD/LLM to set the Wallet API version
// that way allows to be loosely coupled between common and lld/llm
// it's like we do for enabling coins.
// beware this must be set in the first import of the end project.
const invariant_1 = __importDefault(require("invariant"));
let version = "";
function getWalletAPIVersion() {
(0, invariant_1.default)(version, "setWalletAPIVersion must be called before anything else.");
return version;
}
function setWalletAPIVersion(v) {
version = v;
}
//# sourceMappingURL=version.js.map