mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
action/constants to lowerCase #1
This commit is contained in:
parent
60ead5a452
commit
d9789c74b4
@ -2,10 +2,10 @@
|
||||
'use strict';
|
||||
|
||||
import * as CONNECT from './constants/TrezorConnect';
|
||||
import * as ADDRESS from './constants/Address';
|
||||
import * as TOKEN from './constants/Token';
|
||||
import * as DISCOVERY from './constants/Discovery';
|
||||
import * as STORAGE from './constants/LocalStorage';
|
||||
import * as ADDRESS from './constants/address';
|
||||
import * as TOKEN from './constants/token';
|
||||
import * as DISCOVERY from './constants/discovery';
|
||||
import * as STORAGE from './constants/localStorage';
|
||||
import { httpRequest } from '../utils/networkUtils';
|
||||
|
||||
export function loadData(): any {
|
||||
|
@ -2,7 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
import TrezorConnect, { UI, UI_EVENT } from 'trezor-connect';
|
||||
import * as MODAL from './constants/Modal';
|
||||
import * as MODAL from './constants/modal';
|
||||
import * as CONNECT from './constants/TrezorConnect';
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* @flow */
|
||||
'use strict';
|
||||
|
||||
import * as SEND from './constants/SendForm';
|
||||
import * as SEND from './constants/send';
|
||||
import * as NOTIFICATION from './constants/notification';
|
||||
|
||||
import { estimateGas, getGasPrice, pushTx } from './Web3Actions';
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
import EthereumjsUtil from 'ethereumjs-util';
|
||||
import * as SUMMARY from './constants/summary';
|
||||
import * as TOKEN from './constants/Token';
|
||||
import * as ADDRESS from './constants/Address';
|
||||
import * as TOKEN from './constants/token';
|
||||
import * as ADDRESS from './constants/address';
|
||||
import { resolveAfter } from '../utils/promiseUtils';
|
||||
import { getTokenInfoAsync, getTokenBalanceAsync } from './Web3Actions';
|
||||
|
||||
|
@ -2,10 +2,10 @@
|
||||
'use strict';
|
||||
|
||||
import TrezorConnect, { UI, DEVICE, DEVICE_EVENT, UI_EVENT, TRANSPORT_EVENT } from 'trezor-connect';
|
||||
import * as ADDRESS from './constants/Address';
|
||||
import * as TOKEN from './constants/Token';
|
||||
import * as ADDRESS from './constants/address';
|
||||
import * as TOKEN from './constants/token';
|
||||
import * as CONNECT from './constants/TrezorConnect';
|
||||
import * as DISCOVERY from './constants/Discovery';
|
||||
import * as DISCOVERY from './constants/discovery';
|
||||
import * as NOTIFICATION from './constants/notification';
|
||||
import * as WALLET from './constants/wallet';
|
||||
|
||||
|
@ -7,8 +7,8 @@ import EthereumjsUtil from 'ethereumjs-util';
|
||||
import EthereumjsTx from 'ethereumjs-tx';
|
||||
import TrezorConnect from 'trezor-connect';
|
||||
import { strip } from '../utils/ethUtils';
|
||||
import * as ADDRESS from './constants/Address';
|
||||
import * as WEB3 from './constants/Web3';
|
||||
import * as ADDRESS from './constants/address';
|
||||
import * as WEB3 from './constants/web3';
|
||||
import { httpRequest } from '../utils/networkUtils';
|
||||
|
||||
type ActionMethod = (dispatch: any, getState: any) => Promise<any>;
|
||||
|
@ -23,7 +23,7 @@ import RememberDevice, { ForgetDevice, DisconnectDevice } from './RememberDevice
|
||||
import DuplicateDevice from './DuplicateDevice';
|
||||
|
||||
import * as RECEIVE from '../../actions/constants/receive';
|
||||
import * as MODAL from '../../actions/constants/Modal';
|
||||
import * as MODAL from '../../actions/constants/modal';
|
||||
import * as CONNECT from '../../actions/constants/TrezorConnect';
|
||||
|
||||
const duration = 300;
|
||||
|
@ -2,7 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as ADDRESS from '../actions/constants/Address';
|
||||
import * as ADDRESS from '../actions/constants/address';
|
||||
|
||||
export type Account = {
|
||||
loaded: boolean;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* @flow */
|
||||
'use strict';
|
||||
|
||||
import * as DISCOVERY from '../actions/constants/Discovery';
|
||||
import * as ADDRESS from '../actions/constants/Address';
|
||||
import * as DISCOVERY from '../actions/constants/discovery';
|
||||
import * as ADDRESS from '../actions/constants/address';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
|
||||
export type Discovery = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* @flow */
|
||||
'use strict';
|
||||
|
||||
import * as STORAGE from '../actions/constants/LocalStorage';
|
||||
import * as STORAGE from '../actions/constants/localStorage';
|
||||
|
||||
type State = {
|
||||
initialized: boolean;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
import { UI, DEVICE } from 'trezor-connect';
|
||||
import * as RECEIVE from '../actions/constants/receive';
|
||||
import * as MODAL from '../actions/constants/Modal';
|
||||
import * as MODAL from '../actions/constants/modal';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
|
||||
type ModalState = {
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* @flow */
|
||||
'use strict';
|
||||
|
||||
import * as SEND from '../actions/constants/SendForm';
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as SEND from '../actions/constants/send';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
|
||||
export type PendingTx = {
|
||||
+id: string;
|
||||
|
@ -2,9 +2,9 @@
|
||||
'use strict';
|
||||
|
||||
import { LOCATION_CHANGE } from 'react-router-redux';
|
||||
import * as SEND from '../actions/constants/SendForm';
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as ADDRESS from '../actions/constants/Address';
|
||||
import * as SEND from '../actions/constants/send';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
import * as ADDRESS from '../actions/constants/address';
|
||||
import EthereumjsUnits from 'ethereumjs-units';
|
||||
import BigNumber from 'bignumber.js';
|
||||
import { getFeeLevels } from '../actions/SendFormActions';
|
||||
|
@ -2,7 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as TOKEN from '../actions/constants/Token';
|
||||
import * as TOKEN from '../actions/constants/token';
|
||||
|
||||
export type Token = {
|
||||
loaded: boolean;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* @flow */
|
||||
'use strict';
|
||||
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
import * as WALLET from '../actions/constants/wallet';
|
||||
|
||||
type State = {
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
import Web3 from 'web3';
|
||||
|
||||
import * as STORAGE from '../actions/constants/LocalStorage';
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as STORAGE from '../actions/constants/localStorage';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
|
||||
type Web3Instance = {
|
||||
network: string;
|
||||
|
@ -6,12 +6,12 @@ import * as LocalStorageActions from '../actions/LocalStorageActions';
|
||||
|
||||
import { DEVICE } from 'trezor-connect';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as MODAL from '../actions/constants/Modal';
|
||||
import * as TOKEN from '../actions/constants/Token';
|
||||
import * as ADDRESS from '../actions/constants/Address';
|
||||
import * as DISCOVERY from '../actions/constants/Discovery';
|
||||
import * as SEND from '../actions/constants/SendForm';
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as MODAL from '../actions/constants/modal';
|
||||
import * as TOKEN from '../actions/constants/token';
|
||||
import * as ADDRESS from '../actions/constants/address';
|
||||
import * as DISCOVERY from '../actions/constants/discovery';
|
||||
import * as SEND from '../actions/constants/send';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
|
||||
|
||||
// https://github.com/STRML/react-localstorage/blob/master/react-localstorage.js
|
||||
|
@ -7,8 +7,8 @@ import TrezorConnect, { TRANSPORT, DEVICE_EVENT, UI_EVENT, UI, DEVICE } from 'tr
|
||||
import * as TrezorConnectActions from '../actions/TrezorConnectActions';
|
||||
import * as ModalActions from '../actions/ModalActions';
|
||||
import { init as initWeb3 } from '../actions/Web3Actions';
|
||||
import * as WEB3 from '../actions/constants/Web3';
|
||||
import * as STORAGE from '../actions/constants/LocalStorage';
|
||||
import * as WEB3 from '../actions/constants/web3';
|
||||
import * as STORAGE from '../actions/constants/localStorage';
|
||||
import * as CONNECT from '../actions/constants/TrezorConnect';
|
||||
import * as NOTIFICATION from '../actions/constants/notification';
|
||||
import * as MODAL from '../actions/constants/Modal';
|
||||
|
Loading…
Reference in New Issue
Block a user