Skip to content

Conversation

@Ryz0nd
Copy link
Contributor

@Ryz0nd Ryz0nd commented Dec 15, 2025

Pull Request

Thank you for raising a Pull Request. Please follow the instruction.

  • I’ve read CONTRIBUTING.md and followed the guidelines.

Summary

  • oko_sdk_sol

Links (Issue References, etc, if there's any)

@Ryz0nd Ryz0nd changed the title oko-sdk-sol Oko-395 Dec 15, 2025
@eldenpark
Copy link
Collaborator

This needs to be merged w/ #131 somehow @Ryz0nd

@eldenpark
Copy link
Collaborator

@Ryz0nd Dan, could you resolve conflicts? Also, you don't have to define the API handlers for now

@Ryz0nd
Copy link
Contributor Author

Ryz0nd commented Dec 19, 2025

Got it, fixing now.

@Ryz0nd
Copy link
Contributor Author

Ryz0nd commented Dec 19, 2025

@eldenpark I removed the code changes in tss-api, oko-attached, and oko-sdk-core, excluding the teddsa code.
The teddsa code was intentionally kept and renamed with a _mock suffix so that @lidarbtc can refer to it later.

@Ryz0nd Ryz0nd marked this pull request as ready for review December 19, 2025 08:00
@Ryz0nd
Copy link
Contributor Author

Ryz0nd commented Dec 19, 2025

oko-sdk-sol is private now, so it won’t be published to npm.

@eldenpark
Copy link
Collaborator

Is this ready to review? @Ryz0nd

@Ryz0nd
Copy link
Contributor Author

Ryz0nd commented Dec 22, 2025

@eldenpark I’m still working on this branch. I’ll continue on the next branch and clean up the code, then ping you again.

@Ryz0nd
Copy link
Contributor Author

Ryz0nd commented Dec 22, 2025

It's ready for review. @eldenpark

The newly added TEDDSA-related code is for reference only. Since the changes to TSS and oko-sdk-core were reverted, oko-sdk-sol and sandbox-sol are not functioning properly at the moment.

}, [fetchBalance]);

const handleSignTransaction = async () => {
if (!okoSolWallet || !publicKey) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't omit curly brackets when definining if conditional

};

const handleSendTransaction = async () => {
if (!okoSolWallet || !publicKey) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brackets

<div className={styles.balanceRow}>
<span className={styles.balanceLabel}>Balance:</span>
<span className={styles.balanceValue}>
{isLoadingBalance
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we calculate this value before returning?

LAMPORTS_PER_SOL,
} from "@solana/web3.js";
import { useSdkStore } from "@/store/sdk";
import bs58 from "bs58";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

external dep

const [error, setError] = useState<string | null>(null);

const handleSignMessage = async () => {
if (!okoSolWallet) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brackets


[dependencies]
teddsa_keplr_mock = { path = "../../teddsa_keplr_mock" }
wasm-bindgen = "0.2.100"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line will help here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, I'm taking it back

/**
* TEdDSA keygen output for a single participant
*/
export interface TeddsaKeygenOutputBytes {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Types defined in this file may later be moved to some common location (no action required as of now)

@eldenpark eldenpark merged commit b113193 into main Dec 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants