fix plural for components folder in safe router
This commit is contained in:
parent
e8a43da257
commit
511a251ad2
|
@ -4,7 +4,9 @@ import Field from '~/components/forms/Field'
|
||||||
import OpenPaper from '~/components/Stepper/OpenPaper'
|
import OpenPaper from '~/components/Stepper/OpenPaper'
|
||||||
import TextField from '~/components/forms/TextField'
|
import TextField from '~/components/forms/TextField'
|
||||||
import Checkbox from '~/components/forms/Checkbox'
|
import Checkbox from '~/components/forms/Checkbox'
|
||||||
import { composeValidators, required, mustBeEthereumAddress, uniqueAddress } from '~/components/forms/validator'
|
import {
|
||||||
|
composeValidators, required, mustBeEthereumAddress, uniqueAddress,
|
||||||
|
} from '~/components/forms/validator'
|
||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
|
|
||||||
|
@ -27,7 +29,7 @@ export const safeFieldsValidation = (values: Object) => {
|
||||||
type Props = {
|
type Props = {
|
||||||
numOwners: number,
|
numOwners: number,
|
||||||
threshold: number,
|
threshold: number,
|
||||||
addresses: string[]
|
addresses: string[],
|
||||||
}
|
}
|
||||||
|
|
||||||
const AddOwnerForm = ({ addresses, numOwners, threshold }: Props) => (controls: React$Node) => (
|
const AddOwnerForm = ({ addresses, numOwners, threshold }: Props) => (controls: React$Node) => (
|
||||||
|
@ -59,11 +61,7 @@ const AddOwnerForm = ({ addresses, numOwners, threshold }: Props) => (controls:
|
||||||
/>
|
/>
|
||||||
</Block>
|
</Block>
|
||||||
<Block margin="md">
|
<Block margin="md">
|
||||||
<Field
|
<Field name={INCREASE_PARAM} component={Checkbox} type="checkbox" />
|
||||||
name={INCREASE_PARAM}
|
|
||||||
component={Checkbox}
|
|
||||||
type="checkbox"
|
|
||||||
/>
|
|
||||||
<Block>Increase threshold?</Block>
|
<Block>Increase threshold?</Block>
|
||||||
</Block>
|
</Block>
|
||||||
</OpenPaper>
|
</OpenPaper>
|
|
@ -6,7 +6,7 @@ import Block from '~/components/layout/Block'
|
||||||
import Bold from '~/components/layout/Bold'
|
import Bold from '~/components/layout/Bold'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from '~/routes/safe/component/AddOwner/AddOwnerForm'
|
import { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from '~/routes/safe/components/AddOwner/AddOwnerForm'
|
||||||
|
|
||||||
type FormProps = {
|
type FormProps = {
|
||||||
values: Object,
|
values: Object,
|
|
@ -5,7 +5,7 @@ import Stepper from '~/components/Stepper'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { type Safe } from '~/routes/safe/store/models/safe'
|
import { type Safe } from '~/routes/safe/store/models/safe'
|
||||||
import { type Owner, makeOwner } from '~/routes/safe/store/models/owner'
|
import { type Owner, makeOwner } from '~/routes/safe/store/models/owner'
|
||||||
import { setOwners } from '~/utils/storage'
|
import { setOwners } from '~/logic/safe/utils'
|
||||||
import { getSafeEthereumInstance, createTransaction } from '~/logic/safe/safeFrontendOperations'
|
import { getSafeEthereumInstance, createTransaction } from '~/logic/safe/safeFrontendOperations'
|
||||||
import AddOwnerForm, { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from './AddOwnerForm'
|
import AddOwnerForm, { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from './AddOwnerForm'
|
||||||
import Review from './Review'
|
import Review from './Review'
|
|
@ -8,7 +8,7 @@ import IconButton from '@material-ui/core/IconButton'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import Hairline from '~/components/layout/Hairline'
|
import Hairline from '~/components/layout/Hairline'
|
||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import TokenList from '~/routes/safe/component/Balances/Tokens/screens/TokenList'
|
import TokenList from '~/routes/safe/components/Balances/Tokens/screens/TokenList'
|
||||||
import { type Token } from '~/logic/tokens/store/model/token'
|
import { type Token } from '~/logic/tokens/store/model/token'
|
||||||
import actions, { type Actions } from './actions'
|
import actions, { type Actions } from './actions'
|
||||||
import { styles } from './style'
|
import { styles } from './style'
|
|
@ -20,7 +20,7 @@ import Spacer from '~/components/Spacer'
|
||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import { ETH_ADDRESS } from '~/logic/tokens/utils/tokenHelpers'
|
import { ETH_ADDRESS } from '~/logic/tokens/utils/tokenHelpers'
|
||||||
import { type Token } from '~/logic/tokens/store/model/token'
|
import { type Token } from '~/logic/tokens/store/model/token'
|
||||||
import { setImageToPlaceholder } from '~/routes/safe/component/Balances/utils'
|
import { setImageToPlaceholder } from '~/routes/safe/components/Balances/utils'
|
||||||
import { styles } from './style'
|
import { styles } from './style'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -1,5 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import TokenPlaceholder from '~/routes/safe/component/Balances/assets/token_placeholder.svg'
|
import TokenPlaceholder from '~/routes/safe/components/Balances/assets/token_placeholder.svg'
|
||||||
|
|
||||||
export const setImageToPlaceholder = (e) => {
|
export const setImageToPlaceholder = (e) => {
|
||||||
e.target.onerror = null
|
e.target.onerror = null
|
|
@ -19,28 +19,30 @@ type Props = {
|
||||||
|
|
||||||
const RemoveOwnerForm = ({
|
const RemoveOwnerForm = ({
|
||||||
numOwners, threshold, name, disabled, pendingTransactions,
|
numOwners, threshold, name, disabled, pendingTransactions,
|
||||||
}: Props) => (controls: React$Node) => (
|
}: Props) => (
|
||||||
|
controls: React$Node,
|
||||||
|
) => (
|
||||||
<OpenPaper controls={controls}>
|
<OpenPaper controls={controls}>
|
||||||
<Heading tag="h2" margin="lg">
|
<Heading tag="h2" margin="lg">
|
||||||
Remove Owner { !!name && name }
|
Remove Owner
|
||||||
|
{' '}
|
||||||
|
{!!name && name}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Heading tag="h4" margin="lg">
|
<Heading tag="h4" margin="lg">
|
||||||
{`Actual number of owners: ${numOwners}, threhsold of safe: ${threshold}`}
|
{`Actual number of owners: ${numOwners}, threhsold of safe: ${threshold}`}
|
||||||
</Heading>
|
</Heading>
|
||||||
{ pendingTransactions &&
|
{pendingTransactions && (
|
||||||
<SnackbarContent
|
<SnackbarContent
|
||||||
variant="warning"
|
variant="warning"
|
||||||
message="Be careful removing an owner might incur in some of the pending transactions could never be executed"
|
message="Be careful removing an owner might incur in some of the pending transactions could never be executed"
|
||||||
/>
|
/>
|
||||||
}
|
)}
|
||||||
<Block margin="md">
|
<Block margin="md">
|
||||||
<Field
|
<Field name={DECREASE_PARAM} component={Checkbox} type="checkbox" disabled={disabled} />
|
||||||
name={DECREASE_PARAM}
|
<Block>
|
||||||
component={Checkbox}
|
{disabled && '(disabled) '}
|
||||||
type="checkbox"
|
Decrease threshold?
|
||||||
disabled={disabled}
|
</Block>
|
||||||
/>
|
|
||||||
<Block>{disabled && '(disabled) '}Decrease threshold?</Block>
|
|
||||||
</Block>
|
</Block>
|
||||||
</OpenPaper>
|
</OpenPaper>
|
||||||
)
|
)
|
|
@ -6,7 +6,7 @@ import OpenPaper from '~/components/Stepper/OpenPaper'
|
||||||
import Bold from '~/components/layout/Bold'
|
import Bold from '~/components/layout/Bold'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import { DECREASE_PARAM } from '~/routes/safe/component/RemoveOwner/RemoveOwnerForm'
|
import { DECREASE_PARAM } from '~/routes/safe/components/RemoveOwner/RemoveOwnerForm'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
name: string,
|
name: string,
|
|
@ -11,8 +11,8 @@ const pendingTransactionsSelector = createSelector(
|
||||||
)
|
)
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
executor: userAccountSelector,
|
executor: typeof userAccountSelector,
|
||||||
pendingTransactions: pendingTransactionsSelector,
|
pendingTransactions: typeof pendingTransactionsSelector,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStructuredSelector({
|
export default createStructuredSelector({
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
@ -11,11 +11,11 @@ import Row from '~/components/layout/Row'
|
||||||
import { type Safe } from '~/routes/safe/store/models/safe'
|
import { type Safe } from '~/routes/safe/store/models/safe'
|
||||||
import { type Token } from '~/logic/tokens/store/model/token'
|
import { type Token } from '~/logic/tokens/store/model/token'
|
||||||
|
|
||||||
import Transactions from '~/routes/safe/component/Transactions'
|
import Transactions from '~/routes/safe/components/Transactions'
|
||||||
import Threshold from '~/routes/safe/component/Threshold'
|
import Threshold from '~/routes/safe/components/Threshold'
|
||||||
import AddOwner from '~/routes/safe/component/AddOwner'
|
import AddOwner from '~/routes/safe/components/AddOwner'
|
||||||
import RemoveOwner from '~/routes/safe/component/RemoveOwner'
|
import RemoveOwner from '~/routes/safe/components/RemoveOwner'
|
||||||
import SendToken from '~/routes/safe/component/SendToken'
|
import SendToken from '~/routes/safe/components/SendToken'
|
||||||
|
|
||||||
import Address from './Address'
|
import Address from './Address'
|
||||||
import BalanceInfo from './BalanceInfo'
|
import BalanceInfo from './BalanceInfo'
|
|
@ -6,7 +6,7 @@ import Bold from '~/components/layout/Bold'
|
||||||
import OpenPaper from '~/components/Stepper/OpenPaper'
|
import OpenPaper from '~/components/Stepper/OpenPaper'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import { TKN_DESTINATION_PARAM, TKN_VALUE_PARAM } from '~/routes/safe/component/SendToken/SendTokenForm/index'
|
import { TKN_DESTINATION_PARAM, TKN_VALUE_PARAM } from '~/routes/safe/components/SendToken/SendTokenForm/index'
|
||||||
|
|
||||||
type FormProps = {
|
type FormProps = {
|
||||||
values: Object,
|
values: Object,
|
|
@ -7,7 +7,7 @@ import { sleep } from '~/utils/timer'
|
||||||
import { type Safe } from '~/routes/safe/store/models/safe'
|
import { type Safe } from '~/routes/safe/store/models/safe'
|
||||||
import { getStandardTokenContract } from '~/logic/tokens/store/actions/fetchTokens'
|
import { getStandardTokenContract } from '~/logic/tokens/store/actions/fetchTokens'
|
||||||
import { type Token } from '~/logic/tokens/store/model/token'
|
import { type Token } from '~/logic/tokens/store/model/token'
|
||||||
import { isEther } from '~/logic/tokens/utils/tokens'
|
import { isEther } from '~/logic/tokens/utils/tokenHelpers'
|
||||||
import { EMPTY_DATA } from '~/logic/wallets/ethTransactions'
|
import { EMPTY_DATA } from '~/logic/wallets/ethTransactions'
|
||||||
import { toNative } from '~/logic/wallets/tokens'
|
import { toNative } from '~/logic/wallets/tokens'
|
||||||
import { createTransaction, getSafeEthereumInstance } from '~/logic/safe/safeFrontendOperations'
|
import { createTransaction, getSafeEthereumInstance } from '~/logic/safe/safeFrontendOperations'
|
|
@ -3,9 +3,9 @@ import { createStructuredSelector } from 'reselect'
|
||||||
import { userAccountSelector } from '~/logic/wallets/store/selectors'
|
import { userAccountSelector } from '~/logic/wallets/store/selectors'
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
userAddress: userAccountSelector,
|
userAddress: typeof userAccountSelector,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStructuredSelector({
|
export default createStructuredSelector<Object, *>({
|
||||||
userAddress: userAccountSelector,
|
userAddress: userAccountSelector,
|
||||||
})
|
})
|
|
@ -6,7 +6,7 @@ import Bold from '~/components/layout/Bold'
|
||||||
import OpenPaper from '~/components/Stepper/OpenPaper'
|
import OpenPaper from '~/components/Stepper/OpenPaper'
|
||||||
import Heading from '~/components/layout/Heading'
|
import Heading from '~/components/layout/Heading'
|
||||||
import Paragraph from '~/components/layout/Paragraph'
|
import Paragraph from '~/components/layout/Paragraph'
|
||||||
import { THRESHOLD_PARAM } from '~/routes/safe/component/Threshold/ThresholdForm'
|
import { THRESHOLD_PARAM } from '~/routes/safe/components/Threshold/ThresholdForm'
|
||||||
|
|
||||||
type FormProps = {
|
type FormProps = {
|
||||||
values: Object,
|
values: Object,
|
|
@ -1,10 +1,8 @@
|
||||||
// @flow
|
// @flow
|
||||||
import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
|
import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
|
||||||
|
|
||||||
type FetchTransactions = typeof fetchTransactions
|
|
||||||
|
|
||||||
export type Actions = {
|
export type Actions = {
|
||||||
fetchTransactions: FetchTransactions,
|
fetchTransactions: typeof fetchTransactions,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
|
@ -3,9 +3,9 @@ import { createStructuredSelector } from 'reselect'
|
||||||
import { userAccountSelector } from '~/logic/wallets/store/selectors'
|
import { userAccountSelector } from '~/logic/wallets/store/selectors'
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
userAddress: userAccountSelector,
|
userAddress: typeof userAccountSelector,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStructuredSelector({
|
export default createStructuredSelector<Object, *>({
|
||||||
userAddress: userAccountSelector,
|
userAddress: userAccountSelector,
|
||||||
})
|
})
|
|
@ -15,7 +15,7 @@ import AttachMoney from '@material-ui/icons/AttachMoney'
|
||||||
import Atm from '@material-ui/icons/LocalAtm'
|
import Atm from '@material-ui/icons/LocalAtm'
|
||||||
import DoneAll from '@material-ui/icons/DoneAll'
|
import DoneAll from '@material-ui/icons/DoneAll'
|
||||||
import CompareArrows from '@material-ui/icons/CompareArrows'
|
import CompareArrows from '@material-ui/icons/CompareArrows'
|
||||||
import Collapsed from '~/routes/safe/component/Transactions/Collapsed'
|
import Collapsed from '~/routes/safe/components/Transactions/Collapsed'
|
||||||
import { type Transaction } from '~/routes/safe/store/models/transaction'
|
import { type Transaction } from '~/routes/safe/store/models/transaction'
|
||||||
import Hairline from '~/components/layout/Hairline/index'
|
import Hairline from '~/components/layout/Hairline/index'
|
||||||
import Button from '~/components/layout/Button'
|
import Button from '~/components/layout/Button'
|
|
@ -7,8 +7,8 @@ import { type GlobalState } from '~/store'
|
||||||
import { type Confirmation } from '~/routes/safe/store/models/confirmation'
|
import { type Confirmation } from '~/routes/safe/store/models/confirmation'
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
confirmed: confirmationsTransactionSelector,
|
confirmed: typeof confirmationsTransactionSelector,
|
||||||
userAddress: userAccountSelector,
|
userAddress: typeof userAccountSelector,
|
||||||
executionHash: string,
|
executionHash: string,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ const transactionHashSector = (state: GlobalState, props: TxProps) => {
|
||||||
return executedConf ? executedConf.get('hash') : undefined
|
return executedConf ? executedConf.get('hash') : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStructuredSelector({
|
export default createStructuredSelector<Object, *>({
|
||||||
executionHash: transactionHashSector,
|
executionHash: transactionHashSector,
|
||||||
confirmed: confirmationsTransactionSelector,
|
confirmed: confirmationsTransactionSelector,
|
||||||
userAddress: userAccountSelector,
|
userAddress: userAccountSelector,
|
|
@ -3,8 +3,8 @@ import * as React from 'react'
|
||||||
import { List } from 'immutable'
|
import { List } from 'immutable'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import { type Transaction } from '~/routes/safe/store/models/transaction'
|
import { type Transaction } from '~/routes/safe/store/models/transaction'
|
||||||
import NoTransactions from '~/routes/safe/component/Transactions/NoTransactions'
|
import NoTransactions from '~/routes/safe/components/Transactions/NoTransactions'
|
||||||
import GnoTransaction from '~/routes/safe/component/Transactions/Transaction'
|
import GnoTransaction from '~/routes/safe/components/Transactions/Transaction'
|
||||||
import { sameAddress } from '~/logic/wallets/ethAddresses'
|
import { sameAddress } from '~/logic/wallets/ethAddresses'
|
||||||
import { type Confirmation } from '~/routes/safe/store/models/confirmation'
|
import { type Confirmation } from '~/routes/safe/store/models/confirmation'
|
||||||
import { processTransaction } from '~/logic/safe/safeFrontendOperations'
|
import { processTransaction } from '~/logic/safe/safeFrontendOperations'
|
||||||
|
@ -19,7 +19,9 @@ type Props = SelectorProps & Actions & {
|
||||||
}
|
}
|
||||||
class Transactions extends React.Component<Props, {}> {
|
class Transactions extends React.Component<Props, {}> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.props.fetchTransactions(this.props.safeAddress)
|
const { fetchTransactions, safeAddress } = this.props
|
||||||
|
|
||||||
|
fetchTransactions(safeAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
onProcessTx = async (tx: Transaction, alreadyConfirmed: number) => {
|
onProcessTx = async (tx: Transaction, alreadyConfirmed: number) => {
|
|
@ -7,10 +7,10 @@ import { userAccountSelector } from '~/logic/wallets/store/selectors'
|
||||||
|
|
||||||
export type SelectorProps = {
|
export type SelectorProps = {
|
||||||
transactions: List<Transaction>,
|
transactions: List<Transaction>,
|
||||||
userAddress: userAccountSelector,
|
userAddress: typeof userAccountSelector,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStructuredSelector({
|
export default createStructuredSelector<Object, *>({
|
||||||
transactions: safeTransactionsSelector,
|
transactions: safeTransactionsSelector,
|
||||||
userAddress: userAccountSelector,
|
userAddress: userAccountSelector,
|
||||||
})
|
})
|
|
@ -2,7 +2,7 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
import Page from '~/components/layout/Page'
|
import Page from '~/components/layout/Page'
|
||||||
import Layout from '~/routes/safe/component/Layout'
|
import Layout from '~/routes/safe/components/Layout'
|
||||||
import selector, { type SelectorProps } from './selector'
|
import selector, { type SelectorProps } from './selector'
|
||||||
import actions, { type Actions } from './actions'
|
import actions, { type Actions } from './actions'
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// @flow
|
// @flow
|
||||||
import { type Store } from 'redux'
|
import { type Store } from 'redux'
|
||||||
import TestUtils from 'react-dom/test-utils'
|
import TestUtils from 'react-dom/test-utils'
|
||||||
import SafeView from '~/routes/safe/component/Safe'
|
import SafeView from '~/routes/safe/components/Safe'
|
||||||
import { aNewStore, type GlobalState } from '~/store'
|
import { aNewStore, type GlobalState } from '~/store'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
||||||
import { addEtherTo } from '~/test/utils/tokenMovements'
|
import { addEtherTo } from '~/test/utils/tokenMovements'
|
||||||
import { aMinedSafe } from '~/test/builder/safe.redux.builder'
|
import { aMinedSafe } from '~/test/builder/safe.redux.builder'
|
||||||
import { travelToSafe } from '~/test/builder/safe.dom.utils'
|
import { travelToSafe } from '~/test/builder/safe.dom.utils'
|
||||||
import { MOVE_FUNDS_BUTTON_TEXT } from '~/routes/safe/component/Safe/BalanceInfo'
|
import { MOVE_FUNDS_BUTTON_TEXT } from '~/routes/safe/components/Safe/BalanceInfo'
|
||||||
|
|
||||||
export type DomSafe = {
|
export type DomSafe = {
|
||||||
address: string,
|
address: string,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import TestUtils from 'react-dom/test-utils'
|
import TestUtils from 'react-dom/test-utils'
|
||||||
import ListItemText from '~/components/List/ListItemText/index'
|
import ListItemText from '~/components/List/ListItemText/index'
|
||||||
import { SEE_MULTISIG_BUTTON_TEXT } from '~/routes/safe/component/Safe/MultisigTx'
|
import { SEE_MULTISIG_BUTTON_TEXT } from '~/routes/safe/components/Safe/MultisigTx'
|
||||||
import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
|
import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import { Provider } from 'react-redux'
|
import { Provider } from 'react-redux'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
import TestUtils from 'react-dom/test-utils'
|
import TestUtils from 'react-dom/test-utils'
|
||||||
import { List } from 'immutable'
|
import { List } from 'immutable'
|
||||||
import Transaction from '~/routes/safe/component/Transactions/Transaction'
|
import Transaction from '~/routes/safe/components/Transactions/Transaction'
|
||||||
import {
|
import {
|
||||||
listTxsClickingOn,
|
listTxsClickingOn,
|
||||||
LIST_TXS_INDEX,
|
LIST_TXS_INDEX,
|
||||||
|
|
|
@ -7,11 +7,11 @@ import fetchTransactions from '~/routes/safe/store/actions/fetchTransactions'
|
||||||
import { type Safe } from '~/routes/safe/store/models/safe'
|
import { type Safe } from '~/routes/safe/store/models/safe'
|
||||||
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
|
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
|
||||||
import { aMinedSafe } from '~/test/builder/safe.redux.builder'
|
import { aMinedSafe } from '~/test/builder/safe.redux.builder'
|
||||||
import { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from '~/routes/safe/component/AddOwner/AddOwnerForm'
|
import { NAME_PARAM, OWNER_ADDRESS_PARAM, INCREASE_PARAM } from '~/routes/safe/components/AddOwner/AddOwnerForm'
|
||||||
import { addOwner } from '~/routes/safe/component/AddOwner/index'
|
import { addOwner } from '~/routes/safe/components/AddOwner/index'
|
||||||
import fetchSafe from '~/routes/safe/store/actions/fetchSafe'
|
import fetchSafe from '~/routes/safe/store/actions/fetchSafe'
|
||||||
import { removeOwner, shouldDecrease, initialValuesFrom } from '~/routes/safe/component/RemoveOwner'
|
import { removeOwner, shouldDecrease, initialValuesFrom } from '~/routes/safe/components/RemoveOwner'
|
||||||
import { DECREASE_PARAM } from '~/routes/safe/component/RemoveOwner/RemoveOwnerForm'
|
import { DECREASE_PARAM } from '~/routes/safe/components/RemoveOwner/RemoveOwnerForm'
|
||||||
import { getSafeFrom } from '~/test/utils/safeHelper'
|
import { getSafeFrom } from '~/test/utils/safeHelper'
|
||||||
import { getOwnerNameBy, getOwnerAddressBy } from '~/routes/open/components/fields'
|
import { getOwnerNameBy, getOwnerAddressBy } from '~/routes/open/components/fields'
|
||||||
import { processTransaction } from '~/logic/safe/safeFrontendOperations'
|
import { processTransaction } from '~/logic/safe/safeFrontendOperations'
|
||||||
|
|
|
@ -3,7 +3,7 @@ import TestUtils from 'react-dom/test-utils'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import { checkMinedTx, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
import { checkMinedTx, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
||||||
import { whenExecuted } from '~/test/utils/logTransactions'
|
import { whenExecuted } from '~/test/utils/logTransactions'
|
||||||
import AddOwner from '~/routes/safe/component/AddOwner'
|
import AddOwner from '~/routes/safe/components/AddOwner'
|
||||||
|
|
||||||
export const sendAddOwnerForm = async (
|
export const sendAddOwnerForm = async (
|
||||||
SafeDom: React$Component<any, any>,
|
SafeDom: React$Component<any, any>,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import TestUtils from 'react-dom/test-utils'
|
import TestUtils from 'react-dom/test-utils'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import { checkMinedTx, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
import { checkMinedTx, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
||||||
import SendToken from '~/routes/safe/component/SendToken'
|
import SendToken from '~/routes/safe/components/SendToken'
|
||||||
import { whenExecuted } from '~/test/utils/logTransactions'
|
import { whenExecuted } from '~/test/utils/logTransactions'
|
||||||
|
|
||||||
export const sendMoveFundsForm = async (
|
export const sendMoveFundsForm = async (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { sleep } from '~/utils/timer'
|
||||||
import * as fetchTokensAction from '~/logic/tokens/store/actions/fetchTokens'
|
import * as fetchTokensAction from '~/logic/tokens/store/actions/fetchTokens'
|
||||||
import { checkMinedTx, checkPendingTx, EXPAND_BALANCE_INDEX } from '~/test/builder/safe.dom.utils'
|
import { checkMinedTx, checkPendingTx, EXPAND_BALANCE_INDEX } from '~/test/builder/safe.dom.utils'
|
||||||
import { whenExecuted } from '~/test/utils/logTransactions'
|
import { whenExecuted } from '~/test/utils/logTransactions'
|
||||||
import SendToken from '~/routes/safe/component/SendToken'
|
import SendToken from '~/routes/safe/components/SendToken'
|
||||||
import { makeToken, type Token } from '~/logic/tokens/store/model/token'
|
import { makeToken, type Token } from '~/logic/tokens/store/model/token'
|
||||||
import addTokens from '~/logic/tokens/store/actions/saveTokens'
|
import addTokens from '~/logic/tokens/store/actions/saveTokens'
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { sleep } from '~/utils/timer'
|
||||||
import { checkMinedTx, EXPAND_OWNERS_INDEX, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
import { checkMinedTx, EXPAND_OWNERS_INDEX, checkPendingTx } from '~/test/builder/safe.dom.utils'
|
||||||
import { filterMoveButtonsFrom } from '~/test/builder/safe.dom.builder'
|
import { filterMoveButtonsFrom } from '~/test/builder/safe.dom.builder'
|
||||||
import { whenExecuted } from '~/test/utils/logTransactions'
|
import { whenExecuted } from '~/test/utils/logTransactions'
|
||||||
import RemoveOwner from '~/routes/safe/component/RemoveOwner'
|
import RemoveOwner from '~/routes/safe/components/RemoveOwner'
|
||||||
|
|
||||||
export const sendRemoveOwnerForm = async (
|
export const sendRemoveOwnerForm = async (
|
||||||
SafeDom: React$Component<any, any>,
|
SafeDom: React$Component<any, any>,
|
||||||
|
|
|
@ -3,7 +3,7 @@ import TestUtils from 'react-dom/test-utils'
|
||||||
import { sleep } from '~/utils/timer'
|
import { sleep } from '~/utils/timer'
|
||||||
import { checkMinedTx } from '~/test/builder/safe.dom.utils'
|
import { checkMinedTx } from '~/test/builder/safe.dom.utils'
|
||||||
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
|
import { getGnosisSafeInstanceAt } from '~/logic/contracts/safeContracts'
|
||||||
import Threshold from '~/routes/safe/component/Threshold'
|
import Threshold from '~/routes/safe/components/Threshold'
|
||||||
import { whenExecuted } from '~/test/utils/logTransactions'
|
import { whenExecuted } from '~/test/utils/logTransactions'
|
||||||
|
|
||||||
export const sendChangeThresholdForm = async (
|
export const sendChangeThresholdForm = async (
|
||||||
|
|
Loading…
Reference in New Issue