HenryNguyen5 5d4b36d453 Migrate to Typescript (#224)
* Refactor babel/types

* Refactor entry point

* Refactor actions

* Refactor api

* Full project refactor -- Broad type fixing sweep

* - completely fix merge conflicts
- handle various type errors

* Add tslint to package.json

* Dependency cleanup

* Fix module resolution

* Work on type definitions for untyped libs

* progress commit

* Add more definition typing

* various type additions

* Add unit types

* Fix sagaiterator  + unit types

* various types added

* additional type additions

* Fix typing on Sagas

* remove flowfixmes; swap translate for translateRaw

* Get rid of contracts - awaiting Henry's contract PR

* Remove contracts from routing

* Fix most of actions/reducers

* refactor actions directory structure

* fix reducer action type imports

* Fix most of type errors pre-actions refactor

* fix action creator imports in containers

* Refactor more

* Refactor index of actions

* fix action imports; use module level index export

* package-lock.json updated

* Use action types in props

* Type up action creators

* Fix most of connect errors

* Typefixing progress

* More types

* Fix run-time errors

* Caching improvements for webpack

* Remove path resolve from webpack

* Update non-breaking packages to latest version

* Fix token typing

* Remove unused color code

* Fix wallet decrypt dispatch

* Set redux-form related props/functions to ANY, since we're stripping it out later on

* Revert BigNumber.js package changes

* Extend window to custom object for Perf

* Format Navigation

* Typecase keystore errors as any (since we shouldnt touch this)

* Push wallet context fix

* - find/replace value->payload in swap
- properly type swap state properties
- extract inline reducer into reducer function

* - type local storage retrieved items as generic

* - bind all RPCClient methods with fat arrow

* - reformat

* Change to enums for constants

* Change state into any

* Fix swap errors

* ensure that seconds are passed into state as integers

* Fix rest of errors

* use parseInt explicitly instead of type coercion

* Fix derivation-checker, remove flow command, add tslint command, add tslint-react, tell travis to use tslint instead of flow.

* Whoops, remove those tests.

* Remove unsupported (yet) config option.

* Fix precommit to target ts and tsx files.

* Fix some errors, ignore some silly rules.

* Revert jest to v19, use ts-jest and make all tests typescript. Fixes all but one.

* Get rid of saga tests

* Fix tslint errors
2017-09-24 19:06:28 -07:00

129 lines
4.0 KiB
TypeScript

import { NewTabLink } from 'components/ui';
import React from 'react';
import GeneralInfoNode from './GeneralInfoNode';
import { InfoNode } from './types';
const generalInfoNodes: InfoNode[] = [
{
name: 'ensPrep',
headerContent: '1. Preparation',
innerList: [
<li key="ensPrep-1">
Decide which account you wish to own the name & ensure you have multiple
backups of that account.
</li>,
<li key="ensPrep-2">
Decide the maximum amount of ETH you are willing to pay for the name
(your <u>Bid Amount</u>). Ensure that account has enough to cover your
bid + 0.01 ETH for gas.
</li>
]
},
{
name: 'ensAuct',
headerContent: '2. Start an Auction / Place a Bid',
innerList: [
<li key="ensAuct-1">Bidding period lasts 3 days (72 hours).</li>,
<li key="ensAuct-2">
You will enter the <u>name</u>, <u>Actual Bid Amount</u>,{' '}
<u>Bid Mask</u>, which is protected by a <u>Secret Phrase</u>
</li>,
<li key="ensAuct-3">
This places your bid, but this information is kept secret until you
reveal it.
</li>
]
},
{
name: 'ensReveal',
headerContent: '3. Reveal your Bid',
innerList: [
<li key="ensReveal-1">
<strong>
If you do not reveal your bid, you will not be refunded.
</strong>
</li>,
<li key="ensReveal-2"> Reveal Period lasts 2 days (48 hours). </li>,
<li key="ensReveal-3">
You will unlock your account, enter the <u>Bid Amount</u>, and the{' '}
<u>Secret Phrase</u>.
</li>,
<li key="ensReveal-4">
In the event that two parties bid exactly the same amount, the first bid
revealed will win.
</li>
]
},
{
name: 'ensFinalize',
headerContent: '4. Finalize the Auction',
innerList: [
<li key="ensFinalize-1">
Once the auction has ended (after 5 days / 120 hours), the winner needs
to finalize the auction in order to claim their new name.
</li>,
<li key="ensFinalize-2">
The winner will be refunded the difference between their bid and the
next-highest bid. If you are the only bidder, you will refunded all but
0.01 ETH.
</li>
]
},
{
name: 'ensMore',
headerContent: 'More Information',
innerList: [
<li key="ensMore-1">
The auction for this registrar is a blind auction, and is described in
<NewTabLink
content=" EIP162"
href="https://github.com/ethereum/EIPs/issues/162"
/>
. Basically, no one can see *anything* during the auction.
</li>,
<li key="ensMore-2">
<NewTabLink
content="ENS: Read the Docs"
href="http://docs.ens.domains/en/latest/userguide.html#registering-a-name-with-the-auction-registrar"
/>
</li>,
<li key="ensMore-3">
<NewTabLink
content="Announcing the Ethereum Name Service Relaunch Date!"
href="https://medium.com/the-ethereum-name-service/announcing-the-ethereum-name-service-relaunch-date-4390af6dd9a2"
/>
</li>
]
}
];
const GeneralInfoList = () =>
<section>
{generalInfoNodes.map((data: InfoNode) =>
<GeneralInfoNode key={data.name} {...data} />
)}
</section>;
export const GeneralInfoPanel = () =>
<article className="block">
<div className="cont-md">
<h4> What is the process like? </h4>
<GeneralInfoList />
<h6>
<NewTabLink
content="Help Center: ENS"
href="https://myetherwallet.groovehq.com/knowledge_base/categories/ens"
/>
&nbsp;&middot;&nbsp;
<NewTabLink
content="Debugging a [BAD INSTRUCTION] Reveal"
href="https://myetherwallet.groovehq.com/knowledge_base/topics/debugging-a-bad-instruction-reveal"
/>
</h6>
<p>
Please try the above before relying on support for reveal issues as we
are severely backlogged on support tickets. We're so sorry. :(
</p>
</div>
</article>;