Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
406da7a
Adding WIP code
DKelle Oct 17, 2025
0962b57
now using existing getOrg method, instead of reimplementing
DKelle Oct 17, 2025
003f78d
Merge branch 'main' into dallas/wp-7398-sdk-can-query-a-users-spendin…
DKelle Oct 22, 2025
2959a2e
SDK can query for lighthouse instructions from wallet service
DKelle Oct 30, 2025
eff3c9b
Fixing merge
DKelle Oct 30, 2025
822a388
adding tests
DKelle Oct 30, 2025
8c6fa65
Cleaning code
DKelle Oct 30, 2025
d86e93a
Now getting the correct user from the org based on authenticators
DKelle Nov 1, 2025
bb77438
Removing debug logging
DKelle Nov 1, 2025
655cb9a
Moving getOrg call out of SDK, and using internal getOrg in wallet se…
DKelle Nov 3, 2025
8ace4f2
Merge branch 'main' into dallas/wp-7650-sdk-should-request-instructio…
DKelle Nov 3, 2025
bdad9ae
No longer expecting failure when user has no spending limit
DKelle Nov 4, 2025
b11a261
Fixing lints
DKelle Nov 4, 2025
b2e912b
Do not send submission config or check
rafinskipg Nov 4, 2025
668ee85
fix tests
rafinskipg Nov 4, 2025
661d7c0
Restore submission config
rafinskipg Nov 4, 2025
0e5cfce
Merge pull request #313 from phantom/chore/do-not-send-submissionconf…
rafinskipg Nov 4, 2025
eae3845
fix test
rafinskipg Nov 4, 2025
13b656f
check server-sdk and client-sdk
rafinskipg Nov 4, 2025
e864147
check server-sdk and client-sdk
rafinskipg Nov 4, 2025
1a5cb6e
check server-sdk and client-sdk
rafinskipg Nov 4, 2025
4eb885c
check server-sdk and client-sdk
rafinskipg Nov 4, 2025
3007aca
Changing endpoint name
DKelle Nov 5, 2025
5e6078e
Changing request path
DKelle Nov 8, 2025
c7cfa70
Removing spendingLimitConfig, and renaming endpoint
DKelle Nov 13, 2025
cad4b0c
Addressing some comments
DKelle Nov 14, 2025
465b711
merged with main
rafinskipg Nov 17, 2025
271580d
fix test
rafinskipg Nov 17, 2025
870f9d4
move wallet type to constructor
rafinskipg Nov 17, 2025
b7f7a5b
rename prepareTransaction to prepare
rafinskipg Nov 17, 2025
35f48fd
rename prepareTransaction to prepare
rafinskipg Nov 17, 2025
f987193
Change code sdk actions to send amount
rafinskipg Nov 17, 2025
dac9538
fixes
rafinskipg Nov 17, 2025
4426621
Merge branch 'main' into dallas/wp-7650-sdk-should-request-instructio…
rafinskipg Nov 17, 2025
3ae0399
Rename to prepare
rafinskipg Nov 17, 2025
36bbccd
Merge branch 'dallas/wp-7650-sdk-should-request-instruction-injection…
rafinskipg Nov 17, 2025
6fcdbe0
prettier
rafinskipg Nov 17, 2025
72e9c68
Feedback from pr
rafinskipg Nov 18, 2025
7cfc27f
Feedback from pr
rafinskipg Nov 18, 2025
30094c0
refactor
rafinskipg Nov 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions examples/react-sdk-demo-app/src/SDKActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function SDKActions() {
const [isStakingSol, setIsStakingSol] = useState(false);
const [isSendingCustomSol, setIsSendingCustomSol] = useState(false);
const [customSolAmount, setCustomSolAmount] = useState("");
const [customSolDestination, setCustomSolDestination] = useState("8dvUxPRHyHGw9W68yP73GkXCjBCjRJuLrANj9n1SXRGb");
const [isSendingEthMainnet, setIsSendingEthMainnet] = useState(false);
const [isSendingPolygon, setIsSendingPolygon] = useState(false);

Expand Down Expand Up @@ -278,7 +279,7 @@ export function SDKActions() {
const transferInstruction = SystemProgram.transfer({
fromPubkey: new PublicKey(solanaAddress),
toPubkey: new PublicKey(solanaAddress), // Self-transfer for demo
lamports: 1000, // Very small amount: 0.000001 SOL
lamports: 3500000, // small amount: 0.0035 SOL
});

const messageV0 = new TransactionMessage({
Expand Down Expand Up @@ -472,8 +473,14 @@ export function SDKActions() {
// Get recent blockhash
const { blockhash } = await connection.getLatestBlockhash();

// Target address
const targetAddress = new PublicKey("8dvUxPRHyHGw9W68yP73GkXCjBCjRJuLrANj9n1SXRGb");
// Target address (user-provided)
let targetAddress: PublicKey;
try {
targetAddress = new PublicKey(customSolDestination);
} catch (e) {
alert("Please enter a valid Solana address for the destination.");
return;
}

// USDC mint address (mainnet)
const usdcMint = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
Expand Down Expand Up @@ -1046,6 +1053,13 @@ export function SDKActions() {
onChange={e => setCustomSolAmount(e.target.value)}
className="sol-input"
/>
<input
type="text"
placeholder="Destination Solana address"
value={customSolDestination}
onChange={e => setCustomSolDestination(e.target.value)}
className="sol-input"
/>
<button
onClick={onSendCustomSol}
disabled={!isConnected || isSendingCustomSol || !hasSolanaBalance || !customSolAmount}
Expand Down
Loading
Loading