1import Maybe from 'folktale/maybe';
2import React from 'react';
3import { Row, Col, H1, P } from '../components/old/Base';
4import * as azimuth from 'azimuth-js';
5import * as ob from 'urbit-ob';
6import * as need from '../lib/need';
8import StatelessTransaction from '../components/old/StatelessTransaction';
9import { ETH_ZERO_ADDR } from '../lib/wallet';
10import { withNetwork } from '../store/network';
11import { compose } from '../lib/lib';
12import { withPointCursor } from '../store/pointCursor';
13import { withPointCache } from '../store/pointCache';
15class CancelTransfer extends React.Component {
19 const pointInTransfer = need.pointCursor(props);
23 pointInTransfer: pointInTransfer,
26 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
30 const { props } = this;
32 const validContracts = need.contracts(props);
34 const validPoint = need.pointCursor(props); //TODO this.state.pointInTransfer ?
36 const txn = azimuth.ecliptic.setTransferProxy(
42 return Maybe.Just(txn);
46 const { props, state } = this;
48 const online = Maybe.Just.hasInstance(props.web3);
51 ? props.pointCache[state.pointInTransfer].transferProxy
52 : 'any outgoing addresses';
54 // const canGenerate = validAddress === true
56 const canGenerate = true;
62 {'Cancel Transfer of '}{' '}
63 <code>{` ${ob.patp(state.pointInTransfer)} `}</code>
66 <P>{`This action will cancel the transfer to ${proxy}.`}</P>
68 canGenerate={canGenerate}
69 createUnsignedTxn={this.createUnsignedTxn}
77export default compose(
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