1import React from 'react';
2import { Just } from 'folktale/maybe';
3import * as azimuth from 'azimuth-js';
4import * as ob from 'urbit-ob';
6import { H1, P } from '../components/old/Base';
7import * as need from '../lib/need';
9import StatelessTransaction from '../components/old/StatelessTransaction';
10import { ETH_ZERO_ADDR } from '../lib/wallet';
11import { withNetwork } from '../store/network';
12import { compose } from '../lib/lib';
13import { withPointCursor } from '../store/pointCursor';
14import { withPointCache } from '../store/pointCache';
15import View from 'components/View';
17class CancelTransfer extends React.Component {
21 const pointInTransfer = need.point(props.pointCursor);
25 pointInTransfer: pointInTransfer,
28 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
32 const { props } = this;
34 const validContracts = need.contracts(props.contracts);
35 const validPoint = need.point(props.pointCursor);
36 //TODO this.state.pointInTransfer ?
38 const txn = azimuth.ecliptic.setTransferProxy(
48 const { props, state } = this;
50 const online = Just.hasInstance(props.web3);
53 ? props.pointCache[state.pointInTransfer].transferProxy
54 : 'any outgoing addresses';
56 // const canGenerate = validAddress === true
58 const canGenerate = true;
63 {'Cancel Transfer of '}{' '}
64 <code>{` ${ob.patp(state.pointInTransfer)} `}</code>
67 <P>{`This action will cancel the transfer to ${proxy}.`}</P>
69 canGenerate={canGenerate}
70 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