@explorins/pers-sdk-react-native 1.5.32 → 1.5.34
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 +105 -45
- package/dist/hooks/useWeb3.js +1 -1
- package/dist/index.js +184 -70
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/hooks/useWeb3.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorins/pers-sdk-react-native",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.34",
|
|
4
4
|
"description": "React Native SDK for PERS Platform - Tourism Loyalty System with Blockchain Transaction Signing and WebAuthn Authentication",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "eXplorins",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@explorins/pers-sdk": "^1.6.
|
|
40
|
+
"@explorins/pers-sdk": "^1.6.42",
|
|
41
41
|
"@explorins/pers-shared": "^2.1.52",
|
|
42
42
|
"@explorins/pers-signer": "^1.0.33",
|
|
43
|
-
"@explorins/web3-ts": "^0.3.
|
|
43
|
+
"@explorins/web3-ts": "^0.3.77",
|
|
44
44
|
"buffer": "^6.0.3",
|
|
45
45
|
"ethers": "^6.15.0",
|
|
46
46
|
"react-native-get-random-values": "^2.0.0",
|
package/src/hooks/useWeb3.ts
CHANGED
|
@@ -115,7 +115,7 @@ export const useWeb3 = () => {
|
|
|
115
115
|
* chainId: 1
|
|
116
116
|
* });
|
|
117
117
|
* console.log('NFT name:', metadata?.name);
|
|
118
|
-
* console.log('NFT image:', metadata?.
|
|
118
|
+
* console.log('NFT image:', metadata?.imageUrl); // IPFS URLs auto-resolved to HTTPS
|
|
119
119
|
* ```
|
|
120
120
|
*/
|
|
121
121
|
const getTokenMetadata = useCallback(async (request: TokenBalanceRequest): Promise<TokenMetadata | null> => {
|