-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥳[Feature] Unstoppable ext update (#11)
* WIP: DNC Dropped in the UD code prior to testing * Added study link * Fix unstoppable domains dependency * Updated the UD ext text WIP::::Need to refactor once UK and deletion on SV, NL, DA * added UK lang Co-authored-by: Victor Sima <[email protected]>
- Loading branch information
Showing
17 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,11 @@ import com.unstoppabledomains.resolution.Resolution | |
import com.unstoppabledomains.resolution.naming.service.NamingServiceType | ||
import timber.log.Timber | ||
|
||
|
||
/** Litewallet | ||
* Created by Mohamed Barry on 12/23/20 | ||
* email: [email protected] | ||
* Copyright © 2020 Litecoin Foundation. All rights reserved. | ||
*/ | ||
data class ResolutionResult(val error: NamingServiceException?, val address: String?) | ||
|
||
class UDResolution { | ||
private val tool: DomainResolution = Resolution.builder() | ||
.infura(NamingServiceType.CNS, Network.MAINNET, BuildConfig.INFURA_KEY) | ||
// .infura(NamingServiceType.CNS, Network.MAINNET, BuildConfig.INFURA_KEY) | ||
.build() | ||
|
||
fun resolve(domain: String): ResolutionResult { | ||
|
@@ -29,4 +23,23 @@ class UDResolution { | |
ResolutionResult(err, null) | ||
} | ||
} | ||
} | ||
} | ||
|
||
//https://github.com/unstoppabledomains/resolution-java/blob/master/samples.md | ||
//data class ResolutionResult(val error: NamingServiceException?, val address: String?) {} | ||
// | ||
//class AsyncResolution : AsyncTask<String, String, ResolutionResult>() { | ||
// private val tool: DomainResolution = Resolution() | ||
// | ||
// override fun doInBackground(vararg params: String?): ResolutionResult { | ||
// val domain = params[0] | ||
// val currency = params[1] | ||
// return try { | ||
// val address = this.tool.addr(domain, currency) | ||
// ResolutionResult(null, address) | ||
// } catch(err: NamingServiceException) { | ||
// err.printStackTrace(); | ||
// ResolutionResult(err, null) | ||
// } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters