-
Notifications
You must be signed in to change notification settings - Fork 35
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
chore: Update web-client API and remove off/on chain references #685
Conversation
4bbd530
to
cdc5137
Compare
c7be47e
to
7357286
Compare
@@ -20,6 +20,9 @@ use crate::{ | |||
transactions::{TransactionRecord, TransactionStoreUpdate}, | |||
}; | |||
|
|||
#[cfg(not(target_arch = "wasm32"))] | |||
compile_error!("The `idxdb` feature is only supported when targeting wasm32."); |
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.
💯
crates/web-client/README.md
Outdated
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.
I think the changes in here are fine, but since I haven't paid too much attention to the docs lately, I was looking at TypeDoc to see if we can just automatically generate documentation for the SDK calls from the Typescript typings. We can even add any additional context we want as rust docs on the web client calls and it should show up in the typings .d.ts file and ultimately in the auto-generated docs. Doesn't have to be in this PR, but something to think about for a near future issue.
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.
lgtm
Also makes the
idxdb
store only compile for WASM targets