Skip to content

Commit fc24440

Browse files
chore: sync from internal
1 parent e30b8c2 commit fc24440

138 files changed

Lines changed: 5542 additions & 1603 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
"client-demo-app",
3535
"@phantom/server-sdk-examples",
3636
"@phantom/react-native-sdk-example",
37-
"@phantom/with-modal"
37+
"@phantom/with-modal",
38+
"with-nextjs",
39+
"with-wagmi"
3840
]
3941
}

.changeset/pre.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"@phantom/browser-sdk-demo-app": "0.0.1",
6+
"client-demo-app": "1.0.1",
7+
"@phantom/react-native-sdk-example": "1.0.0",
8+
"@phantom/react-sdk-demo-app": "0.0.2",
9+
"@phantom/server-sdk-examples": "1.0.7",
10+
"@phantom/with-modal": "0.0.1",
11+
"with-nextjs": "0.1.1",
12+
"with-wagmi": "0.1.1",
13+
"@phantom/api-key-stamper": "1.0.7",
14+
"@phantom/auth2": "1.0.2",
15+
"@phantom/base64url": "1.0.7",
16+
"@phantom/browser-injected-sdk": "1.0.7",
17+
"@phantom/browser-sdk": "1.0.7",
18+
"@phantom/chain-interfaces": "1.0.7",
19+
"@phantom/client": "1.0.7",
20+
"@phantom/constants": "1.0.7",
21+
"@phantom/crypto": "1.0.7",
22+
"@phantom/embedded-provider-core": "1.0.7",
23+
"@phantom/indexed-db-stamper": "1.0.7",
24+
"@phantom/mcp-server": "0.2.4",
25+
"@phantom/parsers": "1.0.7",
26+
"@phantom/perps-client": "0.1.4",
27+
"@phantom/phantom-api-client": "0.1.2",
28+
"@phantom/phantom-openclaw-plugin": "0.2.4",
29+
"@phantom/react-native-sdk": "1.0.7",
30+
"@phantom/react-sdk": "1.0.7",
31+
"@phantom/sdk-types": "1.0.7",
32+
"@phantom/server-sdk": "1.0.7",
33+
"@phantom/wallet-sdk-ui": "1.0.7",
34+
"@phantom/utils": "1.0.7"
35+
},
36+
"changesets": [
37+
"old-stars-shake"
38+
]
39+
}

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
NPM_CONFIG_PROVENANCE: true
2424
steps:
2525
- name: Checkout Repo
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2727

2828
- name: Enable Corepack
2929
run: corepack enable
3030

3131
- name: Setup Node.js 20.x
32-
uses: actions/setup-node@v4
32+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
3333
with:
3434
node-version: 20.x
3535
cache: "yarn"
@@ -44,6 +44,18 @@ jobs:
4444
- name: Build
4545
run: yarn build
4646

47+
- name: Verify MCP package installs cleanly
48+
run: yarn workspace @phantom/mcp-server test:pack
49+
env:
50+
PHANTOM_AUTH_BASE_URL: http://127.0.0.1:1
51+
PHANTOM_API_BASE_URL: http://127.0.0.1:1
52+
53+
- name: MCP server smoke test
54+
run: yarn workspace @phantom/mcp-server test:smoke
55+
env:
56+
PHANTOM_AUTH_BASE_URL: http://127.0.0.1:1
57+
PHANTOM_API_BASE_URL: http://127.0.0.1:1
58+
4759
- name: Run Lint
4860
run: yarn lint
4961

examples/browser-sdk-demo-app/.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ VITE_ETHEREUM_SEPOLIA_RPC_URL=https://rpc.sepolia.org
1414
VITE_WALLET_API=https://api.phantom.app/v1/wallets
1515
VITE_APP_ID=xxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
1616

17-
VITE_AUTH_URL=https://connect.phantom.app/login
18-
VITE_REDIRECT_URL=http://localhost:5175/auth/callback
17+
VITE_AUTH_URL=https://connect.phantom.app/login/start
18+
VITE_REDIRECT_URL=http://localhost:5175/auth/callback
19+
VITE_AUTH_API_BASE_URL=https://auth.phantom.app

examples/browser-sdk-demo-app/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ function App() {
5656
embeddedWalletType: "user-wallet",
5757
authOptions: {
5858
authUrl: import.meta.env.VITE_AUTH_URL,
59+
redirectUrl: import.meta.env.VITE_REDIRECT_URL,
60+
authApiBaseUrl: import.meta.env.VITE_AUTH_API_BASE_URL,
5961
},
6062
addressTypes: [AddressType.solana, AddressType.ethereum],
6163
});

examples/react-native-sdk-demo-app/.env.example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ EXPO_PUBLIC_WALLET_API=https://staging-api.phantom.app/v1/wallets
2020

