UNPKG

koobor-sdk

Version:
21 lines 788 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.throwIfInvalidKooborContext = exports.throwIfInvalidWeb3Environment = exports.globalContext = void 0; exports.globalContext = { ethereum: undefined, web3: undefined, kooborContext: undefined, }; function throwIfInvalidWeb3Environment() { if (exports.globalContext.ethereum === undefined) { throw new Error("Invalid Web3 context"); } } exports.throwIfInvalidWeb3Environment = throwIfInvalidWeb3Environment; function throwIfInvalidKooborContext() { if (exports.globalContext.kooborContext === undefined) { throw new Error("Invalid Koobor context"); } } exports.throwIfInvalidKooborContext = throwIfInvalidKooborContext; //# sourceMappingURL=GlobalContext.js.map