-
Notifications
You must be signed in to change notification settings - Fork 9
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
External input parsing #597
Conversation
ccd713f
to
db32487
Compare
I'm currently moving the external parsing logic to sdk-common. |
db32487
to
6b06417
Compare
|
6d13f25
to
0bb5bf1
Compare
There are some docs here on how to regenerate the React Native bindings: After running |
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'm wondering if the external input parsers could be set in the Config
and passed during the connect()
. Do you see that they could be changed during the life of the SDK instance?
@dangeross Hm.. Indeed, I don't see that need. Using the config LGTM. Wdyt @roeierez? |
Yes I am fine with using the config |
0bb5bf1
to
895e64b
Compare
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
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.
utACK
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.
Looks good! A small comment regarding default value.
@@ -335,6 +335,7 @@ dictionary Config { | |||
string? breez_api_key; | |||
string? cache_dir; | |||
u64? zero_conf_max_amount_sat; | |||
sequence<ExternalInputParser>? external_input_parsers; |
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 changes that so by default it will be null? This will create it as an optional parameter in some languages:
sequence<ExternalInputParser>? external_input_parsers = null;
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.
Applied in 3705175
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
Addresses #535.
TODO: