-
Notifications
You must be signed in to change notification settings - Fork 120
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
Conversation
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 |
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.
Will be v0.3.0 pretty soon.
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
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. |
tested and working as expected. |
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 ofCore
andWebServer
.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 ofCoreAdapter
is modified for the newInitializeClient
syntax, which includes aseed []byte
input argument for restoring. This can benil
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 theinit
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 fordiscoverAcct
.