1import useEthereumTransaction from 'lib/useEthereumTransaction';
2import { useCallback } from 'react';
3import { useNetwork } from 'store/network';
4import * as need from 'lib/need';
5import { conditionalSR, linearSR } from 'azimuth-js';
7export function useTransferLockup(kind: any) {
8 const { contracts }: any = useNetwork();
10 return useEthereumTransaction(
13 const _contracts = need.contracts(contracts);
14 if (kind === 'conditional') {
15 return conditionalSR.approveCommitmentTransfer(_contracts, to);
17 return linearSR.approveBatchTransfer(_contracts, to);
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