2121
# Custom authentication URL (optional)
2222
# Leave empty to use default Phantom authentication
23-
# Example: http://localhost:3000/login for local development
24-
EXPO_PUBLIC_AUTH_URL=https://staging-connect.phantom.app/login
23+
# Example: http://localhost:3000/login/start for local development
24+
EXPO_PUBLIC_AUTH_URL=https://staging-connect.phantom.app/login/start
2525

2626
# Redirect URL after authentication
2727
# Must match your app's custom URL scheme configured in app.json
2828
# Format: {scheme}://phantom-auth-callback
2929
EXPO_PUBLIC_REDIRECT_URL=your-app-scheme://phantom-auth-callback
3030

31+
EXPO_PUBLIC_AUTH_API_BASE_URL=https://staging-auth.phantom.app
32+
3133
# =================
3234
# App Configuration
3335
# =================

examples/react-native-sdk-demo-app/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const config = {
124124
authOptions: {
125125
authUrl: process.env.EXPO_PUBLIC_AUTH_URL,
126126
redirectUrl: process.env.EXPO_PUBLIC_REDIRECT_URL || "phantom-rn-demo://phantom-auth-callback",
127+
authApiBaseUrl: process.env.EXPO_PUBLIC_AUTH_API_BASE_URL,
127128
},
128129
apiBaseUrl: process.env.EXPO_PUBLIC_WALLET_API || "https://api.phantom.app/v1/wallets",
129130
debug: process.env.EXPO_PUBLIC_DEBUG === "true",

examples/react-native-sdk-demo-app/app/providers.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const config: PhantomSDKConfig = {
7171
authOptions: {
7272
authUrl: process.env.EXPO_PUBLIC_AUTH_URL,
7373
redirectUrl: process.env.EXPO_PUBLIC_REDIRECT_URL || "phantom-rn-demo://phantom-auth-callback",
74+
authApiBaseUrl: process.env.EXPO_PUBLIC_AUTH_API_BASE_URL,
7475
},
7576
apiBaseUrl: process.env.EXPO_PUBLIC_WALLET_API || "https://api.phantom.app/v1/wallets",
7677
};

examples/react-sdk-demo-app/.env.example

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,21 @@ VITE_APP_ID=xxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
1414
# Staging: https://staging-api.phantom.app/v1/wallets
1515
VITE_API_BASE_URL=https://api.phantom.app/v1/wallets
1616

17-
# Auth 2.0 is currently unstable and subject to change.
18-
VITE___UNSTABLE_AUTH_API_BASE_URL=https://auth.phantom.app
19-
VITE___UNSTABLE_AUTH_CLIENT_ID=your-auth2-client-id-here
20-
2117
# =================
2218
# Authentication Configuration
2319
# =================
2420

2521
# Authentication URL for embedded wallet (optional)
26-
# Production: https://connect.phantom.app/login
27-
# Staging: Use custom auth endpoint
22+
# Staging: https://staging-connect.phantom.app/login/start
2823
# Leave empty to use default Phantom auth
29-
VITE_AUTH_URL=https://connect.phantom.app/login
24+
VITE_AUTH_URL=https://connect.phantom.app/login/start
3025

3126
# Redirect URL after authentication (required for embedded wallet)
3227
# Must match your app's domain and be registered with Phantom
3328
VITE_REDIRECT_URL=http://localhost:5174/auth/callback
3429

30+
VITE_AUTH_API_BASE_URL=https://auth.phantom.app
31+
3532
# =================
3633
# Network Configuration
3734
# =================

examples/react-sdk-demo-app/src/App.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ function App() {
4141
apiBaseUrl: import.meta.env.VITE_API_BASE_URL || "https://api.phantom.app/v1/wallets",
4242
embeddedWalletType: "user-wallet",
4343
authOptions: {
44-
authUrl: import.meta.env.VITE_AUTH_URL || "https://connect.phantom.app/login",
44+
authUrl: import.meta.env.VITE_AUTH_URL || "https://connect.phantom.app/login/start",
4545
redirectUrl: import.meta.env.VITE_REDIRECT_URL,
46+
authApiBaseUrl: import.meta.env.VITE_AUTH_API_BASE_URL || "https://auth.phantom.app",
4647
},
47-
/** When also provided, the Auth2 PKCE flow is used instead of the legacy Phantom Connect flow. */
48-
// unstable__auth2Options: {
49-
// authApiBaseUrl: import.meta.env.VITE___UNSTABLE_AUTH_API_BASE_URL,
50-
// clientId: import.meta.env.VITE___UNSTABLE_AUTH_CLIENT_ID,
51-
// },
5248
autoConnect: true,
5349
}),
5450
[],

0 commit comments

Comments
 (0)