ghost-portal/packages/apps-routing/src
Thibaut Sardan 0091fc6e57
Add attestation to claims (#2734)
* init

* Attest component

* Add top notification bar

* better english

* back to 3 steps

* clean up

* in the middle of the refactoring

* Make TS pass

* Clea up some comments

* isPreclaimed

* isOldClaimProcess

* Attest vs Claim (#2737)

* Choose between Claim and Attest

* fix lint

* fix flow between claim and attest (#2738)

* Jaco's comments + Fetch StatementKind (#2741)

* Fix small bug in flow

* Add condition for the warning banner (#2742)

* prevent crash for older chains

* with useEffect

* should work

* back to something simple

* remove hoc

* fix CI

* Add ETH address field for non preclaimed addresses (#2746)

* Eth field

* fix

* remove stray logs

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/apps/src/overlays/Attest.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Show the amount of token that will be claimed (#2747)

* show amount in attest

* fix isApiReady

* fix lint

* Use counter instead of overlay (#2750)

* Use counter instead of overlay

* Add warning to claim (#2752)

* add warning

* css cleanup

* fix unused const

Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>

* Update packages/page-claims/src/Warning.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Update packages/page-claims/src/index.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* address comment shortcut

* set Ethereum address outside transfor and fix typos

* lint

* extract claims.preclaims to a hook

* address comments EthereumAddress type and avoid casting

* Missing isUnsigned

* use AddressMini in warning

* use a proper step for eth address field

* Add loading state

* remove log

* unwrapOrNull

* Update packages/page-claims/src/Warning.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* fix for account plural translation

* lint

* Add getStatement function

* nits

* Fix lint

* Update packages/page-claims/src/Warning.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* add statement

* statement component

* address comment unWrapOr

* test styling with long md

* add md to jest

* Update packages/page-claims/src/Statement.tsx

Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>

* copy text before

* lint

* Remove EthreumAddress type to avoid unexpected behaviors (#2796)

* remove EthreumAddress type

* createType when needed

* revert

* typo

* Enhance UX for claim process (#2797)

* update content

* init

* comment

* Add HTML components for statements (#2798)

* Add HTML components for statements

* Update packages/page-claims/src/statements/saft.tsx

* Update to final statements

* More nits

* Nits

* OnSuccess

* prevent display of empty statement when attested

* Small fixmes

* Update packages/page-claims/src/index.tsx

* fix isError not being red as expected

* remove word-break

* statement text in black

* attestation for -> accounc balance

* Update packages/page-claims/src/Statement.tsx

Co-authored-by: Logan Saether <x@logansaether.com>

* margin left instead of space

* I agree

* Use iframe

* update saft to QmXEkMahfhHJPzT3RjkXiZVFi77ZeVeuxtAjhojGRNYckz

* remove hash and duplications (#2814)

Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Logan Saether <x@logansaether.com>
2020-05-26 11:49:12 +02:00
..
123code.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
accounts.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
claims.ts Add attestation to claims (#2734) 2020-05-26 11:49:12 +02:00
contracts.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
council.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
dashboard.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
democracy.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
explorer.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
extrinsics.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
generic-asset.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
i18n.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
index.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
js.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
parachains.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
settings.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
society.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
staking.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
storage.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
sudo.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
techcomm.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
toolbox.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
transfer.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
treasury.ts Bumps w/ eslint (#2802) 2020-05-24 19:41:14 +02:00
types.ts Bump extension libs, allow for new signed extensions (#2748) 2020-05-14 11:28:20 +02:00