@xyo-network/react-wallet-service 2.81.9 → 2.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/contexts/Context.d.cts +1 -1
- package/dist/browser/contexts/Context.d.cts.map +1 -1
- package/dist/browser/contexts/Context.d.mts +1 -1
- package/dist/browser/contexts/Context.d.mts.map +1 -1
- package/dist/browser/contexts/Context.d.ts +1 -1
- package/dist/browser/contexts/Context.d.ts.map +1 -1
- package/dist/browser/contexts/Provider.d.cts +1 -0
- package/dist/browser/contexts/Provider.d.cts.map +1 -1
- package/dist/browser/contexts/Provider.d.mts +1 -0
- package/dist/browser/contexts/Provider.d.mts.map +1 -1
- package/dist/browser/contexts/Provider.d.ts +1 -0
- package/dist/browser/contexts/Provider.d.ts.map +1 -1
- package/dist/browser/contexts/defaultState.d.cts +1 -1
- package/dist/browser/contexts/defaultState.d.mts +1 -1
- package/dist/browser/contexts/defaultState.d.ts +1 -1
- package/dist/browser/contexts/index.d.cts +4 -4
- package/dist/browser/contexts/index.d.cts.map +1 -1
- package/dist/browser/contexts/index.d.mts +4 -4
- package/dist/browser/contexts/index.d.mts.map +1 -1
- package/dist/browser/contexts/index.d.ts +4 -4
- package/dist/browser/contexts/index.d.ts.map +1 -1
- package/dist/browser/contexts/use.d.cts +1 -1
- package/dist/browser/contexts/use.d.cts.map +1 -1
- package/dist/browser/contexts/use.d.mts +1 -1
- package/dist/browser/contexts/use.d.mts.map +1 -1
- package/dist/browser/contexts/use.d.ts +1 -1
- package/dist/browser/contexts/use.d.ts.map +1 -1
- package/dist/browser/index.cjs +27 -12
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -1
- package/dist/browser/index.d.mts +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.mjs +40 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/neutral/contexts/Context.d.cts +1 -1
- package/dist/neutral/contexts/Context.d.cts.map +1 -1
- package/dist/neutral/contexts/Context.d.mts +1 -1
- package/dist/neutral/contexts/Context.d.mts.map +1 -1
- package/dist/neutral/contexts/Context.d.ts +1 -1
- package/dist/neutral/contexts/Context.d.ts.map +1 -1
- package/dist/neutral/contexts/Provider.d.cts +1 -0
- package/dist/neutral/contexts/Provider.d.cts.map +1 -1
- package/dist/neutral/contexts/Provider.d.mts +1 -0
- package/dist/neutral/contexts/Provider.d.mts.map +1 -1
- package/dist/neutral/contexts/Provider.d.ts +1 -0
- package/dist/neutral/contexts/Provider.d.ts.map +1 -1
- package/dist/neutral/contexts/defaultState.d.cts +1 -1
- package/dist/neutral/contexts/defaultState.d.mts +1 -1
- package/dist/neutral/contexts/defaultState.d.ts +1 -1
- package/dist/neutral/contexts/index.d.cts +4 -4
- package/dist/neutral/contexts/index.d.cts.map +1 -1
- package/dist/neutral/contexts/index.d.mts +4 -4
- package/dist/neutral/contexts/index.d.mts.map +1 -1
- package/dist/neutral/contexts/index.d.ts +4 -4
- package/dist/neutral/contexts/index.d.ts.map +1 -1
- package/dist/neutral/contexts/use.d.cts +1 -1
- package/dist/neutral/contexts/use.d.cts.map +1 -1
- package/dist/neutral/contexts/use.d.mts +1 -1
- package/dist/neutral/contexts/use.d.mts.map +1 -1
- package/dist/neutral/contexts/use.d.ts +1 -1
- package/dist/neutral/contexts/use.d.ts.map +1 -1
- package/dist/neutral/index.cjs +27 -12
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +1 -1
- package/dist/neutral/index.d.mts +1 -1
- package/dist/neutral/index.d.ts +1 -1
- package/dist/neutral/index.mjs +40 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/node/contexts/Context.d.cts +1 -1
- package/dist/node/contexts/Context.d.cts.map +1 -1
- package/dist/node/contexts/Context.d.mts +1 -1
- package/dist/node/contexts/Context.d.mts.map +1 -1
- package/dist/node/contexts/Context.d.ts +1 -1
- package/dist/node/contexts/Context.d.ts.map +1 -1
- package/dist/node/contexts/Provider.d.cts +1 -0
- package/dist/node/contexts/Provider.d.cts.map +1 -1
- package/dist/node/contexts/Provider.d.mts +1 -0
- package/dist/node/contexts/Provider.d.mts.map +1 -1
- package/dist/node/contexts/Provider.d.ts +1 -0
- package/dist/node/contexts/Provider.d.ts.map +1 -1
- package/dist/node/contexts/defaultState.d.cts +1 -1
- package/dist/node/contexts/defaultState.d.mts +1 -1
- package/dist/node/contexts/defaultState.d.ts +1 -1
- package/dist/node/contexts/index.d.cts +4 -4
- package/dist/node/contexts/index.d.cts.map +1 -1
- package/dist/node/contexts/index.d.mts +4 -4
- package/dist/node/contexts/index.d.mts.map +1 -1
- package/dist/node/contexts/index.d.ts +4 -4
- package/dist/node/contexts/index.d.ts.map +1 -1
- package/dist/node/contexts/use.d.cts +1 -1
- package/dist/node/contexts/use.d.cts.map +1 -1
- package/dist/node/contexts/use.d.mts +1 -1
- package/dist/node/contexts/use.d.mts.map +1 -1
- package/dist/node/contexts/use.d.ts +1 -1
- package/dist/node/contexts/use.d.ts.map +1 -1
- package/dist/node/index.cjs +27 -12
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +40 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +10 -10
- package/src/contexts/{Context.tsx → Context.ts} +1 -1
- package/src/contexts/Provider.tsx +3 -2
- package/src/contexts/defaultState.ts +1 -1
- package/src/contexts/index.ts +4 -4
- package/src/contexts/{use.tsx → use.ts} +2 -2
- package/src/index.ts +1 -1
- package/dist/browser/index.js +0 -33
- package/dist/browser/index.js.map +0 -1
- package/dist/neutral/index.js +0 -33
- package/dist/neutral/index.js.map +0 -1
- package/dist/node/index.js +0 -33
- package/dist/node/index.js.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
9
|
var __export = (target, all) => {
|
|
7
10
|
for (var name in all)
|
|
8
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
18
|
}
|
|
16
19
|
return to;
|
|
17
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
18
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
30
|
|
|
20
31
|
// src/index.ts
|
|
@@ -26,31 +37,35 @@ __export(src_exports, {
|
|
|
26
37
|
});
|
|
27
38
|
module.exports = __toCommonJS(src_exports);
|
|
28
39
|
|
|
29
|
-
// src/contexts/Context.
|
|
40
|
+
// src/contexts/Context.ts
|
|
30
41
|
var import_react_shared = require("@xyo-network/react-shared");
|
|
31
42
|
var WalletServiceContext = (0, import_react_shared.createContextEx)();
|
|
32
43
|
|
|
44
|
+
// src/contexts/Provider.tsx
|
|
45
|
+
var import_react = __toESM(require("react"), 1);
|
|
46
|
+
|
|
33
47
|
// src/contexts/defaultState.ts
|
|
34
48
|
var import_metamask_connector = require("@xyo-network/metamask-connector");
|
|
35
|
-
var defaultState = () => {
|
|
49
|
+
var defaultState = /* @__PURE__ */ __name(() => {
|
|
36
50
|
return {
|
|
37
51
|
metaMaskWallet: new import_metamask_connector.MetaMaskConnector(),
|
|
38
52
|
provided: true
|
|
39
53
|
};
|
|
40
|
-
};
|
|
54
|
+
}, "defaultState");
|
|
41
55
|
|
|
42
56
|
// src/contexts/Provider.tsx
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
57
|
+
var WalletServiceProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
58
|
+
return /* @__PURE__ */ import_react.default.createElement(WalletServiceContext.Provider, {
|
|
59
|
+
value: defaultState()
|
|
60
|
+
}, children);
|
|
61
|
+
}, "WalletServiceProvider");
|
|
47
62
|
|
|
48
|
-
// src/contexts/use.
|
|
63
|
+
// src/contexts/use.ts
|
|
49
64
|
var import_assert = require("@xylabs/assert");
|
|
50
|
-
var
|
|
51
|
-
var useWalletService = () => {
|
|
52
|
-
const context = (0,
|
|
65
|
+
var import_react2 = require("react");
|
|
66
|
+
var useWalletService = /* @__PURE__ */ __name(() => {
|
|
67
|
+
const context = (0, import_react2.useContext)(WalletServiceContext);
|
|
53
68
|
(0, import_assert.assertEx)(context.metaMaskWallet, () => "WalletServiceContext not initialized");
|
|
54
69
|
return context;
|
|
55
|
-
};
|
|
70
|
+
}, "useWalletService");
|
|
56
71
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/contexts/Context.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/contexts/Context.ts","../../src/contexts/Provider.tsx","../../src/contexts/defaultState.ts","../../src/contexts/use.ts"],"sourcesContent":["export * from './contexts/index.ts'\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const WalletServiceContext = createContextEx<WalletServiceState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport React from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\nimport { defaultState } from './defaultState.ts'\n\nexport const WalletServiceProvider: React.FC<WithChildren> = ({ children }) => {\n return <WalletServiceContext.Provider value={defaultState()}>{children}</WalletServiceContext.Provider>\n}\n","import { MetaMaskConnector } from '@xyo-network/metamask-connector'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const defaultState = (): WalletServiceState => {\n return {\n metaMaskWallet: new MetaMaskConnector(),\n provided: true,\n }\n}\n","import { assertEx } from '@xylabs/assert'\nimport { useContext } from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\n\nexport const useWalletService = () => {\n const context = useContext(WalletServiceContext)\n assertEx(context.metaMaskWallet, () => 'WalletServiceContext not initialized')\n // we do the cast to make the api non-optional\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAA,0BAAgC;AAIzB,IAAMA,2BAAuBC,qCAAAA;;;ACHpC,mBAAkB;;;ACDlB,gCAAkC;AAI3B,IAAMC,eAAe,6BAAA;AAC1B,SAAO;IACLC,gBAAgB,IAAIC,4CAAAA;IACpBC,UAAU;EACZ;AACF,GAL4B;;;ADErB,IAAMC,wBAAgD,wBAAC,EAAEC,SAAQ,MAAE;AACxE,SAAO,6BAAAC,QAAA,cAACC,qBAAqBC,UAAQ;IAACC,OAAOC,aAAAA;KAAiBL,QAAAA;AAChE,GAF6D;;;AEN7D,oBAAyB;AACzB,IAAAM,gBAA2B;AAIpB,IAAMC,mBAAmB,6BAAA;AAC9B,QAAMC,cAAUC,0BAAWC,oBAAAA;AAC3BC,8BAASH,QAAQI,gBAAgB,MAAM,sCAAA;AAEvC,SAAOJ;AACT,GALgC;","names":["WalletServiceContext","createContextEx","defaultState","metaMaskWallet","MetaMaskConnector","provided","WalletServiceProvider","children","React","WalletServiceContext","Provider","value","defaultState","import_react","useWalletService","context","useContext","WalletServiceContext","assertEx","metaMaskWallet"]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './contexts/index.
|
|
1
|
+
export * from './contexts/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './contexts/index.
|
|
1
|
+
export * from './contexts/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './contexts/index.
|
|
1
|
+
export * from './contexts/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/contexts/Context.ts
|
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
6
|
+
var WalletServiceContext = createContextEx();
|
|
7
|
+
|
|
8
|
+
// src/contexts/Provider.tsx
|
|
9
|
+
import React from "react";
|
|
10
|
+
|
|
11
|
+
// src/contexts/defaultState.ts
|
|
12
|
+
import { MetaMaskConnector } from "@xyo-network/metamask-connector";
|
|
13
|
+
var defaultState = /* @__PURE__ */ __name(() => {
|
|
14
|
+
return {
|
|
15
|
+
metaMaskWallet: new MetaMaskConnector(),
|
|
16
|
+
provided: true
|
|
17
|
+
};
|
|
18
|
+
}, "defaultState");
|
|
19
|
+
|
|
20
|
+
// src/contexts/Provider.tsx
|
|
21
|
+
var WalletServiceProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
22
|
+
return /* @__PURE__ */ React.createElement(WalletServiceContext.Provider, {
|
|
23
|
+
value: defaultState()
|
|
24
|
+
}, children);
|
|
25
|
+
}, "WalletServiceProvider");
|
|
26
|
+
|
|
27
|
+
// src/contexts/use.ts
|
|
28
|
+
import { assertEx } from "@xylabs/assert";
|
|
29
|
+
import { useContext } from "react";
|
|
30
|
+
var useWalletService = /* @__PURE__ */ __name(() => {
|
|
31
|
+
const context = useContext(WalletServiceContext);
|
|
32
|
+
assertEx(context.metaMaskWallet, () => "WalletServiceContext not initialized");
|
|
33
|
+
return context;
|
|
34
|
+
}, "useWalletService");
|
|
35
|
+
export {
|
|
36
|
+
WalletServiceContext,
|
|
37
|
+
WalletServiceProvider,
|
|
38
|
+
useWalletService
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/contexts/Context.ts","../../src/contexts/Provider.tsx","../../src/contexts/defaultState.ts","../../src/contexts/use.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const WalletServiceContext = createContextEx<WalletServiceState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport React from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\nimport { defaultState } from './defaultState.ts'\n\nexport const WalletServiceProvider: React.FC<WithChildren> = ({ children }) => {\n return <WalletServiceContext.Provider value={defaultState()}>{children}</WalletServiceContext.Provider>\n}\n","import { MetaMaskConnector } from '@xyo-network/metamask-connector'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const defaultState = (): WalletServiceState => {\n return {\n metaMaskWallet: new MetaMaskConnector(),\n provided: true,\n }\n}\n","import { assertEx } from '@xylabs/assert'\nimport { useContext } from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\n\nexport const useWalletService = () => {\n const context = useContext(WalletServiceContext)\n assertEx(context.metaMaskWallet, () => 'WalletServiceContext not initialized')\n // we do the cast to make the api non-optional\n return context\n}\n"],"mappings":";;;;AAAA,SAASA,uBAAuB;AAIzB,IAAMC,uBAAuBD,gBAAAA;;;ACHpC,OAAOE,WAAW;;;ACDlB,SAASC,yBAAyB;AAI3B,IAAMC,eAAe,6BAAA;AAC1B,SAAO;IACLC,gBAAgB,IAAIC,kBAAAA;IACpBC,UAAU;EACZ;AACF,GAL4B;;;ADErB,IAAMC,wBAAgD,wBAAC,EAAEC,SAAQ,MAAE;AACxE,SAAO,sBAAA,cAACC,qBAAqBC,UAAQ;IAACC,OAAOC,aAAAA;KAAiBJ,QAAAA;AAChE,GAF6D;;;AEN7D,SAASK,gBAAgB;AACzB,SAASC,kBAAkB;AAIpB,IAAMC,mBAAmB,6BAAA;AAC9B,QAAMC,UAAUC,WAAWC,oBAAAA;AAC3BC,WAASH,QAAQI,gBAAgB,MAAM,sCAAA;AAEvC,SAAOJ;AACT,GALgC;","names":["createContextEx","WalletServiceContext","React","MetaMaskConnector","defaultState","metaMaskWallet","MetaMaskConnector","provided","WalletServiceProvider","children","WalletServiceContext","Provider","value","defaultState","assertEx","useContext","useWalletService","context","useContext","WalletServiceContext","assertEx","metaMaskWallet"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { WalletServiceState } from './State.
|
|
1
|
+
import { WalletServiceState } from './State.ts';
|
|
2
2
|
export declare const WalletServiceContext: import("react").Context<WalletServiceState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAExD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useWalletService: () => import("./State.
|
|
1
|
+
export declare const useWalletService: () => import("./State.ts").WalletServiceState & import("@xyo-network/react-shared").ContextExState;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,oGAK5B,CAAA"}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
9
|
var __export = (target, all) => {
|
|
7
10
|
for (var name in all)
|
|
8
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
18
|
}
|
|
16
19
|
return to;
|
|
17
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
18
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
30
|
|
|
20
31
|
// src/index.ts
|
|
@@ -26,31 +37,35 @@ __export(src_exports, {
|
|
|
26
37
|
});
|
|
27
38
|
module.exports = __toCommonJS(src_exports);
|
|
28
39
|
|
|
29
|
-
// src/contexts/Context.
|
|
40
|
+
// src/contexts/Context.ts
|
|
30
41
|
var import_react_shared = require("@xyo-network/react-shared");
|
|
31
42
|
var WalletServiceContext = (0, import_react_shared.createContextEx)();
|
|
32
43
|
|
|
44
|
+
// src/contexts/Provider.tsx
|
|
45
|
+
var import_react = __toESM(require("react"), 1);
|
|
46
|
+
|
|
33
47
|
// src/contexts/defaultState.ts
|
|
34
48
|
var import_metamask_connector = require("@xyo-network/metamask-connector");
|
|
35
|
-
var defaultState = () => {
|
|
49
|
+
var defaultState = /* @__PURE__ */ __name(() => {
|
|
36
50
|
return {
|
|
37
51
|
metaMaskWallet: new import_metamask_connector.MetaMaskConnector(),
|
|
38
52
|
provided: true
|
|
39
53
|
};
|
|
40
|
-
};
|
|
54
|
+
}, "defaultState");
|
|
41
55
|
|
|
42
56
|
// src/contexts/Provider.tsx
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
57
|
+
var WalletServiceProvider = /* @__PURE__ */ __name(({ children }) => {
|
|
58
|
+
return /* @__PURE__ */ import_react.default.createElement(WalletServiceContext.Provider, {
|
|
59
|
+
value: defaultState()
|
|
60
|
+
}, children);
|
|
61
|
+
}, "WalletServiceProvider");
|
|
47
62
|
|
|
48
|
-
// src/contexts/use.
|
|
63
|
+
// src/contexts/use.ts
|
|
49
64
|
var import_assert = require("@xylabs/assert");
|
|
50
|
-
var
|
|
51
|
-
var useWalletService = () => {
|
|
52
|
-
const context = (0,
|
|
65
|
+
var import_react2 = require("react");
|
|
66
|
+
var useWalletService = /* @__PURE__ */ __name(() => {
|
|
67
|
+
const context = (0, import_react2.useContext)(WalletServiceContext);
|
|
53
68
|
(0, import_assert.assertEx)(context.metaMaskWallet, () => "WalletServiceContext not initialized");
|
|
54
69
|
return context;
|
|
55
|
-
};
|
|
70
|
+
}, "useWalletService");
|
|
56
71
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/contexts/Context.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/contexts/Context.ts","../../src/contexts/Provider.tsx","../../src/contexts/defaultState.ts","../../src/contexts/use.ts"],"sourcesContent":["export * from './contexts/index.ts'\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const WalletServiceContext = createContextEx<WalletServiceState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport React from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\nimport { defaultState } from './defaultState.ts'\n\nexport const WalletServiceProvider: React.FC<WithChildren> = ({ children }) => {\n return <WalletServiceContext.Provider value={defaultState()}>{children}</WalletServiceContext.Provider>\n}\n","import { MetaMaskConnector } from '@xyo-network/metamask-connector'\n\nimport { WalletServiceState } from './State.ts'\n\nexport const defaultState = (): WalletServiceState => {\n return {\n metaMaskWallet: new MetaMaskConnector(),\n provided: true,\n }\n}\n","import { assertEx } from '@xylabs/assert'\nimport { useContext } from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\n\nexport const useWalletService = () => {\n const context = useContext(WalletServiceContext)\n assertEx(context.metaMaskWallet, () => 'WalletServiceContext not initialized')\n // we do the cast to make the api non-optional\n return context\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAA,0BAAgC;AAIzB,IAAMA,2BAAuBC,qCAAAA;;;ACHpC,mBAAkB;;;ACDlB,gCAAkC;AAI3B,IAAMC,eAAe,6BAAA;AAC1B,SAAO;IACLC,gBAAgB,IAAIC,4CAAAA;IACpBC,UAAU;EACZ;AACF,GAL4B;;;ADErB,IAAMC,wBAAgD,wBAAC,EAAEC,SAAQ,MAAE;AACxE,SAAO,6BAAAC,QAAA,cAACC,qBAAqBC,UAAQ;IAACC,OAAOC,aAAAA;KAAiBL,QAAAA;AAChE,GAF6D;;;AEN7D,oBAAyB;AACzB,IAAAM,gBAA2B;AAIpB,IAAMC,mBAAmB,6BAAA;AAC9B,QAAMC,cAAUC,0BAAWC,oBAAAA;AAC3BC,8BAASH,QAAQI,gBAAgB,MAAM,sCAAA;AAEvC,SAAOJ;AACT,GALgC;","names":["WalletServiceContext","createContextEx","defaultState","metaMaskWallet","MetaMaskConnector","provided","WalletServiceProvider","children","React","WalletServiceContext","Provider","value","defaultState","import_react","useWalletService","context","useContext","WalletServiceContext","assertEx","metaMaskWallet"]}
|