From 500558f4fe01abeb29a5c22e5c62d42bab36d96c Mon Sep 17 00:00:00 2001 From: thib Date: Wed, 13 May 2020 11:55:47 +0200 Subject: [PATCH 01/74] init --- packages/page-claims/src/index.tsx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/page-claims/src/index.tsx b/packages/page-claims/src/index.tsx index e1e531a42a67..9463887cbdfe 100644 --- a/packages/page-claims/src/index.tsx +++ b/packages/page-claims/src/index.tsx @@ -24,17 +24,19 @@ import translate from './translate'; enum Step { Account = 0, - Sign = 1, - Claim = 2, + SignETH = 1, + SignAttest = 2, + Claim = 3, } interface Props extends AppProps, ApiProps, I18nProps, TxModalProps {} interface State extends TxModalState { + attestSignature?: string | null; didCopy: boolean; ethereumAddress: EthereumAddress | null; + ethereumSignature?: EcdsaSignature | null; claim?: Balance | null; - signature?: EcdsaSignature | null; step: Step; } @@ -83,7 +85,7 @@ class ClaimsApp extends TxModal { claim: null, didCopy: false, ethereumAddress: null, - signature: null, + ethereumSignature: null, step: 0 }; this.state = this.defaultState; @@ -99,7 +101,7 @@ class ClaimsApp extends TxModal { public render (): React.ReactNode { const { api, systemChain = '', t } = this.props; - const { accountId, didCopy, ethereumAddress, signature, step } = this.state; + const { accountId, didCopy, ethereumAddress, ethereumSignature: signature, step } = this.state; const prefix = u8aToString(api.consts.claims.prefix.toU8a(true)); const payload = accountId @@ -132,12 +134,12 @@ class ClaimsApp extends TxModal {