@xyo-network/react-wallet-service 10.0.3 → 10.0.5
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const WalletServiceContext: import("react").Context<({
|
|
2
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
2
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
3
3
|
} & {
|
|
4
4
|
provided: true;
|
|
5
|
-
}) | (import("@
|
|
6
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
5
|
+
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
|
|
6
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
7
7
|
}>, never> & {
|
|
8
8
|
provided: false;
|
|
9
|
-
}) | (import("@
|
|
10
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
9
|
+
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
|
|
10
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
11
11
|
}>, never> & {
|
|
12
12
|
provided: false;
|
|
13
13
|
})>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContextExState } from '@
|
|
1
|
+
import type { ContextExState } from '@ariestools/sdk-react/shared';
|
|
2
2
|
import type { MetaMaskConnector } from '@xyo-network/sdk';
|
|
3
3
|
export type WalletServiceState = ContextExState<{
|
|
4
4
|
metaMaskWallet: MetaMaskConnector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/contexts/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/contexts/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;IAC9C,cAAc,EAAE,iBAAiB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const useWalletService: () => ({
|
|
2
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
2
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
3
3
|
} & {
|
|
4
4
|
provided: true;
|
|
5
|
-
}) | (import("@
|
|
6
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
5
|
+
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
|
|
6
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
7
7
|
}>, never> & {
|
|
8
8
|
provided: false;
|
|
9
|
-
}) | (import("@
|
|
10
|
-
metaMaskWallet: import("@xyo-network/sdk").MetaMaskConnector;
|
|
9
|
+
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
|
|
10
|
+
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
11
11
|
}>, never> & {
|
|
12
12
|
provided: false;
|
|
13
13
|
});
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/contexts/Context.ts
|
|
2
|
-
import { createContextEx } from "@
|
|
2
|
+
import { createContextEx } from "@ariestools/sdk-react/shared";
|
|
3
3
|
var WalletServiceContext = createContextEx();
|
|
4
4
|
|
|
5
5
|
// src/contexts/Provider.tsx
|
|
@@ -12,7 +12,7 @@ var WalletServiceProvider = ({ children }) => {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
// src/contexts/use.ts
|
|
15
|
-
import { assertEx } from "@
|
|
15
|
+
import { assertEx } from "@ariestools/sdk";
|
|
16
16
|
import { use } from "react";
|
|
17
17
|
var useWalletService = () => {
|
|
18
18
|
const context = use(WalletServiceContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/contexts/Context.ts", "../../src/contexts/Provider.tsx", "../../src/contexts/use.ts"],
|
|
4
|
-
"sourcesContent": ["import { createContextEx } from '@
|
|
4
|
+
"sourcesContent": ["import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { WalletServiceState } from './State.ts'\n\nexport const WalletServiceContext = createContextEx<WalletServiceState>()\n", "import { MetaMaskConnector } from '@xyo-network/sdk'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo } from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\nimport type { WalletServiceState } from './State.ts'\n\nexport const WalletServiceProvider: React.FC<PropsWithChildren> = ({ children }) => {\n const value: WalletServiceState = useMemo(() => ({ metaMaskWallet: new MetaMaskConnector(), provided: true as const }), [])\n return <WalletServiceContext value={value}>{children}</WalletServiceContext>\n}\n", "import { assertEx } from '@ariestools/sdk'\nimport { use } from 'react'\n\nimport { WalletServiceContext } from './Context.ts'\n\nexport const useWalletService = () => {\n const context = use(WalletServiceContext)\n assertEx(context.metaMaskWallet, () => 'WalletServiceContext not initialized')\n // we do the cast to make the api non-optional\n return context\n}\n"],
|
|
5
5
|
"mappings": ";AAAA,SAAS,uBAAuB;AAIzB,IAAM,uBAAuB,gBAAoC;;;ACJxE,SAAS,yBAAyB;AAElC,SAAgB,eAAe;AAOtB;AAFF,IAAM,wBAAqD,CAAC,EAAE,SAAS,MAAM;AAClF,QAAM,QAA4B,QAAQ,OAAO,EAAE,gBAAgB,IAAI,kBAAkB,GAAG,UAAU,KAAc,IAAI,CAAC,CAAC;AAC1H,SAAO,oBAAC,wBAAqB,OAAe,UAAS;AACvD;;;ACVA,SAAS,gBAAgB;AACzB,SAAS,WAAW;AAIb,IAAM,mBAAmB,MAAM;AACpC,QAAM,UAAU,IAAI,oBAAoB;AACxC,WAAS,QAAQ,gBAAgB,MAAM,sCAAsC;AAE7E,SAAO;AACT;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-wallet-service",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,61 +41,89 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@ariestools/eth-address": "~8.0.2",
|
|
45
|
+
"@ariestools/pixel": "~8.0.2",
|
|
46
|
+
"@ariestools/sdk": "~8.0.2",
|
|
47
|
+
"@ariestools/sdk-react": "~11.0.0",
|
|
48
|
+
"@ariestools/threads": "~8.0.2",
|
|
44
49
|
"@bitauth/libauth": "~3.0.0",
|
|
45
|
-
"@
|
|
50
|
+
"@metamask/providers": "~22.1.1",
|
|
51
|
+
"@mui/icons-material": "~9.2.0",
|
|
52
|
+
"@mui/material": "~9.2.0",
|
|
46
53
|
"@noble/post-quantum": "~0.6.1",
|
|
47
|
-
"@opentelemetry/api": "
|
|
48
|
-
"@opentelemetry/sdk-trace-base": "
|
|
54
|
+
"@opentelemetry/api": "~1.9.1",
|
|
55
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
56
|
+
"@react-spring/web": "~10.1.2",
|
|
49
57
|
"@scure/base": "~2.2.0",
|
|
50
58
|
"@scure/bip39": "~2.2.0",
|
|
51
|
-
"@types/react": "
|
|
52
|
-
"@xylabs/
|
|
53
|
-
"@xylabs/
|
|
54
|
-
"@xylabs/
|
|
55
|
-
"@xylabs/
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"@types/react": "~19.2.17",
|
|
60
|
+
"@xylabs/toolchain": "~8.6.6",
|
|
61
|
+
"@xylabs/tsconfig": "~8.6.6",
|
|
62
|
+
"@xylabs/tsconfig-dom": "~8.6.6",
|
|
63
|
+
"@xylabs/tsconfig-react": "~8.6.6",
|
|
64
|
+
"@xyo-network/sdk": "~7.0.9",
|
|
65
|
+
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
66
|
+
"ajv": "~8.20.0",
|
|
67
|
+
"async-mutex": "~0.5.0",
|
|
68
|
+
"clsx": "~2.1.1",
|
|
69
|
+
"debug": "~4.4.3",
|
|
70
|
+
"eslint": "~10.6.0",
|
|
71
|
+
"ethers": "~6.17.0",
|
|
72
|
+
"hash-wasm": "~4.12.0",
|
|
73
|
+
"idb": "~8.0.3",
|
|
74
|
+
"lru-cache": "~11.5.1",
|
|
75
|
+
"md5": "~2.3.0",
|
|
76
|
+
"numeral": "~2.0.6",
|
|
77
|
+
"observable-fns": "~0.6.1",
|
|
78
|
+
"query-string": "~9.4.1",
|
|
79
|
+
"react": "~19.2.7",
|
|
80
|
+
"react-dom": "~19.2.7",
|
|
81
|
+
"react-router-dom": "~7.18.1",
|
|
82
|
+
"rollbar": "~3.1.0",
|
|
83
|
+
"typescript": "~6.0.3",
|
|
84
|
+
"viem": "~2.54.3",
|
|
85
|
+
"webextension-polyfill": "~0.12.0",
|
|
86
|
+
"zod": "~4.4.3",
|
|
87
|
+
"zustand": "~5.0.14"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"@ariestools/eth-address": "^8.0.2",
|
|
91
|
+
"@ariestools/pixel": "^8.0.2",
|
|
92
|
+
"@ariestools/sdk": "^8.0.2",
|
|
93
|
+
"@ariestools/sdk-react": "^11.0.0",
|
|
94
|
+
"@ariestools/threads": "^8.0.2",
|
|
95
|
+
"@bitauth/libauth": "^3.0.0",
|
|
96
|
+
"@metamask/providers": "^22.1.1",
|
|
97
|
+
"@mui/icons-material": "^9.2.0",
|
|
98
|
+
"@mui/material": "^9.2.0",
|
|
99
|
+
"@noble/post-quantum": "^0.6.1",
|
|
100
|
+
"@opentelemetry/api": "^1.9.1",
|
|
101
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
102
|
+
"@react-spring/web": "^10.1.2",
|
|
103
|
+
"@scure/base": "^2.2.0",
|
|
104
|
+
"@scure/bip39": "^2.2.0",
|
|
105
|
+
"@xyo-network/sdk": "^7.0.9",
|
|
106
|
+
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
61
107
|
"ajv": "^8.20.0",
|
|
62
108
|
"async-mutex": "^0.5.0",
|
|
109
|
+
"clsx": "^2.1.1",
|
|
63
110
|
"debug": "^4.4.3",
|
|
64
|
-
"eslint": "^10.6.0",
|
|
65
111
|
"ethers": "^6.17.0",
|
|
66
|
-
"hash-wasm": "
|
|
112
|
+
"hash-wasm": "^4.12.0",
|
|
67
113
|
"idb": "^8.0.3",
|
|
68
114
|
"lru-cache": "^11.5.1",
|
|
115
|
+
"md5": "^2.3.0",
|
|
116
|
+
"numeral": "^2.0.6",
|
|
69
117
|
"observable-fns": "^0.6.1",
|
|
118
|
+
"query-string": "^9.4.1",
|
|
70
119
|
"react": "^19.2.7",
|
|
71
120
|
"react-dom": "^19.2.7",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"@noble/post-quantum": "~0.6.1",
|
|
79
|
-
"@opentelemetry/api": "^1.9",
|
|
80
|
-
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
81
|
-
"@scure/base": "~2.2",
|
|
82
|
-
"@scure/bip39": "~2.2",
|
|
83
|
-
"@xylabs/geo": "^7.0",
|
|
84
|
-
"@xylabs/react-shared": "^10.0",
|
|
85
|
-
"@xylabs/sdk": "^7.0",
|
|
86
|
-
"@xylabs/threads": "^7.0",
|
|
87
|
-
"@xyo-network/sdk": "*",
|
|
88
|
-
"ajv": "^8.20",
|
|
89
|
-
"async-mutex": "^0.5",
|
|
90
|
-
"debug": "^4.4",
|
|
91
|
-
"ethers": "^6.16",
|
|
92
|
-
"hash-wasm": "~4.12",
|
|
93
|
-
"idb": "^8.0",
|
|
94
|
-
"lru-cache": "^11.3",
|
|
95
|
-
"observable-fns": "^0.6",
|
|
96
|
-
"react": "^19.2",
|
|
97
|
-
"react-dom": "^19.2",
|
|
98
|
-
"zod": "^4.4"
|
|
121
|
+
"react-router-dom": "^7.18.1",
|
|
122
|
+
"rollbar": "^3.1.0",
|
|
123
|
+
"viem": "^2.54.3",
|
|
124
|
+
"webextension-polyfill": "^0.12.0",
|
|
125
|
+
"zod": "^4.4.3",
|
|
126
|
+
"zustand": "^5.0.14"
|
|
99
127
|
},
|
|
100
128
|
"publishConfig": {
|
|
101
129
|
"access": "public"
|