-
Notifications
You must be signed in to change notification settings - Fork 2
Oko-395 #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oko-395 #121
Conversation
|
@Ryz0nd Dan, could you resolve conflicts? Also, you don't have to define the API handlers for now |
|
Got it, fixing now. |
ada63ad to
18c709e
Compare
|
@eldenpark I removed the code changes in |
|
oko-sdk-sol is private now, so it won’t be published to npm. |
|
Is this ready to review? @Ryz0nd |
|
@eldenpark I’m still working on this branch. I’ll continue on the next branch and clean up the code, then ping you again. |
|
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. |
49d472b to
528a197
Compare
| }, [fetchBalance]); | ||
|
|
||
| const handleSignTransaction = async () => { | ||
| if (!okoSolWallet || !publicKey) return; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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)
Pull Request
CONTRIBUTING.mdand followed the guidelines.Summary
Links (Issue References, etc, if there's any)