View on GitHub
File Changes
  ): Promise<TransferFundsResponse> => {
    const { sourceWalletId, targetWalletId, passphrase } = request;
    Logger.debug('AdaApi::transferFunds called', {
-
      parameters: { sourceWalletId, targetWalletId, passphrase },
+
      parameters: { sourceWalletId, targetWalletId },
    });

                      
    try {
    block: Block,
  },
  pending_since?: {
-
    time: '2019-11-06T19:36:27.243Z',
+
    time: Date,
    block: Block,
  },
  depth: {
  direction: 'incoming' | 'outgoing',
  inputs: Array<Input>,
  outputs: Array<Output>,
-
  status: 'pending' | 'in_ledger' | 'invalidated',
+
  status: 'pending' | 'in_ledger',
};
  },
});

                      
-
type DelegationWalletData = $Shape<Wallet>;
-

                      
type Props = {
  onClose: Function,
  onSelectWallet: Function,
  onBack: Function,
-
  wallets: Array<DelegationWalletData>,
+
  wallets: Array<Wallet>,
  stepsList: Array<string>,
  minDelegationFunds: number,
  selectedWalletId: string,
      isWalletAcceptable,
    } = this.props;

                      
-
    const selectedWallet: DelegationWalletData =
+
    const selectedWallet: ?Wallet =
      wallets.find(
-
        (wallet: DelegationWalletData) =>
-
          wallet && wallet.id === selectedWalletId
-
      ) || {};
-
    const { amount } = selectedWallet;
+
        (wallet: Wallet) => wallet && wallet.id === selectedWalletId
+
      ) || null;
+
    const amount = selectedWallet ? selectedWallet.amount : null;
    const isAcceptableSetupWallet = amount && isWalletAcceptable(amount);
    const actions = [
      {

                      
import { CATEGORIES_BY_NAME } from '../../source/renderer/app/config/sidebarConfig';

                      
+
import { generateWallet } from './support/utils';
+

                      
import StakingWithNavigation from '../../source/renderer/app/components/staking/layouts/StakingWithNavigation';
import StakingCountdown from '../../source/renderer/app/components/staking/countdown/StakingCountdown';
import StakingInfo from '../../source/renderer/app/components/staking/info/StakingInfo';
};

                      
const WALLETS = [
-
  {
-
    id: '1',
-
    amount: 1,
-
    name: 'First Wallet',
-
  },
-
  {
-
    id: '2',
-
    amount: 2,
-
    name: 'Second Wallet',
-
  },
-
  {
-
    id: '3',
-
    amount: 0.0001,
-
    name: 'Third Wallet',
-
  },
+
  generateWallet('First Wallet', '1'),
+
  generateWallet('Second Wallet', '2'),
+
  generateWallet('Third Wallet', '0.0001'),
];

                      
const locales = {