@phantom/react-native-sdk 1.0.0-beta.5 → 1.0.0-beta.7
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/index.d.ts +3 -3
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import * as _phantom_embedded_provider_core from '@phantom/embedded-provider-core';
|
|
4
4
|
import { EmbeddedProviderConfig, EmbeddedProvider, WalletAddress, ConnectResult } from '@phantom/embedded-provider-core';
|
|
5
5
|
export { ConnectResult, SignAndSendTransactionParams, SignMessageParams, SignMessageResult, SignedTransaction, WalletAddress } from '@phantom/embedded-provider-core';
|
|
6
|
-
import * as
|
|
6
|
+
import * as _phantom_chain_interfaces from '@phantom/chain-interfaces';
|
|
7
7
|
export { AddressType } from '@phantom/client';
|
|
8
8
|
export { NetworkId } from '@phantom/constants';
|
|
9
9
|
|
|
@@ -75,7 +75,7 @@ declare function useAccounts(): {
|
|
|
75
75
|
* @returns Solana chain interface with connection enforcement
|
|
76
76
|
*/
|
|
77
77
|
declare function useSolana(): {
|
|
78
|
-
solana:
|
|
78
|
+
solana: _phantom_chain_interfaces.ISolanaChain;
|
|
79
79
|
isAvailable: boolean;
|
|
80
80
|
};
|
|
81
81
|
|
|
@@ -85,7 +85,7 @@ declare function useSolana(): {
|
|
|
85
85
|
* @returns Ethereum chain interface with connection enforcement
|
|
86
86
|
*/
|
|
87
87
|
declare function useEthereum(): {
|
|
88
|
-
ethereum:
|
|
88
|
+
ethereum: _phantom_chain_interfaces.IEthereumChain;
|
|
89
89
|
isAvailable: boolean;
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/index.js
CHANGED
|
@@ -118,7 +118,8 @@ var ExpoAuthProvider = class {
|
|
|
118
118
|
app_id: appId,
|
|
119
119
|
redirect_uri: redirectUrl,
|
|
120
120
|
session_id: sessionId,
|
|
121
|
-
clear_previous_session: "true"
|
|
121
|
+
clear_previous_session: "true",
|
|
122
|
+
sdk_version: "1.0.0-beta.7"
|
|
122
123
|
});
|
|
123
124
|
if (provider) {
|
|
124
125
|
console.log("[ExpoAuthProvider] Provider specified, will skip selection", { provider });
|
|
@@ -493,7 +494,7 @@ function PhantomProvider({ children, config, debugConfig }) {
|
|
|
493
494
|
[import_constants2.ANALYTICS_HEADERS.PLATFORM_VERSION]: `${import_react_native2.Platform.Version}`,
|
|
494
495
|
[import_constants2.ANALYTICS_HEADERS.APP_ID]: config.appId,
|
|
495
496
|
[import_constants2.ANALYTICS_HEADERS.WALLET_TYPE]: config.embeddedWalletType,
|
|
496
|
-
[import_constants2.ANALYTICS_HEADERS.SDK_VERSION]: "1.0.0-beta.
|
|
497
|
+
[import_constants2.ANALYTICS_HEADERS.SDK_VERSION]: "1.0.0-beta.7"
|
|
497
498
|
// Replaced at build time
|
|
498
499
|
}
|
|
499
500
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -74,7 +74,8 @@ var ExpoAuthProvider = class {
|
|
|
74
74
|
app_id: appId,
|
|
75
75
|
redirect_uri: redirectUrl,
|
|
76
76
|
session_id: sessionId,
|
|
77
|
-
clear_previous_session: "true"
|
|
77
|
+
clear_previous_session: "true",
|
|
78
|
+
sdk_version: "1.0.0-beta.7"
|
|
78
79
|
});
|
|
79
80
|
if (provider) {
|
|
80
81
|
console.log("[ExpoAuthProvider] Provider specified, will skip selection", { provider });
|
|
@@ -449,7 +450,7 @@ function PhantomProvider({ children, config, debugConfig }) {
|
|
|
449
450
|
[ANALYTICS_HEADERS.PLATFORM_VERSION]: `${Platform.Version}`,
|
|
450
451
|
[ANALYTICS_HEADERS.APP_ID]: config.appId,
|
|
451
452
|
[ANALYTICS_HEADERS.WALLET_TYPE]: config.embeddedWalletType,
|
|
452
|
-
[ANALYTICS_HEADERS.SDK_VERSION]: "1.0.0-beta.
|
|
453
|
+
[ANALYTICS_HEADERS.SDK_VERSION]: "1.0.0-beta.7"
|
|
453
454
|
// Replaced at build time
|
|
454
455
|
}
|
|
455
456
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phantom/react-native-sdk",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.7",
|
|
4
4
|
"description": "Phantom Wallet SDK for React Native and Expo applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"directory": "packages/react-native-sdk"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@phantom/api-key-stamper": "^1.0.0-beta.
|
|
49
|
-
"@phantom/base64url": "^1.0.0-beta.
|
|
50
|
-
"@phantom/
|
|
51
|
-
"@phantom/client": "^1.0.0-beta.
|
|
52
|
-
"@phantom/constants": "^1.0.0-beta.
|
|
53
|
-
"@phantom/crypto": "^1.0.0-beta.
|
|
54
|
-
"@phantom/embedded-provider-core": "^1.0.0-beta.
|
|
55
|
-
"@phantom/sdk-types": "^1.0.0-beta.
|
|
48
|
+
"@phantom/api-key-stamper": "^1.0.0-beta.6",
|
|
49
|
+
"@phantom/base64url": "^1.0.0-beta.6",
|
|
50
|
+
"@phantom/chain-interfaces": "^1.0.0-beta.6",
|
|
51
|
+
"@phantom/client": "^1.0.0-beta.7",
|
|
52
|
+
"@phantom/constants": "^1.0.0-beta.6",
|
|
53
|
+
"@phantom/crypto": "^1.0.0-beta.6",
|
|
54
|
+
"@phantom/embedded-provider-core": "^1.0.0-beta.7",
|
|
55
|
+
"@phantom/sdk-types": "^1.0.0-beta.6",
|
|
56
56
|
"@types/bs58": "^5.0.0",
|
|
57
57
|
"bs58": "^6.0.0",
|
|
58
58
|
"buffer": "^6.0.3"
|