1import Maybe from 'folktale/maybe';
2import React from 'react';
3import { 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';
14import View from 'components/View';
16class CancelTransfer extends React.Component {
20 const pointInTransfer = need.point(props.pointCursor);
24 pointInTransfer: pointInTransfer,
27 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
31 const { props } = this;
33 const validContracts = need.contracts(props.contracts);
34 const validPoint = need.point(props.pointCursor);
35 //TODO this.state.pointInTransfer ?
37 const txn = azimuth.ecliptic.setTransferProxy(
43 return Maybe.Just(txn);
47 const { props, state } = this;
49 const online = Maybe.Just.hasInstance(props.web3);
52 ? props.pointCache[state.pointInTransfer].transferProxy
53 : 'any outgoing addresses';
55 // const canGenerate = validAddress === true
57 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}
76export 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