feat: show terms and conditions, add ens registry contract, and determine if you have enough SNT balance.

This commit is contained in:
Richard Ramos 2020-08-26 17:13:26 -04:00 committed by Iuri Matias
parent 8f1f01b6a0
commit 7df357dcf7
3 changed files with 6 additions and 1 deletions

View File

@ -162,6 +162,7 @@ proc registerUsername*(username:string, address: EthAddress, pubKey: string, pas
let response = Json.decode(responseStr, RpcResponse) let response = Json.decode(responseStr, RpcResponse)
if not response.error.isNil: if not response.error.isNil:
raise newException(RpcException, "Error registering ens-username: " & response.error.message) raise newException(RpcException, "Error registering ens-username: " & response.error.message)
result = response.result result = response.result
proc statusRegistrarAddress*():string = proc statusRegistrarAddress*():string =

View File

@ -10,6 +10,10 @@ Item {
signal backBtnClicked(); signal backBtnClicked();
signal usernameRegistered(userName: string); signal usernameRegistered(userName: string);
property string username: ""
signal backBtnClicked();
StyledText { StyledText {
id: sectionTitle id: sectionTitle
//% "ENS usernames" //% "ENS usernames"