koobor-sdk
Version:
Koobor Gaming Platform SDK
21 lines • 788 B
JavaScript
;
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