Skip to content
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

libdexc: update for dex 0.3 #3549

Merged
merged 3 commits into from
Oct 13, 2021
Merged

libdexc: update for dex 0.3 #3549

merged 3 commits into from
Oct 13, 2021

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Sep 1, 2021

This updates for the changes in the dcrdex/client APIs from 0.2 to 0.3.

This also prepares the CoreAdapter for a language to be specified on construction of Core and WebServer.

Firstly, note that "localized_html" folder is used instead of the "templates" folder from 0.2. These are not in the PR, but if testing do grab the localized_html folders and put them in the "site" directory.

The init method of CoreAdapter is modified for the new InitializeClient syntax, which includes a seed []byte input argument for restoring. This can be nil to generate fresh account keys (what previously happened). Given new "restore from seed?" dialogs, DEX accounts may be restored from seed.

A new method, (*CoreAdapter).discoverAcct, is created for use when and if the init call is updated with an optional restoration seed. This would be used to improve UX when discovering existing paid DEX accounts as described in the docs for discoverAcct.

go.mod Outdated
@@ -3,7 +3,7 @@ module github.com/decred/decrediton
go 1.16

require (
decred.org/dcrdex v0.2.0
decred.org/dcrdex v0.0.0-20210831153144-015961e12930
Copy link
Member Author

Choose a reason for hiding this comment

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

Will be v0.3.0 pretty soon.

app/main_dev/launch.js Outdated Show resolved Hide resolved
This updates for the changes in the dcrdex/client APIs.

This also prepares the CoreAdapter for a language to be specified on
construction of Core and WebServer.

The init method of CoreAdapter is modified for the new InitializeClient
syntax, which includes a seed []byte input argument for restoring.
This can be nil to generate fresh account keys.  Given new "restore from
seed?" dialogs, DEX accounts may be restored from seed.

A new method, (*CoreAdapter).discoverAcct, is created for use when and
if the init call is updated with an optional restoration seed. This
would be used to improve UX when discovering existing paid DEX accounts
as described in the docs for discoverAcct.

app: set DEX locale
@chappjc chappjc marked this pull request as ready for review October 11, 2021 18:43
@chappjc
Copy link
Member Author

chappjc commented Oct 11, 2021

The ubuntu-latest virtual environment used by github actions appears to use the Go 1.15 toolset by default, which won't compile the libdexc module. https://github.com/actions/virtual-environments/blob/b9c994fd6caaeb84739c882ed50b7c6288030de2/images/linux/toolsets/toolset-2004.json#L51

I added a commit to configure Go 1.16 so it can build.

@alexlyp
Copy link
Member

alexlyp commented Oct 13, 2021

tested and working as expected.

@alexlyp alexlyp merged commit cb9715b into decred:master Oct 13, 2021
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