mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove send_ directory, revert to just having send
Revert accidentally changed constants. Require defaults in ens-input, gas-fee-display and confirm screens.
This commit is contained in:
parent
f31e87dcd5
commit
b3d78ed8a1
@ -6,7 +6,7 @@ const {
|
|||||||
calcGasTotal,
|
calcGasTotal,
|
||||||
calcTokenBalance,
|
calcTokenBalance,
|
||||||
estimateGas,
|
estimateGas,
|
||||||
} = require('./components/send_/send.utils')
|
} = require('./components/send/send.utils')
|
||||||
const ethUtil = require('ethereumjs-util')
|
const ethUtil = require('ethereumjs-util')
|
||||||
const { fetchLocale } = require('../i18n-helper')
|
const { fetchLocale } = require('../i18n-helper')
|
||||||
const log = require('loglevel')
|
const log = require('loglevel')
|
||||||
|
@ -11,7 +11,7 @@ const log = require('loglevel')
|
|||||||
// init
|
// init
|
||||||
const InitializeScreen = require('../../mascara/src/app/first-time').default
|
const InitializeScreen = require('../../mascara/src/app/first-time').default
|
||||||
// accounts
|
// accounts
|
||||||
const SendTransactionScreen = require('./components/send_/send.container')
|
const SendTransactionScreen = require('./components/send/send.container')
|
||||||
const ConfirmTransaction = require('./components/pages/confirm-transaction')
|
const ConfirmTransaction = require('./components/pages/confirm-transaction')
|
||||||
|
|
||||||
// slideout menu
|
// slideout menu
|
||||||
|
@ -16,11 +16,11 @@ const {
|
|||||||
MIN_GAS_PRICE_DEC,
|
MIN_GAS_PRICE_DEC,
|
||||||
MIN_GAS_LIMIT_DEC,
|
MIN_GAS_LIMIT_DEC,
|
||||||
MIN_GAS_PRICE_GWEI,
|
MIN_GAS_PRICE_GWEI,
|
||||||
} = require('../send_/send.constants')
|
} = require('../send/send.constants')
|
||||||
|
|
||||||
const {
|
const {
|
||||||
isBalanceSufficient,
|
isBalanceSufficient,
|
||||||
} = require('../send_/send.utils')
|
} = require('../send/send.utils')
|
||||||
|
|
||||||
const {
|
const {
|
||||||
conversionUtil,
|
conversionUtil,
|
||||||
@ -45,7 +45,7 @@ const {
|
|||||||
const {
|
const {
|
||||||
getGasPrice,
|
getGasPrice,
|
||||||
getGasLimit,
|
getGasLimit,
|
||||||
} = require('../send_/send.selectors')
|
} = require('../send/send.selectors')
|
||||||
|
|
||||||
function mapStateToProps (state) {
|
function mapStateToProps (state) {
|
||||||
const selectedToken = getSelectedToken(state)
|
const selectedToken = getSelectedToken(state)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const Component = require('react').Component
|
const Component = require('react').Component
|
||||||
const h = require('react-hyperscript')
|
const h = require('react-hyperscript')
|
||||||
const inherits = require('util').inherits
|
const inherits = require('util').inherits
|
||||||
const AccountListItem = require('../send_/account-list-item/account-list-item.component').default
|
const AccountListItem = require('../send/account-list-item/account-list-item.component').default
|
||||||
|
|
||||||
module.exports = AccountDropdownMini
|
module.exports = AccountDropdownMini
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ const networkMap = require('ethjs-ens/lib/network-map.json')
|
|||||||
const ensRE = /.+\..+$/
|
const ensRE = /.+\..+$/
|
||||||
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
|
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
|
||||||
const connect = require('react-redux').connect
|
const connect = require('react-redux').connect
|
||||||
const ToAutoComplete = require('./send/to-autocomplete.component').default
|
const ToAutoComplete = require('./send/to-autocomplete').default
|
||||||
const log = require('loglevel')
|
const log = require('loglevel')
|
||||||
const { isValidENSAddress } = require('../util')
|
const { isValidENSAddress } = require('../util')
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ const { conversionUtil } = require('../../conversion-util')
|
|||||||
const SenderToRecipient = require('../sender-to-recipient')
|
const SenderToRecipient = require('../sender-to-recipient')
|
||||||
const NetworkDisplay = require('../network-display')
|
const NetworkDisplay = require('../network-display')
|
||||||
|
|
||||||
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
|
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
|
||||||
|
|
||||||
class ConfirmDeployContract extends Component {
|
class ConfirmDeployContract extends Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
|
@ -19,14 +19,14 @@ const {
|
|||||||
const {
|
const {
|
||||||
calcGasTotal,
|
calcGasTotal,
|
||||||
isBalanceSufficient,
|
isBalanceSufficient,
|
||||||
} = require('../send_/send.utils')
|
} = require('../send/send.utils')
|
||||||
const GasFeeDisplay = require('../send_/send-content/send-gas-row/gas-fee-display/gas-fee-display.component').default
|
const GasFeeDisplay = require('../send/send-content/send-gas-row/gas-fee-display/').default
|
||||||
const SenderToRecipient = require('../sender-to-recipient')
|
const SenderToRecipient = require('../sender-to-recipient')
|
||||||
const NetworkDisplay = require('../network-display')
|
const NetworkDisplay = require('../network-display')
|
||||||
const currencyFormatter = require('currency-formatter')
|
const currencyFormatter = require('currency-formatter')
|
||||||
const currencies = require('currency-formatter/currencies')
|
const currencies = require('currency-formatter/currencies')
|
||||||
|
|
||||||
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
|
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
|
||||||
const { SEND_ROUTE, DEFAULT_ROUTE } = require('../../routes')
|
const { SEND_ROUTE, DEFAULT_ROUTE } = require('../../routes')
|
||||||
const {
|
const {
|
||||||
ENVIRONMENT_TYPE_POPUP,
|
ENVIRONMENT_TYPE_POPUP,
|
||||||
|
@ -11,7 +11,7 @@ abiDecoder.addABI(tokenAbi)
|
|||||||
const actions = require('../../actions')
|
const actions = require('../../actions')
|
||||||
const clone = require('clone')
|
const clone = require('clone')
|
||||||
const Identicon = require('../identicon')
|
const Identicon = require('../identicon')
|
||||||
const GasFeeDisplay = require('../send_/send-content/send-gas-row/gas-fee-display/gas-fee-display.component.js').default
|
const GasFeeDisplay = require('../send/send-content/send-gas-row/gas-fee-display/').default
|
||||||
const NetworkDisplay = require('../network-display')
|
const NetworkDisplay = require('../network-display')
|
||||||
const ethUtil = require('ethereumjs-util')
|
const ethUtil = require('ethereumjs-util')
|
||||||
const BN = ethUtil.BN
|
const BN = ethUtil.BN
|
||||||
@ -23,7 +23,7 @@ const {
|
|||||||
const {
|
const {
|
||||||
calcGasTotal,
|
calcGasTotal,
|
||||||
isBalanceSufficient,
|
isBalanceSufficient,
|
||||||
} = require('../send_/send.utils')
|
} = require('../send/send.utils')
|
||||||
const {
|
const {
|
||||||
calcTokenAmount,
|
calcTokenAmount,
|
||||||
} = require('../../token-util')
|
} = require('../../token-util')
|
||||||
@ -31,7 +31,7 @@ const classnames = require('classnames')
|
|||||||
const currencyFormatter = require('currency-formatter')
|
const currencyFormatter = require('currency-formatter')
|
||||||
const currencies = require('currency-formatter/currencies')
|
const currencies = require('currency-formatter/currencies')
|
||||||
|
|
||||||
const { MIN_GAS_PRICE_HEX } = require('../send_/send.constants')
|
const { MIN_GAS_PRICE_HEX } = require('../send/send.constants')
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getTokenExchangeRate,
|
getTokenExchangeRate,
|
||||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import { checksumAddress } from '../../../util'
|
import { checksumAddress } from '../../../util'
|
||||||
import Identicon from '../../identicon'
|
import Identicon from '../../identicon'
|
||||||
import CurrencyDisplay from '../../send/currency-display'
|
import CurrencyDisplay from '../currency-display'
|
||||||
|
|
||||||
export default class AccountListItem extends Component {
|
export default class AccountListItem extends Component {
|
||||||
|
|
@ -4,7 +4,7 @@ import { shallow } from 'enzyme'
|
|||||||
import sinon from 'sinon'
|
import sinon from 'sinon'
|
||||||
import proxyquire from 'proxyquire'
|
import proxyquire from 'proxyquire'
|
||||||
import Identicon from '../../../identicon'
|
import Identicon from '../../../identicon'
|
||||||
import CurrencyDisplay from '../../../send/currency-display'
|
import CurrencyDisplay from '../../currency-display'
|
||||||
|
|
||||||
const utilsMethodStubs = {
|
const utilsMethodStubs = {
|
||||||
checksumAddress: sinon.stub().returns('mockCheckSumAddress'),
|
checksumAddress: sinon.stub().returns('mockCheckSumAddress'),
|
@ -1,8 +1,8 @@
|
|||||||
const Component = require('react').Component
|
const Component = require('react').Component
|
||||||
const h = require('react-hyperscript')
|
const h = require('react-hyperscript')
|
||||||
const inherits = require('util').inherits
|
const inherits = require('util').inherits
|
||||||
const { conversionUtil, multiplyCurrencies } = require('../../conversion-util')
|
const { conversionUtil, multiplyCurrencies } = require('../../../conversion-util')
|
||||||
const { removeLeadingZeroes } = require('../send_/send.utils')
|
const { removeLeadingZeroes } = require('../send.utils')
|
||||||
const currencyFormatter = require('currency-formatter')
|
const currencyFormatter = require('currency-formatter')
|
||||||
const currencies = require('currency-formatter/currencies')
|
const currencies = require('currency-formatter/currencies')
|
||||||
const ethUtil = require('ethereumjs-util')
|
const ethUtil = require('ethereumjs-util')
|
1
ui/app/components/send/currency-display/index.js
Normal file
1
ui/app/components/send/currency-display/index.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export { default } from './currency-display.js'
|
@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import SendRowWrapper from '../send-row-wrapper/'
|
import SendRowWrapper from '../send-row-wrapper/'
|
||||||
import AmountMaxButton from './amount-max-button/'
|
import AmountMaxButton from './amount-max-button/'
|
||||||
import CurrencyDisplay from '../../../send/currency-display'
|
import CurrencyDisplay from '../../currency-display'
|
||||||
|
|
||||||
export default class SendAmountRow extends Component {
|
export default class SendAmountRow extends Component {
|
||||||
|
|
@ -6,7 +6,7 @@ import SendAmountRow from '../send-amount-row.component.js'
|
|||||||
|
|
||||||
import SendRowWrapper from '../../send-row-wrapper/send-row-wrapper.component'
|
import SendRowWrapper from '../../send-row-wrapper/send-row-wrapper.component'
|
||||||
import AmountMaxButton from '../amount-max-button/amount-max-button.container'
|
import AmountMaxButton from '../amount-max-button/amount-max-button.container'
|
||||||
import CurrencyDisplay from '../../../../send/currency-display'
|
import CurrencyDisplay from '../../../currency-display'
|
||||||
|
|
||||||
const propsMethodSpies = {
|
const propsMethodSpies = {
|
||||||
setMaxModeTo: sinon.spy(),
|
setMaxModeTo: sinon.spy(),
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user