1import React from 'react'
2import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base'
3import { Button } from '../components/Base'
5import { ROUTE_NAMES } from '../lib/router'
6import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
7import { NETWORK_NAMES } from '../lib/network'
9const Success = (props) => {
12 props.networkType === NETWORK_NAMES.ROPSTEN ||
13 props.networkType === NETWORK_NAMES.MAINNET
16 props.networkType === NETWORK_NAMES.ROPSTEN
17 ? "ropsten.etherscan.io"
22 ? "If you’d like to keep track of it, click the Etherscan link below."
29 className={'mb-4 mt-1'}
32 href={`https://${esdomain}/tx/${props.hash}`}>
33 {'View on Etherscan ↗'}
39 <H1>{ 'Your Transaction was Sent' }</H1>
43 `We sent your transaction to the chain. It can take some time to
44 execute, especially if the network is busy. ${esmessage}`
48 <H3>{ 'Transaction Hash' }</H3>
60const Failure = (props) =>
70 'There was an error sending your transaction.'
73 { renderTxnError(props.web3, props.message) }
78const SentTransaction = (props) => {
79 const { web3, txnHashCursor, networkType, popRoute, pushRoute } = props
80 const { setPointCursor, pointCursor } = props
82 const promptKeyfile = props.routeData && props.routeData.promptKeyfile
84 const w3 = web3.matchWith({
85 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
86 Just: res => res.value
89 const result = txnHashCursor.matchWith({
90 Nothing: _ => { throw BRIDGE_ERROR.MISSING_TXN },
91 Just: res => res.value
94 const body = result.matchWith({
95 Error: message => <Failure web3={ w3 } message={ message.value } />,
99 networkType={ networkType }
110 setPointCursor(pointCursor)
130 pushRoute(ROUTE_NAMES.GEN_KEYFILE)
133 { 'Download Keyfile →' }
149export default SentTransaction
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list