MyCrypto/common/containers/Tabs/ENS/components/GeneralInfoPanel/index.tsx

117 lines
3.9 KiB
TypeScript
Raw Normal View History

import { NewTabLink } from 'components/ui';
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-25 02:06:28 +00:00
import React from 'react';
import GeneralInfoNode from './GeneralInfoNode';
2018-01-20 20:06:28 +00:00
import { knowledgeBaseURL } from 'config';
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-25 02:06:28 +00:00
import { InfoNode } from './types';
const generalInfoNodes: InfoNode[] = [
{
name: 'ensPrep',
headerContent: '1. Preparation',
innerList: [
<li key="ensPrep-1">
2017-12-06 23:04:57 +00:00
Decide which account you wish to own the name & ensure you have multiple backups of that
account.
</li>,
<li key="ensPrep-2">
2017-12-06 23:04:57 +00:00
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">
2017-12-06 23:04:57 +00:00
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">
2017-12-06 23:04:57 +00:00
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">
2017-12-06 23:04:57 +00:00
<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">
2017-12-06 23:04:57 +00:00
You will unlock your account, enter the <u>Bid Amount</u>, and the <u>Secret Phrase</u>.
</li>,
<li key="ensReveal-4">
2017-12-06 23:04:57 +00:00
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">
2017-12-06 23:04:57 +00:00
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">
2017-12-06 23:04:57 +00:00
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
2017-12-06 23:04:57 +00:00
<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="https://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>
]
}
];
2017-12-06 23:04:57 +00:00
const GeneralInfoList = () => (
<section>
2017-12-06 23:04:57 +00:00
{generalInfoNodes.map((data: InfoNode) => <GeneralInfoNode key={data.name} {...data} />)}
</section>
);
2017-12-06 23:04:57 +00:00
export const GeneralInfoPanel = () => (
<article className="block">
<div className="cont-md">
<h4> What is the process like? </h4>
<GeneralInfoList />
<h6>
2017-12-06 23:04:57 +00:00
<NewTabLink content="Help Center: ENS" href={`${knowledgeBaseURL}/ens`} />
&nbsp;&middot;&nbsp;
<NewTabLink
content="Debugging a [BAD INSTRUCTION] Reveal"
2017-12-06 23:04:57 +00:00
href={`${knowledgeBaseURL}/ens/ens-debugging-a-bad-instruction-reveal`}
/>
</h6>
<p>
2017-12-06 23:04:57 +00:00
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>
2017-12-06 23:04:57 +00:00
</article>
);