@xyo-network/react-wallet-service 2.26.32 → 2.26.35
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/README.md +2 -1
- package/dist/docs.json +10 -1
- package/package.json +4 -4
- package/babel.config.json +0 -5
- package/src/contexts/Context.tsx +0 -5
- package/src/contexts/Provider.tsx +0 -8
- package/src/contexts/State.ts +0 -6
- package/src/contexts/defaultState.ts +0 -10
- package/src/contexts/index.ts +0 -4
- package/src/contexts/use.tsx +0 -11
- package/src/index.ts +0 -1
package/README.md
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
[![codeclimate-badge][]][codeclimate-link]
|
|
11
11
|
[![snyk-badge][]][snyk-link]
|
|
12
12
|
|
|
13
|
-
> The XYO Foundation provides this source code available in our efforts to
|
|
13
|
+
> The XYO Foundation provides this source code available in our efforts to
|
|
14
|
+
> advance the understanding of the XYO Procotol and its possible uses.
|
|
14
15
|
|
|
15
16
|
## Table of Contents
|
|
16
17
|
|
package/dist/docs.json
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
"id": 0,
|
|
3
3
|
"name": "@xyo-network/react-wallet-service",
|
|
4
4
|
"kind": 1,
|
|
5
|
+
"kindString": "Project",
|
|
5
6
|
"flags": {},
|
|
6
|
-
"originalName": ""
|
|
7
|
+
"originalName": "",
|
|
8
|
+
"sources": [
|
|
9
|
+
{
|
|
10
|
+
"fileName": "index.ts",
|
|
11
|
+
"line": 1,
|
|
12
|
+
"character": 0,
|
|
13
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/7efa6fa/packages/wallet-service/src/index.ts#L1"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
7
16
|
}
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/react-shared": "^2.14.10",
|
|
14
14
|
"@xylabs/sdk-js": "^2.6.2",
|
|
15
|
-
"@xyo-network/react-shared": "^2.26.
|
|
16
|
-
"@xyo-network/utils": "^2.22.
|
|
15
|
+
"@xyo-network/react-shared": "^2.26.35",
|
|
16
|
+
"@xyo-network/utils": "^2.22.15",
|
|
17
17
|
"react": "^18.2.0",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
19
19
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@babel/core": "^7.18.9",
|
|
23
23
|
"@babel/preset-env": "^7.18.9",
|
|
24
24
|
"@xylabs/sdk-js": "^2.6.2",
|
|
25
|
-
"@xylabs/tsconfig": "^
|
|
25
|
+
"@xylabs/tsconfig-dom": "^2.5.3"
|
|
26
26
|
},
|
|
27
27
|
"browser": "dist/esm/index.js",
|
|
28
28
|
"docs": "dist/docs.json",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
},
|
|
74
74
|
"sideEffects": false,
|
|
75
75
|
"types": "dist/esm/index.d.ts",
|
|
76
|
-
"version": "2.26.
|
|
76
|
+
"version": "2.26.35"
|
|
77
77
|
}
|
package/babel.config.json
DELETED
package/src/contexts/Context.tsx
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WithChildren } from '@xylabs/react-shared'
|
|
2
|
-
|
|
3
|
-
import { WalletServiceContext } from './Context'
|
|
4
|
-
import { defaultState } from './defaultState'
|
|
5
|
-
|
|
6
|
-
export const WalletServiceProvider: React.FC<WithChildren> = ({ children }) => {
|
|
7
|
-
return <WalletServiceContext.Provider value={defaultState()}>{children}</WalletServiceContext.Provider>
|
|
8
|
-
}
|
package/src/contexts/State.ts
DELETED
package/src/contexts/index.ts
DELETED
package/src/contexts/use.tsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/sdk-js'
|
|
2
|
-
import { useContext } from 'react'
|
|
3
|
-
|
|
4
|
-
import { WalletServiceContext } from './Context'
|
|
5
|
-
|
|
6
|
-
export const useWalletService = () => {
|
|
7
|
-
const context = useContext(WalletServiceContext)
|
|
8
|
-
assertEx(context.metaMaskWallet, 'WalletServiceContext not initialized')
|
|
9
|
-
//we do the cast to make the api non-optional
|
|
10
|
-
return context
|
|
11
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './contexts'
|