@xyo-network/react-wallet-service 2.26.34 → 2.26.37
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/docs.json +1 -1
- package/package.json +3 -3
- 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/dist/docs.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"fileName": "index.ts",
|
|
11
11
|
"line": 1,
|
|
12
12
|
"character": 0,
|
|
13
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
13
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/eeec410/packages/wallet-service/src/index.ts#L1"
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
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.
|
|
15
|
+
"@xyo-network/react-shared": "^2.26.37",
|
|
16
16
|
"@xyo-network/utils": "^2.22.15",
|
|
17
17
|
"react": "^18.2.0",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
@@ -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-dom": "^2.5.
|
|
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.37"
|
|
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'
|